/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary-orange: #FF8C00;
    /* Solar Sun */
    --primary-green: #2E8B57;
    /* Nature/Eco */
    --primary-blue: #0056b3;
    /* Solar Panel */
    --dark-blue: #002244;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;

    /* Accents & Gradients */
    --hero-gradient: linear-gradient(135deg, rgba(0, 34, 68, 0.9) 0%, rgba(46, 139, 87, 0.8) 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.flex {
    display: flex;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    /* Reduced padding */
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    background: linear-gradient(45deg, var(--primary-orange), #FF4500);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-blue);
    z-index: 1000;
    padding: 0.2rem 0;
    /* Minimal padding */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Setup for absolute positioning */
}

.logo img {
    height: 65px;
    /* Increased size */
    transition: transform 0.3s ease;
}

/* Footer Logo Class */
.footer-logo {
    height: 60px;
    /* Specific footer logo size */
    margin-bottom: 1rem;
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.4s;
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Animations */
/* Hero Section */
.hero {
    height: 100vh;
    background: var(--hero-gradient), url('../assets/images/hero-banner.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    /* For fixed navbar */
}

/* ... (Hero content styles remain same) ... */

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.highlight {
    color: var(--primary-orange);
    position: relative;
    display: inline-block;
}

.hero-btns {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-btns .btn {
    margin: 0 10px;
}

/* Features Section */
.features {
    padding: var(--section-spacing) 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

/* Services Section */
.services {
    padding: var(--section-spacing) 0;
    background: var(--white);
}

.service-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: left;
    height: 100%;
}

.service-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: var(--section-spacing) 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-item:hover .project-img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Gallery Section */
.gallery-section {
    background: var(--light-bg);
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 15px;
}

/* Responsive Gallery */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2001;
    /* Above mobile menu (2000) */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-orange);
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

/* Footer (existing) */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Removed duplicate logo style */

.mobile-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 2002;
        /* Above nav-links (2000) */
        padding: 10px;
        /* Increase click area */
        margin-right: -10px;
        /* Align with container edge */
    }

    /* Animate Hamburger */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--dark-blue);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--dark-blue);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        z-index: 2000;
        /* Above everything */
        gap: 2rem;
    }

    .nav-links.active {
        left: 0;
    }

    /* Fix: Setup dark text for white mobile menu */
    .nav-links a {
        color: var(--dark-blue);
        font-size: 1.5rem;
        /* Make them bigger too */
    }

    /* Mobile Navbar Tweaks */
    .navbar {
        min-height: 70px;
        /* Ensure space for 50px logo */
        padding: 0;
    }

    .nav-container {
        height: 100%;
        /* Fill navbar */
        min-height: 70px;
        justify-content: flex-end;
        /* Align toggle to right, logo is absolute */
        padding-right: 1.5rem;
        /* Add spacing for toggle */
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1002;
        /* Ensure above everything */
        width: auto;
    }

    .logo img {
        height: 50px;
        /* Smaller size for mobile to prevent cutoff */
    }

    .menu-toggle {
        margin-left: 0;
        /* Clear default/auto */
    }

    .desktop-btn {
        display: none;
    }

    .mobile-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .grid,
    .features-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .about-text h2 {
        font-size: 2rem;
    }
}