/* ============================================
   DANANNGEL CURBELO - HUB PERSONAL PREMIUM
   Fondo: Studio SIGI36 scroll reveal + Neon
   ============================================ */

html, body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
}


#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Altura del area de scroll - AJUSTA segun la cantidad de frames de tu video */
#scroll {
    height: 5000px;
}

/* Variables Neon */
:root {
    --neon-cyan: #00f0ff;
    --neon-green: #39ff14;
    --neon-magenta: #ff00ff;
    --neon-pink: #ff0055;
    --neon-purple: #bc13fe;
    --neon-orange: #ff6600;
    --neon-yellow: #ffff00;
    --neon-blue: #0066ff;
    --font-mono: 'JetBrains Mono', monospace;
}

::selection { background: var(--neon-cyan); color: #000; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,240,255,0.1);
    padding: 12px 0;
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
    color: #fff; text-decoration: none;
}
.logo-img {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; color: #000;
    box-shadow: 0 0 20px rgba(0,240,255,0.3);
}
.logo-bracket { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }

.nav-menu { display: flex; list-style: none; gap: 8px; }
.nav-link {
    font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.6);
    text-decoration: none; padding: 8px 16px; border-radius: 8px;
    transition: all 0.3s ease; position: relative;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(0,240,255,0.1);
    text-shadow: 0 0 10px var(--neon-cyan);
}
.nav-link::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--neon-cyan);
    border-radius: 2px; box-shadow: 0 0 8px var(--neon-cyan);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.3s; }

/* ============================================
   HERO - CAJA CENTRAL GRANDE CON CONTRASTE
   ============================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 80px; position: relative; overflow: hidden;
}

.hero-content {
    position: fixed;
    z-index: 20;
    width: 90%;
    max-width: 700px;
    padding: 50px 40px;
    border-radius: 28px;
    background: rgba(4, 12, 28, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 
        0 0 60px rgba(0,0,0,0.5),
        0 0 100px rgba(0,240,255,0.08),
        inset 0 0 60px rgba(0,0,0,0.2);
    pointer-events: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    /* TRANSICION PARA FADE OUT AL SCROLL */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.6s;
}

/* Estado oculto - se activa con JS al hacer scroll */
.hero-content.hidden {
    opacity: .4;
    transform: translate(-50%, -50%) scale(.7);
    visibility: hidden;
    pointer-events: none;
}


/* Flecha de scroll tambien se oculta */
.scroll-down.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    visibility: hidden;
    pointer-events: none;
}

/* FOTO/AVATAR - Arriba centrada dentro de la caja */
.hero-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.hero-avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
}
.avatar-glow {
    position: absolute; inset: -15px;
    background: radial-gradient(circle, rgba(0,240,255,0.3) 0%, transparent 70%);
    animation: glowRotate 8s linear infinite;
}
@keyframes glowRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.avatar-ring {
    position: absolute; inset: -8px;
    border: 2px solid rgba(0,240,255,0.2); border-radius: 50%;
    border-top-color: var(--neon-cyan); border-right-color: var(--neon-magenta);
    box-shadow: 0 0 15px rgba(0,240,255,0.2);
    animation: ringSpin 6s linear infinite;
}
@keyframes ringSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.hero-avatar {
    width: 140px; height: 140px; border-radius: 50%; overflow: hidden;
    position: relative; border: 3px solid rgba(0,240,255,0.3);
    box-shadow: 0 0 30px rgba(0,240,255,0.2);
    margin: 0 auto;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    font-size: 3rem; font-weight: 800; color: #000;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 500; color: var(--neon-green);
    padding: 8px 16px; border: 1px solid rgba(57,255,20,0.3); border-radius: 100px;
    margin-bottom: 20px; background: rgba(57,255,20,0.05);
    text-shadow: 0 0 10px rgba(57,255,20,0.5);
}
.badge-pulse {
    width: 8px; height: 8px; background: var(--neon-green);
    border-radius: 50%; animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--neon-green);
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title { margin-bottom: 16px; }
.title-line {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900; letter-spacing: -0.03em; line-height: 1.1;
    text-shadow: 0 0 30px rgba(0,240,255,0.3);
}
.title-line:last-child {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0,240,255,0.3));
}
.hero-subtitle {
    font-size: 0.95rem; color: var(--neon-cyan); font-weight: 500;
    margin-bottom: 14px; letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(0,240,255,0.4);
}
.hero-description {
    font-size: 0.95rem; color: rgba(255,255,255,0.85);
    margin-bottom: 28px; line-height: 1.7;
}

/* METRICAS DENTRO DE LA CAJA */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    border: 1px solid rgba(0,240,255,0.08);
}
.metric { text-align: center; }
.metric-value {
    display: block; font-size: 1.4rem; font-weight: 800;
    color: #fff; font-family: var(--font-mono);
    text-shadow: 0 0 15px var(--neon-cyan);
}
.metric-label { font-size: 0.6rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Buttons Neon */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; font-size: 0.9rem; font-weight: 600;
    border-radius: 12px; text-decoration: none; transition: all 0.3s ease;
    border: none; cursor: pointer; font-family: 'Inter', sans-serif;
}
.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #000;
    box-shadow: 0 0 20px rgba(0,240,255,0.4), 0 0 40px rgba(188,19,254,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0,240,255,0.6), 0 0 60px rgba(188,19,254,0.3);
}
.btn-secondary {
    background: transparent; color: #fff;
    border: 1px solid rgba(0,240,255,0.3);
    box-shadow: 0 0 10px rgba(0,240,255,0.1);
}
.btn-secondary:hover {
    background: rgba(0,240,255,0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0,240,255,0.2);
}
.btn-ghost { background: transparent; color: rgba(255,255,255,0.6); padding: 14px 20px; }
.btn-ghost:hover { color: #fff; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   FLECHA BAJA - Manda a Proyectos
   ============================================ */
.scroll-down {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    animation: bounce 2s infinite;
    /* TRANSICION PARA FADE OUT */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.6s;
}
.scroll-down-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0,240,255,0.5);
}
.scroll-down-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    transform: rotate(45deg);
    box-shadow: 3px 3px 15px rgba(0,240,255,0.4);
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

/* ============================================
   SECTIONS GENERALES
   ============================================ */
.section { padding: 100px 0; position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; font-family: var(--font-mono);
    font-size: 0.75rem; font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; color: var(--neon-cyan);
    padding: 6px 16px; border: 1px solid rgba(0,240,255,0.3);
    border-radius: 100px; margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0,240,255,0.3);
}
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0,240,255,0.2));
}
.section-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.5); max-width: 500px; margin: 0 auto; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.about-card {
    background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.08);
    border-radius: 20px; padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}
.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,240,255,0.3);
    box-shadow: 0 0 30px rgba(0,240,255,0.1), 0 0 60px rgba(0,240,255,0.05);
}
.card-icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: rgba(0,240,255,0.1); border-radius: 16px; margin-bottom: 24px;
    color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,240,255,0.1);
}
.about-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.about-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.about-narrative { max-width: 700px; margin: 0 auto; text-align: center; }
.narrative-text { font-size: 1.1rem; color: rgba(255,255,255,0.6); line-height: 1.8; }
.narrative-text strong { color: #fff; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
/* ============================================
   CAJA NEGRA RECTANGULAR (reutilizable)
   Mismo estilo que las cards de abajo
   ============================================ */
.black-box {
  background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.08);
    border-radius: 20px; padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;                  /* Espaciado interno */
  margin-bottom: 2rem;            /* Separación inferior */
   transform: translateY(-8px);
    border-color: rgba(0,240,255,0.3);
    box-shadow: 0 0 30px rgba(0,240,255,0.1), 0 0 60px rgba(0,240,255,0.05);
}

/* Ajuste para que el header quede centrado */
.black-box .section-header {
  text-align: center;
}

/* Ajuste para que la narrativa no tenga márgenes extra */
.black-box .about-narrative {
    text-align: center;
}


.black-box .narrative-text {
  margin: 0;
  line-height: 1.7;
}
/* ============================================
   SERVICES
   ============================================ */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
    position: relative; background: rgba(4,4,8,0.8);
    border: 1px solid rgba(0,240,255,0.08); border-radius: 20px;
    overflow: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,240,255,0.3);
    box-shadow: 0 0 30px rgba(0,240,255,0.1);
}
.service-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0,240,255,0.08), transparent 60%);
    opacity: 0; transition: 0.4s;
}
.service-card:hover .service-glow { opacity: 1; }
.service-content { position: relative; padding: 40px 32px; }
.service-icon {
    width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(188,19,254,0.15));
    border-radius: 20px; margin-bottom: 24px; color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0,240,255,0.1);
}
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 20px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--neon-cyan); text-decoration: none; transition: 0.3s; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.service-link span { transition: 0.3s; }
.service-link:hover span { transform: translateX(4px); }

/* ============================================
   TECH STACK
   ============================================ */
.tech-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 60px; }
.tech-category {
    background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.08);
    border-radius: 20px; padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}
.tech-category:hover {
    border-color: rgba(0,240,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0,240,255,0.1);
}
.tech-category h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.tech-items { display: flex; flex-direction: column; gap: 12px; }
.tech-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: 0.3s; }
.tech-item:hover { color: #fff; transform: translateX(4px); }
.tech-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color); box-shadow: 0 0 10px var(--color); }
.tech-sphere { width: 100%; height: 350px; display: flex; align-items: center; justify-content: center; }
#sphereCanvas { width: 125%; height: 125%; }

/* ============================================
   TIMELINE
   ============================================ */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple)); box-shadow: 0 0 10px var(--neon-cyan); transform: translateX(-50%); }
.timeline-item { position: relative; padding: 40px 0; display: flex; align-items: center; }
.timeline-item:nth-child(odd) { flex-direction: row; padding-right: calc(50% + 40px); text-align: right; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; padding-left: calc(50% + 40px); text-align: left; }
.timeline-dot {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 16px; height: 16px; background: #000;
    border: 3px solid var(--neon-cyan); border-radius: 50%; z-index: 2;
    box-shadow: 0 0 15px var(--neon-cyan); transition: 0.3s;
}
.timeline-dot.active { background: var(--neon-cyan); box-shadow: 0 0 25px var(--neon-cyan); }
.timeline-content {
    background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.08);
    border-radius: 20px; padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}
.timeline-content:hover { border-color: rgba(0,240,255,0.3); box-shadow: 0 0 20px rgba(0,240,255,0.1); }
.timeline-year { display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.3); margin-bottom: 8px; }
.timeline-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.timeline-content p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 16px; }
.timeline-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: inherit; }
.timeline-item:nth-child(odd) .timeline-tags { justify-content: flex-end; }
.timeline-tags span { font-size: 0.7rem; font-weight: 500; color: var(--neon-cyan); padding: 4px 10px; background: rgba(0,240,255,0.1); border-radius: 100px; text-shadow: 0 0 5px rgba(0,240,255,0.2); }

/* ============================================
   TECHNICAL TABS
   ============================================ */
.technical-tabs { max-width: 900px; margin: 0 auto; }
.tab-buttons { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 1px solid rgba(0,240,255,0.1); padding-bottom: 0; }
.tab-btn { padding: 12px 24px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.5); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: 0.3s; font-family: 'Inter', sans-serif; white-space: nowrap; }
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.tab-panel { display: none; animation: fadeIn 0.4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Architecture */
.architecture-diagram { background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.1); border-radius: 20px; padding: 40px; margin-bottom: 32px; backdrop-filter: blur(10px); }
.arch-layer { display: flex; justify-content: center; gap: 24px; margin: 16px 0; }
.arch-node { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 24px; background: rgba(0,0,0,0.5); border: 1px solid rgba(0,240,255,0.15); border-radius: 16px; min-width: 120px; transition: 0.3s; }
.arch-node:hover { border-color: var(--neon-cyan); transform: translateY(-2px); box-shadow: 0 0 15px rgba(0,240,255,0.1); }
.arch-node.client { border-color: var(--neon-green); box-shadow: 0 0 10px rgba(57,255,20,0.1); }
.arch-icon { font-size: 1.5rem; }
.arch-node span:last-child { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.arch-connector { width: 2px; height: 24px; background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-magenta)); margin: 0 auto; box-shadow: 0 0 5px var(--neon-cyan); }
.architecture-text h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.architecture-text p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 16px; }
.architecture-text p strong { color: #fff; }

/* Exercise */
.exercise-container { background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.1); border-radius: 20px; padding: 40px; backdrop-filter: blur(10px); }
.exercise-problem { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(0,240,255,0.1); }
.exercise-problem h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.exercise-problem p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.exercise-solution h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--neon-green); text-shadow: 0 0 10px rgba(57,255,20,0.3); }
.code-block { background: #000; border: 1px solid rgba(0,240,255,0.15); border-radius: 12px; padding: 24px; margin-bottom: 20px; overflow-x: auto; }
.code-block pre { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.7); }
.code-block code { color: var(--neon-cyan); text-shadow: 0 0 5px rgba(0,240,255,0.3); }
.exercise-solution > p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.exercise-solution > p strong { color: #fff; }

/* Decisions */
.decisions-list { display: flex; flex-direction: column; gap: 24px; }
.decision-item { display: flex; gap: 24px; background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.08); border-radius: 20px; padding: 32px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(10px); }
.decision-item:hover { border-color: rgba(0,240,255,0.3); box-shadow: 0 0 20px rgba(0,240,255,0.1); }
.decision-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 800; color: var(--neon-cyan); opacity: 0.5; line-height: 1; min-width: 50px; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.decision-content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.decision-content p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ============================================
   LIVE METRICS
   ============================================ */
.metrics-section { background: linear-gradient(135deg, rgba(0,240,255,0.03), rgba(57,255,20,0.03)); border-top: 1px solid rgba(0,240,255,0.08); border-bottom: 1px solid rgba(0,240,255,0.08); padding: 80px 0; }
.live-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.live-metric {
    text-align: center; padding: 32px;
    background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.08);
    border-radius: 20px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}
.live-metric:hover { transform: translateY(-4px); border-color: rgba(0,240,255,0.3); box-shadow: 0 0 30px rgba(0,240,255,0.1); }
.live-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(0,240,255,0.1); border-radius: 14px; margin: 0 auto 16px; color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,240,255,0.1); }
.live-value { display: block; font-size: 2.5rem; font-weight: 800; color: #fff; font-family: var(--font-mono); margin-bottom: 8px; text-shadow: 0 0 20px var(--neon-cyan); }
.live-label { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================
   SOCIAL
   ============================================ */
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.social-card {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 32px 24px; background: rgba(4,4,8,0.8);
    border: 1px solid rgba(0,240,255,0.08); border-radius: 20px;
    text-decoration: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}
.social-card:hover { transform: translateY(-8px); border-color: rgba(0,240,255,0.3); }
.social-card.linkedin:hover { border-color: #0A66C2; box-shadow: 0 8px 30px rgba(10,102,194,0.2); }
.social-card.github:hover { border-color: #fff; box-shadow: 0 8px 30px rgba(255,255,255,0.1); }
.social-card.facebook:hover { border-color: #1877F2; box-shadow: 0 8px 30px rgba(24,119,242,0.2); }
.social-card.youtube:hover { border-color: #FF0000; box-shadow: 0 8px 30px rgba(255,0,0,0.2); }
.social-card.whatsapp:hover { border-color: #25D366; box-shadow: 0 8px 30px rgba(37,211,102,0.2); }
.social-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; transition: 0.3s; }
.social-card.linkedin .social-icon { background: rgba(10,102,194,0.1); color: #0A66C2; }
.social-card.github .social-icon { background: rgba(255,255,255,0.1); color: #fff; }
.social-card.facebook .social-icon { background: rgba(24,119,242,0.1); color: #1877F2; }
.social-card.youtube .social-icon { background: rgba(255,0,0,0.1); color: #FF0000; }
.social-card.whatsapp .social-icon { background: rgba(37,211,102,0.1); color: #25D366; }
.social-name { font-size: 0.95rem; font-weight: 600; color: #fff; }
.social-handle { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-card {
    background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.08);
    border-radius: 24px; padding: 40px; text-align: center;
    backdrop-filter: blur(10px);
}
.contact-avatar { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 24px; overflow: hidden; border: 2px solid rgba(0,240,255,0.2); box-shadow: 0 0 20px rgba(0,240,255,0.2); }
.contact-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)); font-size: 2.5rem; font-weight: 800; color: #000; }
.contact-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; color: #fff; }
.contact-role { font-size: 0.9rem; color: var(--neon-cyan); margin-bottom: 32px; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.contact-item svg { color: var(--neon-cyan); flex-shrink: 0; filter: drop-shadow(0 0 5px rgba(0,240,255,0.3)); }
.contact-actions { display: flex; gap: 12px; }
.contact-actions .btn { flex: 1; justify-content: center; }
.contact-form-wrapper { background: rgba(4,4,8,0.8); border: 1px solid rgba(0,240,255,0.08); border-radius: 24px; padding: 40px; backdrop-filter: blur(10px); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px; font-size: 0.9rem; font-family: 'Inter', sans-serif;
    background: rgba(0,0,0,0.5); border: 1px solid rgba(0,240,255,0.15); border-radius: 12px;
    color: #fff; transition: 0.3s; outline: none; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,240,255,0.2); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: rgba(0,0,0,0.95); border-top: 1px solid rgba(0,240,255,0.08); padding: 60px 0 30px; position: relative; z-index: 2; backdrop-filter: blur(10px); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-img {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 800; color: #000;
    box-shadow: 0 0 15px rgba(0,240,255,0.3);
}
.footer-brand-text { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-brand p { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-top: 8px; font-weight: 400; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(0,240,255,0.08); }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-quote { margin-top: 8px; font-style: italic; color: rgba(255,255,255,0.3); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed; bottom: 30px; right: 100px; z-index: 99;
    width: 48px; height: 48px; background: rgba(4,4,8,0.9);
    border: 1px solid rgba(0,240,255,0.2); border-radius: 50%;
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px); box-shadow: 0 0 15px rgba(0,240,255,0.1);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--neon-cyan); border-color: var(--neon-cyan); color: #000; transform: translateY(-4px); box-shadow: 0 0 25px rgba(0,240,255,0.4); }

/* ============================================
   AI ASSISTANT
   ============================================ */
.ai-assistant { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.ai-toggle {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none; color: #000; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 0 25px rgba(0,240,255,0.4), 0 0 50px rgba(188,19,254,0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative;
}
.ai-toggle:hover { transform: scale(1.1); box-shadow: 0 0 35px rgba(0,240,255,0.6), 0 0 70px rgba(188,19,254,0.3); }
.ai-toggle-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--neon-cyan); animation: aiPulse 2s infinite; box-shadow: 0 0 10px var(--neon-cyan); }
@keyframes aiPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.ai-chat {
    position: absolute; bottom: 80px; right: 0; width: 380px; max-height: 600px;
    background: rgba(0,0,0,0.95); border: 1px solid rgba(0,240,255,0.2); border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(0,240,255,0.1);
    overflow: hidden; display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(20px);
}
.ai-chat.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: rgba(0,0,0,0.95); border-bottom: 1px solid rgba(0,240,255,0.1); }
.ai-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: #000; box-shadow: 0 0 15px rgba(0,240,255,0.3); }
.ai-info { flex: 1; }
.ai-info h4 { font-size: 0.95rem; font-weight: 700; color: #fff; }
.ai-status { font-size: 0.75rem; color: var(--neon-green); display: flex; align-items: center; gap: 4px; text-shadow: 0 0 5px rgba(57,255,20,0.3); }
.ai-status::before { content: ''; width: 6px; height: 6px; background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 5px var(--neon-green); }
.ai-close { width: 32px; height: 32px; background: transparent; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.ai-close:hover { color: #fff; }
.ai-messages { flex: 1; overflow-y: auto; padding: 20px 24px; max-height: 350px; display: flex; flex-direction: column; gap: 16px; }
.ai-message { display: flex; gap: 12px; animation: messageIn 0.3s ease; }
@keyframes messageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ai-message.bot { align-self: flex-start; }
.ai-message.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-message .message-content { max-width: 280px; padding: 12px 16px; border-radius: 16px; font-size: 0.85rem; line-height: 1.5; }
.ai-message.bot .message-content { background: rgba(0,0,0,0.8); border: 1px solid rgba(0,240,255,0.15); color: rgba(255,255,255,0.7); border-bottom-left-radius: 4px; }
.ai-message.user .message-content { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)); color: #000; border-bottom-right-radius: 4px; font-weight: 500; }
.ai-input-area { display: flex; gap: 8px; padding: 16px 24px; border-top: 1px solid rgba(0,240,255,0.1); background: rgba(0,0,0,0.95); }
.ai-input { flex: 1; padding: 12px 16px; font-size: 0.85rem; font-family: 'Inter', sans-serif; background: rgba(0,0,0,0.8); border: 1px solid rgba(0,240,255,0.15); border-radius: 12px; color: #fff; outline: none; transition: 0.3s; }
.ai-input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,240,255,0.2); }
.ai-send, .ai-voice { width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--neon-cyan); color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; flex-shrink: 0; box-shadow: 0 0 10px rgba(0,240,255,0.3); }
.ai-send:hover, .ai-voice:hover { background: var(--neon-purple); transform: scale(1); box-shadow: 0 0 20px rgba(188,19,254,0.4); }
.ai-voice { background: rgba(0,0,0,0.8); border: 1px solid rgba(0,240,255,0.15); color: rgba(255,255,255,0.5); }
.ai-voice:hover { color: #fff; border-color: var(--neon-cyan); }
.ai-voice.recording { background: #ef4444; color: #fff; animation: recordingPulse 1s infinite; }
@keyframes recordingPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 16px; background: rgba(0,0,0,0.95); }
.suggestion-chip { padding: 8px 14px; font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.5); background: rgba(0,0,0,0.8); border: 1px solid rgba(0,240,255,0.15); border-radius: 100px; cursor: pointer; transition: 0.3s; font-family: 'Inter', sans-serif; }
.suggestion-chip:hover { background: var(--neon-cyan); color: #000; border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,240,255,0.3); }

/* ============================================
   ANIMATIONS
   ============================================ */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content { width: 80%; padding: 40px 30px; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); }
    .tech-categories, .social-grid { grid-template-columns: repeat(2, 1fr); }
    .live-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; top: 70px; left: 0; right: 0; background: rgba(0,0,0,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 24px; gap: 0; border-bottom: 1px solid rgba(0,240,255,0.1); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: 0.4s; }
    .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link { padding: 16px; border-radius: 0; border-bottom: 1px solid rgba(0,240,255,0.1); }
    .hero-content { width: 92%; padding: 30px 20px; left: 50%; top: 45%; }
    .hero-avatar-container { width: 100px; height: 100px; }
    .hero-avatar { width: 100px; height: 100px; }
    .title-line { font-size: 2rem; }
    .about-grid, .services-grid, .tech-categories { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .timeline-item { padding: 20px 0 !important; padding-left: 60px !important; text-align: left !important; flex-direction: row !important; }
    .timeline-line { left: 20px; }
    .timeline-dot { left: 20px !important; }
    .timeline-tags { justify-content: flex-start !important; }
    .tab-buttons { overflow-x: auto; }
    .live-metrics { grid-template-columns: 1fr 1fr; }
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
    .ai-chat { width: calc(100vw - 48px); right: -15px; }
    .section { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }
    .scroll-down { bottom: 20px; }
    .scroll-down-text { font-size: 0.65rem; }
}
@media (max-width: 480px) {
    .social-grid { grid-template-columns: 1fr; }
    .live-metrics { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .hero-content { padding: 24px 16px; }
    .title-line { font-size: 1.8rem; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
    .metric-value { font-size: 1.1rem; }
}

:root{

--bg:#000000;
--text:#ffffff;
--gold:#FFD54A;
--gold2:#F6B800;

--track:rgba(255,255,255,.15);

--glass:rgba(255,255,255,.05);

--border:rgba(255,255,255,.10);

--blur:18px;

--font:'Inter',sans-serif;

}

*{

margin:0;
padding:0;
box-sizing:border-box;

}

html{

scroll-behavior:smooth;

}

html,
body{

width:100%;
min-height:100%;
background:#000;
overflow-x:hidden;
font-family:var(--font);

}

body{

color:#fff;

}

/* ------------------------------ */

#videoCanvas{

position:fixed;
inset:0;

width:100%;
height:100%;

display:block;

z-index:1;

background:#000;

}

/* ------------------------------ */

#particlesCanvas{

position:fixed;

inset:0;

width:100%;
height:100%;

pointer-events:none;

z-index:2;

}




/* ------------------------------ */

#progress{

position:fixed;

right:34px;

top:50%;

transform:translateY(-50%);

z-index:100;

display:flex;

flex-direction:column;

align-items:center;

gap:18px;

}

.progress-track{

position:relative;

width:5px;

height:260px;

border-radius:20px;

overflow:hidden;

background:rgba(255,255,255,.10);

box-shadow:

0 0 15px rgba(255,255,255,.10);

}

.progress-fill{

position:absolute;

left:0;

bottom:0;

width:100%;

height:0%;

background:

linear-gradient(

180deg,

#ffffff,

#eeeeee,

#FFD54A,

#FFB300

);

transition:height .06s linear;

box-shadow:

0 0 25px rgba(255,210,80,.65);

}

.progress-value{

font-size:18px;

font-weight:700;

letter-spacing:1px;

min-width:70px;

text-align:center;

}

/* ------------------------------ */

#loading{

position:fixed;

inset:0;

background:#000;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

z-index:99999;

transition:opacity .7s ease;

}

.loader-logo{

font-size:58px;

font-weight:800;

letter-spacing:-2px;

margin-bottom:50px;

}

.loader-logo span{

color:#FFD54A;

}

.loader-bar{

width:min(340px,85vw);

height:6px;

border-radius:20px;

overflow:hidden;

background:#222;

}

.loader-progress{

height:100%;

width:0%;

background:

linear-gradient(

90deg,

#ffffff,

#FFD54A

);

transition:width .25s linear;

}

.loader-text{

margin-top:25px;

opacity:.75;

font-size:15px;

letter-spacing:1px;

}

/* ------------------------------ */

.fade-out{

opacity:0;

pointer-events:none;

}

/* ------------------------------ */

@media (max-width:992px){

.progress-track{

height:210px;

}

.hero-content h1{

letter-spacing:-1px;

}

}

@media (max-width:768px){

#progress{

right:14px;

}

.progress-track{

height:160px;

width:4px;

}

.progress-value{

font-size:14px;

}

.hero-content{

padding:10px;

}

.hero-content h1{

font-size:54px;

}

.hero-content p{

font-size:18px;

line-height:1.6;

}

}

@media (max-width:480px){

.hero-content h1{

font-size:42px;

}

.hero-content p{

font-size:16px;

}

.progress-track{

height:120px;

}

}