/* ==========================================
   INDRAS MIRROR - COSMIC DARK EDITION
   Palette: cosmic / depth / electric
   Type: Space Grotesk (headings) + Inter (body)
   ========================================== */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Core Palette */
    --bg-primary: #080c14;
    --bg-secondary: #0d1220;
    --bg-card: #111827;
    --bg-elevated: #151d2e;

    /* Text */
    --text-primary: #e4e8f0;
    --text-secondary: #8890a4;
    --text-muted: #5e6678;

    /* Accent: Electric Amber */
    --accent-amber: #f0a030;
    --accent-amber-soft: #f0a030cc;
    --accent-amber-glow: #f0a03040;
    --accent-amber-dim: #f0a03020;

    /* Secondary Accent: Indigo-Violet */
    --accent-indigo: #6366f1;
    --accent-indigo-glow: #6366f140;
    --accent-indigo-dim: #6366f120;

    /* Gradients */
    --gradient-amber: linear-gradient(135deg, #f0a030 0%, #f59e0b 50%, #d97706 100%);
    --gradient-indigo: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #4f46e5 100%);
    --gradient-cosmic: linear-gradient(180deg, #080c14 0%, #0d1220 50%, #080c14 100%);

    /* Radial glows */
    --glow-amber: radial-gradient(circle, rgba(240, 160, 48, 0.15) 0%, transparent 60%);
    --glow-indigo: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);

    /* Borders */
    --border-color: #1a2332;
    --border-hover: #f0a03040;
    --border-indigo: #6366f140;

    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);
    --shadow-amber: 0 0 40px rgba(240, 160, 48, 0.15);
    --shadow-amber-hover: 0 0 80px rgba(240, 160, 48, 0.25);
    --shadow-indigo: 0 0 30px rgba(99, 102, 241, 0.12);

    /* Animation */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Starfield */
    --star-color: rgba(228, 232, 240, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle starfield grain layer */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 10% 15%, var(--star-color), transparent),
        radial-gradient(1px 1px at 25% 35%, var(--star-color), transparent),
        radial-gradient(1.5px 1.5px at 40% 20%, var(--star-color), transparent),
        radial-gradient(1px 1px at 55% 45%, var(--star-color), transparent),
        radial-gradient(1.5px 1.5px at 70% 10%, var(--star-color), transparent),
        radial-gradient(1px 1px at 85% 30%, var(--star-color), transparent),
        radial-gradient(1px 1px at 15% 60%, var(--star-color), transparent),
        radial-gradient(1.5px 1.5px at 30% 75%, var(--star-color), transparent),
        radial-gradient(1px 1px at 50% 65%, var(--star-color), transparent),
        radial-gradient(1px 1px at 65% 80%, var(--star-color), transparent),
        radial-gradient(1.5px 1.5px at 80% 55%, var(--star-color), transparent),
        radial-gradient(1px 1px at 90% 70%, var(--star-color), transparent),
        radial-gradient(1px 1px at 5% 85%, var(--star-color), transparent),
        radial-gradient(1.5px 1.5px at 45% 90%, var(--star-color), transparent),
        radial-gradient(1px 1px at 75% 95%, var(--star-color), transparent),
        radial-gradient(1px 1px at 20% 10%, var(--star-color), transparent),
        radial-gradient(1px 1px at 60% 5%, var(--star-color), transparent),
        radial-gradient(1.5px 1.5px at 95% 15%, var(--star-color), transparent);
    opacity: 0.6;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 700;
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 500;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-indigo);
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

a:hover {
    color: var(--accent-amber);
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 12, 20, 0.82);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s var(--ease-smooth);
}

.header.scrolled {
    background: rgba(8, 12, 20, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo img {
    height: 42px;
    filter: brightness(1.1);
    transition: all 0.3s var(--ease-smooth);
}

.logo:hover img {
    filter: brightness(1.2) drop-shadow(0 0 12px var(--accent-amber-glow));
    transform: scale(1.04);
}

/* Desktop Nav */
.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 6px 0;
    position: relative;
    transition: all 0.3s var(--ease-smooth);
}

.nav a:hover,
.nav a.active {
    color: var(--text-primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-amber);
    transition: all 0.3s var(--ease-smooth);
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 0 8px var(--accent-amber-glow);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.desktop-nav {
    display: flex;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s var(--ease-smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(30px) saturate(200%);
    z-index: 999;
    padding: 100px 30px 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-smooth);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.mobile-nav a {
    display: block;
    padding: 16px 20px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 6px;
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-nav.active a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.14s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.22s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.26s; }
.mobile-nav.active a:nth-child(6) { transition-delay: 0.30s; }
.mobile-nav.active a:nth-child(7) { transition-delay: 0.34s; }
.mobile-nav.active a:nth-child(8) { transition-delay: 0.38s; }
.mobile-nav.active a:nth-child(9) { transition-delay: 0.42s; }
.mobile-nav.active a:nth-child(10) { transition-delay: 0.46s; }

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--text-primary);
    background: rgba(240, 160, 48, 0.08);
    border-color: var(--accent-amber);
    transform: translateX(8px);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Cosmic ambient glow */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160vmax;
    height: 160vmax;
    background:
        radial-gradient(circle at 25% 25%, rgba(240, 160, 48, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(240, 160, 48, 0.04) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    animation: heroPulse 12s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.06); }
}

/* Fractal mandala */
.fractal-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70vmin;
    height: 70vmin;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    pointer-events: none;
}

.fractal {
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        var(--accent-amber) 0deg,
        transparent 45deg,
        var(--accent-indigo) 90deg,
        transparent 135deg,
        var(--accent-amber) 180deg,
        transparent 225deg,
        var(--accent-indigo) 270deg,
        transparent 315deg,
        var(--accent-amber) 360deg
    );
    border-radius: 50%;
    filter: blur(50px);
    animation: rotate-fractal 30s linear infinite;
}

@keyframes rotate-fractal {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 60px var(--accent-amber-glow), 0 0 120px rgba(240, 160, 48, 0.1);
    animation: heroFadeIn 1s var(--ease-expo) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    animation: heroFadeIn 1s var(--ease-expo) 0.25s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: heroFadeIn 1s var(--ease-expo) 0.45s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-small {
    min-height: 45vh;
    padding: 120px 0 60px;
}

.hero-small h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 16px 38px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-smooth);
    z-index: -1;
    border-radius: 6px;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--accent-amber);
    color: #080c14;
    font-weight: 700;
    box-shadow: 0 0 30px var(--accent-amber-glow), 0 4px 20px rgba(240, 160, 48, 0.3);
}

.btn-primary:hover {
    background: #f59e0b;
    color: #080c14;
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--accent-amber-glow), 0 8px 30px rgba(240, 160, 48, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-amber-dim);
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 100px 0;
    position: relative;
}

.section > .container > .content-block h2:first-child,
.section > .container > h2:first-child {
    margin-top: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-smooth);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-smooth) 0.1s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-light {
    background: var(--bg-secondary);
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* ==========================================
   CAPABILITY CONSTELLATION (Signature Move)
   ========================================== */

.constellation {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 60px auto 80px;
    min-height: 520px;
}

.constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.constellation-stars {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px 20px;
    justify-items: center;
    align-items: center;
    min-height: 500px;
}

.constellation-star {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    z-index: 2;
    text-align: center;
}

.constellation-dot {
    width: 14px;
    height: 14px;
    background: var(--accent-amber);
    border-radius: 50%;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 0 0 20px var(--accent-amber-glow), 0 0 40px rgba(240, 160, 48, 0.2);
}

.constellation-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(240, 160, 48, 0.2);
    transition: all 0.4s var(--ease-smooth);
}

.constellation-dot::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid rgba(240, 160, 48, 0.08);
    transition: all 0.4s var(--ease-smooth);
}

.constellation-star:hover .constellation-dot {
    box-shadow: 0 0 40px var(--accent-amber-glow), 0 0 80px rgba(240, 160, 48, 0.3);
    transform: scale(1.4);
}

.constellation-star:hover .constellation-dot::before {
    inset: -12px;
    border-color: rgba(240, 160, 48, 0.4);
}

.constellation-star:hover .constellation-dot::after {
    inset: -22px;
    border-color: rgba(240, 160, 48, 0.15);
}

.constellation-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
}

.constellation-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    max-width: 180px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ease-smooth);
}

.constellation-star:hover .constellation-desc {
    opacity: 1;
    transform: translateY(0);
}

.constellation-star:hover .constellation-label {
    color: var(--accent-amber);
}

@media (max-width: 768px) {
    .constellation-stars {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 30px 16px;
        min-height: 420px;
    }

    .constellation {
        min-height: 440px;
    }
}

@media (max-width: 480px) {
    .constellation-stars {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 10px;
    }
}

/* ==========================================
   CARDS GRID
   ========================================== */

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 38px 32px;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(240, 160, 48, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-amber);
    transform: translateY(-6px);
}

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

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

.card h3 {
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 1.15rem;
}

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

/* Staggered animation */
.grid .card:nth-child(1) { transition-delay: 0.08s; }
.grid .card:nth-child(2) { transition-delay: 0.16s; }
.grid .card:nth-child(3) { transition-delay: 0.24s; }
.grid .card:nth-child(4) { transition-delay: 0.32s; }
.grid .card:nth-child(5) { transition-delay: 0.40s; }
.grid .card:nth-child(6) { transition-delay: 0.48s; }

/* ===== Card Link ===== */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 8px;
    transition: all 0.3s var(--ease-smooth);
}

.card-link::after {
    content: '\2192';
    transition: transform 0.3s var(--ease-smooth);
}

.card:hover .card-link::after {
    transform: translateX(4px);
}

/* ==========================================
   GALLERY & LIGHTBOX
   ========================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    opacity: 0;
    transform: scale(0.92);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(8, 12, 20, 0.7) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.gallery-item::after {
    content: 'View';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--accent-amber);
    color: #080c14;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: all 0.3s var(--ease-smooth);
    z-index: 2;
}

.gallery-item:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 0 30px var(--accent-amber-dim);
    transform: scale(1.03);
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: translateX(-50%) translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.6s var(--ease-smooth);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-grid .gallery-item:nth-child(1) { transition-delay: 0.08s; }
.gallery-grid .gallery-item:nth-child(2) { transition-delay: 0.13s; }
.gallery-grid .gallery-item:nth-child(3) { transition-delay: 0.18s; }
.gallery-grid .gallery-item:nth-child(4) { transition-delay: 0.23s; }
.gallery-grid .gallery-item:nth-child(5) { transition-delay: 0.28s; }
.gallery-grid .gallery-item:nth-child(6) { transition-delay: 0.33s; }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 20, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-smooth);
    backdrop-filter: blur(10px);
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.4s var(--ease-smooth);
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: -20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--accent-amber);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(240, 160, 48, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
}

.lightbox:hover .lightbox-nav {
    opacity: 1;
}

.lightbox-nav:hover {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: #080c14;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* ==========================================
   BLOG CARDS
   ========================================== */

.blog-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.4s var(--ease-smooth);
}

.blog-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-amber);
    transform: translateY(-4px);
}

.blog-card-full {
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-indigo);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.04) 100%);
}

.blog-card h2,
.blog-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-full h2 {
    font-size: 1.3rem;
}

.blog-card h3 {
    font-size: 1.2rem;
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.blog-card-tag {
    background: var(--accent-amber);
    color: #080c14;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-card-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.blog-card-tags span {
    background: var(--bg-elevated);
    color: var(--accent-indigo);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-card-read {
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Blog Subscribe */
.blog-subscribe {
    background: linear-gradient(135deg, rgba(240, 160, 48, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 48px 36px;
    margin: 50px 0;
    text-align: center;
}

.blog-subscribe h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.blog-subscribe p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"],
.subscribe-form input {
    flex: 1;
    padding: 13px 18px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    min-width: 0;
    transition: border-color 0.3s var(--ease-smooth);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--accent-amber);
    box-shadow: 0 0 0 3px var(--accent-amber-dim);
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.subscribe-form button {
    padding: 13px 28px;
    background: var(--accent-amber);
    color: #080c14;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.subscribe-form button:hover {
    background: #f59e0b;
    box-shadow: 0 0 20px var(--accent-amber-glow);
}

/* Coming Soon */
.coming-soon-list {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 24px;
    list-style: disc;
}

.coming-soon-list li {
    margin-bottom: 6px;
}

.coming-soon-list strong {
    color: var(--text-primary);
}

.coming-soon-cta {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 18px;
}

/* ==========================================
   ARTICLE / BLOG POST BODY
   ========================================== */

.article-body {
    max-width: 780px;
    margin: 0 auto;
}

.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    color: var(--accent-amber);
    margin: 45px 0 18px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.article-body h2:first-of-type {
    border-top: none;
    margin-top: 0;
}

.article-body h3 {
    color: var(--accent-indigo);
    font-size: 1.15rem;
    margin: 30px 0 12px;
}

.article-body p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 16px;
}

.article-body strong {
    color: var(--text-primary);
}

.article-body code {
    font-family: 'Courier New', monospace;
    color: var(--accent-amber);
    font-size: 0.88em;
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
}

.article-body a {
    color: var(--accent-indigo);
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: var(--accent-amber);
    text-decoration-color: var(--accent-amber);
}

.article-body blockquote {
    border-left: 4px solid var(--accent-amber);
    padding: 14px 18px;
    margin: 22px 0;
    color: var(--text-primary);
    font-style: italic;
    background: rgba(240, 160, 48, 0.04);
    border-radius: 0 6px 6px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.article-list {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 22px;
    padding-left: 24px;
}

.article-list li {
    margin-bottom: 8px;
}

.article-list li strong {
    color: var(--text-primary);
}

.article-footer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px;
    margin: 45px 0 0;
    border-left: 4px solid var(--accent-amber);
}

.article-footer p {
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-footer .article-tags {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.article-footer .article-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Summary Box */
.summary-box {
    text-align: center;
    padding: 28px;
}

.summary-box p {
    margin-bottom: 8px;
}

.summary-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   CODE BLOCKS & TABLES
   ========================================== */

.code-block {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    margin: 22px 0;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
}

.code-block code {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    background: none;
    padding: 0;
    white-space: pre;
}

.code-label { color: var(--accent-amber); }
.code-cmd { color: var(--accent-amber); }
.code-comment { color: var(--text-muted); }
.winner { color: #4ade80; font-weight: 700; }

.stat-highlight {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.04), rgba(99, 102, 241, 0.06));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    margin: 22px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 0.92rem;
}

.comparison-table th {
    background: var(--bg-elevated);
    color: var(--accent-amber);
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.comparison-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.comparison-table tr:hover td {
    background: var(--bg-card);
}

/* ==========================================
   VIDEO CONTAINERS
   ========================================== */

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 35px 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 35px auto 0;
}

.video-grid .video-card:first-child {
    grid-column: 1 / -1;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.video-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-amber);
}

.video-card .video-container {
    margin: 0;
    border-radius: 0;
    border: none;
}

.video-card-info {
    padding: 18px 22px;
    border-top: 1px solid var(--border-color);
}

.video-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--accent-amber);
    margin-bottom: 4px;
}

.video-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================
   SERVICE DETAILS
   ========================================== */

.service-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 28px;
    transition: all 0.3s var(--ease-smooth);
}

.service-detail:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-detail h3 {
    color: var(--accent-indigo);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.service-detail p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================
   CONTENT BLOCKS & ABOUT
   ========================================== */

.content-block {
    max-width: 850px;
    margin: 0 auto;
}

.content-block h2 {
    margin-bottom: 24px;
    margin-top: 36px;
}

.content-block h3 {
    margin-top: 28px;
    margin-bottom: 18px;
}

.content-block p {
    margin-bottom: 22px;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    margin-top: 28px;
    margin-bottom: 16px;
    color: var(--accent-amber);
}

.about-text p {
    margin-bottom: 22px;
    line-height: 1.8;
}

.about-text p + h3 {
    margin-top: 26px;
}

.about-image img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   QUOTE BLOCKS
   ========================================== */

.quote-block {
    text-align: center;
}

.quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.quote-attribution {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-quote {
    font-family: 'Space Grotesk', sans-serif;
    font-style: italic;
}

/* ==========================================
   FEATURE SPLIT (AI Freedom page)
   ========================================== */

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.feature-content h3 {
    color: var(--accent-indigo);
    margin-bottom: 12px;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.feature-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 22px;
    list-style: disc;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s var(--ease-smooth);
}

.checklist-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.checklist-item .check {
    color: var(--accent-amber);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 160, 48, 0.08);
    border-radius: 50%;
}

.checklist-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.checklist-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================
   USE CASES
   ========================================== */

.use-case {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.4s var(--ease-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.use-case.visible {
    opacity: 1;
    transform: translateY(0);
}

.use-case:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-amber);
    transform: translateY(-3px);
}

.use-case h3 {
    color: var(--accent-amber);
    margin-bottom: 12px;
}

.use-case p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================
   CONTACT FORMS
   ========================================== */

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-elevated);
    color: var(--text-primary);
    transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-amber);
    box-shadow: 0 0 0 3px var(--accent-amber-dim);
}

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

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

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

/* ==========================================
   PAGE CONTENT UTILITIES
   ========================================== */

.page-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-amber);
    margin: 36px 0 18px;
}

.page-heading:first-child {
    margin-top: 0;
}

.page-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.page-list {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 22px;
    margin-bottom: 22px;
}

.page-list li {
    margin-bottom: 5px;
}

.page-list strong {
    color: var(--text-primary);
}

.accent-heading {
    color: var(--accent-amber);
    margin: 28px 0 12px;
}

.accent-heading-blue {
    color: var(--accent-indigo);
    margin: 28px 0 12px;
}

.section-image {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
}

/* ==========================================
   SOCIAL LINKS
   ========================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s var(--ease-smooth);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-amber);
    opacity: 0;
    transition: opacity 0.35s var(--ease-smooth);
}

.social-link > * {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 0 30px var(--accent-amber-glow);
    color: #080c14;
}

.social-link:hover::before {
    opacity: 1;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    background: linear-gradient(135deg, rgba(240, 160, 48, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(240, 160, 48, 0.06) 0%, transparent 50%);
    animation: ctaPulse 8s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.cta-box {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   EMAIL CAPTURE
   ========================================== */

.email-capture {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 50px 36px;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.email-capture h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-amber);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.email-capture p {
    color: var(--text-secondary);
    margin-bottom: 26px;
    font-size: 1rem;
}

/* ==========================================
   PRICING BADGE
   ========================================== */

.pricing-badge {
    display: inline-block;
    background: var(--accent-amber);
    color: #080c14;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ==========================================
   CONSULTATION BAR (Sticky)
   ========================================== */

.consultation-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-top: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-smooth);
}

.consultation-bar.visible {
    transform: translateY(0);
}

.consultation-bar-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    white-space: nowrap;
}

.consultation-bar .btn {
    padding: 10px 24px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================
   SUBSCRIBE TOAST
   ========================================== */

.subscribe-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.4s ease;
    text-align: center;
    max-width: 90vw;
}

.subscribe-toast.success {
    background: var(--accent-amber);
    color: #080c14;
}

.subscribe-toast.error {
    background: #c0392b;
    color: #fff;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================
   SCROLL PROGRESS & BACK TO TOP
   ========================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-amber);
    z-index: 10001;
    box-shadow: 0 0 8px var(--accent-amber-glow);
    transition: width 0.1s linear;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-smooth);
    z-index: 999;
    color: var(--text-primary);
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: #080c14;
    transform: translateY(-4px);
    box-shadow: 0 0 30px var(--accent-amber-glow);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 70px 0 25px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
    opacity: 0.3;
}

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

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section li {
    color: var(--text-muted);
}

.quote-source {
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 12px;
    color: var(--accent-amber);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s var(--ease-smooth);
}

.footer-section a::after {
    content: '\2192';
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s var(--ease-smooth);
}

.footer-section a:hover {
    color: var(--accent-amber);
    transform: translateX(4px);
}

.footer-section a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

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

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

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

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

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

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

    .about-image {
        order: -1;
        text-align: center;
    }

    .about-image img {
        max-width: 180px;
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .section-title[style*="text-align: left"] {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

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

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-small {
        min-height: auto;
        padding: 120px 0 70px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        margin-bottom: 16px;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        bottom: 20px;
        right: 20px;
    }

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

    .lightbox-nav {
        display: none;
    }

    .blog-card {
        padding: 24px 18px;
    }

    .blog-card-full h2 {
        font-size: 1.15rem;
    }

    .blog-card-tags {
        gap: 5px;
    }

    .blog-subscribe {
        padding: 32px 20px;
    }

    .blog-subscribe h3 {
        font-size: 1.3rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        text-align: center;
    }

    .content-block h2 {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .content-block h3 {
        margin-top: 24px;
        margin-bottom: 14px;
    }

    /* Video grid */
    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Article body */
    .article-body h2 {
        font-size: 1.25rem;
        margin: 35px 0 14px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .code-block {
        font-size: 0.8rem;
        padding: 14px;
    }

    .checklist-item {
        padding: 14px;
    }

    .stat-highlight {
        overflow-x: auto;
    }

    .comparison-table {
        font-size: 0.82rem;
        min-width: 400px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }

    .video-container {
        margin: 22px 0;
    }

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

@media (max-width: 600px) {
    .email-capture {
        padding: 32px 20px;
    }

    .email-capture .subscribe-form {
        flex-direction: column;
    }

    .consultation-bar {
        padding: 8px 14px;
        gap: 10px;
    }

    .consultation-bar-text {
        font-size: 10px;
    }

    .consultation-bar .btn {
        padding: 8px 18px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 28px 22px;
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

    .blog-card-tags span {
        font-size: 0.7rem;
        padding: 2px 7px;
    }

    .comparison-table {
        font-size: 0.78rem;
    }
}

/* ==========================================
   FOCUS STATES
   ========================================== */

:focus-visible {
    outline: 2px solid var(--accent-amber);
    outline-offset: 2px;
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
