/* ═══════════════════════════════════════════════════════════════
   ROOT.CSS — SoftDryzz Landing & Legal
   Estilos compartidos para index.html y legal.html
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   1. RESET & VARIABLES
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Colores base */
    --bg-deep: #08080c;
    --bg-primary: #0c0c12;
    --bg-section-alt: #0d0d14;
    --bg-elevated: #131320;
    --bg-card: #1a1a2e;
    --bg-card-hover: #21213a;
    --bg-glass: rgba(19, 19, 32, 0.7);

    /* Texto */
    --text-primary: #f0f0f5;
    --text-secondary: #9d9db5;
    --text-muted: #5e5e78;

    /* Acentos */
    --accent-warm: #e8a838;
    --accent-warm-dim: rgba(232, 168, 56, 0.15);
    --accent-cool: #38bdf8;
    --accent-cool-dim: rgba(56, 189, 248, 0.12);
    --accent-purple: #a855f7;
    --accent-purple-dim: rgba(168, 85, 247, 0.12);
    --accent-gradient: linear-gradient(135deg, #e8a838 0%, #f06595 50%, #38bdf8 100%);
    --accent-gradient-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #38bdf8 100%);

    /* Bordes & sombras */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow-glow: 0 0 60px rgba(232, 168, 56, 0.08);

    /* Bordes redondeados */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Tipografia */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

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

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Navbar */
    --nav-height: 64px;

    /* Dropdown */
    --dropdown-bg: rgba(12, 12, 18, 0.95);
    --dropdown-border: rgba(255, 255, 255, 0.08);
    --dropdown-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Bloqueo scroll cuando menu movil abierto */
body.menu-open { overflow: hidden; }

/* ═══════════════════════════════════════
   2. NOISE OVERLAY & BACKGROUND
   ═══════════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.bg-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.07) 0%, rgba(240, 101, 149, 0.03) 40%, transparent 70%);
    top: -250px; right: -200px;
    animation: orbFloat1 20s ease-in-out infinite;
}
.bg-orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 70%);
    bottom: 20%; left: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 20px); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

/* Dot grid pattern overlay for sections */
.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.25rem); letter-spacing: -0.03em; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem 0.35rem 0;
    background: var(--accent-warm-dim);
    border-radius: 50px;
    padding-left: 0.8rem;
}
.section-label::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--accent-warm);
    border-radius: 50%;
    flex-shrink: 0;
}

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

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

/* ═══════════════════════════════════════
   4. LAYOUT
   ═══════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

section {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) 0;
    z-index: 1;
}

/* Alternating section backgrounds for visual separation */
.section-alt {
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Decorative gradient accent line at top of alt sections */
.section-alt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, 70%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-warm) 20%, var(--accent-cool) 80%, transparent);
    opacity: 0.5;
    z-index: 1;
}

/* ═══════════════════════════════════════
   5. NAVBAR (con dropdowns)
   ═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    padding: 0 var(--space-xl);
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.navbar.scrolled { background: rgba(8, 8, 12, 0.92); }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 6px; }

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a,
.nav-links > li > button.dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > button.dropdown__trigger:hover,
.nav-links > li > a.active,
.nav-links > li > button.dropdown__trigger[aria-expanded="true"] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Chevron del dropdown */
.dropdown__chevron {
    width: 14px; height: 14px;
    transition: transform 0.2s ease;
    opacity: 0.5;
}
[aria-expanded="true"] .dropdown__chevron {
    transform: rotate(180deg);
}

/* Panel dropdown */
.dropdown__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--dropdown-border);
    border-radius: var(--radius-md);
    box-shadow: var(--dropdown-shadow);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(4px);
}
.dropdown__panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Items del dropdown */
.dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}
.dropdown__item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.dropdown__item-icon {
    width: 36px; height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.dropdown__item-icon.warm { background: var(--accent-warm-dim); color: var(--accent-warm); }
.dropdown__item-icon.cool { background: var(--accent-cool-dim); color: var(--accent-cool); }
.dropdown__item-icon.mixed {
    background: linear-gradient(135deg, var(--accent-warm-dim), var(--accent-cool-dim));
    color: var(--text-primary);
}
.dropdown__item-text h4 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
.dropdown__item-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 0.1rem;
}

/* Separador dentro del dropdown */
.dropdown__separator {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0.5rem;
}

/* Indicador enlace externo */
.dropdown__external {
    font-size: 0.7em;
    opacity: 0.5;
    margin-left: 0.25rem;
}

/* Lang toggle */
.lang-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-left: 0.75rem;
}
.lang-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn.active {
    background: var(--accent-warm);
    color: var(--bg-deep);
}

/* Boton hamburguesa */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}
.nav-mobile-toggle svg { width: 24px; height: 24px; }

/* ═══════════════════════════════════════
   6. HERO
   ═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

/* Animated gradient mesh behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(232, 168, 56, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 70% 60%, rgba(56, 189, 248, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 80% 20%, rgba(240, 101, 149, 0.04) 0%, transparent 70%);
    animation: heroMeshFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroMeshFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 10px) scale(1.02); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    background: var(--accent-warm-dim);
    border: 1px solid rgba(232, 168, 56, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-warm);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out both;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--accent-warm);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    line-height: 1.08;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.85rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: var(--accent-warm);
    color: var(--bg-deep);
    box-shadow: 0 4px 16px rgba(232, 168, 56, 0.25);
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 168, 56, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--accent-cool);
    color: var(--accent-cool);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

/* Hero visual — composicion de tarjetas */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
}

.hero-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.hero-card-dev {
    top: 0; left: 0;
    width: 75%;
    z-index: 2;
}
.hero-card-dev:hover { transform: translate(-4px, -4px); }
.hero-card-dev .card-icon {
    width: 44px; height: 44px;
    background: var(--accent-cool-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cool);
    margin-bottom: 1rem;
}
.hero-card-dev h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.hero-card-dev p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.hero-card-dev .tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}
.tech-pill {
    padding: 0.25rem 0.6rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-cool);
}

.hero-card-biz {
    bottom: 0; right: 0;
    width: 70%;
    z-index: 3;
}
.hero-card-biz:hover { transform: translate(4px, 4px); }
.hero-card-biz .card-icon {
    width: 44px; height: 44px;
    background: var(--accent-warm-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-warm);
    margin-bottom: 1rem;
}
.hero-card-biz h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.hero-card-biz p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.hero-card-biz .cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.8rem;
    padding: 0.3rem 0.7rem;
    background: rgba(232, 168, 56, 0.08);
    border: 1px solid rgba(232, 168, 56, 0.15);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-warm);
}
.cert-badge svg { width: 13px; height: 13px; }

.hero-connector {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: var(--bg-deep);
    border: 2px solid var(--border-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-display);
}

/* Hero stats bar */
.hero-stats-bar {
    display: flex;
    gap: 0;
    margin-top: 2.5rem;
    background: rgba(19, 19, 32, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.45s both;
}
.hero-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1rem 0.75rem;
    position: relative;
}
.hero-stat-item + .hero-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
.hero-stat-item .stat-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-item .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* Scroll down indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
    z-index: 2;
    opacity: 0.5;
}
.hero-scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}
.hero-scroll-indicator .scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent-warm), transparent);
    position: relative;
    overflow: hidden;
}
.hero-scroll-indicator .scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-cool), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { top: -100%; }
    100% { top: 200%; }
}

/* Enhanced hero cards with gradient glow */
.hero-card {
    background: rgba(19, 19, 32, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}
.hero-card-dev {
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.06);
}
.hero-card-dev:hover {
    transform: translate(-4px, -4px);
    box-shadow: 0 16px 48px rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.15);
}
.hero-card-biz {
    box-shadow: 0 8px 32px rgba(232, 168, 56, 0.06);
}
.hero-card-biz:hover {
    transform: translate(4px, 4px);
    box-shadow: 0 16px 48px rgba(232, 168, 56, 0.12);
    border-color: rgba(232, 168, 56, 0.15);
}

/* ═══════════════════════════════════════
   6b. FEATURED PROJECT
   ═══════════════════════════════════════ */
.featured-project {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(168, 85, 247, 0.03) 50%, var(--bg-deep) 100%);
}

.featured-project-card {
    position: relative;
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.06);
}

/* Animated gradient border glow */
.featured-project-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.1), rgba(56, 189, 248, 0.3), rgba(168, 85, 247, 0.1));
    background-size: 300% 300%;
    animation: gradientBorderShift 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Ambient glow orb */
.featured-project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

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

.featured-project-content {
    position: relative;
    z-index: 1;
}

.featured-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem 0.35rem 0.6rem;
    background: var(--accent-purple-dim);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}
.featured-project-badge .badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

.featured-project-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.featured-project-content .gradient-text-purple {
    background: var(--accent-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-project-content > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.featured-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.featured-project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-purple);
    transition: var(--transition);
}
.featured-project-cta:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}
.featured-project-cta svg {
    width: 18px;
    height: 18px;
}

/* Featured project visual side */
.featured-project-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-project-icon-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(168, 85, 247, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.featured-project-icon-large svg {
    width: 64px;
    height: 64px;
    color: var(--accent-purple);
    opacity: 0.9;
}

/* Orbit rings around the icon */
.featured-project-icon-large::before,
.featured-project-icon-large::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.08);
}
.featured-project-icon-large::before {
    inset: -30px;
    animation: orbitSpin 20s linear infinite;
}
.featured-project-icon-large::after {
    inset: -60px;
    border-style: dashed;
    border-color: rgba(99, 102, 241, 0.06);
    animation: orbitSpin 30s linear infinite reverse;
}

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

/* Floating tech labels around icon */
.fp-orbit-tag {
    position: absolute;
    padding: 0.25rem 0.65rem;
    background: rgba(19, 19, 32, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-purple);
    white-space: nowrap;
}
.fp-orbit-tag:nth-child(2) { top: 0; right: 10%; }
.fp-orbit-tag:nth-child(3) { bottom: 10%; right: 0; }
.fp-orbit-tag:nth-child(4) { bottom: 0; left: 10%; }
.fp-orbit-tag:nth-child(5) { top: 10%; left: 0; }

/* ═══════════════════════════════════════
   7. ABOUT
   ═══════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.about-photo-area {
    position: relative;
}
.about-photo-card {
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    text-align: center;
}
.about-avatar {
    width: 120px; height: 120px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-deep);
    margin: 0 auto 1.2rem;
}
.about-photo-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.about-photo-card .subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    text-align: center;
}
.about-stat .num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-stat .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 1.25rem;
}

.credential-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}
.credential-card + .credential-card {
    margin-top: 0.75rem;
}
.credential-icon {
    width: 48px; height: 48px;
    min-width: 48px;
    background: var(--accent-warm-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-warm);
}
.credential-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.credential-card p {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════
   8. SERVICES
   ═══════════════════════════════════════ */
.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}
.services-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Subtle gradient overlay on hover */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(232, 168, 56, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 40px rgba(232, 168, 56, 0.05);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.05); }
.service-icon.warm {
    background: var(--accent-warm-dim);
    color: var(--accent-warm);
    box-shadow: inset 0 0 20px rgba(232, 168, 56, 0.08);
}
.service-icon.cool {
    background: var(--accent-cool-dim);
    color: var(--accent-cool);
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.08);
}
.service-icon.mixed {
    background: linear-gradient(135deg, var(--accent-warm-dim), var(--accent-cool-dim));
    color: var(--text-primary);
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.06);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.service-features {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.service-feature {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.service-feature::before {
    content: '\2192';
    color: var(--accent-warm);
    font-weight: 600;
}

/* ═══════════════════════════════════════
   9. PRICING
   ═══════════════════════════════════════ */
.pricing-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}
.pricing-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.pricing-tab {
    padding: 0.6rem 1.3rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}
.pricing-tab:hover { color: var(--text-secondary); border-color: var(--border-hover); }
.pricing-tab.active {
    background: var(--accent-warm);
    color: var(--bg-deep);
    border-color: var(--accent-warm);
}

.pricing-panel { display: none; }
.pricing-panel.active { display: block; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.price-card {
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.price-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.price-card.featured {
    border-color: rgba(232, 168, 56, 0.3);
    box-shadow: 0 0 40px rgba(232, 168, 56, 0.06);
}
.price-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.price-card-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.25rem 0.7rem;
    background: var(--accent-warm-dim);
    border: 1px solid rgba(232, 168, 56, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.price-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.price-card .price-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
}
.price-amount .currency { font-size: 1.2rem; color: var(--text-secondary); font-weight: 600; }
.price-amount .value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.price-amount .period { font-size: 0.82rem; color: var(--text-muted); }

.price-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.price-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.price-feature::before {
    content: '\2713';
    color: var(--accent-warm);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.price-card .price-timeline {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.pricing-note a {
    color: var(--accent-warm);
    font-weight: 600;
}
.pricing-note a:hover { text-decoration: underline; }

.pricing-addons {
    margin-top: 3rem;
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}
.pricing-addons h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}
.addons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.addon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.addon-item .addon-price {
    font-weight: 700;
    color: var(--accent-warm);
}

/* ═══════════════════════════════════════
   9b. TEMPLATES
   ═══════════════════════════════════════ */
.templates-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}
.templates-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.template-card {
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.template-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.template-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}
.template-card:hover::before { transform: scaleX(1); }

.template-card--featured {
    border-color: rgba(232, 168, 56, 0.25);
    box-shadow: 0 0 40px rgba(232, 168, 56, 0.05);
}
.template-card--featured::before {
    transform: scaleX(1) !important;
}

.template-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.template-card__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-card__badge {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.template-badge--pro {
    background: var(--accent-cool-dim);
    color: var(--accent-cool);
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.template-badge--basic {
    background: rgba(134, 239, 172, 0.1);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.2);
}
.template-badge--premium {
    background: var(--accent-warm-dim);
    color: var(--accent-warm);
    border: 1px solid rgba(232, 168, 56, 0.2);
}

.template-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.template-card > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.template-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.template-card__price {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.template-price__value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.template-price__original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}
.template-price__save {
    font-size: 0.7rem;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.templates-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ═══════════════════════════════════════
   10. PROJECTS
   ═══════════════════════════════════════ */
.projects-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}
.projects-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.project-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-links { display: flex; gap: 0.5rem; }
.project-links a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
}
.project-links a:hover { border-color: var(--accent-cool); color: var(--accent-cool); }
.project-links a svg { width: 16px; height: 16px; }

.project-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.project-card > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    flex: 1;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}
.project-tag {
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
}
.tag-rust { background: rgba(222,110,60,0.12); color: #de6e3c; border: 1px solid rgba(222,110,60,0.2); }
.tag-tauri { background: rgba(56,189,248,0.1); color: #38bdf8; border: 1px solid rgba(56,189,248,0.18); }
.tag-svelte { background: rgba(255,62,0,0.1); color: #ff6b35; border: 1px solid rgba(255,62,0,0.18); }
.tag-java { background: rgba(244,160,0,0.1); color: #f4a000; border: 1px solid rgba(244,160,0,0.18); }
.tag-ts { background: rgba(49,120,198,0.12); color: #3178c6; border: 1px solid rgba(49,120,198,0.2); }
.tag-sqlite { background: rgba(0,168,232,0.1); color: #00a8e8; border: 1px solid rgba(0,168,232,0.18); }
.tag-python { background: rgba(55,118,171,0.12); color: #3776ab; border: 1px solid rgba(55,118,171,0.2); }
.tag-ai { background: rgba(168,85,247,0.12); color: #a855f7; border: 1px solid rgba(168,85,247,0.2); }
.tag-ollama { background: rgba(255,255,255,0.06); color: #e0e0e0; border: 1px solid rgba(255,255,255,0.12); }
.tag-rich { background: rgba(77,179,61,0.1); color: #4db33d; border: 1px solid rgba(77,179,61,0.18); }

/* ═══════════════════════════════════════
   11. TECH STACK
   ═══════════════════════════════════════ */
.stack-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}
.stack-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.stack-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stack-category {
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.stack-category:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.stack-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.stack-category-icon {
    width: 40px; height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stack-category-icon svg {
    width: 20px; height: 20px;
}
.stack-category h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
    font-family: var(--font-body);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.stack-item {
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid;
}
.stack-item:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

/* — Per-tech colors — */
.si-rust      { background: rgba(222,110,60,0.1);  color: #de6e3c; border-color: rgba(222,110,60,0.2); }
.si-java      { background: rgba(244,160,0,0.1);   color: #f4a000; border-color: rgba(244,160,0,0.18); }
.si-csharp    { background: rgba(104,33,122,0.12);  color: #9b4dca; border-color: rgba(104,33,122,0.25); }
.si-ts        { background: rgba(49,120,198,0.1);   color: #3178c6; border-color: rgba(49,120,198,0.2); }
.si-js        { background: rgba(247,223,30,0.1);   color: #f7df1e; border-color: rgba(247,223,30,0.2); }
.si-delphi    { background: rgba(238,51,56,0.1);    color: #ee3338; border-color: rgba(238,51,56,0.18); }
.si-python    { background: rgba(55,118,171,0.1);   color: #3776ab; border-color: rgba(55,118,171,0.2); }
.si-sql       { background: rgba(0,168,232,0.08);   color: #00a8e8; border-color: rgba(0,168,232,0.15); }
.si-html      { background: rgba(227,79,38,0.1);    color: #e34f26; border-color: rgba(227,79,38,0.18); }
.si-css       { background: rgba(38,77,228,0.1);    color: #264de4; border-color: rgba(38,77,228,0.18); }

.si-react     { background: rgba(97,218,251,0.1);   color: #61dafb; border-color: rgba(97,218,251,0.2); }
.si-next      { background: rgba(255,255,255,0.06); color: #ffffff; border-color: rgba(255,255,255,0.12); }
.si-svelte    { background: rgba(255,62,0,0.1);     color: #ff6b35; border-color: rgba(255,62,0,0.18); }
.si-tailwind  { background: rgba(56,189,248,0.1);   color: #38bdf8; border-color: rgba(56,189,248,0.18); }
.si-shadcn    { background: rgba(255,255,255,0.06); color: #f0f0f5; border-color: rgba(255,255,255,0.12); }
.si-zustand   { background: rgba(68,64,60,0.15);    color: #d4a373; border-color: rgba(212,163,115,0.2); }
.si-framer    { background: rgba(0,153,255,0.1);    color: #0099ff; border-color: rgba(0,153,255,0.18); }
.si-gsap      { background: rgba(136,214,27,0.1);   color: #88d61b; border-color: rgba(136,214,27,0.18); }

.si-node      { background: rgba(87,159,67,0.1);    color: #579f43; border-color: rgba(87,159,67,0.18); }
.si-tauri     { background: rgba(56,189,248,0.1);   color: #38bdf8; border-color: rgba(56,189,248,0.18); }
.si-graalvm   { background: rgba(232,168,56,0.1);   color: #e8a838; border-color: rgba(232,168,56,0.18); }
.si-tokio     { background: rgba(222,110,60,0.1);   color: #de6e3c; border-color: rgba(222,110,60,0.18); }
.si-prisma    { background: rgba(45,55,72,0.2);     color: #5a67d8; border-color: rgba(90,103,216,0.2); }
.si-nextauth  { background: rgba(168,85,247,0.1);   color: #a855f7; border-color: rgba(168,85,247,0.18); }
.si-dotnet    { background: rgba(81,43,212,0.1);    color: #512bd4; border-color: rgba(81,43,212,0.2); }

.si-mongo     { background: rgba(77,179,61,0.1);    color: #4db33d; border-color: rgba(77,179,61,0.18); }
.si-pg        { background: rgba(51,103,145,0.12);  color: #336791; border-color: rgba(51,103,145,0.2); }
.si-sqlite    { background: rgba(0,168,232,0.1);    color: #00a8e8; border-color: rgba(0,168,232,0.18); }
.si-stripe    { background: rgba(99,91,255,0.1);    color: #635bff; border-color: rgba(99,91,255,0.18); }

.si-git       { background: rgba(240,80,51,0.1);    color: #f05033; border-color: rgba(240,80,51,0.18); }
.si-cloudflare{ background: rgba(245,153,56,0.1);   color: #f59938; border-color: rgba(245,153,56,0.18); }
.si-docker    { background: rgba(36,150,237,0.1);   color: #2496ed; border-color: rgba(36,150,237,0.18); }
.si-vscode    { background: rgba(0,120,215,0.1);    color: #0078d7; border-color: rgba(0,120,215,0.18); }
.si-intellij  { background: rgba(254,98,43,0.1);    color: #fe622b; border-color: rgba(254,98,43,0.18); }
.si-figma     { background: rgba(162,89,255,0.1);   color: #a259ff; border-color: rgba(162,89,255,0.18); }

.si-openai    { background: rgba(116,205,196,0.1);  color: #74cdc4; border-color: rgba(116,205,196,0.18); }
.si-claude    { background: rgba(217,153,89,0.1);   color: #d99959; border-color: rgba(217,153,89,0.18); }
.si-langchain { background: rgba(30,177,133,0.1);   color: #1eb185; border-color: rgba(30,177,133,0.18); }
.si-n8n       { background: rgba(234,72,72,0.1);    color: #ea4848; border-color: rgba(234,72,72,0.18); }

/* ═══════════════════════════════════════
   12. CONTACT
   ═══════════════════════════════════════ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 { margin-bottom: 0.75rem; }
.contact-info > p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.contact-channel:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}
.contact-channel-icon {
    width: 42px; height: 42px;
    min-width: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-channel-icon.email { background: rgba(99,179,237,0.12); color: #63b3ed; }
.contact-channel-icon.gh { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.contact-channel-icon.coffee { background: rgba(255,221,51,0.12); color: #ffdd33; }
.contact-channel-icon.sponsor { background: rgba(219,79,128,0.12); color: #db4f80; }
.contact-channel svg { width: 20px; height: 20px; }
.contact-channel h4 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; }
.contact-channel p { font-size: 0.8rem; color: var(--text-muted); }

.contact-form-card {
    background: rgba(19, 19, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}

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

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px var(--accent-warm-dim);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--bg-card); }

.form-submit {
    width: 100%;
    padding: 0.95rem;
    background: var(--accent-warm);
    color: var(--bg-deep);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(232, 168, 56, 0.25);
}
.form-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 168, 56, 0.35);
}

.form-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ═══════════════════════════════════════
   13. FOOTER (expandido 3 columnas)
   ═══════════════════════════════════════ */
footer {
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 280px;
}
.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
}
.footer-col-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-col-links a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}
.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.footer-social a {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-social a:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
}
.footer-social a svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════
   14. ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Separador entre secciones — hidden when using alternating backgrounds */
.section-divider {
    display: none;
}

/* ═══════════════════════════════════════
   15. RESPONSIVE
   ═══════════════════════════════════════ */

/* --- Tablet (max 968px) --- */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-ctas { justify-content: center; }
    .hero-visual { margin-top: 2rem; }
    .hero-card-stack { max-width: 360px; margin: 0 auto; }
    .hero-stats-bar { margin: 2.5rem auto 0; max-width: 500px; }

    .featured-project-card { grid-template-columns: 1fr; text-align: center; }
    .featured-project-content > p { margin-left: auto; margin-right: auto; }
    .featured-project-tags { justify-content: center; }
    .featured-project-cta { margin: 0 auto; }
    .featured-project-visual { margin-top: 1rem; }

    .about-grid { grid-template-columns: 1fr; }
    .about-photo-area { max-width: 340px; margin: 0 auto; }

    .services-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .templates-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .stack-categories { grid-template-columns: 1fr 1fr; }

    .contact-wrapper { grid-template-columns: 1fr; }

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

/* --- Movil (max 640px) — slide-in menu --- */
@media (max-width: 640px) {
    .navbar {
        padding: 0 var(--space-md);
    }

    /* Ocultar nav links por defecto */
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-deep);
        border-left: 1px solid var(--border);
        padding: calc(var(--nav-height) + 1rem) var(--space-lg) var(--space-lg);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links > li > a,
    .nav-links > li > button.dropdown__trigger {
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    /* Dropdown en movil: acordeon */
    .dropdown__panel {
        position: static;
        transform: none;
        min-width: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 var(--space-md);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }
    .dropdown__panel.open {
        max-height: 500px;
        transform: none;
    }

    .dropdown__item {
        padding: 0.5rem;
    }

    /* Mostrar boton hamburguesa */
    .nav-mobile-toggle { display: block; }

    /* Overlay cuando menu esta abierto */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    .nav-overlay.active { display: block; }

    .services-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .templates-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .stack-categories { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .hero-card-stack { max-width: 300px; }
    .hero-stats-bar { flex-wrap: wrap; }
    .hero-stat-item { min-width: 45%; }
    .hero-scroll-indicator { display: none; }

    .featured-project-card { padding: 1.5rem; gap: 1.5rem; }
    .featured-project-icon-large { width: 120px; height: 120px; }
    .featured-project-icon-large svg { width: 44px; height: 44px; }
    .featured-project-icon-large::before { inset: -20px; }
    .featured-project-icon-large::after { inset: -40px; }
    .fp-orbit-tag { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ═══════════════════════════════════════
   16. i18n
   ═══════════════════════════════════════ */
[data-lang="es"] .lang-en { display: none; }
[data-lang="en"] .lang-es { display: none; }

/* ═══════════════════════════════════════
   17. LEGAL PAGE
   ═══════════════════════════════════════ */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-2xl)) clamp(1.25rem, 4vw, 3rem) var(--space-2xl);
    position: relative;
    z-index: 1;
}

.legal-container h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.legal-container .updated {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
}

.legal-container h2 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: var(--space-2xl);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.legal-container h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: var(--space-lg);
    margin-bottom: 0.5rem;
}
.legal-container p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.legal-container ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.legal-container li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.7;
}
.legal-container a {
    color: var(--accent-warm);
}
.legal-container a:hover { text-decoration: underline; }

.legal-container .section-divider {
    margin: var(--space-2xl) 0;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-warm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-xl);
    transition: var(--transition);
}
.legal-back:hover { gap: 0.75rem; }

/* ═══════════════════════════════════════
   18. ACCESSIBILITY & PRINT
   ═══════════════════════════════════════ */
@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; }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible para accesibilidad de teclado */
:focus-visible {
    outline: 2px solid var(--accent-warm);
    outline-offset: 2px;
}

@media print {
    body::before,
    .bg-orb,
    .navbar,
    .nav-overlay,
    footer { display: none; }

    body {
        background: white;
        color: #111;
    }

    .legal-container {
        padding-top: 1rem;
    }

    a { color: #0066cc; }
    a::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
