/* MAIN.CSS - OPTIMIZED VERSION */

/* NOTE: Scrollbar hiding is handled globally in critical.css */

/* CUSTOM CURSOR SYSTEM */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--charcoal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--charcoal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.05s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(141, 184, 50, 0.3);
    border: 2px solid var(--lima-bean-green);
    backdrop-filter: blur(10px);
}

.custom-cursor.click {
    width: 60px;
    height: 60px;
    background: rgba(141, 184, 50, 0.2);
    border: 3px solid var(--lima-bean-green);
}

.custom-cursor.text {
    width: 2px;
    height: 30px;
    border-radius: 1px;
    background: var(--lima-bean-green);
}

.cursor-dot.click {
    width: 8px;
    height: 8px;
    background: var(--lima-bean-green);
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--lima-bean-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.click-ripple {
    position: fixed;
    border: 2px solid var(--lima-bean-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

.cursor-text {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--charcoal);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transform: translate(-50%, -120%);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cursor-text.visible {
    opacity: 1;
}

.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ENHANCED FLOATING PHOTOS SYSTEM - WITH SCROLL RESPONSIVENESS */
.floating-photos-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
    display: block;
    /* Enable hardware acceleration for smoother scroll interactions */
    transform: translateZ(0);
    will-change: scroll-position;
    /* Improved clipping and positioning */
    clip-path: inset(0);
    backface-visibility: hidden;
    perspective: 1000px;
    /* Ensure smooth scroll tracking */
    will-change: clip-path, transform;
}

/* UPDATED: Floating Photo with Scroll Integration and Depth System */
.improved-floating-photo {
    position: absolute;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    
    /* Enhanced animation with scroll consideration */
    animation: improvedFloatWithScroll 25s linear forwards;
    
    /* PHASE 3: Enhanced transitions for depth effects */
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.2s ease-out,
        opacity 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    
    backdrop-filter: blur(1px);
    will-change: transform, opacity, filter;
    
    /* Base scale and scroll offset from JavaScript */
    transform: scale(var(--base-scale, 1)) rotate(var(--rotation, 0deg)) translateY(var(--scroll-offset, 0px));
    
    /* Force visibility and proper positioning */
    visibility: visible !important;
    display: block !important;
    /* Ensure proper stacking with scroll effects */
    contain: layout style paint;
}

/* PHASE 3: Depth layer-based styling */
.improved-floating-photo[data-depth-layer="background"] {
    /* Background layers receive more blur during scroll */
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.1s linear, /* Faster filter changes for scroll responsiveness */
        opacity 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.improved-floating-photo[data-depth-layer="mid"] {
    /* Mid layers have balanced responsiveness */
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.15s ease-out,
        opacity 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.improved-floating-photo[data-depth-layer="foreground"] {
    /* Foreground layers maintain sharpness and vivid effects */
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.2s ease-out,
        opacity 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Enhanced scroll-responsive class */
.improved-floating-photo.scroll-responsive {
    /* Dynamic scroll-based transitions */
    filter: var(--dynamic-filter, initial);
    transform: scale(var(--base-scale, 1)) rotate(var(--rotation, 0deg)) translateY(var(--scroll-offset, 0px));
}

/* PHASE 3: Enhanced 6-size depth system with atmospheric perspective and shadow layers */

/* Background Layer - Micro Photos */
.improved-floating-photo[data-size="micro"] {
    opacity: 0;
    /* Atmospheric perspective - distant/background feel */
    filter: 
        blur(0.5px) 
        brightness(0.85) 
        saturate(0.7) 
        contrast(0.9) 
        drop-shadow(0 2px 4px rgba(0,0,0,0.1))
        blur(var(--scroll-blur, 0px));
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
    will-change: filter, transform;
    --scroll-multiplier: 0.5;
}

/* Background Layer - Tiny Photos */
.improved-floating-photo[data-size="tiny"] {
    opacity: 0;
    /* Atmospheric perspective - background but slightly more prominent */
    filter: 
        blur(0.3px) 
        brightness(0.88) 
        saturate(0.8) 
        contrast(0.95) 
        drop-shadow(0 3px 6px rgba(0,0,0,0.12))
        blur(var(--scroll-blur, 0px));
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    will-change: filter, transform;
    --scroll-multiplier: 0.6;
}

/* Mid Layer - Small Photos */
.improved-floating-photo[data-size="small"] {
    opacity: 0;
    /* Mid-layer - minimal effects for clarity */
    filter: 
        drop-shadow(0 4px 8px rgba(0,0,0,0.15))
        blur(var(--scroll-blur, 0px));
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.9);
    z-index: 5;
    will-change: filter, transform;
    --scroll-multiplier: 0.8;
}

/* Mid Layer - Medium Photos */
.improved-floating-photo[data-size="medium"] {
    opacity: 0;
    /* Mid-layer standard with slight enhancement */
    filter: 
        contrast(1.05) 
        drop-shadow(0 6px 12px rgba(0,0,0,0.18))
        blur(var(--scroll-blur, 0px));
    border-width: 3px;
    border-color: rgba(255, 255, 255, 0.95);
    z-index: 8;
    will-change: filter, transform;
    --scroll-multiplier: 1.0;
}

/* Foreground Layer - Large Photos */
.improved-floating-photo[data-size="large"] {
    opacity: 0;
    /* Foreground enhancement - vivid and prominent */
    filter: 
        contrast(1.15) 
        saturate(1.2) 
        brightness(1.05) 
        drop-shadow(0 8px 16px rgba(0,0,0,0.25))
        blur(var(--scroll-blur, 0px));
    border-width: 4px;
    border-color: rgba(255, 255, 255, 1);
    z-index: 12;
    will-change: filter, transform;
    --scroll-multiplier: 1.3;
}

/* Foreground Layer - Macro Photos */
.improved-floating-photo[data-size="macro"] {
    opacity: 0;
    /* Maximum foreground presence - most vivid and impactful */
    filter: 
        contrast(1.2) 
        saturate(1.3) 
        brightness(1.08) 
        drop-shadow(0 12px 24px rgba(0,0,0,0.3))
        blur(var(--scroll-blur, 0px));
    border-width: 5px;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(141, 184, 50, 0.1); /* Subtle glow */
    z-index: 15;
    will-change: filter, transform;
    --scroll-multiplier: 1.5;
}

/* PHASE 3: Enhanced Hover Effects with Depth System Integration */
.improved-floating-photo:hover,
.improved-floating-photo.photo-hovered,
.improved-floating-photo[data-hover-state="active"] {
    animation-play-state: paused;
    opacity: 1 !important;
    /* Transform is handled by JavaScript, but enhance depth effects on hover */
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
        box-shadow 0.3s ease,
        filter 0.3s ease;
    
    /* Enhance depth effects on hover - bring to foreground */
    z-index: 30 !important;
    
    /* Enhanced depth on hover based on original layer */
    filter: 
        contrast(1.2) 
        saturate(1.15) 
        brightness(1.05) 
        drop-shadow(0 15px 35px rgba(141, 184, 50, 0.3))
        blur(0px) !important; /* Remove scroll blur on hover */
}

/* Enhanced Full Height Animation with Scroll Responsiveness */
@keyframes improvedFloatWithScroll {
    0% {
        transform: translateY(0) scale(var(--base-scale, 1)) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
    3% {
        opacity: 0.9;
    }
    97% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-100vh) scale(var(--base-scale, 1)) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
}

/* Scroll momentum effects */
.improved-floating-photo[data-scroll-momentum="high"] {
    /* Slight blur during fast scrolling for motion effect */
    filter: blur(0.5px);
}

.improved-floating-photo[data-scroll-momentum="medium"] {
    filter: blur(0.2px);
}

.improved-floating-photo[data-scroll-momentum="low"] {
    filter: blur(0px);
}

/* Scroll velocity-based opacity adjustments */
.improved-floating-photo[data-velocity="high"] {
    opacity: 0.95 !important;
}

.improved-floating-photo[data-velocity="medium"] {
    opacity: 0.9 !important;
}

.improved-floating-photo[data-velocity="low"] {
    opacity: 0.85 !important;
}

/* Enhanced click feedback with scroll consideration */
.improved-floating-photo:active {
    transform: scale(calc(var(--scroll-scale, var(--base-scale, 1)) * 0.95)) rotate(var(--rotation, 0deg)) translateY(var(--scroll-offset, 0px)) !important;
    transition: transform 0.1s ease !important;
}

/* Smooth transitions for image loading */
.improved-floating-photo img {
    transition: opacity 0.3s ease, transform 0.1s linear;
}

.improved-floating-photo:hover img {
    opacity: 1;
}

/* Scroll-responsive photo loading states */
.improved-floating-photo.loading {
    opacity: 0.3 !important;
    filter: blur(2px);
    transform: scale(calc(var(--base-scale, 1) * 0.9)) rotate(var(--rotation, 0deg)) translateY(var(--scroll-offset, 0px));
}

.improved-floating-photo.loaded {
    opacity: 0.9 !important;
    filter: blur(0px);
    transform: scale(var(--base-scale, 1)) rotate(var(--rotation, 0deg)) translateY(var(--scroll-offset, 0px));
}

/* PHASE 3: Performance optimization for many floating photos and mobile devices */
.floating-photos-container:has(.improved-floating-photo:nth-child(n+10)) .improved-floating-photo {
    /* Reduce transition complexity when many photos are active */
    transition: transform 0.05s linear, opacity 0.3s ease;
}

/* Mobile optimization - reduce filter complexity */
@media (max-width: 768px) {
    .improved-floating-photo[data-size="micro"],
    .improved-floating-photo[data-size="tiny"] {
        /* Simplified filters for mobile performance */
        filter: 
            brightness(0.9) 
            drop-shadow(0 2px 4px rgba(0,0,0,0.1))
            blur(var(--scroll-blur, 0px));
    }
    
    .improved-floating-photo[data-size="small"],
    .improved-floating-photo[data-size="medium"] {
        filter: 
            drop-shadow(0 4px 8px rgba(0,0,0,0.15))
            blur(var(--scroll-blur, 0px));
    }
    
    .improved-floating-photo[data-size="large"],
    .improved-floating-photo[data-size="macro"] {
        filter: 
            contrast(1.1) 
            drop-shadow(0 6px 12px rgba(0,0,0,0.2))
            blur(var(--scroll-blur, 0px));
    }
}

/* LIGHTBOX SYSTEM - OPTIMIZED */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
}

/* UPDATED LIGHTBOX CLOSE BUTTON - POSITIONED OVER MENU BUTTON */
.lightbox-close {
    /* Position over the menu button in top left */
    position: fixed;
    top: 2rem; /* Match menu button position */
    left: 2rem; /* Match menu button position */
    
    /* Styling to match menu button appearance */
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    z-index: 1200; /* Higher than menu button */
    
    /* Remove all transitions for instant appearance */
    transition: none !important;
    
    /* Match menu button styling */
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    
    /* Ensure instant appearance */
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--lima-bean-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    /* Keep transition for hover effects */
    transition: all 0.3s var(--transition-smooth);
}

.lightbox-close:focus {
    outline: 2px solid var(--lima-bean-green);
    outline-offset: 2px;
}

.lightbox-close-text {
    display: block;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 3rem;
    box-sizing: border-box;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    transition: opacity 0.3s ease;
    box-shadow: var(--shadow-xl);
    cursor: default;
}

/* OLD HEADER ENHANCED STATES (will be hidden by new system) */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.logo:hover {
    color: var(--lima-bean-green);
    transform: translateY(-1px);
}

.menu-trigger:hover {
    background: rgba(141, 184, 50, 0.1);
    border-radius: 8px;
}

.menu-trigger.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.menu-trigger.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-trigger.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

/* OLD SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: right 0.4s var(--transition-smooth);
    overflow-y: auto;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.side-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu-content {
    padding: 6rem 2rem 2rem;
}

.menu-nav {
    list-style: none;
}

.menu-nav li {
    margin-bottom: 0.5rem;
}

.menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--charcoal);
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.menu-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(141, 184, 50, 0.1), transparent);
    transition: left 0.5s var(--transition-smooth);
}

.menu-nav a:hover::before {
    left: 100%;
}

.menu-nav a:hover {
    background: rgba(141, 184, 50, 0.05);
    color: var(--lima-bean-green);
    transform: translateX(8px);
}

/* NEW HEADER SYSTEM WITH UPDATED LOGO ANIMATION */

/* Hide old header on pages using new system */
.homepage .header,
.standard-page .header {
    display: none !important;
}

/* New Header Base Styles */
.new-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

.floating-nav {
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* UPDATED: space between logo and menu */
}

/* Menu Button Styles */
.menu-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--lima-bean-green);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    z-index: 1002; /* Higher than logo */
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--lima-bean-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.menu-btn-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* UPDATED Logo Icon Container - NEW ANIMATION */
.logo-icon-container {
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.logo-icon {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s var(--transition-smooth);
    max-width: 100%;
    height: auto;
}

.logo-icon:hover {
    filter: drop-shadow(0 4px 12px rgba(141, 184, 50, 0.3));
}

/* Homepage Animation Styles for Logo - NEW BEHAVIOR */
.homepage .logo-icon-container {
    /* Position set by JavaScript - starts in header center */
    display: block;
    will-change: transform;
}

.homepage .logo-icon {
    width: 64px; /* Base size - will be scaled by JavaScript */
    height: auto;
}

/* Standard Page Styles for Logo */
.standard-page .logo-icon-container {
    position: static;
    display: inline-block;
}

.standard-page .logo-icon {
    width: 64px;
    height: auto;
}

/* FIXED: Bean Icon Container for Real Estate Page */
.bean-icon-container {
    position: absolute;
    pointer-events: auto;
    transition: all 0.1s linear;
    z-index: 1001;
}

.standard-page .bean-icon-container {
    position: static;
    display: inline-block;
}

.header-logo {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s var(--transition-smooth);
    max-width: 100%;
    height: auto;
}

.header-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(141, 184, 50, 0.3));
}

.standard-page .header-logo {
    width: 64px;
    height: auto;
}

/* Menu States */
.menu-btn.active .menu-btn-text {
    color: var(--lima-bean-green);
}

.menu-btn.active {
    background: rgba(141, 184, 50, 0.1);
    border-color: var(--lima-bean-green);
}

/* NEW Side Menu (Left Side) */
.side-menu-new {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: left 0.4s var(--transition-smooth);
    overflow-y: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.side-menu-new.active {
    left: 0;
}

/* Menu Overlay */
.menu-overlay-new {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.menu-overlay-new.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Content */
.side-menu-content-new {
    padding: 6rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-nav-new {
    list-style: none;
    text-align: center;
}

.menu-nav-new li {
    margin-bottom: 0.5rem;
}

.menu-nav-new a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--charcoal);
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.menu-nav-new a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(141, 184, 50, 0.2), transparent);
    transition: left 0.5s var(--transition-smooth);
}

.menu-nav-new a:hover::before {
    left: 100%;
}

.menu-nav-new a:hover {
    background: rgba(141, 184, 50, 0.15);
    color: var(--lima-bean-green);
    transform: translateY(-2px);
}

.menu-nav-new a.active {
    background: rgba(141, 184, 50, 0.1);
    color: var(--lima-bean-green);
    font-weight: 700;
}

/* Menu Logo at Bottom */
.menu-logo-container {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
}

.menu-logo {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s var(--transition-smooth);
}

.menu-logo:hover {
    opacity: 1;
}

/* BUTTON ENHANCED STATES */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: var(--white);
    color: var(--lima-bean-green);
    font-weight: 700;
}

.btn-white:hover {
    background: var(--fog);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--lima-bean-green);
    transform: translateY(-2px);
}

/* SECTION LAYOUTS */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* SERVICES SECTION */
.services-section {
    padding: 8rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--transition-smooth);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2.5rem;
}

.service-content h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-content p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-price {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--lima-bean-green);
    font-size: 1.1rem;
}

/* TESTIMONIAL SECTION */
.testimonial-section {
    padding: 4rem 0;
    background: var(--fog);
}

.testimonial-section .section-header {
    margin-bottom: 2.5rem;
}

.google-reviews-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--lima-bean-green);
    font-size: 1.1rem;
}

/* CTA SECTION */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--lima-bean-green), var(--wild-willow));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* COPYRIGHT STYLING */
.copyright {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* SOCIAL LINKS STYLING */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icon {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s var(--transition-smooth);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--lima-bean-green);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* SCROLL PROGRESS - ENHANCED FOR HIDDEN SCROLLBARS */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lima-bean-green), var(--wild-willow));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(141, 184, 50, 0.3);
}

/* SCROLL-DRIVEN PHOTO COLLAGE */
.scroll-collage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scroll-collage.active {
    opacity: 1;
}

.collage-photo {
    position: absolute;
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.collage-photo.visible {
    opacity: 0.3;
}

.collage-photo:nth-child(1) {
    top: 10%;
    left: 5%;
    transform: rotate(-15deg) scale(0.8);
}

.collage-photo:nth-child(2) {
    top: 20%;
    right: 10%;
    transform: rotate(10deg) scale(0.9);
}

.collage-photo:nth-child(3) {
    bottom: 30%;
    left: 15%;
    transform: rotate(8deg) scale(0.7);
}

.collage-photo:nth-child(4) {
    bottom: 15%;
    right: 5%;
    transform: rotate(-8deg) scale(0.85);
}

.collage-photo:nth-child(5) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(5deg) scale(0.6);
}

/* SCROLL-TRIGGERED TEXT REVEALS */
.scroll-text-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--fog) 100%);
    overflow: hidden;
}

.scroll-text-container {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 25; /* Elevated above photos */
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent background for text protection */
    backdrop-filter: blur(10px); /* Subtle blur for better separation */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-reveal-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8); /* Subtle white text shadow for contrast */
}

.text-line {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.text-word {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--word-index, 0) * 100ms);
}

.text-line.revealed .text-word {
    transform: translateY(0);
}

.scroll-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--medium-gray);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.8s;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9); /* Subtle text shadow for legibility */
    line-height: 1.6;
}

.scroll-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* PARALLAX SECTIONS */
.parallax-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.parallax-content {
    transform: translateY(var(--scroll-offset, 0));
    transition: transform 0.1s linear;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, rgba(141, 184, 50, 0.05) 0%, rgba(109, 164, 205, 0.05) 100%);
    transform: translateY(var(--parallax-offset, 0));
    z-index: -1;
}

/* IMAGE REVEAL ANIMATIONS */
.image-reveal {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lima-bean-green);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.image-reveal.revealed::before {
    transform: scaleX(0);
    transform-origin: right;
}

/* STAGGER ANIMATIONS */
.stagger {
    transition-delay: calc(var(--stagger-index, 0) * 150ms);
}

/* GENTLE FLOAT ANIMATION FOR SERVICE CARDS */
@keyframes gentle-float {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-10px) scale(1.02); 
    }
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* DEBUG MODE FOR SCROLL-RESPONSIVE FLOATING PHOTOS */
/* Scroll velocity indicators for debugging (hidden by default) */
.debug-mode .improved-floating-photo::after {
    content: attr(data-scroll-velocity);
    position: absolute;
    top: -20px;
    left: 0;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 2px 5px;
    font-size: 10px;
    border-radius: 3px;
    pointer-events: none;
}

/* Scroll direction indicators (for debugging) */
.debug-mode .improved-floating-photo[data-scroll-direction="up"]::before {
    content: "↑";
    position: absolute;
    top: -30px;
    right: 0;
    color: blue;
    font-size: 16px;
    font-weight: bold;
}

.debug-mode .improved-floating-photo[data-scroll-direction="down"]::before {
    content: "↓";
    position: absolute;
    top: -30px;
    right: 0;
    color: red;
    font-size: 16px;
    font-weight: bold;
}

.debug-mode .improved-floating-photo {
    border: 5px solid red !important;
    opacity: 1 !important;
    background-color: rgba(255, 255, 0, 0.3) !important;
}

.debug-mode {
    /* Even in debug mode, hide scrollbars */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.debug-mode::-webkit-scrollbar {
    display: none !important;
}

/* FALLBACK ANIMATION FOR BROWSERS WITHOUT CSS CUSTOM PROPERTIES */
@supports not (--css: variables) {
    .improved-floating-photo {
        animation: improvedFloatFullHeight 25s linear forwards;
        transform: scale(1) rotate(0deg);
    }
}

/* ORIGINAL FALLBACK ANIMATION (for compatibility) */
@keyframes improvedFloatFullHeight {
    0% {
        transform: translateY(0) scale(var(--base-scale, 1)) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    95% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-100vh) scale(var(--base-scale, 1)) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    /* Disable floating photos on mobile for performance */
    .floating-photos-container,
    .improved-floating-photo {
        display: none;
    }
    
    /* Enhance touch scrolling on iOS */
    html, body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: none; /* Prevent iOS bounce on main page */
    }
    
    /* Disable homepage animation on mobile */
    .homepage .logo-icon-container {
        position: static;
        transform: none;
        display: inline-block;
    }
    
    .homepage .logo-icon {
        width: 48px;
        height: auto;
    }
    
    .floating-nav {
        padding: 1.5rem;
        justify-content: space-between;
    }
    
    .side-menu-new {
        width: 100%;
        left: -100%;
    }
    
    .menu-btn {
        padding: 0.5rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    /* Fixed Mobile Logo Containers */
    .standard-page .bean-icon-container,
    .standard-page .logo-icon-container {
        position: static;
        transform: none;
        display: inline-block;
    }
    
    .standard-page .header-logo,
    .standard-page .logo-icon {
        width: 48px;
        height: auto;
    }
    
    /* Mobile responsive positioning for lightbox close button */
    .lightbox-close {
        /* Match mobile menu button position */
        top: 1.5rem;
        left: 1.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .services-section,
    .testimonial-section,
    .cta-section {
        padding: 4rem 0;
    }
}

/* ACCESSIBILITY IMPROVEMENTS - WITH HIDDEN SCROLLBARS */
.btn:focus,
.menu-btn:focus,
.menu-nav-new a:focus,
.menu-trigger:focus,
.menu-nav a:focus,
.improved-floating-photo:focus,
.lightbox-close:focus {
    outline: 2px solid var(--lima-bean-green);
    outline-offset: 2px;
    scroll-margin: 100px; /* Ensure focused elements aren't hidden behind fixed headers */
}

/* ENSURE FOCUS SCROLLING WORKS PROPERLY WITH HIDDEN SCROLLBARS */
:target {
    scroll-margin-top: 100px; /* Account for fixed header */
}

/* SMOOTH ANCHOR LINK SCROLLING */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-progress-bar {
        transition: none;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .improved-floating-photo {
        border-width: 4px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
        opacity: 1;
        filter: none;
    }
    
    .scroll-progress-bar {
        background: #000;
        box-shadow: none;
    }
}

/* HIDE CURSOR ON MOBILE */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .cursor-dot,
    .cursor-trail,
    .cursor-text {
        display: none;
    }
}

/* NOTE: All scrollbar hiding is now handled globally in critical.css */

/* ADDITIONAL UTILITY CLASSES */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* LOADING STATES */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--lima-bean-green);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* SCROLL-TRIGGERED PHOTO REVEALS */
#floatingPhotosContainer.floating-photos-container {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block !important; /* Override any display: none */
}

.scroll-photo {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid transparent;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto;
    transform-origin: center;
    will-change: transform, opacity;
}

.scroll-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.3s ease;
}

/* Reveal animations - initial hidden states are set by JavaScript */
.scroll-photo.revealed {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hover state overrides - 2x magnetic zoom */
.scroll-photo.revealed:hover {
    transform: rotate(var(--rotation, 0deg)) scale(2.0) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.scroll-photo:hover {
    transform: rotate(var(--rotation, 0deg)) scale(2.0) !important;
    box-shadow: 0 12px 40px rgba(141, 184, 50, 0.4);
    border-color: var(--lima-bean-green);
    z-index: 30;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.scroll-photo:active {
    transform: rotate(var(--rotation, 0deg)) scale(1.05) !important;
}

/* Mobile adjustments for scroll photos */
@media (max-width: 480px) {
    .floating-photos-container {
        display: none; /* Hide on mobile for performance */
    }
}

/* Debug mode for testing */
.debug-mode .scroll-photo {
    border: 2px solid red !important;
    background: rgba(255, 0, 0, 0.1) !important;
}

.debug-mode .scroll-photo::before {
    content: attr(data-photo-id);
    position: absolute;
    top: -20px;
    left: 0;
    background: red;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    z-index: 1000;
}

/* TESTIMONIAL CAROUSEL */
.testimonial-carousel {
    position: relative;
    height: 400px;
    margin: 0 auto;
    max-width: 900px;
    perspective: 1200px;
}

.testimonial-carousel .testimonial-card {
    position: absolute;
    left: 50%;
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-carousel .testimonial-card.left {
    transform: translateX(-100%) scale(0.9);
    opacity: 0.5;
    z-index: 1;
}

.testimonial-carousel .testimonial-card.center {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.testimonial-carousel .testimonial-card.right {
    transform: translateX(0%) scale(0.9);
    opacity: 0.5;
    z-index: 1;
}

.testimonial-carousel .testimonial-card.hidden {
    transform: translateX(100%) scale(0.7);
    opacity: 0;
    z-index: 0;
}

.testimonial-carousel .testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-carousel .testimonial-author {
    font-size: 1rem;
    color: var(--lima-bean-green);
    font-weight: 600;
    font-style: normal;
}

.testimonial-carousel .testimonial-role {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

/* Carousel Controls */
.carousel-controls {
    text-align: center;
    margin-top: 1rem;
}

.carousel-controls .carousel-btn {
    background: var(--lima-bean-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.carousel-controls .carousel-btn:hover {
    background: var(--wild-willow);
    transform: translateY(-2px);
}

.next-button-wrapper {
    display: inline-block;
    position: relative;
    margin: 0 0.5rem;
}

.next-button {
    background: white;
    color: var(--lima-bean-green);
    border: 1px solid var(--lima-bean-green);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 1;
}

.next-button:hover {
    transform: translateY(-2px);
}

/* Keyframe animation for fill bar */
@keyframes fillBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.next-button-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--lima-bean-green);
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.next-button-fill.loading {
    animation: fillBar 10s linear forwards;
}

.next-button-text {
    position: relative;
    z-index: 1;
    color: var(--lima-bean-green);
    font-weight: 600;
}

.next-button-text-white {
    color: white;
    font-weight: 600;
    white-space: nowrap;
    padding-left: 1.5rem;
    position: relative;
    z-index: 3;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 2rem 0 2rem;
    }

    .testimonial-section .section-header {
        margin-bottom: 1.5rem;
    }

    .google-reviews-cta {
        margin-top: 1.5rem;
    }

    /* Hybrid approach: Flexbox container + absolute positioned cards */
    .testimonial-carousel {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 320px;
        padding: 0;
        overflow: hidden;
        max-width: 100%;
        touch-action: pan-y;
        margin-bottom: 1rem;
    }

    .testimonial-carousel .testimonial-card {
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 80%;
        max-width: 100%;
        padding: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    }

    .testimonial-carousel .testimonial-card.left {
        transform: translateX(-65%) translateY(-50%) scale(0.85);
        opacity: 0.4;
        z-index: 1;
    }

    .testimonial-carousel .testimonial-card.center {
        transform: translateX(0) translateY(-50%) scale(1);
        opacity: 1;
        z-index: 3;
        box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    }

    .testimonial-carousel .testimonial-card.right {
        transform: translateX(65%) translateY(-50%) scale(0.85);
        opacity: 0.4;
        z-index: 1;
    }

    .testimonial-carousel .testimonial-card.hidden {
        transform: translateX(165%) translateY(-50%) scale(0.7);
        opacity: 0;
        z-index: 0;
    }

    .testimonial-carousel .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Hide carousel controls on mobile - swipe + auto-play only */
    .carousel-controls {
        display: none;
    }
}

/* END OF MAIN.CSS - COMPLETE FILE WITH SCROLL-TRIGGERED PHOTO REVEALS */