/* ==========================================================================
   CSS VARIABLES & THEME
   ========================================================================== */
:root {
    /* Colors */
    --bg-color: #090909;
    --bg-secondary: #111111;
    --card-bg: rgba(24, 24, 24, 0.75); /* Increased visibility */
    --primary: #D4AF37;
    --primary-light: #E9C46A;
    --text-white: #F5F5F5;
    --text-grey: #A5A5A5;
    --border-color: rgba(212, 175, 55, 0.15); /* Warmer border */
    --border-hover: rgba(212, 175, 55, 0.5);
    --glass-bg: rgba(24, 24, 24, 0.85); /* Premium glass */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-smooth: all 0.6s var(--ease-out-expo);
    
    /* Spacing */
    --section-padding: clamp(3rem, 6vw, 6rem) 0;
}

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

html {
    scroll-behavior: initial; /* Lenis handles smooth scroll */
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-grey);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 400;
    line-height: 1.2;
}

/* Responsive typography using clamp */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.center {
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    color: var(--text-grey);
}

/* ==========================================================================
   UTILITIES & EFFECTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2rem);
}

.section-padding {
    padding: var(--section-padding);
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Background Noise */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Background Glow */
.bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212,175,55,0.03) 0%, rgba(9,9,9,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

/* Custom Cursor — VELEXORA original (glowing gold dot + soft ring + particles) */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10003;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.9), 0 0 16px rgba(212, 175, 55, 0.5);
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.cursor-follower {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

/* Trailing particles */
.cursor-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.6);
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    animation: particleFade 0.6s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes particleFade {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

/* Hover state over interactive elements */
.cursor.hover {
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    box-shadow: 0 0 12px rgba(212, 175, 55, 1), 0 0 24px rgba(212, 175, 55, 0.6);
}

.cursor-follower.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(212, 175, 55, 0.9);
    background: rgba(212, 175, 55, 0.08);
}

/* Click pulse */
.cursor.click {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 18px rgba(212, 175, 55, 1), 0 0 36px rgba(212, 175, 55, 0.7);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: none;
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    width: 300px;
}

/* Typographic loader word */
.loader-word {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 8vw, 4rem);
    letter-spacing: clamp(4px, 1.2vw, 12px);
    color: var(--text-white);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    line-height: 1;
}

.loader-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    text-shadow: 0 0 0 rgba(212, 175, 55, 0);
}

.loader-word.reveal span {
    animation: loaderLetter 0.45s var(--ease-out-expo) forwards;
}

.loader-word.reveal span:nth-child(1) { animation-delay: 0.05s; }
.loader-word.reveal span:nth-child(2) { animation-delay: 0.13s; }
.loader-word.reveal span:nth-child(3) { animation-delay: 0.21s; }
.loader-word.reveal span:nth-child(4) { animation-delay: 0.29s; }
.loader-word.reveal span:nth-child(5) { animation-delay: 0.37s; }
.loader-word.reveal span:nth-child(6) { animation-delay: 0.45s; }
.loader-word.reveal span:nth-child(7) { animation-delay: 0.53s; }
.loader-word.reveal span:nth-child(8) { animation-delay: 0.61s; }

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

.loader-word.glow {
    animation: loaderGlow 0.6s ease-out forwards;
}

@keyframes loaderGlow {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(212, 175, 55, 0); }
    50% { transform: scale(1.08); text-shadow: 0 0 30px rgba(212, 175, 55, 0.7), 0 0 60px rgba(212, 175, 55, 0.35); }
    100% { transform: scale(1.04); text-shadow: 0 0 18px rgba(212, 175, 55, 0.45); }
}

.loader-progress-wrap {
    width: 100%;
    height: 2px;
    background: var(--card-bg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
}

.loader-percentage {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(1rem, 3vw, 2rem) 0;
    z-index: 999;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
}

.navbar.scrolled .nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: clamp(38px, 6.5vw, 51px);
    width: auto;
    object-fit: contain;
    display: block;
}

/* Mobile menu logo */
.mobile-menu-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
}

.mobile-menu-logo .logo-img {
    height: clamp(34px, 8vw, 48px);
}

/* Footer / legal logos should never touch edges and keep proportion */
.footer-logo .logo-img,
.nav-logo .logo-img {
    max-width: min(70vw, 220px);
}

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

.nav-links a {
    color: var(--text-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.5rem;
}

.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    position: absolute;
    transition: 0.3s;
}

.mobile-menu-btn span:first-child { top: 0; }
.mobile-menu-btn span:last-child { bottom: 0; }

.mobile-menu-btn.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-btn.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 12vw, 6rem) clamp(1.5rem, 5vw, 2rem);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-out-expo);
    -webkit-overflow-scrolling: touch;
}

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

.mobile-menu-close {
    position: absolute;
    top: clamp(1rem, 4vw, 1.5rem);
    right: clamp(1rem, 4vw, 1.5rem);
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-smooth);
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 4vw, 2rem);
    width: 100%;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 7vw, 2.5rem);
    color: var(--text-white);
    line-height: 1.2;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 clamp(1.5rem, 5vw, 2rem);
    pointer-events: none; /* Let clicks pass to canvas */
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 6rem);
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3.5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
    flex-wrap: wrap; /* Fix stack on mobile */
}

.scroll-indicator {
    position: absolute;
    bottom: clamp(20px, 5vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-white);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

.about-text p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-white);
}

.single-stat {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-box {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.stat-box h3 {
    display: inline-block;
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.stat-box span {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--primary);
}
.stat-box p {
    font-size: 1.2rem;
    color: var(--text-white);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}

.service-card {
    background: var(--card-bg);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212,175,55,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.service-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-card p {
    color: #e0e0e0;
}

/* ==========================================================================
   PACKAGES SECTION
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: 3rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--glass-bg);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.pricing-card.popular {
    background: var(--bg-secondary);
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.pricing-card .features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-card .features li {
    margin-bottom: 1rem;
    color: var(--text-white);
    display: flex;
    align-items: flex-start;
}

.pricing-card .renewal {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--primary-light);
    font-weight: 500;
    font-size: 1.1rem;
}

.pricing-card .renewal span {
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-notes {
    max-width: 600px;
    margin: 0 auto;
}

.note-highlight {
    color: var(--primary-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.pricing-notes a {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-category {
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

.category-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    display: block;
    border: 1px solid var(--border-color);
    transition: border-color 0.4s ease;
}

/* Full-page screenshot background */
.portfolio-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.6s var(--ease-out-expo);
}

/* Subtle dark gradient so the overlaid logo stays readable */
.portfolio-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(9, 9, 9, 0.55) 0%, rgba(9, 9, 9, 0.3) 55%, rgba(9, 9, 9, 0.5) 100%);
    z-index: 1;
}

/* Transparent client logo centered on top of the screenshot */
.portfolio-logo-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: clamp(1.5rem, 5vw, 3rem);
    pointer-events: none;
}

.portfolio-logo {
    max-width: 55%;
    max-height: 42%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}

.portfolio-item:hover .portfolio-bg {
    transform: scale(1.05);
}

.portfolio-item:hover {
    border-color: var(--border-hover);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 9, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

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

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

/* Touch devices (tablets & phones): no hover, so always show the CTA */
@media (hover: none) {
    .portfolio-item .item-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(9, 9, 9, 0.95) 0%, rgba(9, 9, 9, 0.65) 42%, rgba(9, 9, 9, 0.12) 100%);
        align-items: flex-end;
        padding-bottom: clamp(1.5rem, 6vw, 2.5rem);
    }
    .portfolio-item .overlay-content {
        transform: none;
    }
    /* Larger, finger-friendly tap target for the button on touch */
    .portfolio-item .overlay-content .btn {
        padding: 0.9rem 1.8rem;
        min-height: 44px;
    }
}

.ai-video-banner {
    background: var(--glass-bg);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.ai-video-banner a {
    color: var(--primary);
    text-decoration: underline;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}

.video-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.video-item:hover {
    border-color: var(--border-hover);
}

.video-item.playing {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.18);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.video-item:hover video,
.video-item.playing video {
    opacity: 1;
}

/* First frame acts as the thumbnail (preload metadata) */
.video-item video::-webkit-media-controls {
    z-index: 3;
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.video-item:hover .play-indicator,
.video-item.playing .play-indicator {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    width: 50%;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: clamp(1.5rem, 4vw, 3rem);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: clamp(1.5rem, 4vw, 3rem);
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-content {
    background: var(--glass-bg);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   WHY US (MARQUEE)
   ========================================================================== */
.why-us {
    overflow: hidden;
    background: var(--bg-secondary);
}

.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: 0 2rem;
    animation: scroll-marquee 20s linear infinite;
}

.marquee span {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-white);
}

.marquee span:nth-child(even) {
    color: var(--primary);
}

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

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonial-track {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2rem);
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1 1 350px;
    max-width: 450px;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    position: relative;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    font-style: italic;
    line-height: 1.8;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
}

.client-info h4 {
    font-size: 1.1rem;
    color: var(--text-white);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1.5rem 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-grey);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
}

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

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.method-card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    width: 100%;
    flex-grow: 1;
}

.method-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.method-card .icon {
    font-size: 2.5rem;
}

.method-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-white);
}

.contact-form {
    padding: clamp(2rem, 5vw, 3rem);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-color);
    color: var(--text-white);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-grey);
    transition: 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary);
}

.contact-form button {
    width: 100%;
}

.contact-form button:disabled {
    opacity: 0.65;
    pointer-events: none;
}

.field-error {
    display: none;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #e88d8d;
}

.field-error.visible {
    display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-bottom-color: rgba(232, 141, 141, 0.6);
}

.form-status {
    display: none;
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-body);
}

.form-status.visible {
    display: block;
}

.form-status.success {
    color: var(--primary-light);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.form-status.error {
    color: #e88d8d;
    background: rgba(232, 141, 141, 0.06);
    border: 1px solid rgba(232, 141, 141, 0.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 4rem;
}

/* Make brand section take more space on larger screens */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand p {
    margin-bottom: 2rem;
    max-width: 300px;
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.social-icons a img {
    width: auto;
    height: 22px;
    object-fit: contain;
}

.social-icons a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-grey);
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-back-top a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin-left: auto;
    transition: 0.3s ease;
}

.footer-back-top a:hover {
    background: var(--primary);
    color: #000;
}

.footer-back-top .arrow {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.trial-note {
    font-size: 0.85rem;
    color: var(--text-grey);
    font-style: italic;
}

/* ==========================================================================
   MEDIA QUERIES (Global Responsiveness)
   ========================================================================== */

/* Laptop / Tablets */
@media (max-width: 1024px) {
    /* Tablet: switch to hamburger menu to avoid nav overflow */
    .nav-links, .nav-cta {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
        left: 0 !important;
    }
    
    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: -10px;
    }
    
    .timeline-line {
        left: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .footer-back-top a {
        margin-left: 0;
        margin-top: 2rem;
    }
    .cursor, .cursor-follower {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    .btn, a, .magnetic {
        cursor: pointer !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Large Desktop fine-tune */
@media (min-width: 1600px) {
    .container { max-width: 1500px; }
}

/* Small Phones (425 / 375 / 320) */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
    .hero-subtitle { font-size: clamp(1.1rem, 5vw, 1.6rem); }
    .hero-desc { font-size: 0.95rem; }
    .section-title { font-size: clamp(2rem, 9vw, 3rem); }
    .stat-box { padding: 2rem; }
    .testimonial-track { gap: 1.5rem; }
    .testimonial-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        padding: 1.8rem 1.3rem;
    }
    .marquee span { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .pricing-card .features li { font-size: 0.95rem; }
    .contact-form { padding: clamp(1.5rem, 5vw, 2rem); }
    .method-card { padding: 1.5rem; gap: 1rem; }
}

@media (max-width: 360px) {
    .container { padding: 0 1.2rem; }
    .nav-container { padding: 0 1.2rem; }
    .hero-cta .btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
    .pricing-card h3 { font-size: 1.5rem; }
}

/* Touch devices: convert hover affordances into comfortable tap targets */
@media (hover: none) {
    a, button, .btn, .magnetic, .faq-question, .service-card,
    .pricing-card, .tilt-card, .method-card, input, select, textarea,
    .video-item, .mobile-links a {
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Touch-friendly minimum tap area for interactive elements */
    .nav-links a,
    .footer-links a,
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .faq-question {
        padding: 1.2rem 0;
    }

    /* Buttons keep a comfortable tap height */
    .btn {
        min-height: 44px;
    }

    /* Neutralize desktop hover transforms that feel odd on touch */
    .service-card:hover,
    .pricing-card:hover,
    .method-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* ==========================================================================
   LEGAL PAGES (Privacy / Terms) — Premium design
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    transition: width 0.1s linear;
}

.legal-header {
    text-align: center;
    padding-top: clamp(8rem, 14vw, 12rem);
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.legal-hero {
    display: inline-block;
}

.legal-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.legal-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.gold-divider {
    width: 90px;
    height: 2px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    position: relative;
}

.gold-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.legal-header p {
    color: var(--text-grey);
    letter-spacing: 1px;
}

.legal-content {
    padding-top: clamp(1rem, 3vw, 2rem);
}

.legal-text-container {
    padding: clamp(1.8rem, 5vw, 4rem);
    max-width: 920px;
    margin: 0 auto;
}

.legal-text-container h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--primary);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--border-color);
    position: relative;
    padding-left: 2.2rem;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.legal-text-container h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Section icon marker */
.legal-text-container h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 11px;
    height: 11px;
    border: 1px solid var(--primary);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.legal-text-container p {
    color: var(--text-grey);
    margin-bottom: 1.2rem;
    line-height: 1.9;
    font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.legal-text-container a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.legal-text-container a:hover {
    color: var(--primary-light);
}

.legal-text-container strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Fade-in for legal pages (GSAP/SplitType not loaded there) */
.legal-page .fade-up {
    animation: legalFadeUp 0.9s var(--ease-out-expo) both;
}

.legal-page .reveal-text {
    animation: legalFadeUp 1s var(--ease-out-expo) both;
}

@keyframes legalFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

.legal-page .navbar {
    background: transparent;
}

/* ==========================================================================
   FINAL POLISH — Micro-interactions & Focus States
   ========================================================================== */
a, .btn, .magnetic, .service-card, .pricing-card, .tilt-card, .faq-question, .method-card {
    transition: var(--transition-smooth);
}

/* Button press micro-interaction */
.btn:active {
    transform: scale(0.96);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* Link hover polish */
.footer-links a:hover,
.nav-links a:hover {
    color: var(--primary);
}

/* Card hover glow (subtle, 60fps friendly) */
.service-card:hover,
.pricing-card:hover,
.timeline-content:hover,
.testimonial-card:hover {
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.14);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Smooth, GPU-accelerated section reveal helper */
.fade-up, .reveal-text {
    will-change: transform, opacity;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .cursor, .cursor-follower, .cursor-particle { display: none !important; }
}

/* ==========================================================================
   VIDEO LIGHTBOX MODAL
   ========================================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.video-modal-content {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 88vh;
    transform: scale(0.85);
    transition: transform 0.45s var(--ease-out-expo);
    display: flex;
}

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

/* Video keeps its ORIGINAL aspect ratio (9:16 stays vertical, 16:9 stays wide) */
.video-modal-player {
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.25);
    outline: none;
}

.video-modal-close {
    position: fixed;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(20, 20, 20, 0.85);
    color: var(--text-white);
    font-size: 1.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition-smooth);
}

.video-modal-close:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: rotate(90deg);
}
