/* ========================================
   MODERN 3D PORTFOLIO - ORANGE THEME
   Apple-Inspired Design System
   ======================================== */

:root {
    /* Purple Theme Colors */
    --primary-purple: #2C1250;
    --primary-purple-light: #3D1B6D;
    --primary-purple-dark: #1C0B34;

    /* Accent Colors */
    --accent-gold: #ffc32e;
    --accent-blue: #4facfe;
    --accent-light-purple: #A78BFA;

    /* Backgrounds - MUCH DARKER PURPLE THEME (deeper for contrast) */
    --bg-dark: #06030d;
    /* Much darker purple-black */
    --bg-dark-secondary: #0a0515;
    /* Darker secondary */
    --bg-dark-tertiary: #0e081a;
    /* Darker tertiary purple */
    --bg-light: #E8E8F0;
    --bg-light-secondary: #D1D1E0;

    /* Text - LIGHT FOR DARK BG */
    --text-primary: #FFFFFF;
    --text-secondary: #E8E8F0;
    --text-muted: #B8B8D0;
    --text-dark: #2C1250;
    --text-accent: #A78BFA;

    /* Glass Effects - Purpled */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px) saturate(180%);

    /* Shadows - Purpled */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-purple: 0 10px 40px rgba(44, 18, 80, 0.3);


    /* Apple Easing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px;
}

/* Hide Scrollbar - Clean Look */
* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    width: 100%;
    scroll-snap-type: none;
    /* Reverted per user clarification */
}


/* ========================================
   DARK THEME - Activated on Scroll
   ======================================== */
body.dark-theme {
    /* Maintained for legacy sections if needed */
    --bg-dark: #1a0b2e;
    /* Deep purple background */
    --bg-dark-secondary: #2d1b4e;
    /* Medium purple */
    --bg-dark-tertiary: #240F42;

    /* Light Text for Dark BG */
    --text-primary: #FFFFFF;
    --text-secondary: #E8E8F0;
    --text-muted: #B8B8D0;

    /* Glass Effects for Dark */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Shadows for Dark */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Dark theme navbar - white text for visibility on dark sections */
body.dark-theme .nav-link:not(.active) {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Scroll snap removed - causing problems */
    scroll-padding-top: 80px;
    /* Account for fixed navbar */
}

body {
    font-family: 'Lexend', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Smooth theme transition */
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- Global Unified Background (Deep Purple Theme) --- */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200vmax;
    height: 200vmax;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 195, 46, 0.015) 0%, transparent 50%);
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

/* Global Noise Texture Overlay */
/* Global Noise Texture Overlay - REMOVED per user request */
/* ... */

/* DarkVeil Container - Hide unwanted placeholder text */
.darkveil-container {
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}

.darkveil-container * {
    color: transparent !important;
}

/* Ensure background canvas remains visible if it exists (usually canvas) */
.darkveil-container canvas {
    opacity: 1 !important;
}

@keyframes backgroundRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

::selection {
    background: rgba(167, 139, 250, 0.25);
    /* Light purple with transparency */
    color: #FFFFFF;
    /* White text for readability */
}

::-moz-selection {
    background: rgba(167, 139, 250, 0.25);
    color: #FFFFFF;
}

/* ========================================
   PREVENT TEXT SELECTION ON INTERACTIVE ELEMENTS
   ======================================== */

/* Prevent unwanted text selection on buttons and links */
button,
a,
.nav-link,
.hero-btn,
.control-btn,
.carousel-nav-btn,
.mobile-menu-toggle,
[role="button"],
[onclick] {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlight on mobile */
}

/* Responsive Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-block !important;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* ========================================
   NAVIGATION - Apple Liquid Glass Style
   ======================================== */

/* Subtle smooth slide-down animation for nav - more natural */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-reveal.is-visible {
    animation: revealUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* --- Scroll Progress Bar (Brand Colors - Dynamic Width) --- */
.scroll-progress {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0%;
    /* No !important - allows JS to update */
    height: 6px !important;
    background: linear-gradient(90deg, #8B5CF6 0%, #FFD700 50%, #8B5CF6 100%) !important;
    z-index: 20000 !important;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.8),
        0 0 10px rgba(255, 215, 0, 0.6) !important;
    border-radius: 0 100px 100px 0 !important;
    transition: width 0.1s ease-out !important;
    display: block !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    /* Above chat widget */

    /* Apple Liquid Glass Effect */
    background: rgba(255, 255, 255, 0.18);
    /* Increased base opacity */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);

    /* Wider nav bar and rounded pill */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);

    /* Reduced width for better responsiveness and compact layout */
    min-width: 520px;
    /* Ultra-compact */
    /* Reduced from 650px */
    max-width: 640px;
    /* Adjusted for compact "Islands" look */

    /* Elegant Shadow - Removed inset highlight to fix "edge" issue */
    /* Elegant Shadow - Reverted to subtle as per user request */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);

    /* Smooth Natural Animation - no bounce */
    animation: navSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;

    transition: all 0.3s ease-out;

    transition: all 0.3s ease-out;
}

/* ========================================
   DESKTOP NAVIGATION LAYOUT (Grid)
   ======================================== */
.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0.4rem 1.2rem;
    height: 100%;
}

.logo {
    justify-self: start;
    display: flex;
    align-items: center;
}

.nav-menu {
    justify-self: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    width: auto;
}

.nav-contact.desktop-only {
    justify-self: end;
    margin-left: 0;
}

/* Mobile/Tablet Media Query for Nav */
@media (max-width: 1024px) {
    .nav {
        min-width: 85%;
        max-width: 90%;
        top: 35px;
        /* Adjusted top margin to be higher (35px) */
        border-radius: 20px;
        margin: 0 auto;
        /* Ensure centering with width constraint */
        background: rgba(255, 255, 255, 0.45);
        /* Increased visibility as requested */
        backdrop-filter: blur(50px) saturate(180%);
        -webkit-backdrop-filter: blur(50px) saturate(180%);
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        gap: 1rem;
        width: 100%;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 90%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 24px;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
        border: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    body.dark-theme .nav-menu {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle span {
        background: var(--text-primary);
    }

    .nav-contact {
        display: none;
        /* Hide in primary nav, will add to menu if needed or keep as separate button */
    }

    .nav-menu .nav-contact {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
    }
}

.nav:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}



.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFFFFF);
    /* Sharper clean Gold-White */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.2));
    transition: all 0.3s var(--ease-out-back);
    animation: navItemFade 0.6s ease 0.2s backwards;
}

.logo:hover .logo-text {
    transform: scale(1.08) rotate(-2deg);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    /* Center the main nav items */
    flex: 1;
    justify-content: center;
    align-items: center;
    /* Fix Vertical Alignment */
    position: relative;
    /* Container for liquid pill */
}

/* --- Liquid Active Pill (The Gooey Effect) --- */
.nav-active-backdrop {
    position: absolute;
    background: #FFFFFF;
    border-radius: 50px;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    /* Minimal bounce and smooth liquid transition */
    transition:
        left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    pointer-events: none;
    opacity: 0;
    will-change: left, width, top, height;
}

.nav-active-backdrop.initialized {
    opacity: 1;
}

.nav-menu li {
    animation: navItemFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    /* Removed opacity:0 - animation handles it */
    position: relative;
    /* Create stacking context */
    z-index: 5;
    /* Ensure Li is ABOVE the backdrop (z=1) */
}

@keyframes navItemFade {
    0% {
        opacity: 0;
        /* transform removed to fix active pill jumping */
    }

    100% {
        opacity: 1;
        /* transform: translateY(0) scale(1); - Default state is 0/1 */
    }
}

.nav-menu li:nth-child(1) {
    animation-delay: 0.3s;
}

.nav-menu li:nth-child(2) {
    animation-delay: 0.4s;
}

.nav-menu li:nth-child(3) {
    animation-delay: 0.5s;
}

.nav-menu li:nth-child(4) {
    animation-delay: 0.6s;
}

.nav-menu li:nth-child(5) {
    animation-delay: 0.7s;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    /* Increased breathing room */
    /* Reduced from 0.6rem 1.25rem */
    color: rgba(255, 255, 255, 0.85);
    /* Visible white text by default */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    /* Ensure text is above backdrop */
    /* Removed static backgrounds for liquid effect */
    margin: 0 2px;
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link.active {
    color: #2C1250 !important;
    /* Force Dark text on white pill */
    z-index: 10;
    /* Ensure active link text is on top of backdrop */
}

.nav-link.active:hover {
    color: #2C1250 !important;
}

/* Contact button - Vibrant Purple Gradient (Reference Style) */
.nav-contact {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    /* Vibrant Violet/Purple */
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle glass border */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: navItemFade 0.6s ease 0.7s backwards;
    /* Light Sweep Animation Overlay */
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Light Sweep Shimmer */
.nav-contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-20deg);
    animation: buttonSweep 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes buttonSweep {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.nav-contact:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #9F7AEA, #8B5CF6);
    /* Slightly lighter on hover */
    box-shadow:
        0 8px 20px rgba(124, 58, 237, 0.4),
        0 0 0 2px rgba(139, 92, 246, 0.2),
        /* Focus ring effect */
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-contact:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px) translateX(3px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px) translateX(3px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.darkveil-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind hero content */
    pointer-events: none;
    /* Allow clicks to pass through */
    overflow: hidden;
    opacity: 1;
    /* Full visibility for intense effect */
}

/* Mobile Optimization - Reduce intensity for better performance */
@media (max-width: 768px) {
    .darkveil-container {
        opacity: 0.6;
        /* Reduce visibility on mobile */
        filter: blur(1px);
        /* Slight blur reduces render complexity */

        /* FIX: Prevent squeezing by forcing a wider aspect ratio */
        width: 160% !important;
        left: -30% !important;
        /* Center the 160% width */
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 90px;
    /* Space for fixed navbar */
    padding-bottom: 90px;
    /* Equal padding for true vertical center */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* CRITICAL: Force transparent background - prevents purple/white flash */
    background: transparent !important;
    background-color: transparent !important;

    box-sizing: border-box;
    /* Include padding in height calc */
    user-select: none;
    /* Prevent text selection during 3D drag */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ========================================
   REALISTIC AMBIENT GLOW (Added as per request)
   ======================================== */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    /* Wider than screen for softness */
    height: 100%;
    background: radial-gradient(circle at 50% 30%,
            rgba(139, 92, 246, 0.4) 0%,
            /* Inner Bright Purple */
            rgba(76, 29, 149, 0.2) 30%,
            /* Mid Deep Purple */
            rgba(15, 23, 42, 0) 70%
            /* Fade to Transparent */
        );
    filter: blur(80px);
    /* Heavy blur for realism */
    z-index: -1;
    /* Behind everything */
    opacity: 0.8;
    /* Adjustable intensity */
    pointer-events: none;
}

/* Animated Gradient Keyframes */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Removed hero::after gradient to prevent cutout */
body.dark-theme .hero::after {
    opacity: 0;
}

/* Particle Loading Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Below 3D canvas - particles as background effect */
    pointer-events: none;
    /* CRITICAL: Particle canvas must not block mouse events for the 3D ball */
    transition: opacity 0.5s ease;
}



.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    /* Full width for proper raycasting */
    width: 100%;
    /* Full width to match window coordinates */
    height: 100%;
    z-index: 3;
    /* Above particles - 3D object as main focus */
    opacity: 0;
    background: transparent !important;
    transform-origin: center center;
    transition: opacity 0.5s ease;
    pointer-events: auto;
    /* Enable mouse interactions for 3D ball */
}

.hero-canvas.loaded {
    opacity: 1;
}

/* 3D Model Loading Indicator */
.loader-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-3d.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-3d p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Removed hero-overlay to prevent visual clash with global background */
.hero-overlay {
    background: transparent;
}

/* Hero Container - Full Width Wrapper */
.hero-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 1400px;
    width: 100%;
    /* Remove padding here, handle in content/media query */
    padding: 0;
    margin: 0 auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

/* Text Content - Responsive Left Half */
.hero-content {
    text-align: left;
    /* Use percentage to play nice with 3D object */
    width: 65%;
    /* Increased from 60% */
    max-width: 1000px;
    /* Increased from 700px to prevent text wrapping */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    z-index: 15;
    margin-top: 0;
    /* Responsive left padding */
    /* Responsive left padding - Reduced for better fit */
    padding-left: 5vw;
    /* Reduced from 8vw to fix excessive margin */
    /* Breathing room from Top Nav - Reduced to 40px per user request */
    padding-top: 40px;
    pointer-events: none;
}

/* Eyebrow Text */
.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-orange);
    opacity: 0.9;
    animation: heroFadeUp 0.5s var(--ease-out-expo) 0.1s backwards;
}

/* Main Headline */
/* Main Headline */
/* Main Headline */
.headline {
    font-size: 2.8rem;
    /* Reduced from 3.5rem */
    font-weight: 500;
    /* Medium weight */
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    /* Tighter line height */
    margin-bottom: 15px;
    /* Tighter gap between headline and description */
    letter-spacing: -0.02em;
    /* Adjusted tracking */
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .headline {
        font-size: 2rem;
        /* Reduced from 2.5rem */
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 1.3rem;
        /* Further reduced for mobile to fit "Elevating Brands" on one line */
    }
}

/* Headline Structure */
/* Main Headline Container */
/* Main Headline Container */
.headline {
    font-size: 2.8rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    color: #FFFFFF;

    /* Standard Text Flow - No Flex Chaos */
    display: block;
    text-align: left;
    /* Desktop Default */
}

/* LAPTOP OPTIMIZATION (1024px - 1366px) */
/* Fixes: "Too big for small desktop screens" & "Too small text" balance */
@media (max-width: 1366px) {
    .headline {
        font-size: 2.5rem;
        /* Increased from 2.2rem - User requested bigger */
        line-height: 1.15;
    }

    .hero-content {
        width: 60%;
        /* Slightly reduced width to prevent overlap */
        padding-left: 8vw;
        /* Increased padding to fix "sticking" issue */
    }

    .hero {
        padding-top: 70px;
        /* Tighter vertical spacing */
    }
}

/* Responsive Line Breaks */
.mobile-br {
    display: none;
    /* Hidden on Desktop */
}

.desktop-br {
    display: block;
    /* Visible on Desktop */
}

/* Individual Word Styling */
.word-span {
    display: inline;
    opacity: 0;
    /* Start hidden */
    animation: focusIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Staggered Delays for "Elevating", "Brands", "through" */
.w-elevating {
    animation-delay: 0.1s;
}

.w-brands {
    animation-delay: 0.3s;
}

.w-through {
    animation-delay: 0.5s;
}

/* Keyframes for Focus-In Effect */
@keyframes focusIn {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Keyword Box */
.keyword-box {
    display: inline-block;
    padding: 15px 30px;
    margin-left: 10px;
    border-radius: 12px;
    font-weight: 700 !important;
    font-size: inherit;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    border-right: 4px solid #5b10d6;
    background-size: 200% 200%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1000px;
    position: relative;
    /* STROKE TEXT UPDATE */
    color: transparent !important;
    -webkit-text-stroke: 1px #ffffff;
    background-color: #5b10d6;
    white-space: nowrap;
    vertical-align: middle;
    /* Align with text */
    margin-top: 0;

    /* Animation Entrance */
    opacity: 0;
    /* Start hidden */
    animation: focusIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.7s;
    /* Appears last */
}

/* ... (skipping mobile media query for brevity in replace, targeting specific blocks) ... */

/* Mobile Layout block omitted - will be kept by careful range focusing if possible, otherwise I should be careful not to delete it. */
/* Actually, simply replacing the .keyword-box rule is safer if I include surrounding context or just replace the property. */
/* BUT I need to do 2 distinct edits. I'll use multi_replace. */


/* MOBILE LAYOUT (Max 480px) */
@media (max-width: 480px) {
    .headline {
        text-align: center;
        /* Center aligned on mobile */
        /* Font Size Clamp */
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .mobile-br {
        display: block;
        /* Force breaks for 3-line layout */
    }

    .desktop-br {
        display: none;
        /* Hide desktop break */
    }

    .keyword-box {
        margin-left: 0;
        margin-top: 10px;
        /* Gap for 3rd line */
    }
}

/* Keyword Box Wrapper (Handles Entrance) */
.keyword-wrapper {
    display: inline-block;
    vertical-align: middle;
    margin-top: 0;

    /* Animation Entrance */
    opacity: 0;
    animation: focusIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.7s;
}

/* Keyword Box (Handles Active State/Bounce) */
.keyword-box {
    display: inline-block;
    padding: 15px 30px;
    margin-left: 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: inherit;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    border-right: 4px solid #5b10d6;
    background-size: 200% 200%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1000px;
    position: relative;
    color: white;
    background-color: #5b10d6;
    white-space: nowrap;
    vertical-align: top;
    /* Reset alignment inside wrapper */

    /* FIX: Force Visibility to prevent disappearance bug */
    opacity: 1 !important;
    visibility: visible !important;

    /* Clip the light sweep to rounded corners */
    overflow: hidden;
}

/* Bounce Animation for Active State */
.keyword-box.animate {
    animation: bounce 0.8s ease-in-out;
}

/* REMOVED REDUNDANT ::before (Solid BG blocked it anyway) */

/* --- LIGHT SWEEP EFFECT (Refined) --- */
.keyword-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    /* Wider beam for smoothness */
    height: 100%;

    /* Soft, blended shine instead of harsh white */
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent 100%);

    transform: skewX(-20deg);
    pointer-events: none;
    mix-blend-mode: overlay;
    /* BLENDS with purple, no white washout */
    animation: lightSweep 4s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes lightSweep {
    0% {
        left: -150%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

@keyframes bounce {
    0% {
        border-right-color: #5b10d6;
    }

    50% {
        border-right-color: transparent;
        /* Blink instead of resize */
    }

    100% {
        border-right-color: #5b10d6;
    }
}

/* Color Variants */
.keyword-box.purple {
    background-color: #5b10d6;
    color: white;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.keyword-box.blue {
    background-color: #5b10d6;
    color: white;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.keyword-box.gold {
    background-color: #5b10d6;
    color: white;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.keyword-box.pink {
    background-color: #5b10d6;
    color: white;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.static-text {
    font-size: 1.35em;
    /* Slightly reduced from 1.5em to prevent wrapping */
    line-height: 1.2;
    font-weight: 500;
}

/* =========================================
   HERO DESCRIPTION ANIMATION (Nuclear Fix)
   ========================================= */

.hero-description {
    font-size: 22px;
    /* Reduced by ~12% from 25px */
    font-weight: 400;
    max-width: 650px;
    margin-bottom: 25px;
    line-height: 1.4;
    color: #FFFFFF;
    /* Pure white */

    /* REMOVED HIDDEN STATE: Ensure text is visible by default */
    /* visibility: hidden; */
}


.desc-word {
    /* CHILD VISIBLE: Shows the animated spans */
    visibility: visible;

    display: inline-block;
    color: #FFFFFF;
    margin-right: 0.25em;
    /* Space between words */

    /* Animation Start State */
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);

    /* Animation Execution */
    animation: slideUpFocus 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUpFocus {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        /* Fully visible */
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Hide buttons initially for GSAP animation */
.hero-buttons {
    opacity: 0;
}

/* Hide social proof initially for GSAP animation */
.hero-social-proof {
    opacity: 0;
}

@media (max-width: 1024px) {
    .hero {
        min-height: 100vh;
        padding-top: 120px;
        text-align: center;
    }

    .hero-container {
        padding: 0 1.5rem;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
        /* Full width for centering */
        align-items: center;
        text-align: center;
        padding-left: 0;
        gap: 1.25rem;
    }

    /* FIX: Prevent overlap on mobile text wrap */
    .hero-headline {
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 2.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
    }

    /* Hero headline mobile styles removed */

    .hero-description {
        font-size: 1rem !important;
        font-weight: 400 !important;
        margin-left: auto;
        margin-right: auto;
        /* Ensure responsive width on mobile */
        max-width: 90%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        align-items: center;
        /* Center-align buttons on mobile */
    }

    .hero-btn,
    .premium-btn {
        width: 193px !important;
        /* Fixed Compact Width */
        height: 52px !important;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
        font-size: 15px !important;
        gap: 8px;
        box-sizing: border-box !important;
        display: inline-flex !important;
    }

    .hero-stats-compact {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-social-proof {
        justify-content: center;
        /* Center social proof on mobile */
    }
}

/* Conflict resolved - Merged into upper definition or standardizing here */
.headline-line2 {
    display: block;
    font-weight: 800;
    color: #FFFFFF;
    /* "& Motion" is White */
    animation: appearIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.3s backwards;
}

.designer-text {
    /* Purple Gradient only for "Designer" */
    background: linear-gradient(135deg, #C084FC 0%, #A855F7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Essential for gradient text */
}

/* Social Proof - 15+ Happy Customer */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    /* Priority 4: Load after description at 0.6s */
    opacity: 0;
    animation: heroFadeUp 0.5s var(--ease-out-expo) 0.6s forwards;
}

.customer-avatars {
    display: flex;
    align-items: center;
}

.customer-avatars .avatar {
    width: clamp(28px, 2.5vw, 40px);
    /* Responsive avatar size */
    height: clamp(28px, 2.5vw, 40px);
    border-radius: 50%;
    border: clamp(2px, 0.15vw, 3px) solid rgba(255, 255, 255, 0.3);
    /* Responsive border */
    margin-left: -8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    /* Stagger animation for each avatar */
    opacity: 0;
    /* Ensures hidden initially */
    animation: avatarScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-fill-mode: forwards;
}

.customer-avatars .avatar:nth-child(1) {
    margin-left: 0;
    z-index: 3;
    animation-delay: 0.7s;
}

.customer-avatars .avatar:nth-child(2) {
    z-index: 2;
    animation-delay: 0.8s;
}

.customer-avatars .avatar:nth-child(3) {
    z-index: 1;
    animation-delay: 0.9s;
}

.customer-avatars .avatar:hover {
    transform: scale(1.1) translateY(-2px);
    z-index: 10;
}

.customer-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.customer-count {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    /* Responsive count size */
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
}

.customer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Avatar scale-in animation */
@keyframes avatarScaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* CTA Buttons - Left aligned */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    /* Priority 5: Load after social proof at 1.0s */
    opacity: 0;
    /* Ensures invisible before start */
    animation: heroFadeUp 0.8s var(--ease-out-expo) 1.0s forwards;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    /* Enable clicks despite parent having pointer-events: none */
    /* CRITICAL: Make buttons clickable */
}

/* ========================================
   3D TACTILE BUTTONS
   ======================================== */
.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s var(--ease-out-back);
    background: #FFFFFF;
    color: #2C1250;
    border: none;
    box-shadow: 0 4px 0 #D1D1E0;
    /* 3D Depth */
    transform: translateY(0);
    z-index: 10;
}

.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #D1D1E0;
    /* Lifted depth */
    background: #FFFFFF;
    color: #2C1250;
}

.hero-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #D1D1E0;
    /* Pressed depth */
}

.hero-btn-primary {
    background: #FFFFFF;
    color: #2C1250;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.1);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.1);
}

.hero-btn-secondary:active {
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.1);
}

/* Compact Stats - Left Aligned */
.hero-stats-compact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-top: 1rem;
    /* Load buttons/stats AFTER text (approx 0.8s delay) */
    animation: heroFadeUp 0.8s var(--ease-out-expo) 0.6s backwards;
    pointer-events: auto;
    /* CRITICAL: Make stats clickable if needed */
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-item .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.stat-divider {
    color: var(--text-secondary);
    opacity: 0.3;
}

/* Animation Keyframe */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        /* Reduced from 30px for smoother entry */
    }

    to {
        opacity: 1 !important;
        transform: translateY(0);
        visibility: visible;
    }
}

/* ========================================
   SCROLL INDICATOR - Branded Animated Mouse
   Organized section for easy maintenance
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    /* Moved to very bottom */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* Smooth fade-in animation - loads last */
    animation: heroFadeUp 0.6s var(--ease-out-expo) 1.5s backwards;
    pointer-events: none;
}

/* Mouse Container - White for Dark Background */
.scroll-mouse {
    width: 2px;
    height: 18px;
    /* Reduced from 25px */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5px 6px;
    /* Reduced width */
    /* White border for visibility */
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    box-sizing: content-box;
    /* Subtle glass effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    /* Subtle shadow */
    box-shadow:
        0 4px 12px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.scroll-mouse:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow:
        0 6px 16px rgba(255, 255, 255, 0.15),
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animated Scroller - Smooth Movement */
.mouse-scroller {
    width: 2px;
    height: 10px;
    border-radius: 25%;
    /* White scroller for visibility */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    /* Subtle glow effect */
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.4),
        0 0 4px rgba(255, 255, 255, 0.2);
    /* Smooth infinite scroll animation */
    animation: mouseScroll 2.2s cubic-bezier(.15, .41, .69, .94) infinite;
}

/* Scroll Animation Keyframes */
@keyframes mouseScroll {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

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

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

/* Dark Theme Adjustments */
body.dark-theme .scroll-mouse {
    border-color: var(--primary-orange-light);
    background: rgba(255, 149, 0, 0.08);
    box-shadow:
        0 4px 12px rgba(255, 149, 0, 0.2),
        0 0 20px rgba(255, 149, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ========================================
   SECTIONS SHARED STYLES
   ======================================== */
section {
    padding: var(--section-padding) 0;
    position: relative;
    /* Smooth theme transition for sections */
    transition: background-color 0.5s ease, color 0.5s ease;
    /* Removed scroll-snap from all sections - only Home↔Work needs it */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    /* Removed gradient - back to white */
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* ========================================
   GLASSMORPHISM UTILITY
   ======================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s var(--ease-out-back);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

/* ========================================
   WORK SECTION
   ======================================== */
.work-section {
    background: transparent;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 2.5rem;
}

.work-item {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--ease-out-back);
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.work-thumbnail {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    overflow: hidden;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-orange);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-back);
    box-shadow: var(--shadow-lg);
}

.work-play-btn:hover {
    transform: scale(1.15);
    background: white;
}

.work-info {
    padding: 2rem;
}

.work-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.work-info p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    position: relative;
    z-index: 10;
    /* Must be above pinned sections for overlap */
    background: var(--bg-dark);
    /* Force visibility - prevent animation conflicts */
    opacity: 1 !important;
    visibility: visible !important;
    /* Add padding for proper margins */
    padding: 0 2rem 80px;
    scroll-margin-top: -60px;
    /* Pulls section UP under the nav */
}

@media (min-width: 768px) {
    .about-section {
        padding: 0 4rem 100px;
    }
}

@media (min-width: 1200px) {
    .about-section {
        padding: 0 6rem 120px;
    }
}

.about-content,
.about-image {
    /* Ensure About content is always visible */
    opacity: 1 !important;
    visibility: visible !important;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns for desktop */
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablet and below - stack vertically */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image .image-placeholder {
        height: 350px;
    }
}

.about-image .image-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    box-shadow: var(--shadow-xl);
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
    border-radius: 10px;
    transition: width 1.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 80px 0 40px 0;
    /* Increased top padding for better separation from testimonials */
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

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

/* Premium Glassmorphic Contact Info Cards */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.contact-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(255, 195, 46, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Premium Glass Contact Form */
.contact-form {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Gradient border effect */
.contact-form::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(255, 195, 46, 0.2), rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

/* Premium Input Fields */
.contact-form input,
.contact-form textarea {
    padding: 1.2rem 1.6rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: 'Lexend', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Premium Focus State with Gradient Border */
.contact-form input:focus,
.contact-form textarea:focus {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.25));
    border-color: transparent;
    box-shadow:
        0 0 0 2px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Gradient border on hover */
.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.25));
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'Lexend', sans-serif;
}

/* Enhanced Form Feedback Messages */
.form-feedback {
    margin-top: 0.5rem;
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-feedback.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.form-feedback.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #10b981;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.form-feedback.success::before {
    content: "✓ ";
    font-weight: 700;
    font-size: 1.2rem;
}

.form-feedback.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.form-feedback.error::before {
    content: "✕ ";
    font-weight: 700;
    font-size: 1.2rem;
}

/* Form Input Error States */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Disabled Button Loading State */
.shimmer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.3);
}

.shimmer-btn:disabled::after {
    animation: none !important;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-item {
        padding: 1.5rem;
    }
}

.contact-form .btn {
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-back);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    color: white;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 107, 0, 0.4);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    background: transparent;
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
    padding-top: 0;
    scroll-margin-top: -60px;
    /* Pulls section UP under the nav */
    /* Add space between navigation buttons and contact section */
}

/* Removed testimonial center gradient */
.testimonials-section::before {
    display: none;
}

.testimonials-v2-container {
    display: flex;
    gap: 4rem;
    /* Increased gap to push elements inwards */
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 2rem 0;
    max-width: 1000px;
    /* Reduced from 1200px for tighter feel */
    margin: 0 auto;
}

/* --- Left Side: Particle Visualizer --- */
.testimonial-visuals {
    flex: 1;
    /* Equal width */
    height: 500px;
    position: relative;
    background: transparent;
    /* Removed specific gradient */
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ... (canvas styles remain) ... */

/* --- Right Side: Interaction Stack --- */
.testimonial-stack-area {
    position: relative;
    /* Required for absolute positioned canvas */
    flex: 1;
    /* Equal width */
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center the stack horizontally */
}

.stack-instruction {
    position: absolute;
    top: -2rem;
    left: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.6;
    font-style: italic;
}

/* --- Robust Stack Logic (Class Based) --- */
.testimonial-stack {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 550px;
    perspective: 1000px;
    touch-action: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .testimonial-stack {
        height: 450px;
        max-width: 320px;
    }

    .testimonial-card p {
        font-size: 0.95rem;
    }

    .testimonial-visuals {
        height: 300px;
    }
}

.testimonial-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 3rem 2.8rem;
    box-shadow: none;
    /* Removed heavy shadow */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left Align Content */
    justify-content: center;
    text-align: left;
    /* Left Align Text */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: center center;
    opacity: 0;
    /* Hide by default, show via classes */
    pointer-events: none;
}

.testimonial-card:active {
    cursor: grabbing;
}

/* -- Active (Top) -- */
.testimonial-card.stack-top {
    z-index: 10;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: blur(0px);
    pointer-events: auto;
}

/* -- Middle (Behind) -- */
.testimonial-card.stack-mid {
    z-index: 5;
    transform: translate(-50%, -55%) scale(0.95);
    /* Move UP slightly */
    opacity: 0.7;
    filter: blur(2px);
    transition-delay: 0.05s;
}

/* -- Bottom (Furthest Behind) -- */
.testimonial-card.stack-bot {
    z-index: 1;
    transform: translate(-50%, -60%) scale(0.9);
    /* Move UP more */
    opacity: 0.4;
    filter: blur(4px);
    transition-delay: 0.1s;
}

/* -- Position 3: Hidden (Transitions) -- */
.testimonial-card[data-pos="3"] {
    z-index: 0;
    transform: translate(-50%, -75%) scale(0.7);
    opacity: 0;
    pointer-events: none;
}

.card-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 8px 25px rgba(255, 195, 46, 0.15);
}

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

.testimonial-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.testimonial-role {
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    flex-grow: 1;
}

.quote-icon {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    font-size: 5rem;
    font-family: serif;
    color: var(--accent-gold);
    opacity: 0.1;
    line-height: 1;
}

/* Responsiveness */
@media (max-width: 992px) {
    .testimonials-v2-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .testimonial-stack {
        margin: 0 auto;
        width: 100%;
        max-width: 380px;
    }

    .testimonial-visuals {
        width: 100%;
        height: 350px;
    }
}

/* ========================================
   MOUSE-FOLLOW GLOW BUTTON
   ======================================== */
.glow-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #5a3500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.glow-button .btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glow-button .btn-glow {
    position: absolute;
    /* Larger glow for more dramatic effect */
    width: 200px;
    height: 200px;
    border-radius: 50%;
    /* More intense orange glow matching the image */
    background: radial-gradient(circle,
            rgba(255, 107, 0, 1) 0%,
            rgba(255, 149, 0, 0.8) 20%,
            rgba(255, 107, 0, 0.4) 40%,
            transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
    /* More blur for softer glow */
    filter: blur(30px);
    /* Glow extends beyond button */
    mix-blend-mode: screen;
}

.glow-button:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(255, 107, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.5);
}

.glow-button:hover .btn-glow {
    opacity: 1;
}

/* Light sweep animation on button */
.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.glow-button:hover::before {
    left: 100%;
}

/* Depth effect for all buttons */
.hero-btn,
.btn {
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
}

.hero-btn:active,
.btn:active {
    transform: translateY(1px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========================================
   FOOTER - Minimal & Centered
   ======================================== */
.footer {
    padding: 60px 0 60px;
    /* Increased padding for bigger footer */
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    /* More spacing above footer */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out-back);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    background: #FFFFFF;
    color: #2C1250;
    transform: translateY(-5px);
    box-shadow: 0 8px 0 #D1D1E0;
}

.social-links a:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #D1D1E0;
}



/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }

    /* .nav top position removed to use global mobile setting (110px) */

    .nav-container {
        gap: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: calc(100% - 40px);
        max-width: 400px;
        background: rgba(30, 30, 40, 0.95);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        border-radius: 16px;
    }

    .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.9);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-contact.desktop-only {
        display: none !important;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        margin-right: 380px;
        max-width: 600px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    /* .nav top position removed to use global mobile setting (110px) */

    .nav-container {
        padding: 0.5rem 1rem;
        justify-content: space-between;
    }

    .logo-text {
        font-size: 1.4rem;
        /* Increased size for better visibility */
    }

    .nav-menu {
        top: 65px;
        width: calc(100% - 24px);
        max-width: none;
        left: 12px;
        transform: translateX(0) translateY(-20px);
    }

    .nav-menu.active {
        transform: translateX(0) translateY(0);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

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

    .scroll-indicator {
        bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-right: auto;
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Testimonials Responsive */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Nav links responsive improvements */
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .nav-link:hover {
        transform: scale(1.05);
    }

    .nav-link:active {
        transform: scale(0.98);
        background: var(--primary-orange);
    }
}

/* ========================================
   SMOOTH SCROLL ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out-expo) backwards;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-orange {
    color: var(--primary-orange);
}

.bg-orange {
    background: var(--primary-orange);
}

/* ========================================
   LENIS SMOOTH SCROLL STYLES
   ======================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-orange) 0%,
            var(--primary-orange-light) 50%,
            var(--accent-blue) 100%);
    z-index: 99999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.5);
}

/* Scroll-Triggered Fade Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll behavior with Lenis */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ========================================
   CHAT WIDGET - Dynamic Sizing Strategy
   ======================================== */
#chat-widget-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 9000;
    /* Below nav (10000) but above 3D */
    pointer-events: none;
    /* Wrapper never blocks */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Rounded corners for modern look */
    border-radius: 32px;
    overflow: hidden;
    /* Ensure iframe corners are clipped to wrapper border-radius */
}

#chat-widget-wrapper.chat-open {
    /* Keep bottom-right positioning, just expand dimensions */
    width: 400px;
    /* Use responsive height that never exceeds viewport */
    height: min(580px, calc(100vh - 120px));
    max-height: calc(100vh - 100px);
    /* Explicitly prevent top positioning */
    top: auto !important;
}

#chat-assistant {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
    /* iframe is clickable - only covers button area when closed */
    background: transparent;
}

/* ============================================================= */
/* VIDEO SHOWCASE SECTION - Apple visionOS Glassmorphism        */
/* Completely isolated - no impact on other sections            */
/* ============================================================= */

.video-showcase-section {
    position: relative;
    /* Compact padding to save vertical space for the large video cards */
    padding: 80px 0 60px;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
}

/* Section Heading */
.video-showcase-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 500;
    /* Medium weight */
    text-align: center;
    margin-bottom: 25px;
    /* Tighter gap */
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: capitalize;

    /* Keyframe animation */
    animation: titleFadeIn 0.8s ease-out forwards;
    opacity: 0;
    /* Start hidden, animation will reveal */
}


/* Keyframe animation for title */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Carousel Wrapper - Contains nav buttons and track */
.video-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    /* Increased height to support larger 38vh video cards */
    height: clamp(600px, 92vh, 950px);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* Hide until JavaScript positions everything - prevents flash */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* Show carousel when track is initialized */
.video-carousel-wrapper:has(.video-carousel-track.initialized) {
    opacity: 1;
    visibility: visible;
}

/* Carousel Track - Container for absolute cards */
.video-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
    /* Strict hide until window is fully loaded */
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Swipe & Drag Support */
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.video-carousel-track.is-dragging {
    cursor: grabbing;
}

.video-carousel-track.initialized {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide scrollbar - Webkit browsers */
.video-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Video Card - Premium Glassmorphism Container - RESPONSIVE */
/* Video Card - Premium Portrait (Instagram 9:16) */
.video-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(240px, 38vh, 420px);
    aspect-ratio: 9 / 16;
    height: auto;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity, filter;
    z-index: 10;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;

    /* Reveal state defaults */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

/* Reveal cards smoothly once JavaScript has positioned them */
.video-carousel-track.initialized .video-card {
    opacity: var(--card-opacity, 0.85) !important;
    visibility: visible !important;
}

/* Center/active video - HIGHLIGHTED and slightly bigger */
.video-card.center {
    opacity: 1;
    transform: scale(1.1);
    /* 1.1x scale for subtler, safer highlights */
    filter: blur(0);
    z-index: 20;
}

/* Adjacent videos - increased size for better visibility */
.video-card.adjacent {
    opacity: 1;
    transform: scale(0.92);
    /* Slightly smaller than center (1.1) but bigger than default distant cards for better visibility */
    filter: blur(0);
    z-index: 1;
}

/* Glass Container - Simplified for Maximum Compatibility */
.video-glass-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 25, 0.4);
    /* Solid semi-dark purple */
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden !important;
    transition: all 0.5s var(--ease-out-expo);
}

.video-player {
    position: relative;
    z-index: 2;
    /* Low but above bg */
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: contrast(1.05) brightness(1.02);
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Show poster/thumbnail on ALL ready videos (including background) */
.video-card.ready .video-player {
    opacity: 1;
}

/* OVERRIDE: Only center video plays - background videos stay paused showing poster */
.video-card.center.ready .video-player {
    opacity: 1;
}

/* Error state for broken videos */
.video-card.video-error .video-glass-container::after {
    content: '⚠️ Video Error';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.8rem;
    z-index: 20;
}

/* Loading state (Skeleton pulse) */
.video-card:not(.ready):not(.video-error) .video-glass-container {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: skeletonPulse 2s infinite ease-in-out;
}

@keyframes skeletonPulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Non-center cards - darker overlay to indicate thumbnail mode */
.video-card:not(.center) .video-glass-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    z-index: 5;
    pointer-events: none;
}

/* Unmute Button - Fixed Positioning & Always Visible on Center */
/* Unmute Button styles removed - moved to video-controls.css */

/* Navigation Arrow Buttons - Clean Style */
.carousel-nav-btn {
    position: absolute;
    /* Changed from relative for precise positioning */
    top: 50%;
    /* CRITICAL: Ensures centered position even during load */
    flex-shrink: 0;
    /* Don't shrink */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    /* Clean background - transparent white tint */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* Subtle border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.2s ease;
    /* No shadow/glow */
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

@media (hover: hover) {
    .carousel-nav-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
    }
}

.carousel-prev {
    left: auto;
    /* Position = 50% (center) + Half Card Width * Scale(1.1) + Gap(20px) */
    right: calc(50% + (clamp(240px, 38vh, 420px) * 0.55) + 20px);
    transform: translateY(-50%);
    z-index: 150;
}

.carousel-next {
    right: auto;
    /* Position = 50% (center) + Half Card Width * Scale(1.1) + Gap(20px) */
    left: calc(50% + (clamp(240px, 38vh, 420px) * 0.55) + 20px);
    transform: translateY(-50%);
    z-index: 150;
}

/* Symmetrical scaling */
@media (hover: hover) {

    .carousel-prev:hover,
    .carousel-next:hover {
        transform: translateY(-50%) scale(1.15);
    }
}

.carousel-prev:active,
.carousel-next:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(255, 107, 0, 0.4);
    border-color: rgba(255, 107, 0, 0.4);
}

.carousel-nav-btn svg {
    stroke-width: 3;
    width: 22px;
    /* Reduced from 28px */
    height: 22px;
    /* Reduced from 28px */
}

/* Disable nav buttons when at start/end */
.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================= */
/* RESPONSIVE LAYOUTS */
/* ============================================================= */

/* Desktop - 4 videos visible */
@media (min-width: 1024px) {

    /* Stacked Layout for Gajah Animation */
    .video-carousel-track {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
        /* Remove grid/scroll snap */
        gap: 0;
        overflow: visible;
        /* Allow side cards to be seen */
    }

    .video-card {
        /* Absolute positioning for stack */
        position: absolute;
        left: 50%;
        top: 50%;
        /* 38vh width for larger premium look on desktop screens */
        width: clamp(240px, 38vh, 450px);
        aspect-ratio: 9/16;
        height: auto;

        /* Gajah Animation Basics */
        transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center center;

        /* Default state (hidden/behind) */
        opacity: 0;
        z-index: 0;
        transform: translate(-50%, -50%) scale(0.75);
    }

    /* Glass container adjustments */
    .video-glass-container {
        width: 100%;
        height: 100%;
        border-radius: 12px !important;
        overflow: hidden !important;
        position: relative;
        background: rgba(255, 255, 255, 0.05);
        /* Slight tint */
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Ensure video fits */
    .video-player {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* Changed from cover to show full video */
    }
}

@media (max-width: 768px) {
    .video-showcase-section .container {
        padding: 0;
        max-width: 100%;
    }

    /* Larger width for mobile - premium look */
    /* Larger width for mobile - premium look */
    /* Larger width for mobile - premium look */
    /* Larger mobile/tablet size for video - consistent */
    .video-card {
        /* User requested larger size again (+20%) */
        width: 75vw !important;
        max-width: 300px !important;
        /* Balanced between too small and too large */
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 9 / 16 !important;
    }

    /* CRITICAL: Override center card scale for mobile */
    .video-card.center {
        /* MUST include translate to maintain centering! */
        transform: translate(-50%, -50%) scale(1.05);
        /* Reduced scale for better fit */
    }

    .video-carousel-track {
        /* Container adjusts to card size */
        min-height: auto;
        max-height: none;
        padding: 20px 0;
    }

    .video-carousel-wrapper {
        /* Remove excessive constraints */
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    /* Ensure video fills card */
    .video-player {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Controls with safe padding to prevent clipping */
    .video-control-bar {
        width: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
        /* Add horizontal padding for button safety */
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .carousel-prev {
        left: 10px;
        right: auto;
        transform: translateY(-50%);
    }

    .carousel-next {
        right: 10px;
        left: auto;
        transform: translateY(-50%);
    }
}

.carousel-nav-btn {
    width: 40px;
    height: 40px;
}

/* Cleaned up old overrides */

/* Removed duplicate and conflicting mute button styles */

/* Very small mobile */
@media (max-width: 480px) {

    /* Good balance for small devices */
    /* Video card styling removed - now handled by max-width: 1024px for consistency */

    .video-carousel-wrapper {
        padding: 0;
    }

    /* Extra padding for controls on small screens */
    .video-control-bar {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .carousel-nav-btn {
        width: 38px;
        height: 38px;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .carousel-nav-btn:active {
        transform: translateY(-50%) scale(0.9);
        /* Changed from orange to brand purple */
        background: rgba(139, 92, 246, 0.7);
        border-color: #8B5CF6;
    }

    .carousel-prev {
        left: 5px;
        right: auto;
    }

    .carousel-next {
        right: 5px;
        left: auto;
    }
}

/* ============================================================= */
/* ANIMATIONS */
/* ============================================================= */

/* Smooth fade transition for cards */
@keyframes videoCardFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Individual card animations disabled to prevent conflict with JS updateCardStates */
/* .video-card {
    animation: videoCardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
} */

.video-card:nth-child(1) {
    animation-delay: 0.1s;
}

.video-card:nth-child(2) {
    animation-delay: 0.2s;
}

.video-card:nth-child(3) {
    animation-delay: 0.3s;
}

.video-card:nth-child(4) {
    animation-delay: 0.4s;
}

.video-card:nth-child(5) {
    animation-delay: 0.5s;
}

.video-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Pulse animation for playing video */
@keyframes videoPulse {

    0%,
    100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow:
            0 12px 40px rgba(255, 107, 0, 0.2),
            0 4px 12px rgba(255, 107, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* Removed orange pulse animation for a cleaner look */
/* .video-card.center.playing .video-glass-container {
    animation: videoPulse 3s infinite ease-in-out;
} */

/* ============================================================= */
/* PLAY/PAUSE BUTTON CONTROLS */
/* ============================================================= */

/* Play/Pause Button - Centered on video */
/* Play/Pause Button - Integrated in Control Bar (Bottom Left) */
.video-play-pause-btn {
    position: relative;
    /* Changed from absolute to relative for flow */
    /* Removed top/left/transform centering */
    z-index: 5;

    /* Size mismatch fix - deferring to video-controls.css or setting here */
    /* keeping basic transparency/border styles but removing layout overrides */
    border-radius: 50%;
    border: none;
    cursor: pointer;

    /* Glass effect background */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Shadow for depth */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Flex center for icon inside button */
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    /* Removed translate(-50%, -50%) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.video-play-pause-btn:active {
    transform: scale(0.95);
    /* Removed translate(-50%, -50%) */
}

/* Icon visibility toggling */
.video-play-pause-btn .icon-play,
.video-play-pause-btn .icon-pause {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    /* Reduced from 24px to fit smaller button */
    height: 14px;
}

.video-play-pause-btn .icon-play {
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.video-play-pause-btn .icon-pause {
    display: none;
    opacity: 0;
}

/* When video is playing - show pause, hide play */
.video-play-pause-btn.playing .icon-play {
    display: none;
    opacity: 0;
}

.video-play-pause-btn.playing .icon-pause {
    display: block;
    opacity: 1;
}

/* Visibility is now handled by .video-controls-overlay in video-controls.css */
/* Removed: .video-card.playing .video-play-pause-btn hiding logic */
/* Removed: .video-card.playing:hover .video-play-pause-btn showing logic */
/* Removed: .video-card:not(.playing) .video-play-pause-btn logic */

/* Ensure center card button is always interactive */
.video-card.center .video-play-pause-btn {
    pointer-events: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-play-pause-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-pause-btn .icon-play,
    .video-play-pause-btn .icon-pause {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .video-play-pause-btn {
        width: 50px;
        height: 50px;
    }

    .video-play-pause-btn .icon-play,
    .video-play-pause-btn .icon-pause {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ============================================================= */
/* TESTIMONIALS SECTION - Dark Glassmorphism Style              */
/* ============================================================= */

.testimonials-section {
    position: relative;
    padding: clamp(80px, 12vh, 140px) 0;
    /* Seamless background */
    background: transparent;
    overflow: hidden;
}

/* Subtle cosmic glow effects like reference */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(60, 100, 180, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(80, 120, 200, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dark Glassmorphism Card - ULTRA GLOSSY Effect */
.testimonial-card {
    position: relative;
    padding: 35px 28px;
    /* Premium glass gradient - lighter at top for glossy look */
    background: linear-gradient(170deg,
            rgba(45, 65, 100, 0.75) 0%,
            rgba(28, 42, 70, 0.85) 20%,
            rgba(18, 28, 50, 0.92) 50%,
            rgba(12, 20, 40, 0.96) 80%,
            rgba(8, 14, 32, 1) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    /* Glossy border - brighter */
    border: 1px solid rgba(120, 170, 220, 0.25);
    text-align: left;

    /* Parallax Transform Logic */
    transform: translateY(var(--parallax-y, 0px));
    transition: transform 0.1s linear,
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;

    overflow: hidden;
    /* Multi-layer shadow + INNER GLOW on all edges */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2),
        inset 1px 0 1px rgba(255, 255, 255, 0.05),
        inset -1px 0 1px rgba(255, 255, 255, 0.05);
}

/* Top glossy highlight - subtle shine */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    border-radius: 20px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.4) 80%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Light sweep overlay - top right corner, rotated 45deg */
/* Light sweep overlay - top right corner, soft glow */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.05) 30%,
            transparent 60%);
    opacity: 0.4;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 2;
    filter: blur(10px);
}

/* Light sweep brighten on hover */
.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card>* {
    position: relative;
    z-index: 3;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 12px 35px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(100, 160, 220, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}

/* Avatar */
.testimonial-avatar {
    width: 70px;
    height: 70px;
    margin: 0 0 20px 0;
    /* Left aligned */
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Name */
.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

/* Role/Title */
.testimonial-role {
    font-size: 0.85rem;
    color: rgba(156, 163, 175, 0.9);
    margin-bottom: 20px;
    font-weight: 400;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(203, 213, 225, 0.9);
    font-style: normal;
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .testimonial-card {
        padding: 30px 24px;
    }
}

/* ============================================================= */
/* Magnetic Particle Background */
/* ============================================================= */
.particles-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    /* Allows text selection and clicks on cards */
    z-index: 0;
    /* Behind the cards (which are z-index 1 or higher) */
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    will-change: transform;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(var(--x), var(--y)) scale(1.2);
    }

    66% {
        transform: translate(calc(var(--x) * -0.5), calc(var(--y) * -0.5)) scale(0.8);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ============================================================= */
/* Premium Shimmer Button (Contact Form) */
/* ============================================================= */

/* Mona Sans Font */
@font-face {
    font-family: "Mona Sans";
    src: url("https://assets.codepen.io/64/Mona-Sans.woff2") format("woff2 supports variations"),
        url("https://assets.codepen.io/64/Mona-Sans.woff2") format("woff2-variations");
    font-weight: 100 1000;
}

/* Property Definitions for Smooth Animation */
@property --bg-position {
    syntax: "<number>";
    inherits: true;
    initial-value: 100;
}

@property --after-blur {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --after-opacity {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

@property --before-opacity {
    syntax: "<number>";
    inherits: true;
    initial-value: 0.3;
}

@property --btn-offset {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

@property --btn-scale {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

/* Button Container Variables */
.shimmer-btn-container {
    --btn-bg: hsl(0, 0%, 0%);
    --btn-border-width: 2.5;
    /* Thicker border */
    --btn-offset: 1;
    --btn-scale: 1;
    --after-bg: linear-gradient(to right,
            hsl(0, 0%, 0%), hsl(0, 0%, 0%));
    /* Initially dark */
    --after-blur: 10;
    --after-opacity: 0.5;
    /* Reduced shadow */
    --after-pos-y: 10;
    --before-opacity: 1;
    --bg-position: 100;

    /* Colors */
    --color-white: hsl(0, 0%, 100%);
    /* Theme Colors */
    --color-cyan: #6366f1;
    /* Indigo */
    --color-blue: #8b5cf6;
    /* Violet */
    --color-purple: #d946ef;
    /* Fuchsia */
    --color-pink: #ec4899;
    /* Pink */
}

/* Button Styles */
.shimmer-btn {
    all: unset;
    background: transparent;
    border-width: 0;
    transform: scale(var(--btn-scale));
    transition:
        --bg-position 3s ease,
        --after-blur 0.3s ease,
        --before-opacity 0.3s ease,
        --btn-offset 0.3s ease,
        --btn-scale 0.2s cubic-bezier(.76, -0.25, .51, 1.13);
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: fit-content;
    /* Fix width */
}

.shimmer-btn>div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8em 1.2em;
    background: var(--btn-bg);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    font-size: 18px;
    font-family: "Mona Sans", sans-serif;
    position: relative;
    /* z-index: 10; REMOVED to fix stacking context */
}

.shimmer-btn>div:not(:hover) {
    transition: --after-blur 0.3s ease;
}

.shimmer-btn>div>span {
    color: var(--color-white);
    /* Removed glow as requested */
    text-shadow: none;
    letter-spacing: 0.15ch;
    font-weight: 600;
}

/* Glow Effect (After) */
.shimmer-btn>div:after {
    display: block;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: var(--after-bg) no-repeat calc(var(--bg-position) * 1%) 0% / 900%;
    transform: translateY(calc(var(--after-pos-y) * 1px));
    left: 0;
    top: 0;
    z-index: -2;
    filter: blur(calc(var(--after-blur) * 1px));
    opacity: var(--after-opacity);
}

/* Border Gradient (Before) */
.shimmer-btn>div:before {
    content: "";
    display: block;
    position: absolute;
    width: calc(100% + calc(calc(var(--btn-border-width) * 2) * 1px));
    height: calc(100% + calc(calc(var(--btn-border-width) * 2) * 1px));
    background: linear-gradient(to right,
            var(--color-cyan),
            var(--color-blue),
            var(--color-purple),
            var(--color-pink),
            var(--color-purple),
            var(--color-blue),
            var(--color-cyan)) no-repeat calc(var(--bg-position) * 1%) 0% / 900%;
    border-radius: 9px;
    z-index: -1;
    top: calc(var(--btn-border-width) * -1px);
    left: calc(var(--btn-border-width) * -1px);
    opacity: var(--before-opacity);
}

/* Hover States */
.shimmer-btn:hover {
    --btn-scale: 1.05;
    --bg-position: 0;
    --after-bg: linear-gradient(to right,
            var(--color-cyan),
            var(--color-blue),
            var(--color-purple),
            var(--color-pink),
            var(--color-purple),
            var(--color-blue),
            var(--color-cyan));
    --after-blur: 30;
    --after-opacity: 0.3;
    --after-pos-y: 0;
    --before-opacity: 1;
    --btn-offset: 5;
}

.shimmer-btn:active {
    --btn-scale: 0.98;
    --after-blur: 15;
}



/* ============================================================= */
/* BUTTON ANIMATIONS (Random Pop) */
/* ============================================================= */
@keyframes buttonPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pop {
    animation: buttonPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Fix for Hero Buttons Visibility */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Increased spacing */
    margin-bottom: 2rem;
    /* Ensure not hidden by default */
    visibility: visible;
    opacity: 1;
    z-index: 10;
    /* Ensure on top */
    position: relative;
    margin-top: 1rem;
    /* Added top margin */
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    /* Reduced to compact size */
    /* Ensure height */
    opacity: 1;
    /* GSAP will animate from 0 to this value */
    font-size: 1rem;
    /* Standard readable size */
}

/* ========================================
   PREMIUM BUTTON STYLES (Apple Aesthetic)
   ======================================== */

/* Primary Hero Button (View My Work) */
.hero-btn.hero-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: var(--primary-purple);
    /* Dark text for contrast */
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 20px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    /* Inner highlight */
    padding: 0 1.8rem;
    /* Compact padding */
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-btn.hero-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: #ffffff;
}

/* Secondary Hero Button (Get in Touch) */
.hero-btn.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    /* Ultra subtle glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 500;
    padding: 0 1.8rem;
    /* Compact padding */
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-btn.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Navigation Contact Button */
.nav-contact,
.nav-item .nav-contact {
    /* Specific selectors to override */
    background: linear-gradient(135deg, #8B5CF6 0%, #D946EF 100%);
    /* Violet to Fuchsia */
    color: white !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    /* Top shine */
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;

    /* Layout Fix */
    justify-self: end;
    /* Ensure right alignment in Grid */
    margin-left: auto;
    /* Push to right if flex */
}

.nav-contact:hover {
    transform: translateY(-1px) scale(1.05);
    /* Subtle scale */
    box-shadow:
        0 8px 25px rgba(217, 70, 239, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #9F67FF 0%, #E855FC 100%);
    /* Lighter gradient on hover */
}

/* Ensure Logo and Contact button have spacing from edges in Nav */
.nav-container {
    padding-left: 1.5rem !important;
    padding-right: 0.6rem !important;
    /* Reduced to push button closer to edge */
}

/* ========================================
   CONTACT FORM - Feedback Messages
   ======================================== */
.form-feedback {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.form-feedback.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.form-feedback.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #10b981;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.form-feedback.success::before {
    content: " ";
    font-weight: 700;
    font-size: 1.1rem;
}

.form-feedback.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.form-feedback.error::before {
    content: " ";
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form Input Error States */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
}

/* Disabled Button Loading State */
.shimmer-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.shimmer-btn:disabled::after {
    animation: none !important;
}

/* ============================================================= */
/* LARGE SCREEN OPTIMIZATIONS (Hybrid Responsive Approach) */
/* ============================================================= */

/* Full HD and above (24" monitors at 1920x1080) */
@media (min-width: 1920px) {

    /* Increase hero spacing for better readability */
    .hero {
        padding-top: clamp(140px, 10vh, 180px);
    }

    /* Larger button gaps */
    .hero-buttons {
        gap: 1.5rem;
    }

    /* More spacious navigation */
    .nav-container {
        padding: 0.6rem 1.5rem;
    }

    /* Increase section padding */
    section {
        padding: clamp(4rem, 8vh, 6rem) 2rem;
    }

    /* Better social proof spacing */
    .hero-social-proof {
        gap: 1rem;
        margin-top: 2rem;
    }
}

/* 2K and 4K displays (27"+ monitors at 2560x1440 or higher) */
@media (min-width: 2560px) {

    /* Increase container max-width for ultra-large screens */
    .hero-container {
        max-width: 1800px;
    }

    /* Even larger button gaps */
    .hero-buttons {
        gap: 2rem;
    }

    /* Increase hero vertical spacing */
    .hero {
        padding-top: clamp(160px, 12vh, 200px);
    }

    /* Larger section containers */
    .section-container,
    .work-container,
    .about-container,
    .testimonial-container {
        max-width: 2000px;
    }

    /* More generous padding */
    section {
        padding: clamp(5rem, 10vh, 8rem) 3rem;
    }
}

/* HERO ANIMATION INIT - REMOVED OPACITY 0 OVERRIDE */
.hero-headline,
.hero-buttons,
.hero-social-proof {
    /* Removed .hero-description from here to fix visibility */
    opacity: 1;
    /* Ensure they show up even if GSAP lags */
    will-change: transform, opacity;
}


/* OVERRIDE: Remove Video Noise Texture */
.video-glass-container::before {
    display: none !important;
    background-image: none !important;
}

/* ========================================
   BACKGROUND ANIMATION FIX (User Request)
   ======================================== */
/* Force background to fade in instead of sliding down */
#root,
.darkveil-container {
    opacity: 0;
    animation: darkVeilFadeIn 2.5s ease-out forwards !important;
    transform: none !important;
    /* Forces reset of any slide-down */
}

@keyframes darkVeilFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ========================================
   CURTAIN EFFECT (Work -> About)
   ======================================== */

/* 1. Stick the Work Section */
/* Note: Parent container must not have overflow: hidden */
.work-section,
.video-showcase-section {
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    /* Lower than About */
    min-height: 100vh !important;
    /* Ensure it fills screen */
    margin-bottom: 0 !important;
    /* Prevent gaps */
}

/* 2. Slide About Section Over it */
.about-section {
    position: relative !important;
    z-index: 50 !important;
    /* Higher than Work */
    background-color: var(--bg-dark) !important;
    /* CRITICAL: Must be solid to cover Work */
    /* Ensure shadows cast on the specialized work section below */
    box-shadow: 0 -50px 100px rgba(0, 0, 0, 0.9) !important;
    min-height: 100vh;
}