/*
 * ==========================================================================
 * VARIABLES.CSS - Design Tokens
 * Jonathan Chavez Carpio - Professional CV Landing Page
 * ==========================================================================
 */

:root {
    /* ==========================================
   * COLOR PALETTE
   * ========================================== */

    /* Primary Colors */
    --color-primary: #667eea;
    --color-primary-dark: #5a6fd6;
    --color-primary-light: #8b9cf0;

    /* Secondary Colors */
    --color-secondary: #764ba2;
    --color-secondary-dark: #6a4291;
    --color-secondary-light: #9163b8;

    /* Accent Colors */
    --color-accent: #ff0080;
    --color-accent-dark: #e6006d;
    --color-accent-light: #ff3399;

    /* Semantic Colors */
    --color-success: #48bb78;
    --color-success-dark: #38a169;
    --color-warning: #ed8936;
    --color-error: #f56565;
    --color-info: #4299e1;

    /* Neutral Colors - Light Mode */
    --color-white: #ffffff;
    --color-gray-50: #f7fafc;
    --color-gray-100: #edf2f7;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e0;
    --color-gray-400: #a0aec0;
    --color-gray-500: #718096;
    --color-gray-600: #4a5568;
    --color-gray-700: #2d3748;
    --color-gray-800: #1a202c;
    --color-gray-900: #171923;
    --color-black: #000000;

    /* ==========================================
   * THEME COLORS - Light Mode (Default)
   * ========================================== */
    --bg-body: #ebecf0;
    --bg-surface: #ebecf0;
    --bg-elevated: #f5f6fa;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-inverse: #ffffff;

    --border-color: rgba(0, 0, 0, 0.1);
    --border-focus: var(--color-primary);

    /* Neumorphism Shadows - Light */
    --shadow-light: -5px -5px 10px #ffffff;
    --shadow-dark: 5px 5px 10px #babecc;
    --shadow-inset: inset 5px 5px 10px #babecc, inset -5px -5px 10px #ffffff;

    /* Navbar background */
    --nav-bg: rgba(235, 236, 240, 0.85);

    /* ==========================================
   * SHADOW SYSTEM (5 levels)
   * ========================================== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* ==========================================
   * TYPOGRAPHY
   * ========================================== */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', 'Andale Mono', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;

    /* ==========================================
   * SPACING SYSTEM (8px base)
   * ========================================== */
    --space-0: 0;
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */
    --space-32: 8rem;
    /* 128px */

    /* ==========================================
   * BORDER RADIUS
   * ========================================== */
    --radius-none: 0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* ==========================================
   * LAYOUT
   * ========================================== */
    --container-max: 1400px;
    --container-padding-mobile: 16px;
    --container-padding-tablet: 32px;
    --container-padding-desktop: 48px;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* ==========================================
   * TRANSITIONS
   * ========================================== */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;

    /* ==========================================
   * GRADIENTS
   * ========================================== */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* ==========================================
 * DARK MODE THEME
 * ========================================== */
[data-theme="dark"] {
    --bg-body: #1a1a2e;
    --bg-surface: #16213e;
    --bg-elevated: #1f3460;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    --text-inverse: #1a202c;

    --border-color: rgba(255, 255, 255, 0.1);

    /* Neumorphism Shadows - Dark */
    --shadow-light: -5px -5px 10px rgba(255, 255, 255, 0.05);
    --shadow-dark: 5px 5px 10px rgba(0, 0, 0, 0.4);
    --shadow-inset: inset 5px 5px 10px rgba(0, 0, 0, 0.3), inset -5px -5px 10px rgba(255, 255, 255, 0.05);

    /* Navbar background */
    --nav-bg: rgba(22, 33, 62, 0.9);

    /* Adjusted shadows for dark mode */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);

    /* Gradient adjustments */
    --gradient-hero: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}
/*
 * ==========================================================================
 * RESET.CSS - Cross-browser Normalization
 * Jonathan Chavez Carpio - Professional CV Landing Page
 * ==========================================================================
 */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Remove default list styles */
ul,
ol {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: var(--leading-normal);
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
label {
    line-height: var(--leading-tight);
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Links */
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/* Remove all animations and transitions for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Selection color */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-400) var(--bg-surface);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    z-index: var(--z-tooltip);
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Visually hidden but focusable */
.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
/*
 * ==========================================================================
 * LAYOUT.CSS - Grid System & Structure
 * Jonathan Chavez Carpio - Professional CV Landing Page
 * ==========================================================================
 */

/* ==========================================
 * CONTAINER
 * ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--container-padding-tablet);
        padding-right: var(--container-padding-tablet);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--container-padding-desktop);
        padding-right: var(--container-padding-desktop);
    }
}

/* ==========================================
 * 12-COLUMN GRID SYSTEM
 * ========================================== */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* Auto-fit grids */
.grid-auto-fit-sm {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-auto-fit-md {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fit-lg {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Gap utilities */
.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-12 {
    gap: var(--space-12);
}

/* ==========================================
 * FLEXBOX UTILITIES
 * ========================================== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

/* ==========================================
 * SECTIONS
 * ========================================== */
section {
    padding: var(--space-16) 0;
    position: relative;
}

@media (min-width: 768px) {
    section {
        padding: var(--space-24) 0;
    }
}

.section-alt {
    background-color: var(--bg-surface);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-12);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--space-3) auto 0;
    border-radius: var(--radius-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: calc(var(--space-12) * -1 + var(--space-6)) auto var(--space-12);
}

/* ==========================================
 * NAVBAR
 * ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-4) 0;
    transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
}

.navbar-links {
    display: none;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }
}

.navbar-links a {
    color: var(--text-muted);
    font-weight: var(--font-medium);
    position: relative;
    padding: var(--space-1) 0;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--color-primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: var(--space-3);
    color: var(--text-primary);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.mobile-menu a:hover {
    background: var(--bg-elevated);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* ==========================================
 * HERO SECTION
 * ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: var(--text-xl);
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-10);
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Avatar */
.hero-avatar {
    width: 280px;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-avatar {
        width: 320px;
        padding: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .hero-avatar {
        width: 380px;
    }
}

.hero-avatar-image {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-avatar-image {
        width: 220px;
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .hero-avatar-image {
        width: 260px;
        height: 260px;
    }
}

.hero-avatar-emoji {
    font-size: 6rem;
}

.hero-avatar-icon {
    color: var(--color-primary);
}

.hero-avatar-icon svg {
    width: 80px;
    height: 80px;
}

@media (min-width: 768px) {
    .hero-avatar-emoji {
        font-size: 8rem;
    }

    .hero-avatar-icon svg {
        width: 120px;
        height: 120px;
    }
}

.hero-location-badge {
    padding: var(--space-2) var(--space-3);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    white-space: nowrap;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

.hero-location-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ==========================================
 * TIMELINE
 * ========================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--color-gray-300);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-10);
    padding-left: 60px;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: var(--space-10);
        margin-left: 0;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: var(--space-10);
    }
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: var(--space-2);
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 4px solid var(--color-primary);
    z-index: 2;
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-dot {
        right: -10px;
        left: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -10px;
    }

    .timeline-item:nth-child(odd) {
        text-align: right;
    }
}

/* ==========================================
 * FOOTER
 * ========================================== */
.footer {
    background: var(--bg-surface);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-section a:hover {
    color: var(--color-primary);
}

/* Footer links with consistent icon sizing */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
}

.footer-location svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ==========================================
 * READING PROGRESS BAR
 * ========================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: var(--z-tooltip);
    transition: width 0.1s linear;
}
/*
 * ==========================================================================
 * COMPONENTS.CSS - UI Components
 * Jonathan Chavez Carpio - Professional CV Landing Page
 * ==========================================================================
 */

/* ==========================================
 * NEUMORPHIC CARDS
 * ========================================== */
.neu-flat {
    background: var(--bg-surface);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.neu-flat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.neu-pressed {
    box-shadow: var(--shadow-inset);
    border-radius: var(--radius-lg);
}

.neu-card {
    background: var(--bg-surface);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.neu-card:hover {
    transform: translateY(-4px);
}

.neu-card-clickable {
    cursor: pointer;
}

/* ==========================================
 * BUTTONS
 * ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-dark), var(--shadow-light);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    color: var(--color-secondary);
}

.btn-secondary:active {
    box-shadow: var(--shadow-inset);
    transform: translateY(1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--color-primary);
    background: rgba(102, 126, 234, 0.1);
}

/* Icon buttons */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm {
    width: 36px;
    height: 36px;
}

.btn-icon-lg {
    width: 56px;
    height: 56px;
    font-size: var(--text-xl);
}

/* Neu icon button */
.neu-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--text-muted);
    background: var(--bg-surface);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.neu-icon-btn:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

.neu-icon-btn:active {
    box-shadow: var(--shadow-inset);
}

/* ==========================================
 * GRADIENT TEXT
 * ========================================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
 * STAT ITEMS
 * ========================================== */
.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ==========================================
 * BADGES
 * ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
}

.badge-secondary {
    background: rgba(118, 75, 162, 0.1);
    color: var(--color-secondary);
}

.badge-success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--color-success);
}

/* ==========================================
 * INFO CARDS
 * ========================================== */
.info-card {
    padding: var(--space-4);
    text-align: center;
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
}

.info-icon svg {
    width: 32px;
    height: 32px;
}

.info-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
}

/* Profile Badges Layout */
.profile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.profile-badges .info-card {
    flex: 0 1 auto;
    min-width: 140px;
    max-width: 180px;
}

/* ==========================================
 * SKILL PILLS
 * ========================================== */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.skill-pill {
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    cursor: default;
    transition: all var(--transition-base);
}

.skill-pill:hover {
    transform: scale(1.05);
    color: var(--color-primary);
}

/* Skill cards with progress */
.skill-card {
    padding: var(--space-4);
}

.skill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.skill-card-name {
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.skill-card-level {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--font-semibold);
}

.skill-progress {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1s ease-out;
}

/* ==========================================
 * EXPERIENCE CARDS
 * ========================================== */
.exp-card {
    padding: var(--space-6);
    cursor: pointer;
}

.exp-card-header {
    margin-bottom: var(--space-3);
}

.exp-duration {
    display: inline-block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    background: rgba(102, 126, 234, 0.1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
}

.exp-role {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.exp-company {
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.exp-location {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.exp-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-3);
}

.exp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.exp-skill-tag {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
}

/* ==========================================
 * PROJECT CARDS
 * ========================================== */
.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.project-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.project-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    flex: 1;
    margin-bottom: var(--space-4);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* ==========================================
 * REFERENCE CARDS
 * ========================================== */
.ref-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
}

.ref-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.ref-info {
    flex: 1;
}

.ref-name {
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.ref-role {
    font-size: var(--text-sm);
    color: var(--color-primary);
}

.ref-phone {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: color var(--transition-base);
}

.ref-phone:hover {
    color: var(--color-primary);
}

.ref-phone-encrypted {
    filter: blur(4px);
    user-select: none;
    transition: filter var(--transition-base);
}

.ref-phone-revealed .ref-phone-encrypted {
    filter: none;
}

/* ==========================================
 * EDUCATION CARDS
 * ========================================== */
.edu-card {
    padding: var(--space-5);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edu-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.edu-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.edu-institution {
    color: var(--color-primary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.edu-date {
    display: inline-block;
    font-size: var(--text-xs);
    background: rgba(102, 126, 234, 0.1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    margin-top: auto;
}

.edu-type {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: var(--space-3);
}

/* ==========================================
 * MODAL
 * ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: var(--z-modal-backdrop);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    padding: var(--space-4);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    background: var(--bg-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-slow);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-6);
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.modal-close {
    font-size: var(--text-2xl);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-base);
    background: none;
    border: none;
    padding: var(--space-1);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
}

/* ==========================================
 * WHATSAPP FLOATING BUTTON
 * ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: #25D366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-xl);
    color: var(--color-white);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================
 * LANGUAGE TOGGLE
 * ========================================== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1);
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-dark), var(--shadow-light);
}

.lang-btn {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    background: transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.lang-btn:hover:not(.active) {
    color: var(--color-primary);
}

/* ==========================================
 * FILTER BUTTONS
 * ========================================== */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    background: var(--bg-surface);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.filter-btn:hover {
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.filter-count {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* ==========================================
 * FORM ELEMENTS
 * ========================================== */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-input.valid {
    border-color: var(--color-success);
}

.form-input.error {
    border-color: var(--color-error);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-error);
    margin-top: var(--space-1);
    display: none;
}

.form-input.error+.form-error {
    display: block;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Honeypot field */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
 * CTA SECTION
 * ========================================== */
.cta-section {
    text-align: center;
    margin-top: var(--space-16);
}

.cta-card {
    padding: var(--space-10);
    display: inline-block;
    max-width: 600px;
}

.cta-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.cta-description {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* ==========================================
 * CALL BUTTON (Mobile only)
 * ========================================== */
.btn-call {
    display: none;
}

@media (max-width: 767px) {
    .btn-call {
        display: inline-flex;
    }
}

/* ==========================================
 * PRINT STYLES
 * ========================================== */
@media print {

    .no-print,
    .navbar,
    .theme-toggle,
    .mobile-menu-btn,
    .whatsapp-float,
    .lang-toggle,
    .reading-progress {
        display: none !important;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: left !important;
        padding: 0 !important;
        margin-bottom: var(--space-4);
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .neu-flat,
    .neu-card,
    .btn {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    section {
        padding: var(--space-8) 0;
    }

    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
}
/*
 * ==========================================================================
 * ANIMATIONS.CSS - Keyframes & Transitions
 * Jonathan Chavez Carpio - Professional CV Landing Page
 * ==========================================================================
 */

/* ==========================================
 * SCROLL REVEAL ANIMATIONS
 * ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal with scale */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered reveal delays */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* ==========================================
 * KEYFRAME ANIMATIONS
 * ========================================== */

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

/* Bounce */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Float */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Rotate */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

/* Shimmer (for skeleton loading) */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--bg-surface) 25%,
            var(--bg-elevated) 50%,
            var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-circle {
    border-radius: var(--radius-full);
}

/* Gradient animation (hero background) */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
}

/* Counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animated {
    animation: countUp 0.5s ease forwards;
}

/* Progress bar fill */
@keyframes progressFill {
    from {
        width: 0%;
    }
}

.progress-animated {
    animation: progressFill 1.5s ease-out forwards;
}

/* Typing effect */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--color-primary);
}

/* ==========================================
 * HOVER EFFECTS
 * ========================================== */

/* Card hover */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Scale on hover */
.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Glow on hover */
.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

/* Underline animation */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.hover-underline:hover::after {
    width: 100%;
}

/* Border color transition */
.hover-border {
    transition: border-color var(--transition-base);
    border: 2px solid transparent;
}

.hover-border:hover {
    border-color: var(--color-primary);
}

/* ==========================================
 * FILTER ANIMATION (for skills and experience)
 * ========================================== */
.filter-hidden {
    display: none !important;
}

.filter-visible {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: filterIn 0.3s ease forwards;
}

@keyframes filterIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
 * LOADING SPINNER
 * ========================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-elevated);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* ==========================================
 * PAGE TRANSITIONS
 * ========================================== */
.page-enter {
    opacity: 0;
}

.page-enter-active {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-exit {
    opacity: 1;
}

.page-exit-active {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ==========================================
 * REDUCED MOTION
 * ========================================== */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-fade-in-up,
    .animate-fade-in,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale-in,
    .animate-bounce,
    .animate-pulse,
    .animate-float,
    .animate-rotate,
    .animate-gradient {
        animation: none;
    }

    .skeleton {
        animation: none;
    }

    .whatsapp-float::before {
        animation: none;
    }

    .spinner {
        animation: none;
    }

    .hover-lift:hover,
    .hover-scale:hover {
        transform: none;
    }
}
/*
 * ==========================================================================
 * RESPONSIVE.CSS - Media Queries
 * Jonathan Chavez Carpio - Professional CV Landing Page
 * ==========================================================================
 */

/* ==========================================
 * MOBILE FIRST - BASE STYLES (320px+)
 * ========================================== */

/* These are the default styles, defined in other CSS files */
/* This file contains only the breakpoint overrides */

/* ==========================================
 * VERY SMALL MOBILE (up to 374px)
 * ========================================== */
@media (max-width: 374px) {
    :root {
        font-size: 14px;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-stats {
        gap: var(--space-3);
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: var(--text-xl);
    }

    .stat-label {
        font-size: var(--text-xs);
    }

    .btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .section-title {
        font-size: var(--text-xl);
    }

    /* Navbar - very small screens */
    .navbar-logo {
        font-size: var(--text-base);
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-actions {
        gap: var(--space-1);
    }

    .lang-toggle {
        display: none;
    }

    .neu-icon-btn {
        padding: var(--space-2);
    }

    /* Hero location badge */
    .hero-location-badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2);
    }
}

/* ==========================================
 * SMALL MOBILE (375px - 479px)
 * ========================================== */
@media (min-width: 375px) and (max-width: 479px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .navbar-logo {
        font-size: var(--text-lg);
    }

    .navbar-actions {
        gap: var(--space-2);
    }
}

/* ==========================================
 * MOBILE (375px - 767px)
 * ========================================== */
@media (min-width: 375px) and (max-width: 767px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        min-width: 80px;
    }
}

/* ==========================================
 * TABLET (768px - 1023px)
 * ========================================== */
@media (min-width: 768px) {

    /* Container */
    .container {
        padding-left: var(--container-padding-tablet);
        padding-right: var(--container-padding-tablet);
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-stats {
        justify-content: flex-start;
    }

    /* Navigation */
    .navbar-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    /* Timeline */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: var(--space-10);
        margin-left: 0;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: var(--space-10);
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        right: -10px;
        left: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -10px;
    }

    .timeline-item:nth-child(odd) {
        text-align: right;
    }

    .timeline-item:nth-child(odd) .exp-skills {
        justify-content: flex-end;
    }

    /* Grids */
    .grid-auto-fit-sm {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-auto-fit-md {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Sections */
    section {
        padding: var(--space-24) 0;
    }

    .section-title {
        font-size: var(--text-4xl);
    }
}

/* ==========================================
 * DESKTOP (1024px - 1439px)
 * ========================================== */
@media (min-width: 1024px) {

    /* Container */
    .container {
        padding-left: var(--container-padding-desktop);
        padding-right: var(--container-padding-desktop);
    }

    /* Hero */
    .hero-title {
        font-size: var(--text-6xl);
    }

    .hero-avatar {
        width: 350px;
        height: 350px;
    }

    /* Grids */
    .grid-auto-fit-sm {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-auto-fit-md {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-auto-fit-lg {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cards */
    .ref-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Navigation */
    .navbar-links {
        gap: var(--space-10);
    }
}

/* ==========================================
 * WIDE DESKTOP (1440px+)
 * ========================================== */
@media (min-width: 1440px) {

    /* Grids */
    .grid-auto-fit-sm {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-auto-fit-md {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-auto-fit-lg {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero */
    .hero-grid {
        gap: var(--space-24);
    }

    /* Sections */
    section {
        padding: var(--space-32) 0;
    }
}

/* ==========================================
 * TOUCH DEVICE ADJUSTMENTS
 * ========================================== */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .neu-icon-btn {
        width: 48px;
        height: 48px;
    }

    .navbar-links a {
        padding: var(--space-3) var(--space-4);
    }

    .mobile-menu a {
        padding: var(--space-4);
    }

    /* Remove hover effects (they're triggered on tap) */
    .neu-flat:hover,
    .neu-card:hover {
        transform: none;
    }

    .hover-lift:hover {
        transform: none;
    }

    .hover-scale:hover {
        transform: none;
    }

    /* WhatsApp button larger on mobile */
    .whatsapp-float {
        width: 64px;
        height: 64px;
    }

    .whatsapp-float svg {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================
 * LANDSCAPE ORIENTATION (MOBILE)
 * ========================================== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-16) 0;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }
}

/* ==========================================
 * HIGH DPI DISPLAYS
 * ========================================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Sharper borders on high DPI */
    .neu-flat,
    .neu-card {
        border-width: 0.5px;
    }
}

/* ==========================================
 * DARK MODE SPECIFIC RESPONSIVE
 * ========================================== */
@media (prefers-color-scheme: dark) {

    /* Auto dark mode if no preference set */
    :root:not([data-theme="light"]) {
        --bg-body: #1a1a2e;
        --bg-surface: #16213e;
        --bg-elevated: #1f3460;
        --text-primary: #e2e8f0;
        --text-secondary: #cbd5e0;
        --text-muted: #a0aec0;
        --nav-bg: rgba(22, 33, 62, 0.9);
        --shadow-light: -5px -5px 10px rgba(255, 255, 255, 0.05);
        --shadow-dark: 5px 5px 10px rgba(0, 0, 0, 0.4);
    }
}
