/* --- 1. Variables & Reset --- */
:root {
    /* Color Palette */
    --color-bg-main: #FFFFFF; /* White background */
    --color-bg-secondary: #F8F9FA; /* Light gray for sections */
    --color-text-primary: #1A1A1A; /* Dark text for readability */
    --color-text-secondary: #666666; /* Medium gray for secondary text */
    --color-accent: #1B5E20; /* Dark green accent color */
    --color-header-text: #0F5132; /* Deep dark green for header text */
    
    /* Typography */
    --font-primary: 'Helvetica Neue', 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-spacing: 120px;
    --container-width: 1280px;
    --border-radius-lg: 24px;
    
    /* Transitions */
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }

p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 60ch;
}

.text-accent { color: var(--color-accent); }
.text-accent-gradient {
    background: linear-gradient(45deg, var(--color-accent), #0F5132);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.overflow-hidden { overflow: hidden; }

.container {
    width: 96%;              /* bring content closer to edges */
    max-width: 1400px;       /* slightly wider for a modern feel */
    margin: 0 auto;
}

/* --- 3. Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-standard);
    cursor: pointer;
}

.btn--outline {
    border: none;
    background: transparent;
    color: var(--color-header-text);
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
}

.btn--outline::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
}

.btn--outline:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn--outline:hover::after {
    width: 100%;
}

.btn--gold {
    background-color: var(--color-accent);
    color: var(--color-bg-main);
    border: none;
}

.btn--gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(27, 94, 32, 0.3);
}

.btn--text {
    color: var(--color-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 4. Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(27, 94, 32, 0.1);
}

.header__container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;   /* controlled edge spacing */
}


.logo {
    display: flex;
    align-items: center;
    height: auto;
    padding: 0;
}



.logo-img {
    height: 80px;          /* big logo directly inside header */
    width: auto;
    object-fit: contain;
    display: block;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav__link {
    color: var(--color-header-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav__link:not(.btn):hover {
    color: var(--color-accent);
}

.nav__link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* Contact button in nav - make it look like other nav links */
.nav__link.btn {
    padding: 8px 0;
    border: none;
    background: transparent;
}

.nav__link.btn::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
}

.nav__link.btn:hover::after,
.nav__link.btn.active::after {
    width: 100%;
}

.mobile-toggle { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--color-header-text);
    transition: color 0.3s ease;
}

.mobile-toggle:hover {
    color: var(--color-accent);
}

/* --- 5. Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller for parallax */
    z-index: -1;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    color: #FFFFFF; /* White text on dark hero images */
}

.hero__content h1 {
    color: #FFFFFF;
}

.hero__content .text-accent {
    color: rgba(255, 255, 255, 0.95); /* Light white for accent text on dark background */
}

.hero__subtitle {
    margin-top: 24px;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for subtitle */
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    color: #FFFFFF; /* White text on dark background */
}

/* --- 6. General Layout Sections --- */
.section {
    padding: var(--section-spacing) 0;
}

/* Override data-bgcolor for light theme */
section[data-bgcolor] {
    background-color: var(--color-bg-secondary) !important;
}

.section-header {
    margin-bottom: 64px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* --- 7. Services Grid --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 32px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: var(--transition-standard);
}

.service-card:hover {
    background: rgba(27, 94, 32, 0.05);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    display: block;
}

/* --- 8. Bento Grid (Projects) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns base */
    grid-auto-rows: 300px;
    gap: 24px;
}

.bento-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #000;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bento-item.hidden {
    display: none;
}

/* Project Filter Bar */
.project-filters {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
}

.project-filters .filter-btn {
    position: relative;
    padding-bottom: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.project-filters .filter-btn.active {
    color: var(--color-accent);
}

.project-filters .filter-btn:hover {
    color: var(--color-accent);
    opacity: 0.8;
}

/* Spanning Logic */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 3;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.8;
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #FFFFFF; /* White text on dark overlay */
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-standard);
}

.bento-overlay h3 { 
    margin-bottom: 4px; 
    color: #FFFFFF; /* Ensure heading is white */
}

.bento-overlay span { 
    color: rgba(255, 255, 255, 0.9); /* Light white for category text */
    font-weight: 500; 
}

/* Bento Hover Effects */
.bento-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.bento-item:hover .bento-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* --- 9. Footer (Reference Image Style) --- */
.footer {
    background: var(--color-bg-secondary); /* Light gray background */
    padding-top: 0;
    color: #1B4332; /* Dark green with majestic wine shade */
}

/* Top Section - Tagline and Newsletter */
.footer__top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: center;
}

.footer__tagline h2 {
    color: #1B4332; /* Dark green with majestic wine shade */
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.footer__newsletter h3 {
    color: #1B4332; /* Dark green with majestic wine shade */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: var(--color-text-secondary);
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.btn--newsletter {
    padding: 14px 32px;
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--newsletter:hover {
    background: #0F5132;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.4);
}

/* Divider */
.footer__divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* Content Section - 4 Columns */
.footer__content {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px;
}

.footer__col h4 { 
    color: #1B4332; /* Dark green with majestic wine shade */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px; 
}

.footer__col ul { 
    list-style: none; 
    padding: 0;
    margin: 0;
}

.footer__col li { 
    margin-bottom: 12px; 
}

.footer__col a {
    color: #1B4332; /* Dark green with majestic wine shade */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer__col a:hover { 
    color: var(--color-accent);
}

/* Contact Information with Icons */
.footer__contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer__contact i {
    color: var(--color-accent);
    font-size: 1.2rem;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SOCIAL ICONS - Modern Redesign */
.social-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.social-link i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: block;
    line-height: 1;
    font-size: 24px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
}

.social-link:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover i {
    color: #FFFFFF;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Platform-specific hover colors */
.social-link[aria-label="Instagram"]:hover {
    border-color: #E4405F;
    box-shadow: 0 8px 24px rgba(228, 64, 95, 0.25);
}

.social-link[aria-label="Instagram"]:hover::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link[aria-label="LinkedIn"]:hover {
    border-color: #0077B5;
    box-shadow: 0 8px 24px rgba(0, 119, 181, 0.25);
}

.social-link[aria-label="LinkedIn"]:hover::before {
    background: #0077B5;
}

.social-link[aria-label="Facebook"]:hover {
    border-color: #1877F2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.25);
}

.social-link[aria-label="Facebook"]:hover::before {
    background: #1877F2;
}

.footer__bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #1B4332; /* Dark green with majestic wine shade */
    flex-wrap: wrap;
    gap: 20px;
}

.footer__bottom p {
    margin: 0;
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__legal a {
    color: #1B4332; /* Dark green with majestic wine shade */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: var(--color-accent);
}

.footer__legal span {
    color: #1B4332; /* Dark green with majestic wine shade */
    opacity: 0.6;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    padding: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.scroll-to-top-btn:hover::before {
    width: 100%;
    height: 100%;
}

.scroll-to-top-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.4);
    background: #0F5132;
}

.scroll-to-top-btn:hover i {
    transform: translateY(-2px);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

/* --- 10. Animation Classes (GSAP) --- */
.anim-text-reveal {
    display: inline-block;
    transform: translateY(100%);
}
.anim-fade-up, .anim-stagger-up, .anim-scale-in {
    opacity: 0;
}

/* =========================================
   11. RESPONSIVE / MOBILE POLISH
   ========================================= */

@media (max-width: 1024px) {
    /* Tablet Tweaks */
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; grid-row: span 1; }
    .bento-wide { grid-column: span 2; }
    .footer__content { 
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* --- A. TYPOGRAPHY FIXES --- */
    h1 { font-size: 3rem; } /* Smaller Hero Text */
    h2 { font-size: 2rem; }
    
    /* Logo Responsive */
    .logo {
        height: auto;
        max-width: 280px;
    }
    
    .logo-img {
        height: 160px;       /* still large on mobile */
        width: auto;
        max-width: 280px;
        object-fit: contain;
        display: block;
    }

    
    /* Social Icons Responsive */
    .social-icons {
        gap: 16px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 22px;
        border-radius: 10px;
    }
    
    .social-link i {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
    
    /* --- B. LAYOUT & SPACING FIXES --- */
    .section { padding: 60px 0; } /* Reduce padding by half */
    .hero__bg-wrap { height: 100%; } /* Fix parallax jitter on mobile */
    .container { width: 90%; }
    
    .header-flex { flex-direction: column; align-items: flex-start; gap: 20px; }
    
    /* Footer Responsive */
    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 0;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .btn--newsletter {
        width: 100%;
    }
    
    /* Project Filters - Mobile */
    .project-filters {
        flex-wrap: wrap;
        row-gap: 12px;
        column-gap: 16px;
    }

    .project-filters .filter-btn {
        font-size: 0.85rem;
    }

    /* Grids to Single Column */
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; gap: 16px; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
    
    .info-grid, .about-hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-img { height: 250px; min-height: auto; }
    .featured-content { padding: 24px; }
    
    /* --- C. MOBILE MENU (THE CURTAIN EFFECT) --- */
    .mobile-toggle { 
        display: block; 
        z-index: 200; 
        position: relative; 
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-main); /* White background */
        z-index: 150;
        padding-top: 120px;
        padding-left: 24px;
        padding-right: 24px;
        
        /* Animation Logic */
        transform: translateY(-100%); /* Hidden Up Top */
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    .nav.active {
        transform: translateY(0); /* Slide Down */
    }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start; /* Left align for professional look */
        gap: 32px;
    }
    
    .nav__link {
        font-size: 1.5rem; /* Larger touch targets */
        font-weight: 700;
        color: var(--color-header-text);
        opacity: 0; /* Hidden for stagger animation */
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Animation when menu is open */
    .nav.active .nav__link {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- PROJECT DETAIL PAGES --- */

/* Project Hero */
.project-hero {
    position: relative;
    height: 70vh; /* Not full height, to tease content below */
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.project-hero__content {
    position: relative;
    z-index: 2;
    color: #FFFFFF; /* White text on dark project hero images */
}

.project-hero__content h1 {
    color: #FFFFFF;
}

.project-hero__content span {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9); /* Light white for category */
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.info-desc h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.data-list {
    list-style: none;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.data-list li {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.data-list span { color: var(--color-text-secondary); }
.data-list strong { color: var(--color-text-primary); text-align: right;}

/* Gallery */
.gallery-item {
    margin-bottom: 30px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Next Project Navigator */
.next-project {
    padding: 160px 0;
}

.next-project-link {
    text-decoration: none;
    color: var(--color-text-primary);
    display: inline-block;
    transition: var(--transition-standard);
    margin-top: 20px;
}

.next-project-link h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 0;
    line-height: 1;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.next-project-link:hover h2 {
    color: var(--color-accent);
}

.next-project-link i {
    font-size: 3rem;
    vertical-align: middle;
    margin-left: 20px;
    transition: transform 0.4s ease;
}

.next-project-link:hover i {
    transform: translateX(15px);
    color: var(--color-accent);
}

/* Responsive Project Page */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .project-hero { height: 60vh; }
}

/* --- ABOUT PAGE STYLES --- */

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

/* Process Grid (Steps) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-item {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-standard);
}

.process-item:hover {
    border-top-color: var(--color-accent);
}

.process-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.process-item:hover .process-number {
    color: var(--color-accent);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: left;
}

.team-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive About */
@media (max-width: 768px) {
    .about-hero-grid { grid-template-columns: 1fr; }
}

/* --- CONTACT PAGE STYLES --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.info-block {
    margin-bottom: 48px;
}

.info-block h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.info-block p {
    margin-bottom: 12px;
}

/* Form Styles */
.contact-form {
    background: var(--color-bg-secondary);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 12px 0;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-standard);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: var(--color-bg-main); /* Fix for dropdown background */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

/* Map */
.map-container {
    width: 100%;
    overflow: hidden;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px;}
    .contact-form { padding: 24px; }
}

/* --- NEWS PAGE STYLES --- */

/* Featured Article (Top) */
.featured-article {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: var(--transition-standard);
}

.featured-article:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.featured-img {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-article:hover .featured-img img {
    transform: scale(1.05);
}

.featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--color-bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-standard);
    border: 1px solid transparent;
}

.news-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(27, 94, 32, 0.05);
}

.news-img {
    height: 240px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-body {
    padding: 24px;
}

.news-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    display: flex;
    gap: 12px;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.read-more {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* Newsletter Section */
.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 16px;
    border-radius: 4px;
    color: var(--color-text-primary);
}

/* Responsive News */
@media (max-width: 900px) {
    .featured-article { grid-template-columns: 1fr; }
    .featured-img { min-height: 250px; height: 250px; }
    .newsletter-form { flex-direction: column; }
}

/* --- DECODE TEXT EFFECT (Step 1) --- */
.dud {
    color: var(--color-accent); /* The random characters will be Dark Green */
    opacity: 0.7;
    font-family: 'Courier New', monospace; /* tech-style font for the glitch */
}

/* --- PROFESSIONAL 3D TILT EFFECT --- */
.team-card {
    perspective: 1000px; /* Creates the 3D space */
    cursor: none; /* We will hide cursor for a cleaner look later, or keep 'pointer' */
    cursor: pointer;
}

.team-img {
    transition: transform 0.1s ease; /* Fast response to mouse movement */
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Optional: Add a glossy sheen reflection */
.team-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, transparent 0%, rgba(255,255,255,0.1) 40%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.team-card:hover .team-img::before {
    opacity: 1;
}

/* ============================= */
/* LOGO VISIBILITY PATCH (SAFE)  */
/* ============================= */

.logo {
    height: 64px;                 /* fixed visual container */
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;                 /* fill logo container */
    width: auto;
    object-fit: contain;
    transform: scale(3.50);       /* 🔥 makes logo visible */
    transform-origin: left center;
}
