/* 
 * ESTILO PERSONAL: Directo, práctico y moderno.
 * Tema: Dark Mode Premium con acentos Indigo y Cyan, y variante Light Mode.
 */

:root {
    /* Paleta Oscura (Default) */
    --bg-color: #050505;
    --bg-surface: #0a0a0a;
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #22d3ee;
    /* Cyan */
    --accent-tertiary: #a855f7;
    /* Purple */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Efectos compartidos */
    --hero-gradient: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    --aurora-opacity: 0.15;
    --grid-opacity: 0.04;

    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transiciones */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #b5bec8;
    --bg-surface: #afaeae;
    --accent-primary: #4f46e5;
    --accent-secondary: #0891b2;
    --accent-tertiary: #9333ea;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    --aurora-opacity: 0.05;
    --grid-opacity: 0.03;
}

/* --- Reseteo Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar Minimalista --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* --- Tipografía --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* --- Textos Gradientes --- */
.gradient-text {
    background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Sistema Dinámico de Fondos --- */
.background-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-color);
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--text-muted) 1px, transparent 1px),
        linear-gradient(to bottom, var(--text-muted) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: var(--grid-opacity);
    mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
}

.aurora-element {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: var(--aurora-opacity);
    animation: floating-aurora 25s infinite alternate ease-in-out;
}

.primary-aurora {
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
}

.secondary-aurora {
    background: var(--accent-secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 30s;
}

@keyframes floating-aurora {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-5%, 20%) scale(1.2);
    }
}

/* --- Navbar Glassmorphism --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: transparent;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}

.top-nav.scrolled {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

[data-theme="light"] .top-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
}

.nav-container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-base);
    border-radius: 2px;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--glass-border);
}

/* --- Theme Toggle --- */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    padding: 0.5rem;
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.sun-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* --- Progress Bar --- */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2001;
    background: transparent;
}

#scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary), var(--accent-tertiary));
    transition: width 0.1s ease;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

/* --- Secciones Comunes --- */
.content-section {
    padding: 8rem 0;
}

.section-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtext {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 60px;
    position: relative;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
    animation: pulsing 2s infinite;
}

@keyframes pulsing {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 211, 238, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

.animated-text-group {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: 900px;
    margin: 1rem auto;
}

.hero-subtitle-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.premium-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-base);
}

.premium-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.premium-button:hover::before {
    left: 100%;
    transition: 0.7s ease;
}

.premium-button svg {
    width: 20px;
    height: 20px;
}

.stats-glass-panel {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 5rem;
    padding: 2rem 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-separator {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* --- Value Props --- */
.value-prop-section {
    padding: 2rem 0 6rem;
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 2px;
    left: 0;
    background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
    opacity: 0.3;
    transition: var(--transition-base);
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.value-card:hover::after {
    background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent-primary), transparent);
    opacity: 1;
}

.card-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.blue-glow {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.purple-glow {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.cyan-glow {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
}

.value-card h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Tech Stack Grid --- */
.tech-stack-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.tech-category-group {
    display: flex;
    flex-direction: column;
}

.category-heading {
    font-size: 1.7rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--glass-border), transparent);
}

.tech-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.interactive-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.interactive-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Efecto linterna dinámica / Spotlight */
.interactive-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
            rgba(255, 255, 255, 0.05),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
}

.interactive-card:hover::before {
    opacity: 1;
}

.interactive-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    z-index: 2;
}

.interactive-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    z-index: 2;
}

.tech-logo-container {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition-base);
    z-index: 2;
}

.interactive-card:hover .tech-logo-container {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.1));
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    transform: scale(1.05);
}

.tech-logo-container svg {
    width: 32px;
    height: 32px;
}

/* --- Timeline Horizontal --- */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.timeline-navigator {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.nav-arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.nav-arrow-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: scale(1.05);
}

.nav-arrow-btn svg {
    width: 24px;
    height: 24px;
}

.horizontal-slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 2rem 0;
    cursor: grab;
}

.horizontal-slider-wrapper:active {
    cursor: grabbing;
}

.horizontal-track {
    display: flex;
    gap: 2.5rem;
    padding: 0 10vw;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
}

.horizontal-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.timeline-event-card {
    flex: 0 0 450px;
    height: 520px;
    /* Altura Fija */
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(10, 10, 10, 0.5) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.timeline-event-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(99, 102, 241, 0.05);
}

.event-meta {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 2;
}

.event-day-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-category-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-event-card h3 {
    flex-shrink: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    z-index: 2;
}

.event-details-markdown {
    flex-grow: 1;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    z-index: 2;
    padding-right: 15px;
    /* Espacio para el scroll invisible */
    /* Scroll minimalista para tarjetas */
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.event-details-markdown::-webkit-scrollbar {
    width: 4px;
}

.event-details-markdown::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.event-details-markdown ul {
    list-style: none;
    padding: 0;
}

.event-details-markdown li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.event-details-markdown li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Marca de agua de fondo con el día */
.event-watermark {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 8rem;
    line-height: 1;
    color: var(--text-muted);
    opacity: 0.05;
    position: absolute;
    bottom: -1rem;
    right: 0rem;
    pointer-events: none;
    z-index: 1;
}

/* --- Animaciones --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de texto estilo máquina / palabras */
.animated-text-group span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Visor Multi-Documento (Premium UI) --- */
.docs-view-section {
    padding-bottom: 8rem;
}

.docs-container {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    /* Layout Header-Lateral */
    min-height: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.docs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 250px;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
    z-index: 10;
}

.docs-tabs {
    width: 250px;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    padding: 2rem 0;
    position: relative;
    z-index: 11;
}

.doc-tab-btn {
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-bottom: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-tab-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.doc-tab-btn:hover {
    color: var(--text-primary);
    padding-left: 2.25rem;
}

.doc-tab-btn.active {
    color: var(--accent-secondary);
    border-left-color: var(--accent-secondary);
}

.doc-tab-btn.active::before {
    opacity: 0.1;
}

.docs-content-wrapper {
    flex: 1;
    padding: 4rem;
    position: relative;
    overflow-y: auto;
    max-height: 800px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 50%);
    /* Custom scroll visible y moderno para lectura */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.docs-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.docs-content-wrapper::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 6px;
}

.docs-content-wrapper:hover::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
}

.doc-content-panel {
    display: none;
    animation: fadeAndSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-content-panel.active {
    display: block;
}

@keyframes fadeAndSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Footer --- */
.app-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-sub {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .stats-glass-panel {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem;
        border-radius: 30px;
    }

    .stat-separator {
        width: 60px;
        height: 1px;
    }

    .hero-section {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .timeline-event-card {
        flex: 0 0 320px;
        padding: 2rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-navigator {
        margin-top: 1.5rem;
    }

    .docs-container {
        flex-direction: column;
    }

    .docs-container::before {
        display: none;
    }

    .docs-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .doc-tab-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .doc-tab-btn:hover {
        padding-left: 1.5rem;
    }

    .doc-tab-btn.active {
        border-bottom-color: var(--accent-secondary);
        border-left-color: transparent;
    }

    .doc-tab-btn::before {
        background: linear-gradient(180deg, var(--accent-primary) 0%, transparent 100%);
    }

    .docs-content-wrapper {
        padding: 2rem 1.5rem;
    }
}