:root {
    --primary-color: #ff6b00;
    --primary-dark: #e65100;
    --secondary-color: #2c3e50;
    --accent-color: #ffd180;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --section-padding: 100px 0;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

section {
    padding: var(--section-padding);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    min-height: 90px;
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.nav-scrolled {
    background: linear-gradient(120deg, 
        rgba(44, 62, 80, 0) 0%,
        rgba(44, 62, 80, 0.97) 25%,
    
        rgba(255, 107, 0, 0) 100%
    );
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.nav-scrolled .nav-links {
    transform: translateY(0);
}

/* Navigation links */
.nav-links a {
    position: relative;
    padding: 8px 0;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-scrolled .nav-links a {
    color: var(--text-light);
    text-shadow: none;
}

.nav-scrolled .nav-links a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    nav {
        min-height: 70px;
    }
    
    
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(48, 48, 48, 0.85), rgba(26, 26, 26, 0.95)), 
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.0&auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0;
    padding: 150px 0;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    color: var(--primary-color); /* Added orange color */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.cta-button:hover {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 30px 0;
    line-height: 1.8;
    opacity: 0.9;
    color: var(--accent-color); /* Added lighter orange color */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Top Banner */
.top-banner {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-banner a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.97), rgba(255, 245, 230, 0.97)),
                url('https://images.unsplash.com/photo-1581094794329-c8112c37c8ff?ixlib=rb-4.0.0&auto=format&fit=crop&q=80');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
}

.services h2 {
    font-size: 3rem;
    margin-bottom: 70px;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 50px auto;
    max-width: 1200px;
}

.service-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    background-size: 150px;
    background-position: right bottom;
    background-repeat: no-repeat;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.service-card:nth-child(1) {
    background-image: url('https://img.icons8.com/color/240/worker-safety.png');
}

.service-card:nth-child(2) {
    background-image: url('https://img.icons8.com/color/240/fire-safety.png');
}

.service-card:nth-child(3) {
    background-image: url('https://img.icons8.com/color/240/environmental-protection.png');
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
}

.service-card i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card ul {
    list-style: none;
    margin-top: auto;
}

.service-card ul li {
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.service-card ul li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .services-grid {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    nav {
        min-height: 90px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        padding: 40px 30px;
        min-height: 350px;
    }

    .service-card h3 {
        font-size: 1.6rem;
    }
    
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    nav {
        background: linear-gradient(to right, rgba(44, 62, 80, 0.98), rgba(255, 107, 0, 0.98));
        min-height: 70px;
    }
    
    nav .container {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 30px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services h2 {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .service-card {
        min-height: auto;
    }
    
    nav .container {
        justify-content: space-between;
    }
    
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        flex-direction: column;
    }

    .logo {
        top: 10px;
        right: 10px;
    }
    
    .logo img {
        height: 90px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin: 20px 0;
    }
}

@media (max-width: 576px) {
    nav {
        min-height: 70px;
    }
    
    .nav-links {
        gap: 20px;
        font-size: 0.9rem;
    }
    
    nav .container {
        padding: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

/* Statistics Section */
.statistics {
    padding: var(--section-padding);
    background: linear-gradient(rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.95)), 
                url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.0&auto=format&fit=crop&q=80');
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-light);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* References Section */
.references {
    background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
                url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?ixlib=rb-4.0.0&auto=format&fit=crop&q=80');
    padding: 80px 0;
}

.references .section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 50px auto;
    max-width: 1200px;
    padding: 0 50px;
}

/* First row - 4 logos */
.references-grid > *:nth-child(-n+4) {
    grid-column: auto;
    justify-self: center;
}

/* Second row - 3 logos centered */
.references-grid > *:nth-child(5) {
    grid-column: 1/2;
    justify-self: end;
}

.references-grid > *:nth-child(6) {
    grid-column: 2/4;
    justify-self: center;
}

.references-grid > *:nth-child(7) {
    grid-column: 4/5;
    justify-self: start;
}

/* Add gap for centering bottom row */
.references-grid::after {
    content: '';
    grid-column: 1/-1;
    width: 100%;
}

@media (min-width: 992px) {
    .references-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
    
    .references-grid > * {
        grid-column: auto !important;
        justify-self: center !important;
    }
}

.reference-logo {
    background: white;
    width: 100%;
    max-width: 280px;
    height: 180px;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-logo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: var(--transition);
}

.reference-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.15);
}

.reference-logo:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) { 
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .reference-logo {
        height: 140px;
        padding: 20px;
        max-width: 240px;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-4.0.0&auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.submit-button {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 600;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, #fff5e6 0%, var(--bg-light) 100%);
}

.faq-grid {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 1000px;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add new section for experience */
.experience {
    padding: var(--section-padding);
    background: var(--bg-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Update FAQ section ID */
#faq {
    scroll-margin-top: 120px; /* Accounts for fixed navbar height */
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

@media print {
    .hero-buttons,
    .contact-form {
        display: none;
    }
}

/* Loading animation */
.loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}