/* ═══════════════════════════════════════════
   PORTFOLIO DE PSURE — v3.1
   Violet-only palette + light/dark theme
═══════════════════════════════════════════ */

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

/* ── TEMA OSCURO (defecto) ── */
:root {
    /* Fondos */
    --bg-0: #060609;
    --bg-1: #0c0c12;
    --bg-2: #111119;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.055);

    /* Acento — violeta puro */
    --a: #7c5cfc;
    --a-light: #a78bfa;
    --a-dark: #5a3de0;
    --a-dim: rgba(124, 92, 252, 0.12);
    --a-glow: rgba(124, 92, 252, 0.28);
    --a-glow-strong: rgba(124, 92, 252, 0.45);
    --a2: #c084fc;        /* lila secundario en lugar de cyan */
    --a2-dim: rgba(192, 132, 252, 0.12);

    /* Bordes */
    --border: rgba(255, 255, 255, 0.055);
    --border-hover: rgba(124, 92, 252, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.03);

    /* Colores de texto */
    --t1: #f0eeff;
    --t2: #8880aa;
    --t3: #44435a;

    /* Estado de proyectos */
    --green: #34d399;
    --red: #f87171;
    --yellow: #fbbf24;

    /* Bordes redondeados */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-2xl: 36px;

    /* Sombras */
    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 22px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(124, 92, 252, 0.18);
    --shadow-glow: 0 0 60px rgba(124, 92, 252, 0.12);

    /* Velocidades */
    --t-fast: 0.15s ease;
    --t-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --t-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Tema */
    --theme-icon: '☀️';
}

/* ── TEMA CLARO ── */
[data-theme="light"] {
    --bg-0: #f5f3ff;
    --bg-1: #ffffff;
    --bg-2: #ede9fe;
    --bg-glass: rgba(124, 92, 252, 0.04);
    --bg-glass-hover: rgba(124, 92, 252, 0.08);

    --a: #6d3ff0;
    --a-light: #7c5cfc;
    --a-dark: #5a3de0;
    --a-dim: rgba(109, 63, 240, 0.1);
    --a-glow: rgba(109, 63, 240, 0.2);
    --a-glow-strong: rgba(109, 63, 240, 0.35);
    --a2: #9333ea;
    --a2-dim: rgba(147, 51, 234, 0.1);

    --border: rgba(109, 63, 240, 0.12);
    --border-hover: rgba(109, 63, 240, 0.45);
    --border-subtle: rgba(109, 63, 240, 0.06);

    --t1: #1a1033;
    --t2: #5b5080;
    --t3: #9990bb;

    --green: #059669;
    --red: #dc2626;
    --yellow: #d97706;

    --shadow-card: 0 4px 20px rgba(109, 63, 240, 0.1);
    --shadow-hover: 0 16px 48px rgba(109, 63, 240, 0.18), 0 4px 16px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px rgba(109, 63, 240, 0.1);

    --theme-icon: '🌙';
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-0);
    color: var(--t1);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
}

::selection {
    background: rgba(124, 92, 252, 0.38);
    color: #fff;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--a), var(--a2));
    border-radius: 4px;
}

/* ── TEMA CLARO: overrides de body/partículas ── */
[data-theme="light"] body {
    background: var(--bg-0);
}

[data-theme="light"] #particles-js {
    background: var(--bg-0);
    opacity: 0.4;
}

[data-theme="light"] body::after {
    background-image: radial-gradient(circle, rgba(109,63,240,0.08) 1px, transparent 1px);
}

[data-theme="light"] .navbar {
    background: rgba(245, 243, 255, 0.8);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(245, 243, 255, 0.95);
    box-shadow: 0 1px 24px rgba(109, 63, 240, 0.12);
}

/* ── FONDO DE PARTÍCULAS ── */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--bg-0);
}

/* ── TEXTURA DE GRANO ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ── GRID DE PUNTOS ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.032) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* ═════════════════════════════════
   GLOWS LATERALES (estilo Kraken)
═════════════════════════════════ */
.edge-glow {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 180px;
    pointer-events: none;
    z-index: 1;
}

.edge-glow-left {
    left: 0;
    background: linear-gradient(to right,
        rgba(124, 92, 252, 0.07) 0%,
        transparent 100%);
}

.edge-glow-right {
    right: 0;
    background: linear-gradient(to left,
        rgba(124, 92, 252, 0.07) 0%,
        transparent 100%);
}

[data-theme="light"] .edge-glow-left {
    background: linear-gradient(to right, rgba(109, 63, 240, 0.05), transparent);
}
[data-theme="light"] .edge-glow-right {
    background: linear-gradient(to left, rgba(109, 63, 240, 0.05), transparent);
}

/* ═════════════════════════════════
   NAVBAR — estilo Kraken
═════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-smooth);
}

/* Contenedor interior con la forma de píldora */
.navbar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(6, 6, 9, 0.6);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 100px;
    padding: 0.45rem 0.5rem 0.45rem 1.4rem;
    width: 100%;
    max-width: 960px;
    transition: var(--t-smooth);
    box-shadow: 0 4px 40px rgba(0,0,0,0.35);
}

.navbar.scrolled .navbar-inner {
    background: rgba(4, 4, 8, 0.92);
    border-color: rgba(124, 92, 252, 0.14);
    box-shadow: 0 4px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,92,252,0.06);
}

[data-theme="light"] .navbar-inner {
    background: rgba(245, 243, 255, 0.82);
    border-color: rgba(109, 63, 240, 0.12);
    box-shadow: 0 4px 30px rgba(109,63,240,0.08);
}

[data-theme="light"] .navbar.scrolled .navbar-inner {
    background: rgba(245, 243, 255, 0.97);
    box-shadow: 0 4px 40px rgba(109,63,240,0.14);
}

/* Logo */
.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    color: var(--t1);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--t-fast);
}

.nav-logo:hover { color: var(--a-light); }

.nav-logo-text { color: inherit; }

/* Separador vertical entre logo y links */
.nav-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1.25rem;
    flex-shrink: 0;
}

[data-theme="light"] .nav-separator {
    background: rgba(109, 63, 240, 0.15);
}

/* Lista de links centrados */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.1rem;
    flex: 1;
}

.nav-link {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.42rem 0.9rem;
    border-radius: 100px;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    position: relative;
}

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

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    width: 60%;
    opacity: 1;
}

[data-theme="light"] .nav-link {
    color: rgba(26, 16, 51, 0.45);
}
[data-theme="light"] .nav-link:hover { color: var(--a); }
[data-theme="light"] .nav-link.active { color: var(--a); }
[data-theme="light"] .nav-link.active::after { background: var(--a); }

/* Acciones (tema toggle + CTA) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Botón de toggle tema */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.78rem;
    transition: var(--t-smooth);
    flex-shrink: 0;
    color: rgba(255,255,255,0.4);
    line-height: 1;
}

.theme-toggle:hover {
    background: var(--a-dim);
    border-color: rgba(124,92,252,0.4);
    color: var(--a-light);
    transform: rotate(20deg);
    box-shadow: 0 0 14px var(--a-glow);
}

[data-theme="light"] .theme-toggle {
    color: rgba(26,16,51,0.5);
    border-color: rgba(109,63,240,0.15);
    background: rgba(109,63,240,0.05);
}

/* CTA Contacto — píldora blanca estilo Kraken */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 1.25rem;
    background: #ffffff;
    color: #060609;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 2px 16px rgba(255,255,255,0.1);
}

.nav-cta-btn:hover {
    background: var(--a-light);
    color: #ffffff;
    box-shadow: 0 4px 24px var(--a-glow);
    transform: translateY(-1px);
}

[data-theme="light"] .nav-cta-btn {
    background: var(--a);
    color: #fff;
    box-shadow: 0 2px 16px var(--a-glow);
}

[data-theme="light"] .nav-cta-btn:hover {
    background: var(--a-dark);
}

/* Hamburguesa móvil */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    transition: var(--t-smooth);
}

/* ═════════════════════════════════
   CONTAINER
═════════════════════════════════ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* ═════════════════════════════════
   HERO
═════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Orbe principal */
.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 100vw);
    height: min(600px, 70vh);
    background: radial-gradient(ellipse at center, rgba(124, 92, 252, 0.12) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    animation: orb-float 8s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

/* Orbe secundario */
.hero-section::before {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    animation: orb-float 10s ease-in-out infinite reverse;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    animation: badge-appear 0.6s ease both;
}

@keyframes badge-appear {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Foto de perfil */
.profile-img-container {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.profile-img-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(var(--a), var(--cyan), var(--a-light), var(--a));
    animation: spin 8s linear infinite;
    z-index: 0;
}

.profile-img-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-0);
}

@keyframes spin { to { transform: rotate(360deg); } }

.profile-img-mask {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bg-0);
    z-index: 1;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.profile-img.default-img { opacity: 1; }
.profile-img.hover-img { opacity: 0; }
.profile-img-mask:hover .default-img { opacity: 0; }
.profile-img-mask:hover .hover-img { opacity: 1; }

/* Título hero */
.hero-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--t1);
    padding: 0 0.5rem;
}

.hero-heading .gradient-text {
    background: linear-gradient(125deg, var(--a-light) 0%, var(--a) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(124, 92, 252, 0.35));
}

/* Typing */
.typing-wrapper {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    color: var(--t2);
    font-weight: 400;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.typing-prefix {
    color: var(--cyan);
    font-weight: 600;
    opacity: 0.6;
}

#typing-text {
    color: var(--a-light);
    font-weight: 600;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--a-light);
    vertical-align: middle;
    margin-left: 1px;
    border-radius: 1px;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Iconos sociales */
.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--t2);
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--t-bounce);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--a-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    color: var(--a-light);
    border-color: var(--border-hover);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px var(--a-glow);
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--t3);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
    animation: fade-in-up 1s ease 1.5s both;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-indicator .mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-indicator .mouse::before {
    content: '';
    width: 2px;
    height: 5px;
    background: var(--a-light);
    border-radius: 2px;
    animation: scrolldot 2s ease-in-out infinite;
}

@keyframes scrolldot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* Logo SVG animado */
.svg-logo {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.svg-logo svg { height: 1.05em; overflow: visible; }

.logo-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 64px;
    fill: transparent;
    stroke: var(--a);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    paint-order: stroke fill;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    transition: fill 0.35s ease 1s;
}

@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes logo-pop {
    0% { transform: scale(1); }
    60% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.logo-text.animate {
    animation: logo-draw 0.8s ease forwards, logo-pop 0.28s ease 0.8s forwards;
}

.logo-text.filled {
    fill: var(--a-light);
    stroke-width: 0.6px;
    stroke: rgba(124, 92, 252, 0.5);
    filter: drop-shadow(0 0 12px rgba(124, 92, 252, 0.55));
}

@media (max-width: 480px) {
    .logo-text { font-size: 38px; stroke-width: 1.3; stroke-dasharray: 700; }
    .svg-logo svg { height: 1em; }
}

/* ═════════════════════════════════
   SECCIONES GENÉRICAS
═════════════════════════════════ */
.section {
    padding: 7rem 0;
    width: 100%;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--a-light);
    margin-bottom: 0.75rem;
}

.section-tag::before {
    content: '';
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--a), var(--cyan));
    border-radius: 1px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--t1);
    line-height: 1.12;
}

.section-subtitle {
    color: var(--t2);
    font-size: 0.95rem;
    margin-top: 0.7rem;
    max-width: 520px;
    line-height: 1.75;
}

.divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--a), var(--cyan));
    border-radius: 2px;
    margin-top: 1rem;
}

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

.about-text p {
    color: var(--t2);
    line-height: 1.85;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.about-text strong { color: var(--t1); }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: var(--t-smooth);
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--a), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.stat-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 20px var(--a-glow);
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--a-light);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.73rem;
    color: var(--t3);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ═════════════════════════════════
   PROJECTS
═════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: var(--t-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(32px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

/* Gradiente de brillo al hover */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* Línea superior de acento */
.project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--a) 50%, var(--cyan) 80%, transparent 95%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.project-card:hover {
    border-color: rgba(124, 92, 252, 0.35);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.project-card:hover::before { opacity: 1; }
.project-card:hover::after { opacity: 1; }

/* Imagen del proyecto */
.project-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6,6,9,0) 40%, rgba(6,6,9,0.85) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(6, 6, 9, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.8) translateY(-4px);
    transition: var(--t-smooth);
    cursor: zoom-in;
    z-index: 3;
}

.project-card:hover .project-zoom-btn {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.project-zoom-btn:hover {
    background: var(--a);
    border-color: var(--a);
    box-shadow: 0 0 16px var(--a-glow);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
    position: relative;
    z-index: 3;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.01em;
}

/* Indicadores de estado */
.status-dot {
    display: inline-flex;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    animation: pulse 2s infinite;
}

.status-archived {
    background: var(--red);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.status-inactive {
    background: var(--yellow);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    animation: pulse 3s infinite;
}

.project-desc {
    color: var(--t2);
    font-size: 0.85rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: auto;
    padding-top: 0.6rem;
}

.tech-tag {
    background: var(--a-dim);
    border: 1px solid rgba(124, 92, 252, 0.18);
    color: var(--a-light);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: var(--t-fast);
}

.tech-tag:hover {
    background: rgba(124, 92, 252, 0.22);
    border-color: var(--a);
    color: #fff;
}

/* ═════════════════════════════════
   SKILLS / TECH CAROUSEL (Estilo Kraken)
═════════════════════════════════ */
.tech-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 3.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech-carousel-track {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    width: max-content;
    animation: scroll 35s linear infinite;
    padding: 2.5rem 0 3.5rem;
}

.tech-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2.25rem)); } /* -50% doesn't account for gap perfectly if we don't adjust, but calc(-50% - gap/2) works */
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}

.tech-item i, .tech-svg svg, .cplusplus-icon svg {
    font-size: 2.8rem;
    height: 3.2rem;
    width: auto;
    display: block;
    filter: grayscale(100%) opacity(0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .tech-item i,
[data-theme="light"] .tech-svg svg,
[data-theme="light"] .cplusplus-icon svg {
    filter: grayscale(100%) opacity(0.4);
}

.tech-item:hover i, .tech-item:hover .tech-svg svg, .tech-item:hover .cplusplus-icon svg {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 16px currentColor);
    transform: scale(1.15) translateY(-4px);
}

.tech-item:hover .cplusplus-icon svg {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 16px rgba(0, 89, 156, 0.6));
}

.tech-label {
    position: absolute;
    bottom: -2.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--t1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    pointer-events: none;
}

.tech-item:hover .tech-label {
    opacity: 1;
    transform: translateY(0);
}

.cplusplus-icon {
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═════════════════════════════════
   CONTACT
═════════════════════════════════ */
.contact-section {
    text-align: center;
    position: relative;
}

.contact-glow {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 90vw);
    height: 300px;
    background: radial-gradient(ellipse, rgba(124, 92, 252, 0.08) 0%, rgba(192, 132, 252, 0.04) 40%, transparent 70%);
    pointer-events: none;
}

.contact-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 4rem 2.5rem;
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: var(--t-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Borde superior gradiente */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--a) 40%, var(--a2) 60%, transparent 95%);
}

/* Orbe sutil dentro de la card */
.contact-card::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 180px;
    background: radial-gradient(ellipse, rgba(124, 92, 252, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-card:hover {
    border-color: rgba(124, 92, 252, 0.25);
    box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 60px rgba(124, 92, 252, 0.08);
    transform: translateY(-2px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--a-dim);
    border: 1px solid rgba(124, 92, 252, 0.22);
    border-radius: 18px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--t-smooth);
}

.contact-card:hover .contact-icon {
    background: rgba(124, 92, 252, 0.18);
    border-color: var(--a);
    box-shadow: 0 0 24px var(--a-glow);
    transform: scale(1.05);
}

.contact-icon i {
    font-size: 1.65rem;
    color: var(--a-light);
}

.contact-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--t1);
    position: relative;
    z-index: 1;
}

.contact-text {
    color: var(--t2);
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ─── FORMULARIO DE CONTACTO ─── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--t2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.7rem 0.95rem;
    color: var(--t1);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: var(--t-smooth);
    resize: none;
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--t3);
    font-size: 0.82rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
    box-shadow: 0 0 0 3px var(--a-dim);
}

.form-group textarea {
    min-height: 110px;
    line-height: 1.6;
}

.contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, var(--a), var(--a-dark));
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: var(--t-smooth);
    box-shadow: 0 4px 20px var(--a-glow);
    position: relative;
    overflow: hidden;
    width: 100%;
    letter-spacing: 0.02em;
}

.contact-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--a-glow-strong);
}

.contact-submit:hover::before { opacity: 1; }

.contact-submit:active { transform: translateY(0); }

.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.contact-submit .submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.contact-submit.loading .submit-spinner { display: block; }
.contact-submit.loading .submit-label { display: none; }

/* Mensajes de éxito/error */
.form-feedback {
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-align: left;
}

.form-feedback.success {
    display: flex;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: var(--green);
}

.form-feedback.error {
    display: flex;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: var(--red);
}

/* Estilos del form en tema claro */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255,255,255,0.9);
    color: var(--t1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: #ffffff;
}


/* ═════════════════════════════════
   PIE DE PÁGINA SIMPLE
═════════════════════════════════ */
.footer-simple {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.footer-simple-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--t1);
    text-transform: uppercase;
    display: inline-block;
}

.footer-dot { color: var(--a-light); }

.footer-copyright {
    font-size: 0.75rem;
    color: var(--t3);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.footer-copyright i {
    font-size: 0.75rem;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-sm);
    color: var(--t3);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--t-smooth);
}

.footer-socials a:hover {
    background: var(--a-dim);
    border-color: rgba(124,92,252,0.4);
    color: var(--a-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--a-glow);
}

/* ═════════════════════════════════
   MUSIC WIDGET
═════════════════════════════════ */
.music-controller {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
    width: 300px;
}

.music-inner {
    background: rgba(8, 8, 14, 0.94);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 0.5rem;
    transition: var(--t-smooth);
    box-shadow: 0 8px 36px rgba(0,0,0,0.6);
}

.music-controller:hover .music-inner {
    border-color: rgba(124, 92, 252, 0.22);
    box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 20px var(--a-glow);
}

.music-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--t3);
    font-size: 0.68rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.music-toggle i { color: var(--a-light); font-size: 0.75rem; }

.music-title {
    font-size: 0.65rem;
    color: var(--t3);
    text-align: center;
    padding: 0.3rem 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.music-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.4rem 0.2rem;
    gap: 0.5rem;
}

.music-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--a-dim);
    border: 1px solid rgba(124, 92, 252, 0.18);
    border-radius: var(--r-sm);
    color: var(--a-light);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--t-fast);
    flex-shrink: 0;
}

.music-nav-btn:hover {
    background: rgba(124, 92, 252, 0.25);
    border-color: var(--a);
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--a-glow);
}

.music-track-info { flex: 1; text-align: center; }

.music-track-num {
    font-size: 0.62rem;
    color: var(--t3);
    font-weight: 600;
    letter-spacing: 0.06em;
    font-family: 'Space Grotesk', sans-serif;
}

.music-body { display: block; }
.spotify-embed { width: 100%; }

.spotify-embed iframe[data-testid="embed-iframe"] {
    width: 100% !important;
    height: 80px !important;
    border-radius: var(--r-sm);
    display: block;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.music-controller:hover .spotify-embed iframe[data-testid="embed-iframe"] {
    height: 152px !important;
}

/* ═════════════════════════════════
   IMAGE MODAL
═════════════════════════════════ */
.img-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.img-modal.open { display: flex; }

.img-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 8, 0.9);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.img-modal-shell {
    position: relative;
    z-index: 1;
    width: min(1000px, 96vw);
    max-height: 92vh;
    background: rgba(11, 11, 18, 0.97);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    box-shadow: 0 40px 100px rgba(0,0,0,0.85), 0 0 0 1px rgba(124, 92, 252, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.93) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.img-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.35rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.img-modal-project-badge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--a-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.img-modal-counter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--t3);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.img-modal-counter span { color: var(--t1); font-weight: 700; }

.img-modal-close {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-sm);
    color: var(--t2);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
    flex-shrink: 0;
}

.img-modal-close:hover {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
}

.img-modal-main {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0,0,0,0.3);
    padding: 1rem 0.75rem;
}

.img-modal-stage {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: 58vh;
}

.img-modal-img {
    max-width: 100%;
    max-height: 58vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--r-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
    transition: opacity 0.2s ease;
    opacity: 0;
    display: block;
}

.img-modal.open .img-modal-img { opacity: 1; }
.img-modal-stage-grad { display: none; }

.img-modal-prev,
.img-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    background: rgba(11, 11, 18, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 50%;
    color: var(--t1);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-smooth);
    flex-shrink: 0;
}

.img-modal-prev { left: 0.5rem; }
.img-modal-next { right: 0.5rem; }

.img-modal-prev:hover,
.img-modal-next:hover {
    background: var(--a);
    border-color: var(--a);
    box-shadow: 0 0 20px var(--a-glow);
    transform: translateY(-50%) scale(1.08);
}

.img-modal-bottom {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 0.9rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.img-modal-thumbs {
    display: flex;
    gap: 6px;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.img-modal-thumbs::-webkit-scrollbar { display: none; }

.img-modal-thumbs button {
    border: 2px solid transparent;
    background: rgba(255,255,255,0.04);
    padding: 2px;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--t-fast);
    opacity: 0.5;
}

.img-modal-thumbs button:hover { opacity: 0.8; border-color: rgba(255,255,255,0.15); }
.img-modal-thumbs button.active { border-color: var(--a); opacity: 1; box-shadow: 0 0 12px var(--a-glow); }
.img-modal-thumbs img { width: 72px; height: 46px; object-fit: cover; border-radius: 5px; display: block; }

.img-modal-info { text-align: center; }

.img-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.01em;
    margin-bottom: 0.15rem;
}

.img-modal-desc { font-size: 0.8rem; color: var(--t2); line-height: 1.5; }

.img-modal-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: var(--t3);
    letter-spacing: 0.03em;
}

.img-modal-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 5px;
    padding: 0.1rem 0.4rem;
    font-size: 0.67rem;
    font-family: 'Space Grotesk', monospace;
    color: var(--t2);
    min-width: 24px;
}

/* ═════════════════════════════════
   REVEAL ANIMATION
═════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ═════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═════════════════════════════════ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 0 1.5rem;
    }

    .footer-brand { max-width: 100%; }

    .footer-links-group {
        gap: 2rem;
    }
}

/* ═════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═════════════════════════════════ */
@media (max-width: 768px) {
    .navbar {
        padding: 0.7rem 1rem;
    }

    .navbar-inner {
        border-radius: 16px;
        padding: 0.5rem 0.75rem 0.5rem 1rem;
        max-width: 100%;
    }

    .nav-separator { display: none; }
    .nav-actions .nav-cta-btn { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        background: rgba(6, 6, 9, 0.97);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 14px;
        padding: 0.5rem;
        gap: 0.1rem;
        box-shadow: 0 16px 48px rgba(0,0,0,0.7);
    }

    [data-theme="light"] .nav-links {
        background: rgba(245, 243, 255, 0.98);
        border-color: rgba(109,63,240,0.12);
    }

    .nav-links.open { display: flex; }

    .nav-link {
        padding: 0.65rem 1rem;
        border-radius: 10px;
        font-size: 0.75rem;
    }

    .nav-link::after { display: none; }
    .nav-link.active { background: var(--a-dim); color: var(--a-light); }
    [data-theme="light"] .nav-link.active { background: rgba(109,63,240,0.08); }

    .nav-hamburger { display: flex; }
    .nav-actions { gap: 0.4rem; }

    .hero-section {
        padding: 100px 1.25rem 60px;
    }

    .hero-inner { gap: 1.5rem; }

    .hero-heading {
        font-size: 2.4rem;
        padding: 0;
    }

    .profile-img-container {
        width: 120px;
        height: 120px;
    }

    .section { padding: 5rem 0; }

    .container { padding: 0 1.25rem; }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
        gap: 0.75rem;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
        border-radius: var(--r-xl);
    }

    .music-controller {
        width: calc(100vw - 2rem);
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .music-toggle { display: flex; }

    .music-body {
        display: none;
        overflow: hidden;
    }

    .music-body.open { display: block; }

    .img-modal-prev { left: 0.25rem; }
    .img-modal-next { right: 0.25rem; }
}

/* ═════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═════════════════════════════════ */
@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    }

    .img-modal-topbar {
        padding: 0.7rem 1rem;
    }

    .img-modal-bottom {
        padding: 0.7rem 1rem;
    }

    .img-modal-thumbs img {
        width: 56px;
        height: 36px;
    }
}