/* ===== Variables CSS - Tema estilo GitHub/VS Code ===== */
:root {
    /* Colores principales */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    
    /* Bordes */
    --border-default: #30363d;
    --border-muted: #21262d;
    
    /* Texto */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Acentos */
    --accent-primary: #58a6ff;
    --accent-secondary: #238636;
    --accent-warning: #d29922;
    --accent-danger: #f85149;
    --accent-purple: #a371f7;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    --gradient-green: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    
    /* Bordes redondeados */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-brand i {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-right: 0.5rem;
}

.lang-toggle:hover {
    background-color: var(--border-default);
    color: var(--text-primary);
}

.lang-flag {
    font-size: 1rem;
}

.lang-code {
    font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem 3rem;
    background: 
        radial-gradient(ellipse at top right, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(163, 113, 247, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-content {
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 1rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--border-default);
    box-shadow: var(--shadow-lg);
}

.status-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-default);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

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

.hero-text .greeting {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.hero-text .name {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-text .title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-text .bio {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-green);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background-color: var(--border-default);
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 3rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-default);
}

.section-header i {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ===== About Section ===== */
.about-card {
    background: transparent;
    border: none;
    padding: 0;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 800px;
}

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

.stat {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* ===== Timeline (Formación) ===== */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-default);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background-color: var(--accent-primary);
    border: 2px solid var(--bg-primary);
    border-radius: var(--radius-full);
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-institution {
    color: var(--accent-primary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-institution-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid var(--border-default);
}

/* ===== Academic Performance Button ===== */
.btn-grades {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-grades:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== Academic Performance Section ===== */
.academic-section {
    margin-top: 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.academic-section.hidden {
    display: none;
}

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

.academic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
}

.academic-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.academic-header h3 i {
    color: var(--accent-primary);
}

.btn-close-grades {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-close-grades:hover {
    background-color: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
}

/* Grades Overview */
.grades-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-default);
}

.grade-stat {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.grade-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.grade-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grade-stat.highlight {
    border-color: var(--accent-primary);
    background-color: rgba(88, 166, 255, 0.08);
}

.grade-stat.highlight .grade-stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Areas Performance */
.areas-performance {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-default);
}

.areas-performance h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.areas-performance h4 i {
    color: var(--accent-primary);
}

.areas-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.area-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.area-name {
    flex: 0 0 180px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.area-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.area-bar {
    flex: 1;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.area-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-out;
}

.area-grade {
    flex: 0 0 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
}

/* Subjects List */
.subjects-list {
    padding: 1.25rem;
}

.subjects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.subjects-header h4 {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.subjects-header h4 i {
    color: var(--accent-primary);
}

.subjects-filter select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    cursor: pointer;
}

.subjects-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.subject-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.subject-item.matricula {
    border-left: 3px solid var(--accent-secondary);
}

.subject-info {
    flex: 1;
}

.subject-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.subject-area {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.subject-grade {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subject-grade-value {
    font-size: 1rem;
    font-weight: 700;
    min-width: 35px;
    text-align: right;
}

.subject-grade-value.excellent {
    color: var(--accent-secondary);
}

.subject-grade-value.good {
    color: var(--accent-primary);
}

.subject-grade-value.average {
    color: var(--accent-warning);
}

.matricula-badge {
    background: var(--gradient-green);
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .grades-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .area-name {
        flex: 0 0 120px;
        font-size: 0.7rem;
    }
    
    .subjects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ===== Languages Section ===== */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.language-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.language-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.language-flag {
    font-size: 2rem;
    width: 2rem;
    text-align: center;
}

.language-flag-img {
    width: 2rem;
    height: 1.5rem;
    border-radius: 4px;
    object-fit: cover;
}

.language-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.language-level {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.level-bar {
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out;
}

/* ===== Language Card Clickable ===== */
.language-card.clickable {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.language-card.clickable:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.cert-indicator {
    margin-left: auto;
    color: var(--accent-primary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.language-card.clickable:hover .cert-indicator {
    opacity: 1;
}

/* ===== Certifications Section ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.cert-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.cert-content {
    flex: 1;
}

.cert-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-badge {
    color: var(--accent-secondary);
    font-size: 1.25rem;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--accent-danger);
    border-color: var(--accent-danger);
}

.modal-title {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-default);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.cert-btn:hover {
    border-color: var(--accent-primary);
    background-color: rgba(88, 166, 255, 0.1);
    transform: translateX(5px);
}

.cert-btn-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.cert-btn-text {
    flex: 1;
}

.cert-btn-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-btn-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cert-btn-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.cert-btn:hover .cert-btn-arrow {
    transform: translateX(5px);
    color: var(--accent-primary);
}

.modal-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.modal-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    align-self: flex-start;
}

.modal-back-btn:hover {
    background-color: var(--border-default);
    color: var(--text-primary);
}

.modal-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

@media (max-width: 768px) {
    .cert-btn {
        padding: 1rem;
    }
    
    .cert-btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== Experience Section ===== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.experience-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.company-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--accent-primary);
}

.experience-title {
    flex: 1;
}

.experience-title h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.company-name {
    color: var(--accent-primary);
    font-size: 0.875rem;
}

.experience-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.experience-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.experience-achievements {
    list-style: none;
    margin-bottom: 1rem;
}

.experience-achievements li {
    color: var(--text-secondary);
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.experience-achievements i {
    color: var(--accent-secondary);
    font-size: 0.75rem;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    background-color: rgba(88, 166, 255, 0.15);
    color: var(--accent-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    padding: 2rem 1rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-info h3 i {
    color: var(--accent-primary);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.footer-contact a:hover {
    color: var(--accent-primary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-default);
}

.footer-bottom p {
    color: var (--text-muted);
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        border-right: 1px solid var(--border-default);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        z-index: 999;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.875rem 1rem;
        border-radius: var(--radius-md);
        font-size: 1rem;
    }

    .nav-links a:hover {
        background-color: var(--bg-tertiary);
    }

    .nav-toggle {
        display: block;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 998;
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-image {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image img {
        width: 150px;
        height: 150px;
    }

    .status-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 0.75rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        justify-content: center;
    }

    .hero-text .name {
        font-size: 2rem;
    }

    .hero-text .title {
        font-size: 1rem;
    }

    .hero-text .bio {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-links {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .timeline {
        padding-left: 1.25rem;
    }

    .timeline-header {
        flex-direction: column;
    }

    .experience-header {
        flex-direction: column;
    }

    .experience-date {
        order: -1;
    }

    .section {
        padding: 2rem 1rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Contact Modal ===== */
.contact-modal-content {
    max-width: 480px;
}

.contact-body {
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.contact-item:hover {
    border-color: var(--accent-primary);
    background-color: rgba(88, 166, 255, 0.05);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.95rem;
    word-break: break-all;
    transition: color var(--transition-fast);
}

.contact-value:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.contact-value-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .contact-modal-content {
        margin: 1rem;
    }
    
    .contact-item {
        padding: 0.875rem 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-value {
        font-size: 0.85rem;
    }
}

/* ===== Interests Section ===== */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.interest-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.interest-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.interest-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.interest-card:nth-child(2) .interest-icon {
    background: linear-gradient(135deg, #f85149 0%, #da3633 100%);
}

.interest-card:nth-child(3) .interest-icon {
    background: linear-gradient(135deg, #f0883e 0%, #d29922 100%);
}

.interest-card:nth-child(4) .interest-icon {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
}

.interest-card:nth-child(5) .interest-icon {
    background: linear-gradient(135deg, #a371f7 0%, #8957e5 100%);
}

.interest-card:nth-child(6) .interest-icon {
    background: linear-gradient(135deg, #db61a2 0%, #bf4b8a 100%);
}

.interest-card:nth-child(7) .interest-icon {
    background: linear-gradient(135deg, #3fb950 0%, #238636 100%);
}

.interest-card:nth-child(8) .interest-icon {
    background: linear-gradient(135deg, #6e7681 0%, #484f58 100%);
}

.interest-card h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.interest-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .interest-card {
        padding: 1.25rem 1rem;
    }
    
    .interest-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .interest-card h3 {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .interest-card {
        padding: 1rem 0.75rem;
    }
    
    .interest-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .interest-card h3 {
        font-size: 0.8rem;
    }
}
