/* Header */
:root {
    --primary-color: #2563eb;
    --hover-color: #1d4ed8;
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Header */
header {
    background: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000; /* Added to ensure header stays on top */
}


.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    z-index: 2; /* Ensure logo stays above menu */
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo p {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 2; /* Keep above other elements */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2563eb;
    margin: 5px 0;
    transition: 0.3s;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav a:hover {
    color: var(--hover-color);
    background: rgba(37, 99, 235, 0.05);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .logo p {
        font-size: 1rem; /* Adjusted from 0.5rem */
    }
    
    nav a {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 640px) {
    .hamburger {
        display: block;
    }

    .logo {
        min-width: auto; /* Allow logo to shrink */
        gap: 0.75rem;
    }

    .logo img {
        height: 35px;
    }

    .logo p {
        font-size: 0.9rem; /* Adjusted for mobile */
    }

    nav {
           position: fixed; /* Changed from absolute */
        top: 70px; /* Adjust based on header height */
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0 5%;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        z-index: 999; /* Ensure menu stays below header but above content */
    }

    nav.active {
        max-height: 500px;
        padding: 1rem 5%;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    nav a:last-child {
        border-bottom: none;
    }

        nav.active {
        max-height: calc(100vh - 70px); /* Full height minus header */
        padding: 1rem 5%;
        overflow-y: auto;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
        background: white; /* Ensure links have solid background */
    }

    nav a:hover {
        background: #f8fafc;
    }

    /* Add close animation to hamburger */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 480px) {
    .logo p {
        font-size: 0.8rem; /* Further adjust for small screens */
    }
    
    .logo img {
        height: 30px;
    }
}


    /* Hero Section */
    .hero {
        position: relative;
        height: 80vh;
        min-height: 600px;
        overflow: hidden;
    }

    .slider-container {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        background-size: cover;
        background-position: center;
    }

    .slide.active {
        opacity: 1;
    }

    /* Overlay */
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
    }

    .content {
        position: relative;
        z-index: 1;
        color: white;
        padding: 2rem 5%;
        max-width: 1200px;
        margin: 0 auto;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        max-width: 800px;
        line-height: 1.2;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        max-width: 600px;
        line-height: 1.6;
    }

    .content a {
        background: var(--primary-color);
        color: white;
        padding: 1rem 2.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .content a:hover {
        background: transparent;
        border-color: white;
        transform: translateY(-2px);
    }

    .stats {
        background: rgba(255, 255, 255, 0.9);
        padding: 2rem 5%;
        display: flex;
        justify-content: space-around;
        gap: 2rem;
        z-index: 2;
    }

    .stat-item {
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

    .stat-label {
        color: #1e293b;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    @media (max-width: 768px) {
        .title {
            font-size: 2.5rem;
        }

        .content p {
            font-size: 1rem;
        }

        .stats {
            flex-wrap: wrap;
            padding: 1.5rem 5%;
        }

        .stat-item {
            flex: 1 1 150px;
        }

        .stat-number {
            font-size: 2rem;
        }
    }

    @media (max-width: 480px) {
        .hero {
            height: 90vh;
        }

        .title {
            font-size: 2rem;
        }

        .content a {
            width: 100%;
            text-align: center;
        }

        .stat-label {
            font-size: 0.9rem;
        }
    }

    /*Services*/
        .services {
        padding: 4rem 5%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        background: #f8fafc;
    }

    .service {
        background: white;
        padding: 2rem;
        border-radius: 10px;
        text-align: center;
        transition: transform 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .service:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .icon {
        width: 70px;
        height: 70px;
        background: #eef2ff;
        border-radius: 50%;
        margin: 0 auto 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    .name {
        color: #1e293b;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service p {
        color: #64748b;
        line-height: 1.6;
        font-size: 1rem;
    }

    @media (max-width: 992px) {
        .services {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .services {
            grid-template-columns: 1fr;
            padding: 3rem 5%;
        }

        .service {
            padding: 1.5rem;
        }

        .name {
            font-size: 1.3rem;
        }
    }

      /* Services Content Section */
    .services-content {
        display: flex;
        gap: 3rem;
        align-items: center;
        padding: 4rem 5%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .services-content > div {
        flex: 1;
    }

    .services-content img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .service-text h2,.about h3 {
        font-size: 2.5rem;
        color: #1e293b;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.5rem;
    }

    .service-text h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--primary-color);
    }

    .service-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #64748b;
        max-width: 600px;
    }

    @media (max-width: 992px) {
        .services-content {
            flex-direction: column;
            text-align: center;
            padding: 3rem 5%;
        }

        .service-text h2::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .services-content img {
            max-width: 600px;
        }
    }

    @media (max-width: 768px) {
        .service-text h2 {
            font-size: 2rem;
        }

        .service-text p {
            font-size: 1rem;
        }
    }

/* Industries Section */
.industries-section {
    padding: 4rem 5%;
    background: #f8fafc;
}

.industries-section h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.industries-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.industries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.industry {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.industry:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.industry img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.industry:hover img {
    transform: scale(1.05);
}

.industry h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 1.25rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .industries-section h1 {
        font-size: 2rem;
    }
    
    .industries {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .industry img {
        height: 200px;
    }
    
    .industry h3 {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .industries-section {
        padding: 2rem 5%;
    }
    
    .industry img {
        height: 180px;
    }
}

   /* Footer Styles */
    footer {
        background: #1e293b;
        color: #fff;
        padding: 4rem 5%;
        margin-top: 4rem;
    }

    .footer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .footer h2 {
        color: #fff;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #2563eb;
        display: inline-block;
    }

    .footer img {
        width: 120px;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .first-col p {
        color: #cbd5e1;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .footer ul {
        list-style: none;
        padding: 0;
    }

    .footer ul li {
        margin-bottom: 0.8rem;
    }

    .footer ul li a {
        color: #cbd5e1;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer ul li a:hover {
        color: #2563eb;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        color: #cbd5e1;
    }

    .contact-item i {
        color: #2563eb;
        width: 20px;
    }

    .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }

    .social-links a {
        color: #fff;
        font-size: 1.2rem;
        transition: color 0.3s ease;
    }

    .social-links a:hover {
        color: #2563eb;
    }

    footer hr {
        border-color: #334155;
        margin: 2rem auto;
        max-width: 1400px;
    }

    footer > div:last-child {
        text-align: center;
        padding-top: 1rem;
        color: #94a3b8;
        font-size: 0.9rem;
    }

    footer > div:last-child p {
        margin: 0.5rem 0;
    }

    @media (max-width: 768px) {
        .footer {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .first-col {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .contact-info {
            align-items: center;
        }

        .social-links {
            justify-content: center;
        }
    }
