/* ============================================
   pericles.agency — Futuristic Landing Page
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050507;
    --bg-elevated: #0a0a0f;
    --surface: #111118;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #f0f0f5;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent-1: #6c5ce7;
    --accent-2: #a855f7;
    --accent-3: #06b6d4;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    --glow: 0 0 40px rgba(108, 92, 231, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Extended palette for theme switching */
    --overlay-bg: rgba(5, 5, 7, 0.85);
    --card-hover: rgba(255, 255, 255, 0.03);
    --card-hover-strong: rgba(255, 255, 255, 0.08);
    --subtle-fill: rgba(255, 255, 255, 0.02);
    --grid-line: rgba(255, 255, 255, 0.02);
    --accent-soft: rgba(168, 85, 247, 0.08);
    --accent-border: rgba(168, 85, 247, 0.2);
    --accent-border-strong: rgba(168, 85, 247, 0.4);
    --accent-glow: rgba(108, 92, 231, 0.15);
    --accent-fill: rgba(168, 85, 247, 0.05);
    --shadow-lg: rgba(0, 0, 0, 0.4);
    --shadow-md: rgba(0, 0, 0, 0.2);
    --shadow-accent: rgba(168, 85, 247, 0.15);
    --particle-color: 168, 85, 247;
    --shine: rgba(255, 255, 255, 0.15);
    --admin-bg: #0c0c14;
    --admin-sidebar: #0a0a12;
    --input-bg: rgba(255, 255, 255, 0.04);
    --nav-bg: rgba(5, 5, 7, 0.85);
    --modal-bg: rgba(5, 5, 7, 0.92);
    color-scheme: dark;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text: #111118;
    --text-primary: #111118;
    --text-secondary: #555566;
    --text-muted: #888899;
    --accent-1: #5b4cdb;
    --accent-2: #9333ea;
    --accent-3: #0891b2;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    --glow: 0 0 40px rgba(108, 92, 231, 0.08);
    --overlay-bg: rgba(255, 255, 255, 0.92);
    --card-hover: rgba(0, 0, 0, 0.02);
    --card-hover-strong: rgba(0, 0, 0, 0.05);
    --subtle-fill: rgba(0, 0, 0, 0.015);
    --grid-line: rgba(0, 0, 0, 0.04);
    --accent-soft: rgba(147, 51, 234, 0.06);
    --accent-border: rgba(147, 51, 234, 0.15);
    --accent-border-strong: rgba(147, 51, 234, 0.3);
    --accent-glow: rgba(108, 92, 231, 0.08);
    --accent-fill: rgba(147, 51, 234, 0.04);
    --shadow-lg: rgba(0, 0, 0, 0.08);
    --shadow-md: rgba(0, 0, 0, 0.05);
    --shadow-accent: rgba(147, 51, 234, 0.08);
    --particle-color: 108, 92, 231;
    --shine: rgba(255, 255, 255, 0.6);
    --admin-bg: #f5f5f7;
    --admin-sidebar: #eeeef0;
    --input-bg: rgba(0, 0, 0, 0.03);
    --nav-bg: rgba(255, 255, 255, 0.88);
    --modal-bg: rgba(255, 255, 255, 0.95);
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

*,
*::before,
*::after,
a, button, input, textarea, select, label {
    cursor: none !important;
}

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

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

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

/* --- Custom Cursor --- */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.3s ease, height 0.3s ease,
                border-color 0.3s ease, background 0.3s ease;
}

.cursor-follower.hovering {
    width: 56px;
    height: 56px;
    border-color: var(--accent-2);
    background: var(--accent-soft);
}

/* --- Particles --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-dot {
    color: var(--accent-2);
}

.logo-domain {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

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

.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta.active {
    color: inherit;
}

.nav-cta.active::after,
.nav-cta::after {
    display: none;
}

.nav-cta {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(108, 92, 231, 0.12);
    top: -200px;
    right: -100px;
    animation: glowFloat 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.08);
    bottom: -150px;
    left: -100px;
    animation: glowFloat 10s ease-in-out infinite reverse;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.reveal-line {
    display: block;
    overflow: hidden;
}

.reveal-line span {
    display: inline-block;
    transform: translateY(110%);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-line:nth-child(2) span { animation-delay: 0.15s; }
.reveal-line:nth-child(3) span { animation-delay: 0.3s; }

@keyframes revealUp {
    to { transform: translateY(0); }
}

.gradient-text {
    background: linear-gradient(135deg, #6c5ce7, #a855f7, #06b6d4, #a855f7, #6c5ce7);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
    animation: gradientText 6s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.2);
    animation: btnGradientShift 3s ease-in-out infinite;
}

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

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(108, 92, 231, 0.35);
    transform: translateY(-2px);
}

/* Shimmer effect on primary buttons */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: none;
    animation: btnShimmer 4s ease-in-out infinite;
}

@keyframes btnShimmer {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.btn-primary svg {
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

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

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--card-hover);
}

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

/* --- Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* --- Tech Marquee --- */
.tech-marquee {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tech-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 500;
}

.tech-track {
    width: 100%;
    overflow: clip visible;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    padding: 12px 0;
    margin: -12px 0;
}

.tech-track-inner {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: techScroll 25s linear infinite;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.tech-item:hover {
    color: var(--accent);
    border-color: rgba(168, 85, 247, 0.35);
    background: var(--accent-soft);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
    transform: translateY(-2px) scale(1.05);
}

.tech-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-item:hover svg {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4));
}

.tech-item span {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

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

@media (max-width: 768px) {
    .tech-marquee {
        max-width: 100%;
    }

    .tech-track-inner {
        gap: 24px;
        animation-duration: 18s;
    }

    .tech-item svg {
        width: 16px;
        height: 16px;
    }

    .tech-item span {
        font-size: 0.78rem;
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--gradient);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -30px; }
    100% { top: 60px; }
}

/* --- Section Common --- */
.section-header {
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-2);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    background: var(--accent-fill);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition-slow);
    border-radius: var(--radius-lg);
}

.service-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

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

.service-card > * {
    position: relative;
    z-index: 1;
}

.card-number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card-icon {
    color: var(--accent-2);
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .card-icon {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.card-tags span:hover {
    border-color: var(--accent-border-strong);
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15), inset 0 0 12px rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

.service-card:hover .card-tags span {
    border-color: rgba(168, 85, 247, 0.15);
    color: var(--text-secondary);
}

/* --- Work Section --- */
.work {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.work-category {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    font-weight: 500;
}

/* --- Case Study --- */
.case-study {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.case-study-header {
    padding: 48px 48px 40px;
}

.work-budget {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
    background: var(--card-hover-strong);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 12px;
    margin-left: 12px;
    vertical-align: middle;
}

.work-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-3);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    padding: 4px 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.work-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-3);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(6, 182, 212, 0); }
}

.case-study-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin: 12px 0 16px;
    letter-spacing: -0.02em;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--accent-2);
    font-weight: 500;
    margin-bottom: 8px;
    transition: var(--transition);
}

.case-study-link:hover {
    color: var(--accent-3);
}

.case-study-link svg {
    opacity: 0.6;
    transition: var(--transition);
}

.case-study-link:hover svg {
    opacity: 1;
    transform: translate(2px, -2px);
}

.case-study-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 640px;
}

.case-study-stat {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-stat:hover {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.08);
    transform: translateX(4px);
}

.case-stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6c5ce7, #a855f7, #06b6d4, #a855f7, #6c5ce7);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    animation: statShimmer 3s ease-in-out infinite;
}

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

.case-stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.case-study-timeline {
    margin-top: 28px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.timeline-heading {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.timeline-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.timeline-weeks {
    flex-shrink: 0;
    width: 64px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-2);
    text-align: right;
}

.timeline-task {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 16px;
    border-left: 2px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-task {
    border-left-color: var(--accent-2);
    color: var(--text);
    padding-left: 20px;
}

.timeline-item:hover .timeline-weeks {
    transform: scale(1.05);
}

.timeline-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-weeks {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card-hover);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.feature-item:hover {
    border-color: var(--accent-border-strong);
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15), inset 0 0 12px rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

.feature-item:hover .feature-icon {
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.5));
}

.feature-icon {
    color: var(--accent-2);
    display: flex;
    align-items: center;
    transition: filter 0.3s ease;
}

/* --- Carousel --- */
.carousel {
    position: relative;
    padding: 0 48px 40px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 4px;
    opacity: 0.4;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide.active img:hover {
    border-color: var(--accent-border);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.1);
    transform: scale(1.01);
}


.carousel-label {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.carousel-slide.active .carousel-label {
    color: var(--text-secondary);
}

.carousel-placeholder {
    padding: 80px 48px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 24px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-hover);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--card-hover-strong);
    border-color: var(--border-hover);
    color: var(--text);
}

/* Dots */
.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--accent-2);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    transform: scale(1.25);
}

.carousel-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

/* Progress bar */
.carousel-progress {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    margin-top: 20px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 0%;
}

/* --- Admin Panel Embeds --- */
.admin-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--admin-bg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.03);
    margin-top: 8px;
}

.admin-demo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(168, 85, 247, 0.06));
    border-bottom: 1px solid var(--border);
}

.admin-demo-banner svg {
    color: var(--accent);
    flex-shrink: 0;
}

.admin-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.admin-chrome-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.admin-chrome-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.admin-chrome-dots span:nth-child(1) { background: #ff5f57; }
.admin-chrome-dots span:nth-child(2) { background: #febc2e; }
.admin-chrome-dots span:nth-child(3) { background: #28c840; }

.admin-chrome-url {
    flex: 1;
    background: var(--input-bg);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-iframe-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='4' cy='4' r='4' fill='white'/%3E%3C/svg%3E") 4 4, auto;
}

.admin-iframe-wrap iframe {
    width: 1465px;
    height: 996px;
    border: none;
    display: block;
    transform-origin: 0 0;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='4' cy='4' r='4' fill='white'/%3E%3C/svg%3E") 4 4, auto !important;
}

.admin-mobile-link {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(168, 85, 247, 0.1));
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.admin-mobile-link:hover {
    color: var(--text);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(168, 85, 247, 0.15));
}

.admin-body {
    display: flex;
    min-height: 380px;
}

.admin-sidebar {
    width: 180px;
    background: var(--admin-sidebar);
    border-right: 1px solid var(--border);
    padding: 12px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
}

.admin-nav-item:hover {
    background: var(--input-bg);
    color: var(--text);
}

.admin-nav-item.active {
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-2);
    border-right: 2px solid var(--accent-2);
}

.admin-nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.admin-nav-item.active svg {
    opacity: 1;
}

.admin-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 380px;
}

.admin-view {
    display: none;
    animation: adminFadeIn 0.25s ease;
}

.admin-view.active {
    display: block;
}

@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-view-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    font-family: var(--font-display);
}

/* Stat Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.admin-stat-card {
    background: var(--card-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}

.admin-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.admin-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display);
}

.admin-stat-value.green { color: #28c840; }
.admin-stat-value.blue { color: #3b82f6; }
.admin-stat-value.purple { color: var(--accent-2); }
.admin-stat-value.cyan { color: var(--accent-3); }

/* Mini bar chart */
.admin-chart {
    background: var(--subtle-fill);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.admin-chart-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.admin-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.admin-chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.admin-chart-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, var(--accent-1), var(--accent-2));
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    min-height: 4px;
}

.admin-chart-bar-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* Horizontal bar chart */
.admin-hbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-hbar-label {
    width: 32px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
}

.admin-hbar-track {
    flex: 1;
    height: 18px;
    background: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
}

.admin-hbar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.admin-hbar-value {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* Recent list / activity feed */
.admin-recent {
    background: var(--subtle-fill);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.admin-recent-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px 8px;
}

.admin-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
}

.admin-recent-name {
    color: var(--text);
    font-weight: 500;
}

.admin-recent-detail {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.admin-recent-time {
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* Table */
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--subtle-fill);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    white-space: nowrap;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--subtle-fill);
}

/* Status badges */
.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.admin-badge.green { background: rgba(40,200,64,0.15); color: #28c840; }
.admin-badge.blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.admin-badge.yellow { background: rgba(254,188,46,0.15); color: #febc2e; }
.admin-badge.purple { background: rgba(168,85,247,0.15); color: var(--accent-2); }
.admin-badge.red { background: rgba(255,95,87,0.15); color: #ff5f57; }

/* Toggle switch */
.admin-toggle {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.admin-toggle.on {
    background: var(--accent-1);
}

.admin-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.admin-toggle.on::after {
    transform: translateX(16px);
}

/* Pricing rules */
.admin-pricing-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--subtle-fill);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
}

.admin-pricing-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-pricing-name {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 500;
}

.admin-pricing-detail {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Room cards grid */
.admin-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.admin-room-card {
    background: var(--card-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.admin-room-card:hover {
    border-color: var(--border-hover);
    background: var(--card-hover-strong);
}

.admin-room-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display);
}

.admin-room-type {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 4px 0;
}

.admin-room-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 500;
}

.admin-room-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.admin-room-dot.green { background: #28c840; }
.admin-room-dot.blue { background: #3b82f6; }
.admin-room-dot.yellow { background: #febc2e; }

/* Calendar grid */
.admin-calendar {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.admin-cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--card-hover);
    border-bottom: 1px solid var(--border);
}

.admin-cal-header span {
    padding: 8px 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
}

.admin-cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.admin-cal-cell {
    padding: 8px 4px;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    min-height: 50px;
}

.admin-cal-cell:nth-child(7n) {
    border-right: none;
}

.admin-cal-day {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.admin-cal-dots {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.admin-cal-avail {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.admin-cal-avail.high { background: #28c840; }
.admin-cal-avail.mid { background: #febc2e; }
.admin-cal-avail.low { background: #ff5f57; }

/* Kanban columns */
.admin-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.admin-kanban-col {
    background: var(--subtle-fill);
    border-radius: 8px;
    padding: 10px;
}

.admin-kanban-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-kanban-count {
    background: rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
}

.admin-kanban-card {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 0.72rem;
}

.admin-kanban-card:last-child {
    margin-bottom: 0;
}

.admin-kanban-card-name {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 2px;
}

.admin-kanban-card-detail {
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* Tier cards */
.admin-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.admin-tier-card {
    background: var(--subtle-fill);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.admin-tier-card.featured {
    border-color: var(--accent-2);
    background: var(--accent-fill);
}

.admin-tier-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display);
    margin-bottom: 4px;
}

.admin-tier-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 12px;
}

.admin-tier-price span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

.admin-tier-features {
    list-style: none;
    text-align: left;
}

.admin-tier-features li {
    font-size: 0.68rem;
    color: var(--text-secondary);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tier-features li::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(40,200,64,0.15);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2328c840' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
}

.admin-tier-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.admin-tier-features li.disabled::before {
    background: rgba(255,255,255,0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2355556a' stroke-width='3'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
}

/* Payout list */
.admin-payout-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.admin-payout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
}

.admin-payout-partner {
    color: var(--text);
    font-weight: 500;
}

.admin-payout-amount {
    color: var(--accent-3);
    font-weight: 600;
    font-family: var(--font-display);
}

/* Stars */
.admin-stars {
    color: #febc2e;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Bottom tabs (mobile only) */
.admin-bottom-tabs {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--admin-sidebar);
}

.admin-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    font-size: 0.6rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: var(--font);
}

.admin-tab.active {
    color: var(--accent-2);
}

.admin-tab svg {
    width: 18px;
    height: 18px;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--modal-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.lightbox-label {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.lightbox-counter {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 96vw;
        max-height: 70vh;
    }

    .lightbox-content img {
        border-radius: var(--radius);
        max-height: 60vh;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    /* Move nav buttons below image on mobile to avoid overlap */
    .lightbox-nav {
        width: 52px;
        height: 52px;
        top: auto;
        bottom: 32px;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 68px);
    }

    .lightbox-next {
        right: calc(50% - 68px);
    }

    .lightbox-counter {
        top: 22px;
    }

    .lightbox-label {
        font-size: 0.82rem;
        margin-top: 12px;
    }
}

/* --- Marquee --- */
.about {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.marquee-wrapper {
    overflow: hidden;
    margin-bottom: 80px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    padding-right: 40px;
    flex-shrink: 0;
}

.marquee-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
}

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

/* --- About Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.8;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 48px;
}

.value {
    padding-left: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value:hover {
    transform: translateX(6px);
}

.value-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    background-size: 100% 300%;
    animation: valueLine 3s ease-in-out infinite;
}

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

.value h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.value p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Music Player --- */
.mp-label {
    margin-top: 32px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-label::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E") no-repeat center;
}

.music-player {
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.music-player:hover {
    border-color: var(--border-hover);
}

.music-player::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(108, 92, 231, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Visualizer bars */
.mp-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
    flex-shrink: 0;
}

.mp-bar {
    width: 3px;
    background: var(--gradient);
    border-radius: 2px;
    height: 4px;
    transition: height 0.15s ease;
}

.music-player.playing .mp-bar:nth-child(1) { animation: mpBounce 0.8s ease-in-out infinite 0s; }
.music-player.playing .mp-bar:nth-child(2) { animation: mpBounce 0.8s ease-in-out infinite 0.1s; }
.music-player.playing .mp-bar:nth-child(3) { animation: mpBounce 0.8s ease-in-out infinite 0.2s; }
.music-player.playing .mp-bar:nth-child(4) { animation: mpBounce 0.8s ease-in-out infinite 0.3s; }
.music-player.playing .mp-bar:nth-child(5) { animation: mpBounce 0.8s ease-in-out infinite 0.15s; }

@keyframes mpBounce {
    0%, 100% { height: 4px; }
    50% { height: 20px; }
}

/* Info */
.mp-info {
    flex: 1;
    min-width: 0;
}

.mp-now-playing {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 2px;
}

.mp-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mp-title:hover {
    color: var(--accent-2);
}

.mp-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Play button */
.mp-controls {
    flex-shrink: 0;
}

.mp-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp-btn:hover {
    border-color: var(--accent-2);
    background: var(--accent-soft);
    transform: scale(1.08);
}

.mp-btn svg {
    transition: transform 0.2s ease;
}

.mp-btn:active svg {
    transform: scale(0.9);
}

/* Progress bar */
.mp-progress-wrap {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: height 0.2s ease;
}

.mp-progress-wrap:hover {
    height: 5px;
}

.mp-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.1s linear;
    position: relative;
}

.mp-progress::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.mp-progress-wrap:hover .mp-progress::after {
    transform: translateY(-50%) scale(1);
}

/* Time */
.mp-time {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    margin-top: -4px;
}

/* Lyrics ticker */
.mp-lyrics {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.mp-lyrics.open {
    max-height: 36px;
    opacity: 1;
    margin-top: 6px;
}

.mp-lyrics-scroll {
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 32px;
    overflow: hidden;
    position: relative;
}

.mp-lyric-line {
    position: absolute;
    left: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    cursor: pointer;
    line-height: 32px;
    width: 100%;
    text-align: center;
    transform: translateY(20px) scale(0.92);
    filter: blur(4px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-lyric-line.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lyricPulse 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-lyric-line.passed {
    opacity: 0;
    transform: translateY(-20px) scale(0.92);
    filter: blur(4px);
}

@keyframes lyricPulse {
    0% { transform: translateY(20px) scale(0.92); filter: blur(4px); opacity: 0; }
    40% { transform: translateY(-2px) scale(1.04); }
    100% { transform: translateY(0) scale(1); filter: blur(0); opacity: 1; }
}

/* --- Fuel Section --- */
.fuel-section {
    margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.fuel-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 50%, rgba(108, 92, 231, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.fuel-content {
    flex: 1;
    min-width: 0;
}

.fuel-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 12px 0 16px;
}

.fuel-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 3D Can */
.fuel-can-wrap {
    flex-shrink: 0;
    width: 220px;
    height: 300px;
    position: relative;
}

#can-3d {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    cursor: grab;
    --poster-color: transparent;
}

#can-3d:active {
    cursor: grabbing;
}

/* Float animation on wrapper, not model-viewer (avoids transform conflicts) */
.fuel-can-wrap {
    animation: itemFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(108, 92, 231, 0.8)) drop-shadow(0 0 35px rgba(168, 85, 247, 0.6)) drop-shadow(0 0 80px rgba(108, 92, 231, 0.5)) drop-shadow(0 0 140px rgba(168, 85, 247, 0.3));
}

@keyframes itemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Ground shadow under floating can */
.fuel-can-shadow {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 14px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: itemShadow 3s ease-in-out infinite;
}

@keyframes itemShadow {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(0.7); opacity: 0.3; }
}

.fuel-hint {
    text-align: center;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-top: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.fuel-can-wrap:hover .fuel-hint {
    opacity: 0;
}

.fuel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.45) 0%, rgba(168, 85, 247, 0.25) 30%, rgba(6, 182, 212, 0.08) 55%, transparent 75%);
    pointer-events: none;
    animation: fuelGlow 3s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes fuelGlow {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
}

/* Mobile */
@media (max-width: 768px) {
    .fuel-section {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 32px;
        margin-top: 48px;
    }

    .fuel-title {
        font-size: 1.25rem;
    }

    .fuel-can-wrap {
        width: 180px;
        height: 250px;
    }
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 680px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.contact-subtitle {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1), 0 0 20px rgba(168, 85, 247, 0.05);
    transform: translateY(-1px);
}

.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.budget-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.budget-option {
    cursor: pointer;
}

.budget-option input {
    display: none;
}

.budget-option span {
    display: block;
    text-align: center;
    padding: 10px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.budget-option input:checked + span {
    border-color: var(--accent-2);
    color: var(--text);
    background: var(--accent-soft);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.budget-option:hover span {
    border-color: var(--border-hover);
}

/* --- Footer --- */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.footer-links a {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-2);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
    color: var(--text);
    transform: translateX(4px);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-legal-link {
    color: var(--text-muted);
    margin-left: 8px;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--accent-2);
}

/* --- Booking Calendar --- */
.cal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cal-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.cal-open .cursor,
body.cal-open .cursor-follower {
    display: none !important;
}

.cal-modal {
    width: 100%;
    max-width: 420px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cal-overlay.active .cal-modal {
    transform: scale(1) translateY(0);
}

/* Restore cursors inside calendar */
.cal-overlay,
.cal-overlay *,
.cal-overlay button,
.cal-overlay input,
.cal-overlay textarea,
.cal-overlay label,
.cal-overlay a {
    cursor: auto !important;
}

.cal-overlay button,
.cal-overlay .cal-day:not(.disabled):not(.empty),
.cal-overlay .cal-time,
.cal-overlay .cal-back,
.cal-overlay .cal-nav-btn,
.cal-overlay .cal-close,
.cal-overlay .cal-done,
.cal-overlay .cal-submit {
    cursor: pointer !important;
}

.cal-overlay input,
.cal-overlay textarea {
    cursor: text !important;
}

.cal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-hover);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.cal-close:hover {
    background: var(--card-hover-strong);
    color: var(--text);
    border-color: var(--border-hover);
}

/* Steps */
.cal-step {
    display: none;
    padding: 32px 28px 24px;
    animation: calFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cal-step.active {
    display: block;
}

@keyframes calFadeIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

.cal-header {
    margin-bottom: 24px;
}

.cal-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cal-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.cal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    background: var(--accent-fill);
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: none;
    border: none;
    font-family: var(--font);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.cal-back:hover {
    color: var(--accent-2);
}

/* Calendar nav */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-month {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cal-nav-btn:hover {
    background: var(--card-hover-strong);
    border-color: var(--border-hover);
    color: var(--text);
}

/* Weekday headers */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.cal-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 0;
}

/* Calendar grid */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.cal-day:not(.disabled):not(.empty):hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-2);
    transform: scale(1.1);
}

.cal-day.selected {
    background: var(--accent-2);
    color: white;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
    transform: scale(1.1);
}

.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-2);
}

.cal-day.today.selected::after {
    background: white;
}

.cal-day.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    pointer-events: none;
}

.cal-day.empty {
    pointer-events: none;
}

/* Time slots */
.cal-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.cal-times::-webkit-scrollbar { width: 4px; }
.cal-times::-webkit-scrollbar-track { background: transparent; }
.cal-times::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cal-time {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cal-time:hover {
    border-color: var(--accent-border-strong);
    color: var(--text);
    background: var(--accent-fill);
    transform: translateY(-1px);
}

.cal-time.selected {
    border-color: var(--accent-2);
    color: var(--text);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

/* Form */
.cal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cal-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.cal-field input,
.cal-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.3s ease;
}

.cal-field input::placeholder,
.cal-field textarea::placeholder {
    color: var(--text-muted);
}

.cal-field input:focus,
.cal-field textarea:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.cal-field textarea {
    resize: vertical;
    min-height: 80px;
}

.cal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: btnGradientShift 3s ease-in-out infinite;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.cal-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: btnShimmer 4s ease-in-out infinite;
}

/* Confirmed state */
.cal-confirmed-content {
    text-align: center;
    padding: 20px 0;
}

.cal-check-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    margin: 0 auto 20px;
    animation: checkPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.cal-confirmed-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cal-confirmed-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.cal-confirmed-note {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.cal-done {
    margin-top: 24px;
    padding: 12px 32px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cal-done:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--card-hover);
}

/* Progress dots */
.cal-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 20px;
}

.cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cal-dot.active {
    background: var(--accent-2);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    transform: scale(1.3);
}

/* Mobile calendar */
@media (max-width: 768px) {
    .cal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .cal-modal {
        max-width: 100%;
        max-height: 92dvh;
        overflow-y: auto;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        -webkit-overflow-scrolling: touch;
    }

    .cal-step {
        padding: 24px 20px 28px;
    }

    .cal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .cal-day {
        font-size: 0.85rem;
        min-height: 44px;
    }

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

    .cal-times {
        grid-template-columns: 1fr 1fr;
        max-height: 50dvh;
    }

    .cal-time {
        padding: 14px 12px;
        font-size: 0.88rem;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }

    .cal-time:hover {
        transform: none;
    }

    .cal-time:active {
        transform: scale(0.96);
        border-color: var(--accent-border-strong);
    }

    .cal-field input,
    .cal-field textarea {
        font-size: 16px; /* prevent iOS zoom */
        padding: 14px 16px;
    }

    .cal-field textarea {
        min-height: 100px;
    }

    .cal-submit, .cal-done {
        min-height: 48px;
        font-size: 0.95rem;
    }

    .cal-back {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 400px) {
    .cal-step {
        padding: 20px 16px 24px;
    }

    .cal-header h3 {
        font-size: 1.1rem;
    }

    .cal-times {
        gap: 6px;
    }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-hover-strong);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--accent-border-strong);
    color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.back-to-top:active {
    transform: scale(0.92);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.preloader-logo .logo-dot {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-logo .logo-domain {
    color: var(--text-muted);
    font-weight: 400;
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden;
}

.preloader-bar-inner {
    width: 0%;
    height: 100%;
    background: var(--gradient);
    border-radius: 1px;
    animation: preloaderFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes preloaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- Process Section --- */
.process {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-step {
    position: relative;
    padding: 32px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.process-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 20px;
}

.process-line {
    width: 100%;
    height: 2px;
    background: var(--border);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.process-step:hover .process-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    animation: processLineFill 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes processLineFill {
    0% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    opacity: 0;
    animation: starPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.testimonial-stars svg:nth-child(1) { animation-delay: 0.1s; }
.testimonial-stars svg:nth-child(2) { animation-delay: 0.2s; }
.testimonial-stars svg:nth-child(3) { animation-delay: 0.3s; }
.testimonial-stars svg:nth-child(4) { animation-delay: 0.4s; }
.testimonial-stars svg:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
    0% { opacity: 0; transform: scale(0) rotate(-30deg); }
    60% { transform: scale(1.2) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Contact Options --- */
.contact-options {
    margin-top: 28px;
    margin-bottom: 36px;
}

.contact-option-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-option-btn:hover {
    border-color: var(--accent-border-strong);
    background: var(--accent-fill);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-option-btn:hover .contact-option-icon {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-border-strong);
}

.contact-option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-option-btn div:nth-child(2) {
    flex: 1;
}

.contact-option-btn strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-option-btn span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-option-btn > svg:last-child {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-option-btn:hover > svg:last-child {
    transform: translateX(4px);
    color: var(--accent-2);
}

.contact-divider-text {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 20px;
    position: relative;
}

.contact-divider-text::before,
.contact-divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 80px);
    height: 1px;
    background: var(--border);
}

.contact-divider-text::before { left: 0; }
.contact-divider-text::after { right: 0; }

/* --- Lead Magnet --- */
.lead-magnet {
    padding: 40px 0 80px;
    position: relative;
    z-index: 1;
}

.lead-magnet-card {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.lead-magnet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.lead-magnet-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 16px;
    margin-bottom: 12px;
}

.lead-magnet-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.lead-magnet-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.lead-magnet-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lead-magnet-feature svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* Document mockup */
.lead-magnet-preview {
    display: flex;
    justify-content: center;
}

.lead-magnet-mockup {
    width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: mockupFloat 4s ease-in-out infinite;
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mockup-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.mockup-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.mockup-bar span:first-child { background: rgba(239, 68, 68, 0.5); }
.mockup-bar span:nth-child(2) { background: rgba(234, 179, 8, 0.5); }
.mockup-bar span:nth-child(3) { background: rgba(34, 197, 94, 0.5); }

.mockup-content {
    padding: 24px 20px;
}

.mockup-line {
    height: 8px;
    border-radius: 4px;
    background: var(--input-bg);
    margin-bottom: 10px;
}

.mockup-line.w-80 { width: 80%; }
.mockup-line.w-70 { width: 70%; }
.mockup-line.w-60 { width: 60%; }
.mockup-line.w-50 { width: 50%; }
.mockup-line.w-40 { width: 40%; }

.mockup-spacer { height: 16px; }

.mockup-stat {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

/* --- CTA Actions --- */
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    padding: 64px 48px;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

/* Animated gradient border */
.cta-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(108,92,231,0.3), rgba(168,85,247,0.1), rgba(6,182,212,0.3), rgba(168,85,247,0.1));
    background-size: 300% 300%;
    animation: borderGradient 6s ease-in-out infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    z-index: 1;
}

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

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
    position: relative;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    position: relative;
}

.cta-content .btn {
    position: relative;
}

/* --- FAQ Section --- */
.faq {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.open {
    border-color: var(--accent-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== LIGHT THEME COMPONENT OVERRIDES ===== */

/* Transition for theme switch */
html[data-theme] body,
html[data-theme] .navbar,
html[data-theme] .hero,
html[data-theme] .service-card,
html[data-theme] .case-study,
html[data-theme] .value,
html[data-theme] .music-player,
html[data-theme] .fuel-section,
html[data-theme] .contact-form,
html[data-theme] .faq-item {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] body {
    background-color: var(--bg);
    color: var(--text);
}

/* Navbar */
[data-theme="light"] .navbar.scrolled {
    background: var(--nav-bg);
    border-color: var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .nav-link { color: var(--text-secondary); }
[data-theme="light"] .nav-link:hover { color: var(--text); }
[data-theme="light"] .nav-cta { border-color: var(--accent-border); }

/* Hero grid */
[data-theme="light"] .hero-grid-bg {
    display: none;
}

[data-theme="light"] .hero-glow-1 { background: rgba(108, 92, 231, 0.06); }
[data-theme="light"] .hero-glow-2 { background: rgba(6, 182, 212, 0.04); }

/* Badge */
[data-theme="light"] .hero-badge {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

/* Buttons */
[data-theme="light"] .btn-primary {
    box-shadow: 0 2px 12px var(--shadow-accent);
}
[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 4px 24px rgba(147, 51, 234, 0.2);
}
[data-theme="light"] .btn-ghost {
    border-color: var(--border);
    color: var(--text-secondary);
}
[data-theme="light"] .btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--card-hover);
}

/* Tech items */
[data-theme="light"] .tech-item { color: var(--text-muted); }
[data-theme="light"] .tech-item:hover {
    color: var(--accent-2);
    border-color: var(--accent-border);
    background: var(--accent-fill);
    box-shadow: 0 2px 12px var(--shadow-accent);
}

/* Service cards */
[data-theme="light"] .service-card {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 1px 3px var(--shadow-md);
}
[data-theme="light"] .service-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 4px 20px var(--shadow-accent);
}

/* Case study */
[data-theme="light"] .case-study {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 1px 3px var(--shadow-md);
}
[data-theme="light"] .case-study-timeline {
    background: var(--bg);
    border-color: var(--border);
}

/* Process steps */
[data-theme="light"] .process-step {
    background: var(--surface);
    border-color: var(--border);
}
[data-theme="light"] .process-step:hover {
    border-color: var(--accent-border);
}
[data-theme="light"] .step-number { color: var(--accent-2); }

/* Carousel */
[data-theme="light"] .carousel-slide img {
    box-shadow: 0 8px 40px var(--shadow-md);
}

/* Budget options */
[data-theme="light"] .budget-option span {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
}
[data-theme="light"] .budget-option input:checked + span {
    border-color: var(--accent-border-strong);
    background: var(--accent-fill);
}

/* Testimonials */
[data-theme="light"] .testimonial-card {
    background: var(--surface);
    border-color: var(--border);
}

/* About values */
[data-theme="light"] .value-line { background: var(--gradient); }

/* FAQ */
[data-theme="light"] .faq-item {
    border-color: var(--border);
}
[data-theme="light"] .faq-question { color: var(--text); }
[data-theme="light"] .faq-answer { color: var(--text-secondary); }

/* Contact form */
[data-theme="light"] .contact input,
[data-theme="light"] .contact textarea,
[data-theme="light"] .contact select {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="light"] .contact input:focus,
[data-theme="light"] .contact textarea:focus {
    border-color: var(--accent-border-strong);
    box-shadow: 0 0 0 3px var(--accent-fill);
}
[data-theme="light"] .contact label { color: var(--text-secondary); }

/* Footer */
[data-theme="light"] .footer {
    border-color: var(--border);
}

/* Admin panel embed */
[data-theme="light"] .admin-panel {
    background: var(--admin-bg);
    border-color: var(--border);
}

/* Music player */
[data-theme="light"] .music-player {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 1px 3px var(--shadow-md);
}
[data-theme="light"] .music-player::before {
    background: radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.03) 0%, transparent 60%);
}
[data-theme="light"] .mp-btn {
    border-color: var(--border);
    color: var(--text);
}
[data-theme="light"] .mp-btn:hover {
    border-color: var(--accent-border);
    background: var(--accent-fill);
}
[data-theme="light"] .mp-progress-wrap { background: var(--border); }
[data-theme="light"] .mp-title { color: var(--text); }
[data-theme="light"] .mp-title:hover { color: var(--accent-2); }

/* Fuel section */
[data-theme="light"] .fuel-section {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 1px 3px var(--shadow-md);
}
[data-theme="light"] .fuel-section::before {
    background: radial-gradient(circle at 75% 50%, rgba(147, 51, 234, 0.03) 0%, transparent 50%);
}
[data-theme="light"] .fuel-glow {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.12) 0%, rgba(147, 51, 234, 0.05) 30%, transparent 70%);
}
[data-theme="light"] .fuel-can-wrap {
    filter: drop-shadow(0 0 12px rgba(147, 51, 234, 0.3)) drop-shadow(0 0 35px rgba(147, 51, 234, 0.15)) drop-shadow(0 0 80px rgba(147, 51, 234, 0.1));
}
[data-theme="light"] .fuel-can-shadow {
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.08) 0%, transparent 70%);
}

/* Calendar modal */
[data-theme="light"] .cal-overlay { background: rgba(0, 0, 0, 0.3); }
[data-theme="light"] .cal-modal {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 25px 80px var(--shadow-lg);
}
[data-theme="light"] .cal-day { color: var(--text); }
[data-theme="light"] .cal-day.disabled { color: var(--text-muted); opacity: 0.4; }
[data-theme="light"] .cal-day.selected { background: var(--accent-2); color: #fff; }
[data-theme="light"] .cal-time { border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .cal-time.selected { border-color: var(--accent-2); background: var(--accent-fill); color: var(--accent-2); }
[data-theme="light"] .cal-form input,
[data-theme="light"] .cal-form textarea {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

/* CTA banner */
[data-theme="light"] .cta-banner {
    background: var(--surface);
    border: 1px solid var(--border);
}

/* Gradient text stays gradient in both themes */
[data-theme="light"] .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Preloader */
[data-theme="light"] .preloader { background: var(--bg); }

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border-hover); }

/* Marquee */
[data-theme="light"] .marquee-content span { color: var(--text-muted); }
[data-theme="light"] .marquee-dot { background: var(--accent-2); }

/* Section tags */
[data-theme="light"] .section-tag {
    color: var(--accent-2);
}

/* Dividers */
[data-theme="light"] .section-divider { background: var(--border); }

/* Lead magnet */
[data-theme="light"] .lead-magnet {
    background: var(--surface);
    border-color: var(--border);
}

/* Stat cards */
[data-theme="light"] .case-study-stat {
    border-color: var(--border);
}
[data-theme="light"] .stat-number { color: var(--accent-2); }

/* Feature items */
[data-theme="light"] .feature-item {
    background: var(--bg);
    border-color: var(--border);
}
[data-theme="light"] .feature-item:hover {
    background: var(--surface);
    border-color: var(--accent-border);
}

/* Back to top */
[data-theme="light"] .back-to-top {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
    box-shadow: 0 2px 12px var(--shadow-md);
}

/* Theme toggle button */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--accent-border);
    color: var(--accent-2);
    background: var(--accent-fill);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { transition: opacity 0.3s ease, transform 0.3s ease; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }

/* --- Responsive --- */

/* Tablet landscape */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .about-grid {
        gap: 48px;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .case-study-header {
        padding: 36px 32px 28px;
    }

    .carousel {
        padding: 0 32px 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-values {
        padding-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .services,
    .work,
    .about,
    .contact,
    .process,
    .testimonials,
    .faq {
        padding: 80px 0;
    }

    .testimonials-grid {
        gap: 24px;
    }

    .lead-magnet-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px;
    }

    .lead-magnet-preview {
        order: -1;
    }

    .cta-banner {
        padding: 48px 0;
    }

    .cta-content {
        padding: 48px 32px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .marquee-wrapper {
        margin-bottom: 48px;
    }

    .marquee-content {
        font-size: 2rem;
        gap: 28px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Restore normal cursor on touch devices */
    body,
    *,
    *::before,
    *::after,
    a, button, input, textarea, select, label {
        cursor: auto !important;
    }

    a, button, label, .budget-option, .carousel-btn, .faq-question {
        cursor: pointer !important;
    }

    input, textarea {
        cursor: text !important;
    }

    .cursor, .cursor-follower {
        display: none !important;
    }

    /* GPU acceleration hints for smoother scrolling */
    .service-card,
    .case-study,
    .testimonial-card,
    .process-step,
    .faq-item,
    .value {
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Disable all hover transforms globally on touch */
    .service-card:hover,
    .process-step:hover,
    .testimonial-card:hover,
    .case-study-stat:hover,
    .value:hover,
    .btn:hover,
    .btn-primary:hover,
    .btn-ghost:hover,
    .carousel-slide.active img:hover,
    .faq-question:hover {
        transform: none !important;
        box-shadow: none;
    }

    .service-card:hover .card-icon {
        transform: none;
        filter: none;
    }

    .feature-item:hover {
        transform: none;
        box-shadow: none;
        background: var(--card-hover);
        border-color: var(--border);
        color: var(--text-secondary);
    }

    .feature-item:hover .feature-icon {
        filter: none;
    }

    .card-tags span:hover {
        transform: none;
        box-shadow: none;
        background: transparent;
        border-color: var(--border);
        color: var(--text-muted);
    }

    .tech-item:hover {
        transform: none;
        box-shadow: none;
        background: transparent;
        border-color: transparent;
        color: var(--text-muted);
    }

    .timeline-item:hover .timeline-task {
        padding-left: 12px;
    }

    /* Active/tap states for touch feedback */
    .btn:active {
        transform: scale(0.96) !important;
    }

    .btn-primary:active {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    }

    .service-card {
        transition: transform 0.15s ease, border-color 0.15s ease;
    }

    .service-card:active {
        transform: scale(0.97) !important;
        border-color: var(--accent-border);
    }

    .feature-item:active {
        border-color: var(--accent-border-strong);
        color: var(--accent);
        background: rgba(168, 85, 247, 0.1);
        transform: scale(0.96) !important;
    }

    .feature-item:active .feature-icon {
        filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.5));
        color: var(--accent);
    }

    .card-tags span:active {
        border-color: var(--accent-border-strong);
        color: var(--accent);
        background: rgba(168, 85, 247, 0.1);
        transform: scale(0.95);
    }

    .tech-item:active {
        color: var(--accent);
        background: rgba(168, 85, 247, 0.1);
        border-color: var(--accent-border-strong);
        transform: scale(0.95);
    }

    .process-step:active {
        transform: scale(0.98) !important;
        border-color: var(--accent-border);
    }

    .testimonial-card:active {
        transform: scale(0.98) !important;
        border-color: var(--accent-border);
    }

    .carousel-btn:active {
        background: rgba(168, 85, 247, 0.15);
        border-color: var(--accent-border-strong);
        transform: scale(0.9) !important;
    }

    .lightbox-nav:active {
        background: rgba(168, 85, 247, 0.15);
        border-color: var(--accent-border-strong);
        transform: scale(0.92) !important;
    }

    .budget-option span {
        transition: all 0.15s ease;
    }

    .budget-option:active span {
        transform: scale(0.95);
        border-color: var(--accent-border-strong);
    }

    .value:active {
        border-color: var(--accent-border-strong);
        background: var(--accent-fill);
        transform: scale(0.98) !important;
    }

    .contact-form .btn:active {
        transform: scale(0.97) !important;
    }

    .footer-links a:active {
        color: var(--accent-2);
    }

    /* ----- NAV ----- */
    .navbar {
        padding: 14px 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        padding: 10px;
        margin: -10px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(5, 5, 7, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 80px 32px;
        border-left: none;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.98);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-link {
        font-size: 1.4rem;
        font-family: var(--font-display);
        font-weight: 600;
        padding: 14px 24px;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-radius: var(--radius);
        transition: background 0.2s ease;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .nav-link:active {
        background: var(--accent-soft);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        font-size: 1.1rem;
        padding: 16px 36px;
        margin-top: 16px;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        -webkit-background-clip: unset;
        background: var(--gradient);
        color: white;
        border: none;
        border-radius: 100px;
        min-height: 52px;
    }

    .nav-cta:active {
        background: var(--gradient) !important;
        transform: scale(0.96) !important;
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* ----- HERO ----- */
    .hero {
        min-height: auto;
        padding: 100px 20px 48px;
        overflow: hidden;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
        overflow: hidden;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3.2rem);
        padding: 0 4px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
        max-width: 100%;
        padding: 0 8px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 8px 16px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 48px;
    }

    .btn {
        justify-content: center;
        padding: 16px 28px;
        font-size: 1rem;
        min-height: 52px;
        -webkit-tap-highlight-color: transparent;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .stat {
        min-width: 80px;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* ----- SECTIONS ----- */
    .services,
    .work,
    .about,
    .contact,
    .process,
    .testimonials,
    .faq {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    /* ----- PROCESS ----- */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .process-step {
        padding: 20px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0 16px;
        align-items: center;
    }

    .process-number {
        font-size: 1.8rem;
        margin-bottom: 0;
        grid-row: 1 / 3;
    }

    .process-line {
        display: none;
    }

    .process-step h3 {
        font-size: 1.05rem;
        margin-bottom: 2px;
    }

    .process-step p {
        font-size: 0.88rem;
        grid-column: 2;
        line-height: 1.6;
    }

    /* ----- SERVICE CARDS ----- */
    .service-card {
        padding: 24px;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .card-number {
        margin-bottom: 12px;
    }

    .card-icon {
        margin-bottom: 14px;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }

    /* ----- CASE STUDY ----- */
    .case-study-header {
        padding: 24px 20px;
    }

    .case-study-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .case-study-desc {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .case-study-stat {
        flex-direction: column;
        gap: 4px;
        padding: 16px 20px;
    }

    .case-stat-number {
        font-size: 1.4rem;
    }

    .case-stat-label {
        font-size: 0.88rem;
    }

    .case-study-timeline {
        padding: 24px 20px;
    }

    .timeline-items {
        gap: 0;
        position: relative;
        padding-left: 80px;
    }

    .timeline-items::before {
        content: '';
        position: absolute;
        left: 72px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: var(--border);
        border-radius: 2px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 2px;
        padding: 12px 0 12px 20px;
        position: relative;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -4px;
        top: 18px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent-2);
        border: 2px solid var(--bg-elevated);
        box-shadow: 0 0 0 2px var(--accent-2);
        z-index: 1;
    }

    .timeline-weeks {
        width: auto;
        text-align: left;
        font-size: 0.75rem;
        position: absolute;
        left: -68px;
        top: 14px;
    }

    .timeline-task {
        font-size: 0.88rem;
        padding-left: 0;
        border-left: none;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    .timeline-item:hover .timeline-task {
        padding-left: 0;
        border-left: none;
    }

    .case-study-features {
        gap: 8px;
        margin-top: 20px;
    }

    .feature-item {
        padding: 8px 12px;
        font-size: 0.82rem;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Budget & status pills */
    .work-category {
        display: block;
        margin-bottom: 6px;
    }

    .work-budget {
        display: inline-block;
        margin-left: 0;
        margin-top: 0;
    }

    .work-status {
        margin-left: 6px;
        margin-top: 0;
    }

    .case-study-link {
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* ----- CAROUSEL ----- */
    .carousel {
        padding: 0 20px 24px;
    }

    .carousel-controls {
        gap: 14px;
        padding-top: 14px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
    }

    .carousel-label {
        font-size: 0.82rem;
        margin-top: 8px;
    }

    .carousel-progress {
        margin-top: 12px;
    }

    /* Swipe hint animation on first carousel */
    .carousel-track {
        -webkit-overflow-scrolling: touch;
    }

    /* ----- ADMIN PANEL MOBILE ----- */
    .admin-iframe-wrap {
        display: none;
    }

    .admin-mobile-link {
        display: flex;
    }

    .admin-body {
        flex-direction: column;
        min-height: auto;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        max-height: 340px;
        padding: 14px;
    }

    .admin-bottom-tabs {
        display: flex;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .admin-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-kanban {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-tiers {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-payout-summary {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .admin-chart-bars {
        height: 60px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        font-size: 0.68rem;
    }

    .admin-cal-cell {
        min-height: 40px;
        padding: 6px 2px;
    }

    /* ----- TESTIMONIALS ----- */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.82rem;
    }

    /* ----- CTA BANNER ----- */
    .cta-banner {
        padding: 24px 0;
    }

    .cta-content {
        padding: 36px 24px;
    }

    .cta-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .cta-subtitle {
        font-size: 0.92rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* ----- LEAD MAGNET ----- */
    .lead-magnet-card {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 28px;
    }

    .lead-magnet-preview {
        order: -1;
    }

    .lead-magnet-mockup {
        width: 200px;
    }

    .lead-magnet-title {
        font-size: 1.25rem;
    }

    .lead-magnet-desc {
        font-size: 0.9rem;
    }

    .lead-magnet-feature {
        font-size: 0.88rem;
    }

    /* ----- MARQUEE ----- */
    .marquee-content {
        font-size: 1.5rem;
        gap: 20px;
        padding-right: 20px;
    }

    .marquee-dot {
        width: 7px;
        height: 7px;
    }

    .marquee-wrapper {
        margin-bottom: 36px;
        padding: 14px 0;
    }

    /* ----- ABOUT ----- */
    .about-text p {
        font-size: 0.95rem;
    }

    .about-values {
        gap: 12px;
    }

    .value {
        padding: 16px 16px 16px 20px;
        background: var(--subtle-fill);
        border-radius: var(--radius);
        border: 1px solid var(--border);
        transition: transform 0.15s ease, border-color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .value-line {
        border-radius: 2px 0 0 2px;
    }

    .value h4 {
        font-size: 1rem;
    }

    .value p {
        font-size: 0.88rem;
    }

    /* ----- CONTACT ----- */
    .contact-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .contact-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .contact-option-btn {
        padding: 16px 20px;
        gap: 12px;
        min-height: 64px;
        -webkit-tap-highlight-color: transparent;
    }

    .contact-option-icon {
        width: 44px;
        height: 44px;
    }

    .contact-option-btn strong {
        font-size: 0.95rem;
    }

    .contact-option-btn:active {
        transform: scale(0.98) !important;
        border-color: var(--accent-border-strong);
    }

    .contact-divider-text {
        font-size: 0.82rem;
    }

    .contact-divider-text::before,
    .contact-divider-text::after {
        width: calc(50% - 60px);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group label {
        font-size: 0.88rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 16px; /* prevents iOS zoom on focus */
        border-radius: var(--radius);
    }

    .budget-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .budget-option span {
        padding: 14px 8px;
        font-size: 0.85rem;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ----- FAQ ----- */
    .faq-question {
        padding: 18px 20px;
        font-size: 0.95rem;
        min-height: 52px;
        -webkit-tap-highlight-color: transparent;
    }

    .faq-answer p {
        padding: 0 20px 18px;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .faq-icon {
        flex-shrink: 0;
    }

    /* ----- FOOTER ----- */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-links a {
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }

    /* ----- BACK TO TOP ----- */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    /* ----- PERFORMANCE ----- */
    .hero-glow {
        filter: blur(60px);
    }

    .hero-glow-1 {
        width: 250px;
        height: 250px;
    }

    .hero-glow-2 {
        width: 200px;
        height: 200px;
    }

    .hero-grid-bg {
        background-size: 40px 40px;
    }

    .placeholder-orb {
        filter: blur(30px);
        width: 120px;
        height: 120px;
    }

    /* Reduce gradient animation complexity on mobile */
    .gradient-text {
        animation-duration: 8s;
    }

    /* Reveal — smaller travel distance for snappier feel */
    .reveal {
        transform: translateY(16px);
    }

    /* ----- MOBILE DYNAMIC BACKGROUND ----- */

    /* Full-page subtle grid that extends beyond hero */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
        z-index: 0;
        mask-image: radial-gradient(ellipse 120% 80% at 50% 50%, rgba(0,0,0,0.6), transparent);
        -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 50%, rgba(0,0,0,0.6), transparent);
    }

    /* Floating background orbs — fixed so they follow scroll */
    .mobile-bg-orbs {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
    }

    .mobile-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(70px);
        will-change: transform;
    }

    .mobile-orb-1 {
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
        top: -80px;
        left: -60px;
        animation: mobileOrbDrift1 10s ease-in-out infinite;
    }

    .mobile-orb-2 {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.13) 0%, transparent 70%);
        top: 35%;
        right: -100px;
        animation: mobileOrbDrift2 13s ease-in-out infinite;
    }

    .mobile-orb-3 {
        width: 280px;
        height: 280px;
        background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
        bottom: 15%;
        left: -50px;
        animation: mobileOrbDrift3 16s ease-in-out infinite;
    }

    @keyframes mobileOrbDrift1 {
        0%, 100% { transform: translate(0, 0) scale(1); }
        25% { transform: translate(50px, 80px) scale(1.05); }
        50% { transform: translate(-30px, 140px) scale(0.95); }
        75% { transform: translate(40px, 50px) scale(1.08); }
    }

    @keyframes mobileOrbDrift2 {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(-60px, -50px) scale(1.1); }
        66% { transform: translate(30px, 60px) scale(0.92); }
    }

    @keyframes mobileOrbDrift3 {
        0%, 100% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(70px, -40px) scale(1.12); }
    }

    /* ----- MOBILE ANIMATIONS ----- */

    /* Staggered reveal for cards on scroll */
    .service-card .reveal,
    .services-grid .service-card {
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .services-grid .service-card:nth-child(1) { transition-delay: 0s; }
    .services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
    .services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
    .services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }
    .services-grid .service-card:nth-child(5) { transition-delay: 0.32s; }
    .services-grid .service-card:nth-child(6) { transition-delay: 0.40s; }

    /* Floating animation for hero badge */
    @keyframes mobileFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }

    .hero-badge {
        animation: mobileFloat 3s ease-in-out infinite;
    }

    /* Subtle breathing glow on service cards after reveal */
    @keyframes mobileBreathe {
        0%, 100% { border-color: var(--border); }
        50% { border-color: var(--accent-border); }
    }

    .service-card.reveal.visible {
        animation: mobileBreathe 4s ease-in-out infinite;
        animation-delay: calc(var(--card-index, 0) * 0.5s);
    }

    /* Pulsing dot on status badge */
    @keyframes mobilePulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(1.4); }
    }

    .work-status::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        background: #10b981;
        border-radius: 50%;
        margin-right: 6px;
        animation: mobilePulse 2s ease-in-out infinite;
    }

    /* CTA button — enhanced glow pulse on mobile */
    .cta-content .btn-primary {
        animation: btnGradientShift 3s ease-in-out infinite, mobileCtaBtnGlow 2.5s ease-in-out infinite;
    }

    @keyframes mobileCtaBtnGlow {
        0%, 100% { box-shadow: 0 0 30px rgba(108, 92, 231, 0.2); }
        50% { box-shadow: 0 0 45px rgba(168, 85, 247, 0.4), 0 0 80px rgba(108, 92, 231, 0.15); }
    }

    /* Gradient border glow on case study card */
    @keyframes mobileGradientBorder {
        0%, 100% { border-color: rgba(168, 85, 247, 0.15); }
        33% { border-color: rgba(99, 102, 241, 0.25); }
        66% { border-color: var(--accent-border); }
    }

    .case-study-card {
        animation: mobileGradientBorder 6s ease-in-out infinite;
    }

    /* Subtle float for testimonial cards */
    @keyframes mobileCardFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-4px); }
    }

    .testimonial-card:nth-child(odd) {
        animation: mobileCardFloat 5s ease-in-out infinite;
    }

    .testimonial-card:nth-child(even) {
        animation: mobileCardFloat 5s ease-in-out infinite 1.5s;
    }

    /* Process step number glow */
    @keyframes mobileNumberGlow {
        0%, 100% { text-shadow: none; }
        50% { text-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
    }

    .process-number {
        animation: mobileNumberGlow 3s ease-in-out infinite;
    }

    .process-step:nth-child(1) .process-number { animation-delay: 0s; }
    .process-step:nth-child(2) .process-number { animation-delay: 0.5s; }
    .process-step:nth-child(3) .process-number { animation-delay: 1s; }
    .process-step:nth-child(4) .process-number { animation-delay: 1.5s; }

    /* Stat numbers shimmer after counting */
    @keyframes mobileStatShine {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; text-shadow: 0 0 15px rgba(168, 85, 247, 0.5); }
    }

    .case-stat-number {
        animation: mobileStatShine 3s ease-in-out infinite 2s;
    }

    /* Value cards accent line animation */
    .value-line {
        animation: valueLine 2.5s ease-in-out infinite;
    }

    /* Section headers — slide in from left on mobile */
    .section-header.reveal {
        transform: translateX(-20px) translateY(0);
    }

    .section-header.reveal.visible {
        transform: translateX(0) translateY(0);
    }

    /* Hero stats count-up subtle pulse */
    @keyframes mobileStatPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }

    .hero-stat {
        animation: mobileStatPulse 4s ease-in-out infinite;
    }

    .hero-stat:nth-child(1) { animation-delay: 0s; }
    .hero-stat:nth-child(2) { animation-delay: 0.8s; }
    .hero-stat:nth-child(3) { animation-delay: 1.6s; }

    /* Scroll indicator enhanced bounce */
    .scroll-indicator {
        animation: scrollDown 1.5s ease-in-out infinite;
    }

    /* FAQ icon rotation on open */
    .faq-item.open .faq-icon {
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* CTA section background glow pulse */
    @keyframes mobileCtaGlow {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.6; }
    }

    .cta-content::before {
        animation: mobileCtaGlow 4s ease-in-out infinite;
    }

    /* Back-to-top button entrance */
    .back-to-top {
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: scale(0.8);
    }

    .back-to-top.visible {
        transform: scale(1);
    }

    /* ===== FEATURE 1: Scroll Progress Bar ===== */
    .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        z-index: 1001;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .scroll-progress.visible {
        opacity: 1;
    }

    .scroll-progress-bar {
        height: 100%;
        background: var(--gradient);
        transform-origin: left;
        transform: scaleX(0);
        will-change: transform;
    }

    /* ===== FEATURE 2: Section Divider Lines ===== */
    .services,
    .process,
    .work,
    .about,
    .cta-banner,
    .faq,
    .contact {
        position: relative;
    }

    .services::before,
    .process::before,
    .work::before,
    .about::before,
    .faq::before,
    .contact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 5%;
        right: 5%;
        height: 1px;
        background: var(--gradient);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0.4;
    }

    .services.section-in-view::before,
    .process.section-in-view::before,
    .work.section-in-view::before,
    .about.section-in-view::before,
    .faq.section-in-view::before,
    .contact.section-in-view::before {
        transform: scaleX(1);
    }

    /* ===== FEATURE 3: Section Tag Underline Reveal ===== */
    .section-tag {
        position: relative;
        transition: color 0.5s ease 0.2s;
    }

    .section-tag::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 16px;
        right: 16px;
        height: 1px;
        background: var(--gradient);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    }

    .section-header.reveal.visible .section-tag::after {
        transform: scaleX(1);
    }

    /* ===== FEATURE 4: Text Gradient Wipe ===== */
    .section-title .gradient-text {
        background-size: 200% 100%;
        background-position: 100% 0;
        transition: background-position 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    }

    .section-header.reveal.visible .gradient-text {
        background-position: 0% 0;
    }

    /* ===== FEATURE 5: Staggered Tag Cascade ===== */
    .service-card .card-tags span {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-card.reveal.visible .card-tags span {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card.reveal.visible .card-tags span:nth-child(1) { transition-delay: 0.4s; }
    .service-card.reveal.visible .card-tags span:nth-child(2) { transition-delay: 0.5s; }
    .service-card.reveal.visible .card-tags span:nth-child(3) { transition-delay: 0.6s; }
    .service-card.reveal.visible .card-tags span:nth-child(4) { transition-delay: 0.7s; }

    /* ===== FEATURE 6: Timeline Progress Line ===== */
    .timeline-items {
        position: relative;
    }

    .timeline-items::before {
        content: '';
        position: absolute;
        left: 30px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0.3;
    }

    .timeline-items.timeline-animate::before {
        transform: scaleY(1);
    }

    .timeline-items .timeline-item {
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .timeline-items.timeline-animate .timeline-item:nth-child(1) { transition-delay: 0.15s; }
    .timeline-items.timeline-animate .timeline-item:nth-child(2) { transition-delay: 0.35s; }
    .timeline-items.timeline-animate .timeline-item:nth-child(3) { transition-delay: 0.55s; }
    .timeline-items.timeline-animate .timeline-item:nth-child(4) { transition-delay: 0.75s; }
    .timeline-items.timeline-animate .timeline-item:nth-child(5) { transition-delay: 0.95s; }
    .timeline-items.timeline-animate .timeline-item:nth-child(6) { transition-delay: 1.15s; }

    /* ===== FEATURE 7: Process Step Snap Pulse ===== */
    @keyframes snapPulse {
        0% { transform: scale(1); border-color: var(--border); }
        40% { transform: scale(1.02); border-color: rgba(168, 85, 247, 0.35); }
        100% { transform: scale(1); border-color: var(--border); }
    }

    .process-step.snap-pulse {
        animation: snapPulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    /* ===== FEATURE 8: Contact Form Focus Glow ===== */
    .form-group {
        position: relative;
    }

    .form-group::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        right: 50%;
        height: 2px;
        background: var(--gradient);
        border-radius: 1px;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                    right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }

    .form-group:focus-within::after {
        left: 0;
        right: 0;
    }

    .form-group:focus-within label {
        color: var(--accent-2);
        transition: color 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--accent-border-strong);
        box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.08),
                    0 0 30px rgba(168, 85, 247, 0.06);
    }

    /* ===== FEATURE 9: Ambient Section Glow ===== */
    .ambient-glow {
        position: fixed;
        left: 0;
        right: 0;
        height: 500px;
        pointer-events: none;
        z-index: 0;
        will-change: transform;
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        background: radial-gradient(ellipse 100% 100% at 50% 50%,
            rgba(108, 92, 231, 0.06) 0%,
            rgba(168, 85, 247, 0.03) 40%,
            transparent 70%);
        filter: blur(40px);
        top: 0;
    }

    /* ===== FEATURE 10: Odometer Stat Counter ===== */
    .odometer-digit {
        display: inline-block;
        overflow: hidden;
        height: 1.2em;
        vertical-align: top;
        line-height: 1.2;
    }

    .odometer-digit-inner {
        display: block;
        transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .odometer-digit-inner span {
        display: block;
        height: 1.2em;
        line-height: 1.2;
    }

    /* Prevent overscroll bounce background color flash */
    html {
        background: var(--bg);
        overflow-x: hidden;
    }

    /* Lock horizontal scroll and smoother momentum scrolling */
    html, body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }

    /* Remove tap highlight on all interactive elements */
    a, button, input, textarea, select, label, .faq-question, .budget-option {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Small phones (iPhone SE, Galaxy S, etc.) */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 88px 16px 44px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.6rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
        max-width: 100%;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .hero-actions .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .hero-stats {
        gap: 16px;
    }

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

    .marquee-content {
        font-size: 1.2rem;
    }

    /* Service cards */
    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.88rem;
    }

    /* Case study */
    .case-study-header {
        padding: 20px 16px;
    }

    .case-study-title {
        font-size: 1.35rem;
    }

    .case-study-desc {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .case-study-timeline {
        padding: 16px;
    }

    .timeline-heading {
        font-size: 0.95rem;
    }

    .timeline-weeks {
        width: 52px;
        font-size: 0.72rem;
    }

    .timeline-task {
        font-size: 0.82rem;
    }

    .case-study-features {
        gap: 6px;
    }

    .feature-item {
        padding: 6px 10px;
        font-size: 0.78rem;
        gap: 6px;
        min-height: 40px;
    }

    .feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .carousel {
        padding: 0 16px 20px;
    }

    .card-tags {
        gap: 6px;
    }

    .card-tags span {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    /* Process */
    .process-step {
        padding: 16px;
        gap: 0 12px;
    }

    .process-number {
        font-size: 1.5rem;
    }

    .process-step h3 {
        font-size: 1rem;
    }

    .process-step p {
        font-size: 0.85rem;
    }

    /* Values */
    .value {
        padding: 14px 14px 14px 18px;
    }

    .value h4 {
        font-size: 0.95rem;
    }

    .value p {
        font-size: 0.85rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-quote {
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-content {
        padding: 28px 20px;
    }

    .cta-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    /* Lead magnet */
    .lead-magnet-card {
        padding: 20px 16px;
    }

    .lead-magnet-title {
        font-size: 1.15rem;
    }

    /* FAQ */
    .faq-question {
        padding: 16px;
        font-size: 0.9rem;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 0.88rem;
    }

    /* Contact */
    .contact-option-btn {
        padding: 14px 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px;
    }

    .budget-options {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .budget-option span {
        padding: 12px 6px;
        font-size: 0.82rem;
        min-height: 48px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    /* Sections reduce padding */
    .services,
    .work,
    .about,
    .contact,
    .process,
    .testimonials,
    .faq {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 24px;
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .scroll-indicator {
        display: none;
    }

    .preloader {
        display: none;
    }
}

/* Short phones: tighten hero spacing */
@media (max-width: 768px) and (max-height: 700px) {
    .hero {
        padding: 76px 20px 32px;
    }

    .hero-badge {
        margin-bottom: 14px;
        font-size: 0.72rem;
    }

    .hero-title {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .hero-subtitle {
        margin-bottom: 16px;
        font-size: 0.88rem;
    }

    .hero-actions {
        margin-bottom: 20px;
    }

    .hero-actions .btn {
        padding: 12px 24px;
        min-height: 44px;
    }

    .tech-track-inner {
        gap: 16px;
    }

    .tech-item span {
        font-size: 0.75rem;
    }

    .tech-label {
        font-size: 0.65rem;
    }
}

/* Landscape phones */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 72px 24px 32px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .hero-actions {
        flex-direction: row;
        margin-bottom: 20px;
    }

    .hero-actions .btn {
        min-height: 44px;
        padding: 10px 24px;
    }

    .tech-marquee {
        display: none;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 16px;
        padding: 60px 24px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 10px 16px;
    }

    .nav-cta {
        font-size: 0.95rem;
        padding: 10px 24px;
        min-height: 44px;
        margin-top: 8px;
    }
}

/* Safe area for notched phones (Dynamic Island, etc.) */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .nav-links {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .cal-modal {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* --- Selection --- */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}
