/* ========================================
   Importaciones
   ======================================== */
@import url('variables.css');
@import url('navbar.css');
@import url('hero.css');
@import url('sections.css');
@import url('skills.css');
@import url('projects.css');
@import url('contact.css');
@import url('footer.css');
@import url('animations.css');
@import url('responsive.css');
@import url('education.css');
/* ========================================
   Reset y Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a192f 0%, #020c1b 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary-light);
}

/* ========================================
   Contenedores
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ========================================
   Tipografía
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: var(--text-heading-light);
}

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

body.light-mode p {
    color: var(--text-secondary-light);
}

strong {
    color: var(--accent);
    font-weight: 600;
}

body.light-mode strong {
    color: var(--accent-light);
}

/* ========================================
   Botones Base
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

body.light-mode .btn-primary {
    background: var(--accent-light);
    color: #fff;
    border-color: var(--accent-light);
}

body.light-mode .btn-primary:hover {
    background: transparent;
    color: var(--accent-light);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.2);
}

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

.btn-secondary:hover {
    background: rgba(79, 172, 254, 0.1);
    transform: translateY(-3px);
}

body.light-mode .btn-secondary {
    color: var(--accent-light);
    border-color: var(--accent-light);
}

body.light-mode .btn-secondary:hover {
    background: rgba(79, 172, 254, 0.05);
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-heading);
}

body.light-mode .section-title {
    color: var(--text-heading-light);
}

.title-number {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 1rem;
}

body.light-mode .title-number {
    color: var(--accent-light);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 2rem;
    max-width: 300px;
}

body.light-mode .section-title::after {
    background: var(--border-color-light);
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.scroll-to-top.show {
    display: flex;
}

body.light-mode .scroll-to-top {
    background: var(--accent-light);
    color: #fff;
}

/* ========================================
   Utilidades
   ======================================== */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

body.light-mode ::selection {
    background: var(--accent-light);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

body.light-mode ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: var(--accent-light);
}

/* Smooth transitions for theme */
*,
*::before,
*::after {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}