/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================
   Light Mode Component Tweaks
   ========================== */
html[data-theme="light"] .cta-button {
    background: var(--neon-red);
    color: #ffffff;
    border-color: var(--neon-red);
}

html[data-theme="light"] .cta-button:hover {
    background: #e02950; /* slightly deeper red on hover */
    border-color: #e02950;
    color: #ffffff;
}

/* Hero text lighter (less heavy) in light mode */
html[data-theme="light"] .hero-title {
    color: #111827; /* gray-900 */
}

html[data-theme="light"] .hero-subtitle {
    color: #4b5563; /* gray-600 */
}

/* Carousel buttons on light backgrounds */
html[data-theme="light"] .carousel-btn {
    background: rgba(255,255,255,0.88);
    border-color: #e5e7eb;
    color: #111827;
}

html[data-theme="light"] .carousel-btn:hover {
    background: var(--neon-red);
    border-color: var(--neon-red);
    color: #ffffff;
}

/* Featured projects (portfolio) card content surface + text */
html[data-theme="light"] .portfolio-content {
    background: rgba(255, 255, 255, 0.82);
    border-top-color: #e5e7eb;
}

html[data-theme="light"] .portfolio-title {
    color: #0a0a0a;
}

html[data-theme="light"] .portfolio-description {
    color: #374151; /* gray-700 */
}

/* Light theme overrides */
html[data-theme="light"] {
    --background: #fafafa;
    --foreground: #0a0a0a;
    --card: #ffffff;
    --card-foreground: #0a0a0a;
    --popover: #ffffff;
    --popover-foreground: #0a0a0a;
    --primary: #0a0a0a;
    --primary-foreground: #ffffff;
    --secondary: #f3f3f3;
    --secondary-foreground: #0a0a0a;
    --muted: #f3f3f3;
    --muted-foreground: #52525b;
    --accent: #f3f3f3;
    --accent-foreground: #0a0a0a;
    --destructive: #b91c1c;
    --destructive-foreground: #ffffff;
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: #0a0a0a;
}

/* Floating Theme Toggle (bottom-left) */
.theme-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1200;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.3);
    border-color: var(--neon-red);
}

.theme-toggle i {
    font-size: 1.2rem;
}

:root {
    /* shadcn/ui inspired Color Palette */
    --background: #0a0a0a;
    --foreground: #ffffff;
    --card: #0f0f0f;
    --card-foreground: #ffffff;
    --popover: #0f0f0f;
    --popover-foreground: #ffffff;
    --primary: #ffffff;
    --primary-foreground: #0a0a0a;
    --secondary: #1a1a1a;
    --secondary-foreground: #ffffff;
    --muted: #1a1a1a;
    --muted-foreground: #a1a1aa;
    --accent: #1a1a1a;
    --accent-foreground: #ffffff;
    --destructive: #7f1d1d;
    --destructive-foreground: #ffffff;
    --border: #27272a;
    --input: #27272a;
    --ring: #ffffff;
    --radius: 0.5rem;
    
    /* Primary Accent (147Studio) */
    --neon-red: #d8214b;        /* primary */
    --neon-coral: #d8214b;      /* unified to primary */
    --accent-red: #d8214b;      /* unified to primary */
    --accent-coral: #d8214b;    /* unified to primary */
    --glow-red: rgba(216, 33, 75, 0.3);
    --glow-coral: rgba(216, 33, 75, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    font-weight: 700;
}

.title-line {
    width: 60px;
    height: 2px;
    background: var(--foreground);
    margin: 0 auto 3rem;
    border-radius: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition-normal);
}

/* Navbar scrolled state handled by JS via class for theme-aware styling */
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Light mode navbar overrides */
html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

html[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
}
/* Brand logo image */
.brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.brand-logo--footer {
    height: 28px;
}

.logo-text {
    color: var(--foreground);
}

.logo-accent {
    color: var(--muted-foreground);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-red);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--glow-red);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--foreground);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* Primary and secondary buttons */
.cta-button,
.submit-button,
button.primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--neon-red);
    color: #ffffff;
    border: 1px solid transparent;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 10px 25px rgba(216, 33, 75, 0.35);
}

.cta-button:hover,
.submit-button:hover,
button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(216, 33, 75, 0.45);
}

.cta-button i,
.submit-button i,
button.primary i { font-size: 0.95rem; }

/* Secondary button style (if used) */
button.secondary,
.button-secondary {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

button.secondary:hover,
.button-secondary:hover {
    background: var(--secondary);
}

/* Ensure form submit buttons inherit primary styling */
.contact-form .submit-button {
    width: auto;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a, #0f0f0f, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.studio-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.35) 0%,
        rgba(10, 10, 10, 0.25) 50%,
        rgba(10, 10, 10, 0.35) 100%
    );
}

/* Light mode: brighten hero overlay and image */
html[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.55) 100%
    );
}

html[data-theme="light"] .studio-bg {
    opacity: 0.55; /* slightly brighter background image in light mode */
}

.hero-background::before {
    /* subtle bokeh overlay */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.12) 0 120px, transparent 130px),
        radial-gradient(circle at 82% 18%, rgba(216, 33, 75, 0.22) 0 110px, transparent 120px),
        radial-gradient(circle at 68% 68%, rgba(255, 255, 255, 0.10) 0 150px, transparent 160px),
        radial-gradient(circle at 28% 78%, rgba(216, 33, 75, 0.18) 0 100px, transparent 110px),
        radial-gradient(circle at 50% 35%, rgba(216, 33, 75, 0.14) 0 130px, transparent 140px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.08) 0 140px, transparent 150px);
    filter: blur(12px);
    opacity: 0.45;
    mix-blend-mode: screen;
    will-change: transform;
    animation: bokehFloat 26s ease-in-out infinite alternate;
}

.hero-background::after {
    /* small moving bokeh orbs */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 22%, rgba(216, 33, 75, 0.35) 0 22px, transparent 24px),
        radial-gradient(circle at 26% 48%, rgba(255, 255, 255, 0.30) 0 16px, transparent 18px),
        radial-gradient(circle at 72% 32%, rgba(216, 33, 75, 0.28) 0 18px, transparent 20px),
        radial-gradient(circle at 84% 66%, rgba(255, 255, 255, 0.25) 0 14px, transparent 16px),
        radial-gradient(circle at 42% 74%, rgba(216, 33, 75, 0.32) 0 20px, transparent 22px),
        radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.22) 0 12px, transparent 14px),
        radial-gradient(circle at 66% 82%, rgba(216, 33, 75, 0.26) 0 16px, transparent 18px),
        radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.22) 0 12px, transparent 14px);
    filter: blur(6px);
    opacity: 0.55;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    animation: bokehTwinkle 18s ease-in-out infinite alternate;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 12s ease-in-out infinite;
    display: none; /* disable red glares in hero */
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--neon-red), var(--accent-coral));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 60px var(--glow-red);
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--neon-coral), var(--accent-red));
    top: 60%;
    right: 10%;
    animation-delay: 4s;
    box-shadow: 0 0 50px var(--glow-coral);
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, var(--accent-red), var(--neon-coral));
    bottom: 20%;
    left: 50%;
    animation-delay: 8s;
    box-shadow: 0 0 40px var(--glow-red);
}

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

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.15;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg); 
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg); 
        opacity: 0.15;
    }
    75% { 
        transform: translateY(-30px) rotate(270deg); 
        opacity: 0.1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Bokeh gentle drift */
@keyframes bokehFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(8px, -10px, 0) scale(1.02);
    }
    100% {
        transform: translate3d(-8px, 10px, 0) scale(1);
    }
}

/* Smaller orbs drift + twinkle */
@keyframes bokehTwinkle {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.45;
    }
    25% {
        transform: translate3d(-10px, 6px, 0) scale(1.03);
        opacity: 0.55;
    }
    50% {
        transform: translate3d(6px, -8px, 0) scale(1.02);
        opacity: 0.65;
    }
    75% {
        transform: translate3d(-6px, -4px, 0) scale(1.01);
        opacity: 0.52;
    }
    100% {
        transform: translate3d(8px, 10px, 0) scale(1);
        opacity: 0.45;
    }
}

/* Floating Particles */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-red);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 8px var(--glow-red);
    display: none; /* disable red glares/particles in hero */
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation: floatParticle 20s ease-in-out infinite;
}

.particle-2 {
    top: 60%;
    right: 25%;
    animation: floatParticle 25s ease-in-out infinite 2s;
}

.particle-3 {
    bottom: 30%;
    left: 30%;
    animation: floatParticle 18s ease-in-out infinite 4s;
}

.particle-4 {
    top: 40%;
    right: 40%;
    animation: floatParticle 22s ease-in-out infinite 6s;
}

.particle-5 {
    bottom: 50%;
    right: 20%;
    animation: floatParticle 28s ease-in-out infinite 8s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) translateX(-10px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-30px) translateX(-30px);
        opacity: 0.6;
    }
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.title-main {
    color: var(--foreground);
}

.title-accent {
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--glow-red);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-button {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--neon-red);
    color: var(--foreground);
    border-color: var(--neon-red);
}

.cta-button i {
    transition: var(--transition-fast);
}

.cta-button:hover i {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-dot {
    width: 4px;
    height: 4px;
    background: var(--foreground);
    border-radius: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* About Section */
.about {
    background: var(--card);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition-normal);
}

.stat-item:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--glow-red);
}

.stat-item:hover .stat-number {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--glow-red);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-foreground);
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    perspective: 1000px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background: var(--card);
    color: var(--foreground);
}

.card-back {
    background: linear-gradient(135deg, var(--neon-red), var(--neon-coral));
    color: var(--foreground);
    transform: rotateY(180deg);
    box-shadow: 0 0 30px var(--glow-red);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--background);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--foreground);
    border: 2px solid var(--border);
    transition: var(--transition-normal);
}

.card-front .service-icon {
    background: var(--background);
    color: var(--neon-red);
    border-color: var(--neon-red);
}

.card-back .service-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--foreground);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    font-weight: 700;
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 1rem;
}

/* Card Back Styles */
.card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    font-weight: 700;
}

.card-back ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    width: 100%;
}

.card-back li {
    color: var(--foreground);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.card-back li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--foreground);
    font-weight: bold;
}



/* Portfolio Section */
.portfolio {
    background: var(--card);
    position: relative;
    overflow: hidden;
}

/* Retro Grid Animation */
.retro-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.grid-line {
    position: absolute;
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--glow-red);
    animation: gridMove 8s ease-in-out infinite;
    opacity: 0.3;
}

.grid-line.horizontal {
    width: 100%;
    height: 2px;
}

.grid-line.vertical {
    width: 2px;
    height: 100%;
}

/* Position horizontal lines */
.grid-line.horizontal:nth-child(1) { top: 15%; animation-delay: 0s; }
.grid-line.horizontal:nth-child(2) { top: 30%; animation-delay: -1.5s; }
.grid-line.horizontal:nth-child(3) { top: 45%; animation-delay: -3s; }
.grid-line.horizontal:nth-child(4) { top: 60%; animation-delay: -4.5s; }
.grid-line.horizontal:nth-child(5) { top: 75%; animation-delay: -6s; }

/* Position vertical lines */
.grid-line.vertical:nth-child(6) { left: 15%; animation-delay: -0.5s; }
.grid-line.vertical:nth-child(7) { left: 25%; animation-delay: -2s; }
.grid-line.vertical:nth-child(8) { left: 35%; animation-delay: -3.5s; }
.grid-line.vertical:nth-child(9) { left: 45%; animation-delay: -5s; }
.grid-line.vertical:nth-child(10) { left: 55%; animation-delay: -6.5s; }
.grid-line.vertical:nth-child(11) { left: 65%; animation-delay: -8s; }
.grid-line.vertical:nth-child(12) { left: 75%; animation-delay: -9.5s; }
.grid-line.vertical:nth-child(13) { left: 85%; animation-delay: -11s; }
.grid-line.vertical:nth-child(14) { left: 95%; animation-delay: -12.5s; }

@keyframes gridMove {
    0% {
        opacity: 0.1;
        transform: scaleX(0.3) scaleY(0.3);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1) scaleY(1);
    }
    100% {
        opacity: 0.1;
        transform: scaleX(0.3) scaleY(0.3);
    }
}

/* Ensure portfolio content stays above grid */
.portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio .section-header {
    position: relative;
    z-index: 1;
}

.portfolio .portfolio-grid {
    position: relative;
    z-index: 1;
}

/* Portfolio Carousel Styles */
.portfolio-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.portfolio-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 500%; /* 5 slides * 100% */
}

.portfolio-slide {
    min-width: 20%; /* 100% / 5 slides */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.portfolio-slide.active {
    opacity: 1;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.8);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--glow-red);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted-foreground);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    opacity: 0.5;
}

.indicator.active {
    background: var(--neon-red);
    opacity: 1;
    box-shadow: 0 0 10px var(--glow-red);
}

.indicator:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

/* Legacy grid styles (keep for fallback) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--glow-red);
}

.portfolio-image {
    height: 220px;
    background: var(--card);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    width: 60px;
    height: 60px;
    background: var(--background);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.portfolio-content {
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    font-weight: 600;
}

.portfolio-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Side-by-side layout for carousel items on larger screens */
@media (min-width: 900px) {
    /* Portfolio carousel: image left, text right */
    .portfolio-item {
        display: grid;
        grid-template-columns: 48% 52%;
        align-items: stretch;
    }
    .portfolio-image {
        height: auto;
        min-height: 280px;
    }
    .portfolio-image .portfolio-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .portfolio-content {
        border-top: none;
        border-left: 1px solid var(--border);
        padding: 1.75rem;
    }

    /* Blog carousel: image left, text right */
    .blog-card {
        display: grid;
        grid-template-columns: 48% 52%;
        align-items: stretch;
    }
    .blog-image {
        height: auto;
        min-height: 240px;
        background: var(--card);
    }
    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .blog-content {
        padding: 1.5rem;
    }
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--card);
    color: var(--foreground);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px var(--glow-red);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--background);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.author-name {
    color: var(--foreground);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--card);
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.contact-info p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-foreground);
}

.contact-item i {
    color: var(--foreground);
    width: 20px;
}

.contact-form {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--foreground);
    box-shadow: 0 0 0 2px var(--ring);
}

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

.submit-button {
    background: var(--foreground);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    color: var(--background);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    border: 1px solid var(--border);
}

.submit-button:hover {
    background: var(--neon-red);
    color: var(--foreground);
    box-shadow: 0 0 20px var(--glow-red);
    border-color: var(--neon-red);
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer-section h4 {
    color: var(--foreground);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--neon-red);
    color: var(--foreground);
    border-color: var(--neon-red);
    box-shadow: 0 0 15px var(--glow-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Toast / Notification (site themed) */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card);
    color: var(--foreground);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 420px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-success {
    border-color: var(--neon-red);
    box-shadow: 0 10px 30px rgba(216, 33, 75, 0.25);
}

.notification-error {
    border-color: var(--destructive);
    box-shadow: 0 10px 30px rgba(127, 29, 29, 0.35);
}

.notification-content i {
    color: var(--neon-red);
}

.notification-error .notification-content i {
    color: var(--destructive);
}

.notification-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    border-radius: var(--radius);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notification-close:hover {
    border-color: var(--neon-red);
    color: var(--foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        padding: 2rem 0;
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li { margin: 1rem 0; }
    
    /* Hero Section */
    .hero {
        padding: 100px 16px 40px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .studio-bg {
        opacity: 0.45;
    }
    
    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(10, 10, 10, 0.35) 0%,
            rgba(10, 10, 10, 0.2) 50%,
            rgba(10, 10, 10, 0.35) 100%
        );
    }
    
    /* Typography */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        height: 260px;
    }
    
    .card-front, .card-back {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .service-title, .card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .card-back li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    /* Portfolio Section */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Portfolio Carousel Mobile */
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
    
    .carousel-indicators {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .portfolio-item {
        margin-bottom: 1rem;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 1.25rem;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
    }
    
    .portfolio-description {
        font-size: 0.9rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-text {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    /* Retro Grid */
    .retro-grid {
        opacity: 0.05;
    }
    
    .grid-line {
        animation-duration: 12s;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .hero {
        padding: 80px 12px 30px;
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Container */
    .container {
        padding: 0 12px;
    }
    
    /* Services */
    .service-card {
        height: 240px;
    }
    
    .card-front, .card-back {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-title, .card-back h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-description {
        font-size: 0.85rem;
    }
    
    .card-back li {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        padding-left: 1.25rem;
    }
    
    /* Portfolio */
    .portfolio-image {
        height: 160px;
    }
    
    /* Portfolio Carousel Small Mobile */
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-btn i {
        font-size: 0.9rem;
    }
    
    .carousel-indicators {
        margin-top: 1rem;
        gap: 0.4rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .author-title {
        font-size: 0.8rem;
    }
    
    /* About */
    .about-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    /* Retro Grid */
    .retro-grid {
        opacity: 0.03;
    }
    
    .grid-line {
        animation-duration: 15s;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.75rem 12px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin: 1rem 0 2rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Service Areas Section */
.service-areas {
    padding: 5rem 0;
    background: var(--card);
    position: relative;
}

.service-areas-intro {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.location-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.location-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.1);
    transform: translateY(-5px);
}

.location-card h3 {
    color: var(--foreground);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.location-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Services Intro */
.services-intro {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Section */
.blog-section {
    margin-top: 3rem;
}

.blog {
    padding: 5rem 0;
    background: var(--background);
    position: relative;
}

.blog-intro {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: none; /* Hidden since we're using carousel now */
}

/* Fallback for when carousel is not loaded */
.blog-grid.fallback {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-fast);
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(255, 0, 102, 0.1);
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

/* Masonry grid for blog */
.blog-masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

.blog-masonry .blog-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
    .blog-masonry { column-count: 2; }
}

@media (max-width: 700px) {
    .blog-masonry { column-count: 1; }
}

.blog-title {
    font-size: 1.2rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.blog-date {
    color: var(--accent);
}

.blog-category {
    background: var(--background);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Contact Intro */
.contact-intro {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Links */
.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Blog Carousel */
.blog-carousel {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;
}

.blog-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
}

.blog-carousel-track .blog-card {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.blog-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.blog-carousel-prev,
.blog-carousel-next {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.blog-carousel-prev:hover,
.blog-carousel-next:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.blog-carousel-prev:disabled,
.blog-carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.blog-carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.blog-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.blog-carousel-indicator.active {
    background: var(--accent);
}

.blog-carousel-indicator:hover {
    background: var(--accent);
    transform: scale(1.2);
}

/* Mobile responsiveness for carousel */
@media (max-width: 768px) {
    .blog-carousel-track .blog-card {
        min-width: 100%;
        width: 100%;
    }
    
    .blog-carousel-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Go Back Link */
.go-back-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.go-back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card);
    color: var(--foreground);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-weight: 500;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.go-back-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 102, 0.2);
}

.go-back-link i {
    font-size: 0.9rem;
}

/* Blog Post Pages */
.blog-post {
    padding: 4rem 0 0;
    background: var(--background);
    min-height: 100vh;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}



.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--accent);
}

.blog-post-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    margin: 0 0 4rem 0;
    overflow: hidden;
}

.blog-post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.8) 50%, var(--background) 100%);
    pointer-events: none;
    z-index: 2;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--foreground);
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 3;
}

.blog-post-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

.blog-post-content ul, 
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--muted-foreground);
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.cta-section {
    background: var(--card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Legal Pages */
.legal-page {
    padding: 4rem 0;
    background: var(--background);
    min-height: 100vh;
}

.legal-page-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.legal-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.legal-page-subtitle {
    font-size: 1rem;
    color: var(--muted-foreground);
    font-style: italic;
}

.legal-page-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--foreground);
    padding: 0 2rem 4rem;
}

.legal-page-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.legal-page-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.legal-page-content p {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

.legal-page-content ul, 
.legal-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--muted-foreground);
}

.legal-page-content li {
    margin-bottom: 0.5rem;
}

.legal-page-content strong {
    color: var(--foreground);
    font-weight: 600;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        min-width: unset;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem 0 1.5rem;
    }
    
    /* Blog Post Responsive */
    .go-back-container {
        top: 1rem;
        left: 1rem;
    }
    
    .go-back-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .blog-post-image {
        height: 50vh;
        min-height: 300px;
    }
    
    .blog-post-image::after {
        height: 150px;
    }
    
    .blog-post-header {
        padding: 0 1rem;
    }
    
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-post-meta {
        gap: 1rem;
    }
    
    .blog-post-content {
        padding: 0 1rem 4rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.4rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 1rem 0;
    }
    
    /* Legal Pages Responsive */
    .legal-page-header {
        padding: 0 1rem;
    }
    
    .legal-page-title {
        font-size: 1.8rem;
    }
    
    .legal-page-content {
        padding: 0 1rem 4rem;
    }
    
    .legal-page-content h2 {
        font-size: 1.4rem;
    }
    
    .legal-page-content h3 {
        font-size: 1.2rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    color: var(--muted-foreground);
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.cookie-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cookie-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-links a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.cookie-btn-accept {
    background: var(--accent);
    color: white;
}

.cookie-btn-accept:hover {
    background: #e6005c;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.cookie-btn-decline:hover {
    background: var(--border);
    color: var(--foreground);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.cookie-btn-settings:hover {
    background: var(--accent);
    color: white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.cookie-settings-content {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1) translateY(0);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.cookie-settings-header h3 {
    margin: 0;
    color: var(--foreground);
    font-size: 1.5rem;
}

.close-settings {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.close-settings:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.cookie-settings-body {
    padding: 1.5rem;
}

.cookie-settings-description {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--foreground);
    font-size: 1.1rem;
}

.cookie-category-info p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: var(--transition-fast);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: var(--neon-red);
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle.disabled .toggle-slider {
    background-color: var(--muted-foreground);
    cursor: not-allowed;
}

.cookie-toggle.disabled .toggle-slider:before {
    background-color: var(--muted);
}

.cookie-settings-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.save-settings,
.accept-all-settings,
.reset-settings {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.save-settings {
    background: var(--neon-red);
    color: white;
}

.save-settings:hover {
    background: #b81a3f;
    transform: translateY(-1px);
}

.accept-all-settings {
    background: transparent;
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.accept-all-settings:hover {
    background: var(--neon-red);
    color: white;
}

.reset-settings {
    background: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.reset-settings:hover {
    background: var(--destructive);
    color: white;
    border-color: var(--destructive);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: whatsapp-bounce 2s infinite;
}

.whatsapp-float a[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--card);
    color: var(--foreground);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--neon-red);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(216, 33, 75, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-float a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--neon-red), #b81a3f);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-float a:hover::before {
    opacity: 1;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(216, 33, 75, 0.6);
}

.whatsapp-float i {
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.whatsapp-float:hover i {
    animation: whatsapp-wiggle 0.5s ease;
}

@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes whatsapp-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(216, 33, 75, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(216, 33, 75, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(216, 33, 75, 0.4);
    }
}

.whatsapp-float a {
    animation: whatsapp-pulse 3s infinite;
}

/* Mobile responsiveness for cookie settings */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-settings-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-settings-header {
        padding: 1rem;
    }
    
    .cookie-settings-body {
        padding: 1rem;
    }
    
    .cookie-settings-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-toggle {
        align-self: flex-start;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
} 

/* Blog Post CTA Section */
.blog-post-cta {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.blog-post-cta h3 {
    color: var(--foreground);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-post-cta p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-post-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--neon-red);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.blog-post-cta .cta-button:hover {
    background: #b81a3f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(216, 33, 75, 0.3);
}

.blog-post-cta .cta-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .blog-post-cta {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .blog-post-cta h3 {
        font-size: 1.3rem;
    }
    
    .blog-post-cta .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==========================
   Light Mode Overrides (final-pass)
   ========================== */
html[data-theme="light"] .hero .cta-button {
    background: var(--neon-red);
    color: #ffffff;
    border-color: var(--neon-red);
}

html[data-theme="light"] .hero .cta-button:hover {
    background: #e02950;
    border-color: #e02950;
    color: #ffffff;
}

html[data-theme="light"] .hero-title { color: #111827; }
html[data-theme="light"] .hero-subtitle { color: #4b5563; }

html[data-theme="light"] .carousel-btn {
    background: rgba(255,255,255,0.9);
    border-color: #e5e7eb;
    color: #111827;
}

html[data-theme="light"] .carousel-btn:hover {
    background: var(--neon-red);
    border-color: var(--neon-red);
    color: #ffffff;
}

html[data-theme="light"] .portfolio-content {
    background: rgba(255,255,255,0.86);
    border-top-color: #e5e7eb;
}

html[data-theme="light"] .portfolio-title { color: #0a0a0a; }
html[data-theme="light"] .portfolio-description { color: #374151; }

/* ==========================
   AI Assistant Modal & Buttons
   ========================== */
.nav-ai-btn,
.footer-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 600;
}
.nav-ai-btn i, .footer-ai-btn i { font-size: 0.95rem; }
.nav-ai-btn:hover, .footer-ai-btn:hover {
  background: var(--secondary);
  border-color: var(--muted);
}
.nav-ai-btn { margin-left: 1rem; }
.footer-ai-btn { margin-top: 0.75rem; }
@media (max-width: 768px) {
  .hide-on-mobile { display: none; }
}

.ai-modal { position: fixed; inset: 0; display: none; z-index: 2000; }
.ai-modal.show { display: block; }
.ai-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.ai-panel {
  position: relative;
  width: min(680px, 92vw);
  max-height: 85vh;
  margin: 6vh auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}
.ai-header { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); background: var(--secondary); }
.ai-header h3 { margin: 0; color: var(--foreground); font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.ai-close { background: transparent; border: 1px solid var(--border); color: var(--foreground); border-radius: 8px; padding: 0.35rem 0.5rem; cursor: pointer; }
.ai-close:hover { background: var(--muted); }

.ai-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem; }
.ai-messages { flex: 1; overflow: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ai-quick { display: flex; justify-content: flex-end; }
.ai-secondary { background: transparent; border: 1px solid var(--border); color: var(--foreground); padding: 0.5rem 0.75rem; border-radius: 8px; cursor: pointer; }
.ai-secondary:hover { background: var(--secondary); }

.ai-input { display: flex; gap: 0.5rem; border-top: 1px solid var(--border); padding-top: 0.5rem; }
.ai-input input { flex: 1; background: var(--secondary); color: var(--foreground); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 0.875rem; }
.ai-send { background: var(--neon-red); color: #fff; border: none; border-radius: 10px; padding: 0 1rem; cursor: pointer; }
.ai-send:hover { background: #b81a3f; }

.msg { max-width: 85%; padding: 0.625rem 0.75rem; border-radius: 12px; line-height: 1.35; font-size: 0.95rem; }
.msg.bot { align-self: flex-start; background: var(--secondary); color: var(--foreground); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--neon-red); color: #fff; border-top-right-radius: 4px; }
.msg small { display: block; opacity: 0.7; margin-top: 0.25rem; font-size: 0.75rem; }

/* Light-specific small tweaks */
html[data-theme="light"] .ai-overlay { background: rgba(0,0,0,0.35); }

/* AI typing indicator */
.ai-typing { display: inline-flex; align-items: center; gap: 0.25rem; }
.ai-typing .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; animation: aiBounce 1.2s infinite ease-in-out; }
.ai-typing .dot:nth-child(2) { animation-delay: 0.15s; }
.ai-typing .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 0.9; }
}