:root {
    /* Color Palette */
    --primary: #1a4d2e;
    /* Deep forest green */
    --primary-light: #2d6b46;
    --secondary: #e8dfca;
    /* Cream/Beige */
    --accent: #d9ab2b;
    /* Gold accent */
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f5f5f5;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Transitions */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* Typography Defaults */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--bg-light);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.8;
}

.navbar.scrolled .nav-links li a {
    color: var(--text-dark);
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 1;
    color: var(--accent) !important;
}

/* =====================================================
   PARALLAX HERO — Enhanced Text & Animations
   ===================================================== */
.parallax-hero {
    height: 400vh;
    position: relative;
}

.sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background layers */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 10s linear;
    transform: scale(1.12);
}

.parallax-bg.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Multi-layer gradient overlay per image: deep top, lighter mid, deep bottom */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.20) 40%,
            rgba(0, 0, 0, 0.20) 60%,
            rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
    transition: opacity 1.2s ease;
}

/* Individual Stage Overlays (Manage opacity/color per image here) */
.bg-stage-1 .bg-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(13, 13, 13, 0.667) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.bg-stage-2 .bg-overlay {
    background: linear-gradient(180deg, rgba(26, 77, 46, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 100%);
}

/* Example: slightly green tint for Climate */
.bg-stage-3 .bg-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.771) 0%, rgba(6, 6, 6, 0.578) 50%, rgba(0, 0, 0, 0.9) 100%);
}

/* Content wrapper */
.parallax-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 960px;
    padding: 0 2rem;
}

/* ── Brand title at top ─────────────────── */


/* Animated divider line below brand title */


/* ── Stage container ─────────────────────── */
.stage-container {
    display: grid;
    grid-template-areas: "stage";
    align-items: center;
    justify-content: center;
    min-height: 380px;
    /* Slightly taller for more breathing room */
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

/* ── Individual text stage ───────────────── */
.text-stage {
    grid-area: stage;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: opacity 0.8s ease;
}

.text-stage.active {
    opacity: 1;
    pointer-events: all;
    z-index: 5;
}

/* ── Subtitle label (e.g. "DYNAMIC SYSTEMS") */
.hero-subtitle {
    font-size: 0.82rem;
    letter-spacing: 6px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Decorative side tick marks */
.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background: var(--accent);
    opacity: 0.7;
}

.text-stage.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

/* ── Big headline ─────────────────────────── */
.hero-main-text {
    font-size: 7.5rem;
    /* Slightly larger for impact */
    font-weight: 700;
    line-height: 1.05;
    /* More relaxed line height */
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    letter-spacing: -3px;
    opacity: 0;
    transform: translateY(40px) skewY(2deg);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    /* Rich layered text-shadow for depth */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.text-stage.active .hero-main-text {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
    transition-delay: 0.18s;
}

/* Animated accent underline on the headline */
.hero-main-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #f5c842, var(--accent));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.75s;
}

.text-stage.active .hero-main-text::after {
    width: 60%;
}

/* ── Description paragraph ──────────────── */
.text-stage .hero-description {
    font-size: 1.25rem;
    max-width: 720px;
    margin: 1.8rem auto 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.text-stage.active .hero-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.42s;
}

/* ── Stage progress dots ─────────────────── */
.hero-stage-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 10;
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(217, 171, 43, 0.6);
}

/* ── CTA Buttons ─────────────────────────── */
.hero-btns-parallax {
    display: flex;
    gap: 1.5rem;
    /* More gap for balance */
    justify-content: center;
    margin-top: 3rem;
    /* More space above buttons */
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Primary button — filled gold */
.hero-btns-parallax .btn-primary {
    background: var(--accent);
    color: var(--primary);
    padding: 0.82rem 2.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(217, 171, 43, 0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid var(--accent);
}

.hero-btns-parallax .btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 6px 30px rgba(217, 171, 43, 0.5), 0 0 0 2px var(--accent);
    transform: translateY(-3px);
}

/* Secondary button — ghost white */
.hero-btns-parallax .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.82rem 2.1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btns-parallax .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── Scroll indicator ────────────────────── */
.scroll-ind {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    opacity: 0;
    animation: heroFadeIn 1s 1.8s ease forwards;
}

.scroll-ind-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.scroll-ind-icon {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.scroll-ind-icon::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDot 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-spacer {
    height: 100%;
}

/* ── Hero Keyframes ──────────────────────── */
@keyframes expandLine {
    to {
        width: 80%;
    }
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollDot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    70% {
        transform: translateY(14px);
        opacity: 0.2;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sections Common Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-tagline {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about {
    position: relative;
    padding: 0;
    overflow: visible; /* Changed from hidden to allow parallax/sticky feeling */
    z-index: 1;
}

.about-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/allguys.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Sticky background effect */
    z-index: -1;
}

/* Light Glassmorphism Overlay to ensure text readability */
.about-bg-parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        var(--bg-light) 0%, 
        rgba(245, 245, 245, 0.675) 15%, 
        rgba(245, 245, 245, 0.638) 85%, 
        var(--bg-light) 100%
    );
    backdrop-filter: blur(2px);
}


/* Expansive container for services-grid */
.about .container {
    max-width: 1600px;
    width: 94%;
}

/* New About Intro Row */
.about-intro-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 8rem;
    margin-top: 2rem;
}

.about-intro-img {
    flex: 1;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.12);
}

.about-intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-intro-img:hover img {
    transform: scale(1.1);
}

/* Floating IIT KGP Badge */
.dept-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1.2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 5;
    border: 1px solid rgba(26, 77, 46, 0.08);
}

.dept-badge i {
    color: var(--primary);
    font-size: 1.5rem;
}

.dept-badge span {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--primary);
}

.about-intro-content {
    flex: 1.2;
}

.intro-subtitle {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.intro-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    color: var(--primary);
}

.text-accent {
    color: #6f550c;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
}

.intro-p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: black;
    margin-bottom: 2rem;
}

.intro-features {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
}

.i-feature {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.i-feature i {
    width: 50px;
    height: 50px;
    background: rgba(26, 77, 46, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.i-feature span {
    font-weight: 600;
    color: var(--primary);
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .about-intro-row {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }
    .i-feature {
        justify-content: center;
    }
    .intro-features {
        justify-content: center;
    }
}

/* About Section Services — Full Grid Expansion */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 4rem 0 7rem;
}

.service-card {
    background: rgb(255 255 255 / 12%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.04),
        0 20px 80px rgba(26, 77, 46, 0.03);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: float 6s ease-in-out infinite;
}

.service-card:nth-child(even) {
    animation-delay: 1s;
}

.service-card:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
	100% { transform: translateY(0px); }
}

/* Interactive accent line top */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0 0 4px 4px;
}

/* Hover State Expansion */
.service-card:hover {
    animation: none;
    transform: translateY(-20px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 40px 100px rgba(26, 77, 46, 0.1),
        0 0 0 1px rgba(217, 171, 43, 0.2);
    z-index: 10;
}

.service-card:hover::after {
    width: 60%;
}

.service-icon {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.04) 0%, rgba(217, 171, 43, 0.08) 100%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px; /* Squircle style */
    margin-left: auto;
    margin-right: auto;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(26, 77, 46, 0.08);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(-8deg); /* Modern slight tilt */
    box-shadow: 0 20px 40px rgba(26, 77, 46, 0.25);
    border-radius: 50%; /* Morphs to circle on hover */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
    color: var(--primary);
    line-height: 1.4;
    font-weight: 700;
    transition: color 0.4s ease;
}

.service-card:hover h3 {
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    flex-grow: 1;
    transition: color 0.4s ease;
}

.service-card:hover p {
    color: var(--text-dark);
}

/* Tablet & Mobile Expansions */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 3rem 2rem;
    }
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.stat-itemDivider {
    width: 1px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Team Section spacing removed as it's merged into Carousel Parallax below */

/* Wavy Divider Tweaks */
.wave-container {
    width: 100%;
    overflow: hidden;
    line-height: 0; /* Important to remove inline gap */
    background: transparent;
}

.wave {
    width: 100%;
    height: 140px; /* Significantly reduced height from default */
    object-fit: cover;
    display: block;
}

/* Team Section Carousel Parallax */
.team {
    background-color: var(--bg-light);
    margin-top: -1px; /* Stitch to wave divider */
    position: relative;
    height: 400vh; /* Scrollable height for parallax effect */
}

.team-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Perfectly center header+cards as a single block */
    overflow: hidden;
}

.team-sticky-wrapper .section-header {
    margin-bottom: 1.5rem; /* Remove excess padding above cards */
}

.team-carousel {
    width: 100vw; 
    margin-left: calc(50% - 50vw); 
    padding: 1.5rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    background: transparent;
}

.team-track {
    display: flex;
    gap: 2rem; /* Reduce gap slightly to match smaller cards */
    width: max-content;
    padding-left: calc(50vw - 140px); /* Updated to match half of new 280px width */
    padding-right: calc(50vw - 140px); /* Keep last card in center */
    will-change: transform;
    /* Handled by JS now */
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    width: 280px; /* Reduced width to fit perfectly */
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.team-img-wrapper {
    position: relative;
    height: clamp(180px, 30vh, 280px);
    overflow: hidden;
    background: #f9f9f9; /* Light background for the frame area */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05); /* Internal depth */
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows entire image without cropping */
    padding: 15px; /* Decreases size slightly to keep it within the frame */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.team-card:hover .team-img {
    transform: scale(1.08);
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 77, 46, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.team-card:hover .team-overlay {
    opacity: 1;
    transform: translateY(0);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.team-info {
    padding: clamp(1rem, 2vh, 2rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: clamp(1.2rem, 3vh, 1.6rem);
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.team-role {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.team-specialty {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: clamp(0.5rem, 1vh, 1.2rem);
    padding-bottom: clamp(0.5rem, 1vh, 1.2rem);
    border-bottom: 1px dashed #eee;
}

.team-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: clamp(1rem, 2vh, 2rem);
    flex-grow: 1;
}

.team-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.team-link:hover {
    gap: 1.2rem;
    color: var(--accent);
}

/* Sticky Pads Activities Section */
.activities {
    background-color: #fbfbfb;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Background decoration - optional but adds to the desk/office vibe */
.activities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    pointer-events: none;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 2rem 0;
    perspective: 1000px;
}

@media (min-width: 1600px) {
    .activities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
}

.sticky-pad {
    background: #ffef7d; /* Classic Post-it Yellow */
    padding: 3.5rem 2.5rem 2.5rem;
    position: relative;
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.1), 
        5px 5px 15px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    z-index: 1; /* Important for ::after shadow */
}

/* Bottom right corner curl shadow - softer and more realistic */
.sticky-pad::after {
    content: "";
    position: absolute;
    bottom: 12px;
    right: 4px;
    width: 60%;
    height: 10px;
    background: transparent;
    box-shadow: 12px 18px 25px rgba(0, 0, 0, 0.15); /* Softer shadow */
    transform: rotate(4deg);
    z-index: -1;
    transition: all 0.5s ease;
    filter: blur(2px);
}

.sticky-pad:hover::after {
    box-shadow: 15px 22px 30px rgba(0, 0, 0, 0.25);
    transform: rotate(6deg);
}

/* Push Pin Effect - replacing tape */
.sticky-pad::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        inset -3px -3px 6px rgba(0,0,0,0.1),
        inset 3px 3px 6px rgba(255,255,255,0.4);
    background: radial-gradient(circle at 35% 35%, #ff5252 0%, #b71c1c 80%); /* Default Red Pin */
}

/* Specific Pin Colors for variety */
.activities-grid > div:nth-child(3n+2) .sticky-pad::before {
    background: radial-gradient(circle at 35% 35%, #42a5f5 0%, #0d47a1 80%); /* Blue Pin */
}
.activities-grid > div:nth-child(3n+3) .sticky-pad::before {
    background: radial-gradient(circle at 35% 35%, #66bb6a 0%, #1b5e20 80%); /* Green Pin */
}

/* Randomized Paper Colors */
.activities-grid > div:nth-child(4n+1) .sticky-pad {
    background: #ffef7d; /* Classic Yellow */
    transform: rotate(-1.5deg);
}
.activities-grid > div:nth-child(4n+2) .sticky-pad {
    background: #b3e5fc; /* Soft Blue */
    transform: rotate(2deg);
}
.activities-grid > div:nth-child(4n+3) .sticky-pad {
    background: #c8e6c9; /* Mint Green */
    transform: rotate(-0.5deg);
}
.activities-grid > div:nth-child(4n+4) .sticky-pad {
    background: #f8bbd0; /* Soft Pink */
    transform: rotate(1deg);
}

/* Target rotations based on reveal structure */
.activities-grid > div:nth-child(3n+1) .sticky-pad { transform: rotate(-1.8deg); }
.activities-grid > div:nth-child(3n+2) .sticky-pad { transform: rotate(1.2deg); }
.activities-grid > div:nth-child(3n+3) .sticky-pad { transform: rotate(-1deg); }

.sticky-pad:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.02) !important;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.06),
        0 2px 5px rgba(0,0,0,0.04);
}

.activity-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.05); /* Lighter background */
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    width: fit-content;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.05);
}

.activity-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
}

.sticky-pad h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--font-heading);
}

.sticky-pad p {
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.activity-link {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.activity-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.activity-link:hover {
    color: var(--accent);
}

.activity-link:hover i {
    transform: translateX(4px);
}

/* Perspective adjustment for mobile */
@media (max-width: 768px) {
    .activities-grid {
        gap: 3rem;
        padding: 1rem;
    }
    .sticky-pad {
        min-height: auto;
        transform: rotate(0deg) !important;
    }
}

/* Projects Section */
/* Projects Section - Infinite Scroll Implementation */
.projects {
    background-color: var(--white);
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4rem 0;
}

.project-row {
    width: 100%;
    overflow: hidden;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.project-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    padding-left: 1rem;
}

.project-row.scroll-left .project-track {
    animation: scrollLeftProject 20s linear infinite;
}

.project-row.scroll-right .project-track {
    animation: scrollRightProject 20s linear infinite;
}

@keyframes scrollLeftProject {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.25rem)); }
}

@keyframes scrollRightProject {
    0% { transform: translateX(calc(-50% - 1.25rem)); }
    100% { transform: translateX(0); }
}

.project-row:hover .project-track {
    animation-play-state: paused;
}

.project-track .project-item {
    width: 600px; /* Slightly wider for better card display */
    flex-shrink: 0;
    display: flex;
    gap: 2rem;
    background: var(--bg-light);
    border-radius: 24px; /* More rounded as per premium design */
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.project-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: var(--white);
    border-color: var(--accent);
}

.project-img-box {
    flex: 0 0 220px;
    position: relative;
    overflow: hidden;
}

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

.project-item:hover .project-img-box img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    letter-spacing: 1.5px;
    z-index: 2;
}

.project-details {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.project-year {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-details h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.project-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.btn-text {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    margin-top: auto;
    transition: gap 0.3s ease;
}

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

.btn-text i {
    transition: transform 0.3s;
}

.btn-text:hover i {
    transform: translateX(8px);
}

/* Partners Section */
.partners {
    background-color: var(--bg-light);
    border-top: 1px solid #eee;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.partner-logo span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Newsletter Section */

/* Footer Section */
/* Footer Section - Redesigned with Wave and Premium Colors */
.footer {
    background: linear-gradient(135deg, #12372A 0%, #0a2e1d 100%); /* Deep premium forest green */
    color: var(--white);
    padding-top: 0;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 10;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-wave .shape-fill {
    fill: #f5f5f5; /* Matches section above for seamless wave transition */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* Rebalanced for 3 columns */
    gap: 6rem;
    padding: 10rem 0 5rem; /* Large top padding to clear the wave */
}

.footer-about .logo-text {
    margin-bottom: 2rem;
    display: block;
    font-size: 2.2rem;
}

.footer-about p {
    opacity: 0.85;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-8px) scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(217, 171, 43, 0.3);
}

.footer h4 {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--accent);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 1.2rem;
}

.footer-links ul li a {
    opacity: 0.75;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 10px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    opacity: 0.85;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.3rem;
}

.footer-bottom {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
}


/* Gallery Section */
.gallery {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
    background-color: var(--bg-light);
}

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3.5rem 0;
}

.gallery-row {
    width: 100%;
    overflow: hidden;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-left: 1rem;
}

.gallery-item {
    width: 420px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Row animations */
.scroll-left .gallery-track {
    animation: scrollLeftGallery 50s linear infinite;
}

.scroll-right .gallery-track {
    animation: scrollRightGallery 50s linear infinite;
}

@keyframes scrollLeftGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

@keyframes scrollRightGallery {
    0% {
        transform: translateX(calc(-50% - 1rem));
    }
    100% {
        transform: translateX(0);
    }
}

.gallery-row:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-footer {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.view-gallery-btn {
    padding: 1.2rem 3rem;
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background: transparent;
}

.view-gallery-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 77, 46, 0.25);
}

.view-gallery-btn i {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

.view-gallery-btn:hover i {
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .gallery-item {
        width: 320px;
        height: 220px;
    }
    
    .gallery-wrapper {
        gap: 1.5rem;
        margin: 2rem 0;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-main-text {
        font-size: 3.8rem;
        /* Slightly smaller for mobile fit */
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .stage-container {
        min-height: 320px;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .text-stage {
        display: none;
        padding: 0 1rem;
    }

    .text-stage.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .newsletter-box {
        flex-direction: column;
        padding: 3rem;
        text-align: center;
        gap: 2rem;
    }

    .newsletter-form {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .project-item {
        flex-direction: column;
    }

    .project-img-box {
        flex: 0 0 250px;
    }

    .project-details {
        padding: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-card {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat-itemDivider {
        display: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Lightbox Modal Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 200;
    transition: var(--transition);
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10002;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.lightbox-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(217, 171, 43, 0.4);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        padding: 0 1.5rem;
    }
    
    .lightbox-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 1.5rem;
        right: 2rem;
        font-size: 3rem;
    }

    .lightbox-caption {
        font-size: 1.1rem;
    }
}

/* =====================================================
   FACILITIES PAGE
   ===================================================== */
.facilities-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/dept.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    animation: bgZoom 12s ease-in-out infinite alternate;
}

@keyframes bgZoom {
    from { background-size: 110%; }
    to { background-size: 130%; }
}

.facilities-hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeUp 0.8s 0.2s forwards;
    letter-spacing: -1px;
}

.facilities-hero p {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.4s forwards;
}

.lab-section {
    padding: 10rem 0;
    position: relative;
}

.lab-section:nth-child(even) {
    background-color: var(--bg-light);
}

.lab-section .container {
    max-width: 1800px;
    width: 98%;
}

.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; /* More balanced gap for very wide containers */
    align-items: center;
}

.lab-section:nth-child(even) .lab-grid {
    grid-template-areas: "content collage";
}

.lab-section:nth-child(odd) .lab-grid {
    grid-template-areas: "collage content";
}

.lab-collage {
    grid-area: collage;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 380px); /* Taller images for wide layout */
    gap: 1.5rem;
    position: relative;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.collage-img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.collage-img:nth-child(1) {
    grid-row: span 2;
}

.collage-img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.collage-img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

/* Staggered reveal for lab elements */
.lab-grid > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-section.active .lab-grid > * {
    opacity: 1;
    transform: translateY(0);
}

.lab-section.active .lab-grid > *:nth-child(1) { transition-delay: 0.2s; }
.lab-section.active .lab-grid > *:nth-child(2) { transition-delay: 0.4s; }

.lab-collage img {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(0.2) contrast(1.1);
}

.lab-collage:hover img {
    filter: grayscale(0);
}

.lab-collage img:nth-child(1) { transition-delay: 0.1s; }
.lab-collage img:nth-child(2) { transition-delay: 0.2s; }
.lab-collage img:nth-child(3) { transition-delay: 0.3s; }

.lab-content {
    grid-area: content;
}

.lab-tagline {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.lab-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.lab-info {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.lab-interests {
    margin-bottom: 3rem;
}

.lab-interests h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.interests-grid-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    transition: var(--transition);
}

.interest-item:hover {
    transform: translateX(10px);
    color: var(--primary);
}

.interest-item i {
    width: 32px;
    height: 32px;
    background: rgba(217, 171, 43, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.lab-supervisors-box {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.lab-supervisors-box h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.supervisor-list {
    display: flex;
    gap: 3rem;
}

.supervisor-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.supervisor-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
}

.supervisor-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
}

.supervisor-info h5 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.supervisor-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lab-actions {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.lab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.lab-link:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 77, 46, 0.3);
}

.lab-link i {
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .facilities-hero h1 {
        font-size: 3rem;
    }
    
    .lab-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .lab-section:nth-child(even) .lab-grid,
    .lab-section:nth-child(odd) .lab-grid {
        grid-template-areas: "content" "collage";
    }

    .lab-title {
        font-size: 2.5rem;
    }
    
    .supervisor-list {
        flex-direction: column;
        gap: 2rem;
    }
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-hero {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/climate.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s 0.2s forwards;
}

.contact-section {
    padding: 10rem 0;
    background: var(--bg-light);
}

.contact-section .container {
    max-width: 1800px;
    width: 98%;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    background: var(--white);
    padding: 5rem;
    border-radius: 40px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.08);
}

.contact-details h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info-card {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.contact-info-card:hover {
    transform: translateX(15px);
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(26, 77, 46, 0.2);
}

.info-text h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Form Styling */
.contact-form-box {
    background: var(--white);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.btn-submit {
    width: 100%;
    padding: 1.3rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 77, 46, 0.3);
}

/* Map Section - Enhanced */
.map-section {
    padding: 0 4% 10rem;
    background: var(--bg-light);
    position: relative;
}

.map-section::before {
    content: 'HydroC2M';
    position: absolute;
    bottom: 5rem;
    left: 2rem;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    z-index: 0;
    font-family: var(--font-heading);
    pointer-events: none;
}

.map-container-inner {
    position: relative;
    width: 100%;
    height: 650px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.12);
    border: 8px solid var(--white);
    transition: var(--transition);
}

.map-container-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 60px 120px rgba(26, 77, 46, 0.15);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.9) contrast(1.1) brightness(0.9);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-container-inner:hover iframe {
    filter: grayscale(0) contrast(1) brightness(1);
}

/* Floating Map Badge */
.map-badge {
    position: absolute;
    top: 3rem;
    right: 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    pointer-events: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-section.active .map-badge {
    transform: translateY(0);
    opacity: 1;
}

.map-badge i {
    font-size: 1.8rem;
    color: var(--accent);
}

.map-badge span {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}


@media (max-width: 1100px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 5rem;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-hero h1 {
        font-size: 3rem;
    }
}