@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

/* ============================================
   TYPOGRAPHY & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f4f4f4;
    --text-color: #1a1a1a;
    --accent: #000000;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

button,
.menu-btn,
.filter-btn {
    font-family: 'Manrope', sans-serif;
}

/* ============================================
   BACKGROUND ANIMATION
   ============================================ */
.hero-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 1;
    background:
        radial-gradient(circle at 50% 60%,
            rgba(255, 182, 165, 0.5) 0%,
            rgba(150, 200, 255, 0.4) 25%,
            rgba(180, 240, 200, 0.35) 50%,
            rgba(255, 230, 150, 0.3) 75%,
            transparent 100%),
        linear-gradient(45deg,
            #ffdec7,
            #d3e0ff,
            #e2f5d9,
            #fdf4cd);
    background-size: 300% 300%, 400% 400%;
    animation: radialPulseRipple 12s ease-in-out infinite, flowGradient 15s ease infinite;
    transition: opacity 0.1s ease-out;
    will-change: opacity;
    overflow: hidden;
}

.hero-bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: bubbleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%, rgba(255, 255, 255, 0.08) 75%, transparent 100%);
    animation: lightSweep 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-bg-animation.paused {
    animation-play-state: paused;
}

.hero-bg-animation.paused::before,
.hero-bg-animation.paused::after {
    animation-play-state: paused;
}

@keyframes flowGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translate(-20%, -10%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(10%, 20%) scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: translate(-20%, -10%) scale(0.8);
        opacity: 0.3;
    }
}

@keyframes lightSweep {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    25% {
        opacity: 0.4;
    }

    50% {
        transform: translateX(0%);
        opacity: 0.6;
    }

    75% {
        opacity: 0.4;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   PORTFOLIO SECTION ANIMATIONS
   ============================================ */

/* Water Ripple Background Effect - Radial Pulse from Cards Area */
@keyframes radialPulseRipple {
    0% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1.4);
    }

    25% {
        background-position: 25% 40%;
        filter: brightness(1.05) saturate(1.45);
    }

    50% {
        background-position: 50% 30%;
        filter: brightness(1.1) saturate(1.5);
    }

    75% {
        background-position: 75% 40%;
        filter: brightness(1.05) saturate(1.45);
    }

    100% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1.4);
    }
}

/* Card Carousel Animation - Clockwise Zoom Effect */
/* (Old cardCarouselZoom animations removed) */

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
/* Header / Nav (Unified & Fixed) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2002;
    color: #000000;
    background: transparent;

    /* NEW: Smooth transition for sliding up/down */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s;
}

/* The class that hides the navbar */
nav.nav-hidden {
    transform: translateY(-100%);
    /* Slides completely out of view */
}

/* Mobile Tweak: Reduce padding on scroll for cleaner look */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
    }
}

/* Logo Styling */
/* --- Logo Styling (Image + Text) --- */
.logo {
    /* Layout: Aligns image and text in a row */
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Space between the icon and the text */

    /* Typography */
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;

    /* Functional */
    text-decoration: none;
    color: #000;
    cursor: pointer;
    z-index: 2003;
    transition: opacity 0.3s ease;
}

/* Control the Logo Image Size */
.logo img {
    height: 30px;
    /* Adjust this number to match your text size */
    width: auto;
    /* Maintains aspect ratio automatically */
    display: block;
    /* Removes tiny hidden spacing under images */
}

.logo:hover {
    opacity: 0.7;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    font-weight: 500;
    transition: color 0.3s;
    color: #000000;
}

/* ============================================
   MENU OVERLAY
   ============================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    color: #fff;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.menu-link {
    font-size: 4rem;
    text-decoration: none;
    color: #fff;
    font-weight: 300;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-link:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.menu-footer {
    position: absolute;
    bottom: 4rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .menu-link {
        font-size: 2.5rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
/* --- Hero Section (Centered & Spaced) --- */
.hero-section {
    /* CHANGED: Pushes text down to roughly the middle-top of screen */
    padding-top: 30vh;

    padding-bottom: 40px;
    /* Space between title and description */
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-section h1 {
    font-size: 12rem;
    /* Scaled up 150% from 8rem */
    font-weight: 300;
    line-height: 1.1;
    margin: 0;
    /* Remove default margins so we control it with padding */
    letter-spacing: -2px;
    padding-bottom: 40px;
}

.hero-section h1 span {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    margin: 0 15px;
}

.hero-section h1 span:hover,
.hero-section h1 span.auto-zoom {
    transform: scale(1.15);
    color: #000;
}

/* ============================================
   AGENCY INTRO
   ============================================ */
/* --- Description Block Styling --- */
.agency-intro {
    max-width: 1200px;

    /* CHANGED: Positive margin pushes it down away from the title */
    /* CHANGED: Positive margin pushes it down away from the title */
    margin: 20px auto 180px auto;
    /* Increased from 100px */

    padding: 0 20px;
    text-align: center;
}

.agency-intro p {
    font-size: 2.5rem;
    line-height: 1.6;
    /* Increased line-height for better readability */
    font-weight: 300;
    color: #444;
}

@media (max-width: 768px) {
    .agency-intro {
        margin: -40px auto 40px auto;
    }

    .agency-intro p {
        font-size: 1.1rem;
    }
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
#carousel-container {
    position: relative;
    width: 100%;
    /* Increased height to comfortably fit 2 rows of cards + vertical spread */
    height: 1800px;
    /* Scaled 150% from 1000px */
    /* Increased max-width to prevent horizontal cropping on wider screens */
    max-width: 2700px;
    /* Scaled 150% from 1800px */
    margin: 80px auto;
    overflow: hidden;
    perspective: 1000px;
}

/* Restoring Portfolio Grid for Work Page */
#portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
    row-gap: 0px;
    padding: 40px;
    max-width: 1250px;
    margin: 0 auto;
    margin-top: 120px;
    padding-bottom: 150px;
    position: relative;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}


/* Interaction Zones */
.nav-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    /* 15% width triggers for left/right */
    z-index: 50;
    cursor: pointer;
    /* Debug color: background: rgba(255,0,0,0.1); */
}

.zone-left {
    left: 0;
}

.zone-right {
    right: 0;
}

.nav-zone:hover {
    /* Removed visible gradient as per user feedback */
    background: transparent;
}

.zone-right:hover {
    background: transparent;
}

#portfolio-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

@keyframes portfolioSectionGlow {
    0% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03), inset 0 0 60px rgba(255, 200, 200, 0.05);
    }

    50% {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), inset 0 0 80px rgba(200, 220, 255, 0.08);
    }

    100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03), inset 0 0 60px rgba(255, 200, 200, 0.05);
    }
}

@keyframes backgroundShift {
    0% {
        filter: brightness(1) saturate(0.95);
    }

    50% {
        filter: brightness(1.05) saturate(1.05);
    }

    100% {
        filter: brightness(1) saturate(0.95);
    }
}

/* Organic Floating Zoom Animation */
@keyframes floatingZoom {
    0% {
        transform: scale(1);
    }

    50% {
        /* PROMOUNCED ZOOM: Increased from 1.05 to 1.08 */
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes borderRotate {
    100% {
        transform: rotate(1turn);
    }
}

/* Base Card Style override for Carousel */
/* Base Card Style (Shared) */
.project-card {
    /* Visuals - Layout Only Now */
    width: 525px;
    /* Increased from 320px */
    height: 750px;
    /* Increased from 450px */
    /* Visual styling moved to .media-wrapper for floating effect */
    transform: translateZ(0);
    z-index: 1;
}

/* 1. CAROUSEL SPECIFIC STYLES */
#carousel-container .project-card {
    position: absolute;
    /* Absolute positioning is key for the slot system */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    /* PREMIUM WEIGHT: Fast start, extremely slow/smooth decay */
    transition: all 1.8s cubic-bezier(0.4, 1, 0.36, 1);

    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* 2. GRID SPECIFIC STYLES (Restored) */
#portfolio-grid .project-card {
    position: relative;
    cursor: pointer;
    /* Original Dimensions for Grid */
    width: 390px;
    height: 530px;
    margin-bottom: 10px;
    /* animation: floatingZoom 8s ease-in-out infinite; */
    /* Disabled per user request */
    opacity: 1;
    /* Ensure visible */
}

/* Spine Alignment for Grid */
#portfolio-grid .project-card:nth-child(odd) {
    margin-left: auto;
    margin-right: 0;
    animation-duration: 5s;
}

#portfolio-grid .project-card:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
    margin-top: 60px;
    /* Stagger */
    animation-duration: 8s;
}

/* =========================================
   SLOT SYSTEM 
   Ref: L2, L1 | C1, C2, C3, C4 | R1, R2
   Center 4 are "Focus"
   Side 2+2 are "Buffer"
   ========================================= */

/* --- BUFFER (LEFT) --- */
/* --- BUFFER (LEFT) --- */
/* --- BUFFER (LEFT) --- */
#carousel-container .card-slot-l1 {
    /* Top Left Buffer - Reduced Gap (-207.5%) */
    transform: translate(-207.5%, -85%) scale(0.6) rotateY(0deg);
    opacity: 0.4;
    filter: grayscale(50%) blur(4px);
    z-index: 10;
}

#carousel-container .card-slot-l2 {
    /* Bottom Left Buffer - Reduced Gap (-207.5%) */
    transform: translate(-207.5%, -15%) scale(0.6) rotateY(0deg);
    opacity: 0.4;
    filter: grayscale(50%) blur(4px);
    z-index: 10;
    pointer-events: auto;
}

/* --- CENTER FOCUS (2x2 Grid) --- */
/* Top Left  - Reduced Gap (-102.5%) */
#carousel-container .card-slot-c1 {
    transform: translate(-102.5%, -105%) scale(0.9);
    opacity: 1;
    filter: grayscale(0%) blur(0px);
    z-index: 20;
    pointer-events: auto;
}

/* Top Right  - Reduced Gap (2.5%) */
#carousel-container .card-slot-c2 {
    transform: translate(2.5%, -105%) scale(0.9);
    opacity: 1;
    filter: grayscale(0%) blur(0px);
    z-index: 20;
    pointer-events: auto;
}

/* Bottom Left - Reduced Gap (-102.5%) */
#carousel-container .card-slot-c3 {
    transform: translate(-102.5%, 5%) scale(0.9);
    opacity: 1;
    filter: grayscale(0%) blur(0px);
    z-index: 21;
    pointer-events: auto;
}

/* Bottom Right - Reduced Gap (2.5%) */
#carousel-container .card-slot-c4 {
    transform: translate(2.5%, 5%) scale(0.9);
    opacity: 1;
    filter: grayscale(0%) blur(0px);
    z-index: 21;
    pointer-events: auto;
}

/* FOCUS STYLES: Dark Border + Strong Shadow for Center Cards */
#carousel-container .card-slot-c1 .media-wrapper,
#carousel-container .card-slot-c2 .media-wrapper,
#carousel-container .card-slot-c3 .media-wrapper,
#carousel-container .card-slot-c4 .media-wrapper {
    border: 3px solid rgba(20, 20, 30, 0.8);
    /* Dark Focus Border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Stronger Shadow */
}

/* --- BUFFER (RIGHT) --- */
#carousel-container .card-slot-r1 {
    /* Top Right Buffer - Reduced Gap (107.5%) */
    transform: translate(107.5%, -85%) scale(0.6) rotateY(0deg);
    opacity: 0.4;
    filter: grayscale(50%) blur(4px);
    z-index: 10;
}

#carousel-container .card-slot-r2 {
    /* Bottom Right Buffer - Reduced Gap (107.5%) */
    transform: translate(107.5%, -15%) scale(0.6) rotateY(0deg);
    opacity: 0.4;
    filter: grayscale(50%) blur(4px);
    z-index: 10;
}

/* --- INSET SHADOW FOR BUFFER CARDS --- */
/* Adds a gentle dark inner shadow to out-of-focus cards */
#carousel-container .card-slot-l1 .media-wrapper::after,
#carousel-container .card-slot-l2 .media-wrapper::after,
#carousel-container .card-slot-r1 .media-wrapper::after,
#carousel-container .card-slot-r2 .media-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    /* Stronger inset shadow */
    pointer-events: none;
    z-index: 5;
    border-radius: inherit;
}

/* --- HIDDEN (Split to prevent overlap) --- */
/* Left Side Hidden */
#carousel-container .card-slot-hidden-l1 {
    /* Top Lane */
    transform: translate(-312.5%, -85%) scale(0.5);
    opacity: 0;
}

#carousel-container .card-slot-hidden-l2 {
    /* Bottom Lane */
    transform: translate(-312.5%, -15%) scale(0.5);
    opacity: 0;
}

/* Right Side Hidden */
#carousel-container .card-slot-hidden-r1 {
    /* Top Lane */
    transform: translate(212.5%, -85%) scale(0.5);
    opacity: 0;
}

#carousel-container .card-slot-hidden-r2 {
    /* Bottom Lane */
    transform: translate(212.5%, -15%) scale(0.5);
    opacity: 0;
}


/* Remove default animations from grid system ONLY for carousel */
#carousel-container .project-card:nth-child(n) {
    animation: none;
}


.media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;

    /* Visual Styling Transferred Here */
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    background: #000;
    /* Ensure opaque background since it's now the visual card */

    /* Ensure animation is defined for the randomized delays to work */
    /* FASTER: Base 6s for synchronized alternating breathing */
    /* animation: floatingZoom 6s ease-in-out infinite; */
    /* Moved to #carousel-container specific rule below */
    /* Moved to #carousel-container specific rule below */
}

#carousel-container .media-wrapper {
    animation: floatingZoom 6s ease-in-out infinite;
}

/* ANTI-PHASE ANIMATION: alternating breathing */
/* When Odd is zooming IN, Even is zooming OUT */
/* Randomize delays AND durations for organic feel */
/* Range: 4s - 8s (Min is half of Max) */

#carousel-container .project-card:nth-child(8n+1) .media-wrapper {
    animation-delay: -1.2s;
    animation-duration: 6.2s;
}

#carousel-container .project-card:nth-child(8n+2) .media-wrapper {
    animation-delay: -4.5s;
    animation-duration: 4.8s;
}

#carousel-container .project-card:nth-child(8n+3) .media-wrapper {
    animation-delay: -2.8s;
    animation-duration: 7.5s;
}

#carousel-container .project-card:nth-child(8n+4) .media-wrapper {
    animation-delay: -0.5s;
    animation-duration: 5.1s;
}

#carousel-container .project-card:nth-child(8n+5) .media-wrapper {
    animation-delay: -6.1s;
    animation-duration: 8.0s;
}

#carousel-container .project-card:nth-child(8n+6) .media-wrapper {
    animation-delay: -3.3s;
    animation-duration: 4.3s;
}

#carousel-container .project-card:nth-child(8n+7) .media-wrapper {
    animation-delay: -1.9s;
    animation-duration: 6.9s;
}

#carousel-container .project-card:nth-child(8n+8) .media-wrapper {
    animation-delay: -5.2s;
    animation-duration: 5.5s;
}

#carousel-container .project-card:nth-child(odd) .media-wrapper {
    animation-duration: 9s;
    /* Restored longer duration variations */
}

#carousel-container .project-card:nth-child(even) .media-wrapper {
    animation-duration: 11s;
    /* Restored longer duration variations */
}

/* Utility to kill transition during wrap-around */
#carousel-container .project-card.no-transition {
    transition: none !important;
}

/* ============================================
   CARD OVERLAY
   ============================================ */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 1;
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.project-card:hover .overlay {
    background: rgba(0, 0, 0, 0.4);
}

.overlay-content h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .overlay-content h3 {
    transform: translateY(-5px);
}

.reveal-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 500;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.project-card:hover .reveal-text {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(5px);
}

.info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    z-index: 10;
    pointer-events: none;
}

.info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.info p {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   BUTTONS (Unified Pill Style)
   ============================================ */
.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 400;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.pill-btn span {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.pill-btn:hover {
    border-color: #000;
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-3px);
}

.pill-btn:hover span {
    transform: translate(3px, -3px);
}

/* Light pill button (default) */
.show-more-btn {
    border: 2px solid #000 !important;
    color: #000 !important;
    border-radius: 30px;
    background: transparent !important;
    padding: 16px 40px !important;
    text-decoration: none !important;
}

.show-more-btn:hover {
    border-color: #000 !important;
    background: #fff !important;
    color: #000 !important;
    text-decoration: none !important;
}

/* Dark pill button */
.dark-pill-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px 38px;
    border-radius: 8px;
    text-decoration: none !important;
}

.dark-pill-btn:hover {
    background-color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

/* Show More Container */
.show-more-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 40px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

@media (max-width: 768px) {
    .show-more-container {
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 40px;
    }
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 80px;
    /* Space before philosophy */
}

.section-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.partners-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Fade masks on sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    width: 100%;
    /* Track takes full width initially */
    will-change: transform;
}

.partner-logo {
    /* 5 items visible -> 20% width each */
    width: 20%;
    flex-shrink: 0;

    font-size: 3rem;
    color: #1a1a1a;
    padding: 0 10px;
    opacity: 0.4;

    /* Smooth scaling transition */
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, color 0.5s ease;

    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    /* Fixed height for consistency */
}

/* Central Highlight Scaling */
.partner-logo.active {
    opacity: 1;
    transform: scale(1.6);
    /* Fixed zoom for center item */
    color: #000;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy-section {
    padding: 20px;
    margin: 100px auto;
    max-width: 1250px;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: start;
}

.eyebrow {
    display: block;
    color: #e67e5e;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.col-left h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.col-right {
    padding-top: 60px;
}

.col-right p {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #444;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 800px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: transparent;
    color: #1a1a1a;
    padding: 6rem 4rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-cta {
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 4rem;
}

.footer-cta h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: #000;
}

/* Trigger Button */
.trigger-btn {
    display: inline-block;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.trigger-btn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 10px;
    font-weight: 300;
}

.trigger-btn:hover {
    border-bottom-color: #000;
}

.trigger-btn:hover .arrow {
    transform: translateX(10px);
}

/* Footer CTA Email Link */
.email-link {
    font-size: 2rem;
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.email-link:hover {
    opacity: 0.5;
}

/* Footer Info Grid */
.footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info .column h4 {
    color: #888;
    text-transform: uppercase;
    font-size: 1.2rem;
    /* Scaled from 0.8rem */
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-info p,
.footer-info a {
    color: #1a1a1a;
    font-size: 1.5rem;
    /* Scaled from default 1rem */
}

.footer-info a {
    text-decoration: none;
    line-height: 1.8;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: block;
}

.footer-info a:hover {
    opacity: 1;
}

/* Phone Contact (Consolidated with footer-info) */
.phone-contact {
    margin-top: 20px;
}

.phone-contact a {
    color: #1a1a1a;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.phone-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.social-icons a {
    color: #1a1a1a;
    font-size: 2.1rem;
    /* Scaled from 1.4rem */
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.8;
}

.social-icons a:hover {
    color: #000000;
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    footer {
        padding: 4rem 2rem;
    }

    .footer-cta h2 {
        font-size: 2.5rem;
    }

    .email-link {
        font-size: 1.5rem;
    }
}

/* ============================================
   CONTACT MODAL
   ============================================ */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
}

/* --- Contact Frost Modal (Fixed: Smooth Layers) --- */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;

    display: flex;
    justify-content: center;
    align-items: center;

    /* LOGIC STATE: Handles clickability only */
    visibility: hidden;
    pointer-events: none;

    /* Delay visibility hiding so animations can finish */
    transition: visibility 0.6s;
}

.contact-modal.open {
    visibility: visible;
    pointer-events: all;
    transition: visibility 0s;
    /* Show immediately when opening */
}

/* 1. The Backdrop: Handles Fade & Blur INDEPENDENTLY */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* Start Invisible */
    opacity: 0;

    /* Performance Fix: Tells browser to prep for change */
    will-change: opacity;
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Fade in smoothly when parent is open */
.contact-modal.open .modal-backdrop {
    opacity: 1;
}

/* 2. The Content Card: Handles Slide & Opacity INDEPENDENTLY */
.contact-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /* Ensure it sits on top of backdrop */

    /* Start lower and invisible */
    transform: translateY(40px);
    opacity: 0;

    /* Slower, luxurious ease */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal.open .contact-content {
    transform: translateY(0);
    opacity: 1;
}

/* ... Keep existing Close Button, Form, Inputs below ... */
.close-contact {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
}

/* ... (Rest of your form styles remain unchanged) ... */

/* ============================================
   FORM STYLING
   ============================================ */
.form-header h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.form-header p {
    color: #666;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: 500;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-size: 1.2rem;
    font-family: 'Manrope', sans-serif;
    color: #1a1a1a;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    border-bottom-color: #000;
}

.submit-btn {
    margin-top: 20px;
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: scale(1.02);
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    text-align: center;
}

#modal-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    margin-bottom: 20px;
}

#modal-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.modal-info h2 {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-info p {
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* --- Work Page Header & Filters --- */
.work-header {
    text-align: center;
    padding-top: 25vh;
    /* Matches the Home hero spacing */
    padding-bottom: 80px;
    max-width: 1250px;
    margin: 0 auto;
}

.work-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    color: #999;
    /* Inactive: Light Grey */
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.filter-btn:hover {
    color: #000;
}

/* Active State: Black text + small dot */
.filter-btn.active {
    color: #000;
    font-weight: 500;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
}

/* --- Work Page Grid (Fixed Symmetry) --- */
#portfolio-grid.work-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    /* Perfect uniform spacing */
    gap: 40px;
    row-gap: 60px;

    margin-top: 50px;
    max-width: 1400px;
    padding-bottom: 100px;
}

/* Force every card to align perfectly */
.work-page-grid .project-card {
    margin: 0 !important;
    /* Kills any stagger margins */
    transform: none !important;
    /* Kills any vertical offset transforms */
    aspect-ratio: 4 / 5;
    /* Consistent shape for all */
    width: 100%;
}

/* Ensure the images fill the new aspect ratio */
.work-page-grid .media-wrapper,
.work-page-grid .media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Mobile Responsiveness for Work Page --- */
@media (max-width: 1100px) {
    #portfolio-grid.work-page-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
        gap: 30px;
    }
}

@media (max-width: 768px) {
    #portfolio-grid.work-page-grid {
        grid-template-columns: 1fr;
        /* 1 column on phone */
        gap: 40px;
    }
}

/* --- Smart Image Loading (Fixes Glitch & Cache) --- */

/* 1. The Container gets a clean placeholder color */
.media-wrapper {
    background-color: #f0f0f0;
    /* Light premium grey */
    position: relative;
    overflow: hidden;
}

/* 2. The Image starts Invisible */
.media-wrapper img {
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 1.6s ease-out;
    will-change: opacity, transform;
    transform: scale(1);
}

/* 3. The 'Loaded' state (Smooth Fade In) */
.media-wrapper img.loaded {
    opacity: 1;
}

/* 4. The 'Instant' state (For cached images - No animation) */
.media-wrapper img.instant-loaded {
    opacity: 1;
    transition: transform 1.6s ease-out;
}

.project-card:hover .media-wrapper img {
    transform: scale(1.1);
}

/* --- Testimonials Page Styling --- */

.testimonials-page {
    max-width: 1000px;
    /* Narrower for reading comfort */
    margin: 0 auto;
    padding: 20vh 20px 100px 20px;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 100px;
}

.page-header h1 {
    font-size: 5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

/* 1. Client Logos (Grayscale Grid) */
.client-logos {
    margin-bottom: 150px;
    text-align: center;
}

.section-label {
    display: block;
    font-size: 1.2rem;
    /* Increased from 0.8rem (+50%) */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #999;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    align-items: center;
    justify-items: center;
    opacity: 0.6;
    /* Slight fade by default */
}

.client-logo img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    /* Force B&W */
    transition: all 0.3s ease;
}

/* Hover: Bring back color/opacity */
.client-logo img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    opacity: 1;
}

/* 2. Editorial Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
    /* Big spacing between quotes */
}

.review-item {
    text-align: center;
    position: relative;
}

.review-text {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-family: 'Manrope', sans-serif;
    /* Ensure font matches */
}

.review-author cite {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
}

.review-author span {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .review-text {
        font-size: 1.5rem;
    }
}

/* --- Project Detail Template --- */
.project-detail-page {
    padding-top: 0;
    margin-top: 0;
}

nav.project-page-nav {
    color: #fff;
}

nav.project-page-nav .logo {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

nav.project-page-nav .menu-btn {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 1. Hero Text */
.project-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 80px;
    margin-top: 0;
    padding: 0;
    width: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.project-hero .hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
}

.client-label {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.project-title {
    font-size: 7rem;
    line-height: 1;
    margin-bottom: 40px;
    font-weight: 300;
    color: #fff;
}

.project-meta {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.project-meta .divider {
    margin: 0 15px;
}

/* 2. Cinematic Video */
.project-cinema {
    width: 100%;
    max-width: 1600px;
    /* Ultra wide */
    margin: 0 auto 150px auto;
    padding: 0 20px;
}

.cinema-heading {
    display: none;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 3. Info & Credits */
.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Description takes more space */
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto 150px auto;
    padding: 0 20px;
}

.info-grid h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.credits-list {
    list-style: none;
    padding: 0;
}

.credits-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.credits-list li span:first-child {
    color: #888;
}

/* 4. Next Project Nav */
.project-nav {
    border-top: 1px solid #eee;
    text-align: center;
    padding: 100px 0;
}

.project-nav a {
    text-decoration: none;
    color: #000;
    display: inline-block;
    transition: opacity 0.3s;
}

.project-nav .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #999;
}

.project-nav .title {
    font-size: 3rem;
    font-weight: 300;
}

@media (max-width: 768px) {
    .project-title {
        font-size: 3rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.hidden {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-page {
    /* No special padding needed if we want full screen feel, but maybe some top padding for nav */
    padding-top: 15vh;
    min-height: 100vh;
    overflow-x: hidden;
}

.services-carousel-section {
    position: relative;
    width: 100%;
    /* Ensure it takes enough space */
    padding-bottom: 80px;
}

.services-title {
    text-align: center;
    font-size: 5.5rem;
    /* Scaled 1.33x from 4rem */
    /* Match work-title */
    font-weight: 300;
    margin-bottom: 100px;
    /* Increased from 60px */
    letter-spacing: -1px;
    color: #000;
}

/* 3D Carousel Container */
.carousel-3d-container {
    height: 800px;
    /* Scaled 1.33x from 600px */
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 120px;
    /* Increased from 60px */
}

.carousel-3d-track {
    position: relative;
    width: 530px;
    /* Scaled 1.33x from 400px */
    height: 730px;
    /* Scaled 1.33x from 550px */
    transform-style: preserve-3d;
}

.service-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    overflow: hidden;
    /* Transformation Transition */
    transition: transform 2.0s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 2.0s ease,
        filter 2.0s ease,
        z-index 0s linear 1.0s;
    /* Delay z-index switch to preventing popping */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    background: #000;
    cursor: pointer;
}

/* States handled by JS classes */
/* Center (Active) */
.service-card.active {
    transform: translateX(0) translateZ(200px) scale(1.1);
    opacity: 1;
    z-index: 10;
    filter: blur(0);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 1.5s ease,
        filter 1.5s ease,
        z-index 0s linear 0s;
    /* Instant z-index switch when becoming active */
}

/* Left (Previous) */
.service-card.prev {
    transform: translateX(-120%) translateZ(0) scale(0.9) rotateY(15deg);
    opacity: 0.6;
    z-index: 5;
    filter: blur(2px);
}

/* Right (Next) */
.service-card.next {
    transform: translateX(120%) translateZ(0) scale(0.9) rotateY(-15deg);
    opacity: 0.6;
    z-index: 5;
    filter: blur(2px);
}

/* Background Image */
.service-card .card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.service-card.active .card-bg {
    opacity: 0.9;
}

/* Overlay Text */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.service-card.active .card-overlay {
    transform: translateY(0);
}

.card-overlay h2 {
    font-size: 2.7rem;
    /* Scaled 1.33x from 2rem */
    font-weight: 300;
    margin: 0;
}

/* Subtext Reveal Effect */
.service-subtext {
    font-size: 1rem;
    font-weight: 500;
    color: #ffd700;
    /* Use a premium gold or accent color, or just white */
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.service-card:hover .service-subtext,
.service-card.active .service-subtext {
    opacity: 1;
    transform: translateY(0);
}


/* Service Details & Form */
.service-details-container {
    max-width: 1400px;
    /* Increased from 1000px */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    /* Increased from 60px */
    padding: 0 40px;
    align-items: start;
}

.service-info h3 {
    font-size: 4rem;
    /* Scaled from 2.5rem */
    margin-bottom: 20px;
    font-weight: 300;
    transition: opacity 0.8s ease;
    /* Smooth fade */
}

.service-info p {
    font-size: 1.6rem;
    /* Scaled from 1.1rem */
    line-height: 1.6;
    color: #444;
    transition: opacity 0.8s ease;
    /* Smooth fade */
}

/* Inline Enquiry Form */
.service-enquiry-form {
    background: #f9f9f9;
    padding: 60px;
    /* Increased from 40px */
    border-radius: 30px;
    /* Larger radius */
}

.service-enquiry-form h4 {
    margin-bottom: 30px;
    font-size: 1.6rem;
    /* Scaled from 1.2rem */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Fix for Services Page Email Input --- */
.enquiry-form input {
    width: 100%;
    /* Forces it to fill the width */
    border: none;
    border-bottom: 1px solid #ddd;
    /* Adds the clean underline */
    padding: 20px 0;
    /* Taller touch target */
    /* Makes the click area taller */
    font-size: 1.5rem;
    /* Scaled from 1.1rem */
    font-family: 'Manrope', sans-serif;
    background: transparent;
    outline: none;
    color: #1a1a1a;
    transition: border-color 0.3s;
    margin-bottom: 20px;
    /* Adds space before the button */
}

.enquiry-form input:focus {
    border-bottom-color: #000;
    /* Darkens the line when you click it */
}

/* Custom Select styling */
.select-wrapper {
    position: relative;
    border-bottom: 1px solid #ddd;
}

.select-wrapper select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 1.5rem;
    /* Scaled from 1.1rem */
    font-family: 'Manrope', sans-serif;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.select-wrapper::after {
    content: '\25BC';
    /* Down arrow */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    pointer-events: none;
}

.arrow-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-top: 20px;
    transition: opacity 0.3s;
}

.arrow-btn:hover {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .service-details-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-3d-track {
        width: 300px;
        height: 450px;
    }

    .services-title {
        font-size: 3rem;
    }
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    /* Slightly more visible bg */
    color: white;
    border: 1px solid #ffffff;
    /* Solid White Border */
    width: 60px;
    /* Increased size */
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    /* Ensure strictly on top */
    /* Above nav-zones */
    opacity: 0.5;
    /* Much more visible by default */
    transition: none;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

/* Show buttons on container hover */
#carousel-container:hover .nav-btn {
    opacity: 1;

    /* Philosophy Section Upscaling */
    .philosophy-content h2 {
        font-size: 4rem;
        /* Scaled up */
    }

    .philosophy-content p {
        font-size: 1.5rem;
        /* Scaled up */
    }

    .eyebrow {
        font-size: 1.2rem;
        /* Scaled up */
    }
}