/* 
============================================================
ZFORGE.DEV - Portfolio Stylesheet
============================================================
Author: Luis Zambrano
License: MIT - Fork it, change it, make it yours

TABLE OF CONTENTS:
1. CSS Variables (colors, spacing, typography)
2. Reset & Base Styles
3. Typography
4. Layout Utilities
5. Navigation
6. Hero Section
7. Section Styles (shared)
8. About Section
9. Skills Section
10. Experience/Timeline
11. Portfolio Grid
12. Certifications
13. Education
14. Contact
15. Footer
16. Animations & Effects
17. Responsive: Tablet (768px - 1024px)
18. Responsive: Mobile (< 768px)

BREAKPOINTS:
- Mobile: < 768px
- Tablet: 768px - 1024px  
- Desktop: > 1024px
============================================================
*/


/* 
============================================================
1. CSS VARIABLES
============================================================
Change these to customize the entire color scheme.
All colors flow from these root variables.
============================================================
*/
:root {
    /* 
    COLOR PALETTE
    Dark theme with cyan accent
    Tip: Use https://coolors.co to generate variations
    */
    --color-bg-dark: #0b0b10;           /* Darkest - body background */
    --color-bg-mid: #121218;            /* Mid - card backgrounds */
    --color-bg-light: #1a1a22;          /* Lighter - hover states */
    --color-surface: #22222c;           /* Surface elements */
    
    --color-text-bright: #f5f5f7;       /* Headings, important text */
    --color-text-main: #c8c8d0;         /* Body text */
    --color-text-muted: #8888a0;        /* Secondary, less important */
    --color-text-faint: #555566;        /* Borders, disabled */
    
    --color-accent: #00d4ff;            /* Primary accent - cyan */
    --color-accent-hover: #33ddff;      /* Accent hover state */
    --color-accent-muted: #00d4ff33;    /* Accent with transparency */
    --color-accent-glow: #00d4ff22;     /* Very transparent for glows */
    
    --color-border: #2a2a38;            /* Default border color */
    --color-border-hover: #3a3a48;      /* Border on hover */
    
    /* 
    TYPOGRAPHY
    Using Source Sans 3 for body, JetBrains Mono for code/accents
    */
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 2rem;      /* 32px */
    --font-size-4xl: 2.5rem;    /* 40px */
    --font-size-5xl: 3.5rem;    /* 56px */
    
    /* 
    SPACING
    Consistent spacing scale (multiples of 4px)
    */
    --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 */
    
    /* 
    MISC
    Border radius, shadows, transitions
    */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px 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);
    --shadow-glow: 0 0 20px var(--color-accent-muted);
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 64px;
}


/* 
============================================================
2. RESET & BASE STYLES
============================================================
Normalize browser defaults and set base styles
============================================================
*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll from any overflow */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-dark);
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    /* Smooth font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Images are block-level and responsive by default */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--color-accent-hover);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


/* 
============================================================
3. TYPOGRAPHY
============================================================
Headings, paragraphs, and text utilities
============================================================
*/
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-bright);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

/* Accent color class for highlighted text */
.accent {
    color: var(--color-accent);
}

/* Monospace text */
.mono {
    font-family: var(--font-mono);
}


/* 
============================================================
4. LAYOUT UTILITIES
============================================================
Container, spacing, and layout helpers
============================================================
*/
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}


/* 
============================================================
5. NAVIGATION
============================================================
Fixed top navigation bar with glass effect
Mobile: Hamburger menu with slide-down
============================================================
*/
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    /* Semi-transparent background with blur */
    background: rgba(11, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: 
        background var(--transition-base),
        border-color var(--transition-base);
}

/* Nav gets more solid background on scroll */
.nav-scrolled {
    background: rgba(11, 11, 16, 0.95);
    border-bottom-color: var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.nav-logo {
    font-family: var(--font-mono);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-bright);
    letter-spacing: -0.5px;
}

.nav-logo:hover {
    color: var(--color-text-bright);
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* Underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile menu toggle button - hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-bright);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--space-2);
}


/* 
============================================================
6. HERO SECTION
============================================================
Full-height intro section with two-column layout
============================================================
*/
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + var(--space-12)) var(--space-6) var(--space-12);
    position: relative;
    /* Subtle gradient background */
    background: 
        radial-gradient(ellipse at 15% 50%, var(--color-accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(0, 100, 150, 0.08) 0%, transparent 50%),
        var(--color-bg-dark);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

/* Text side */
.hero-text {
    max-width: 600px;
}

.hero-greeting {
    font-size: var(--font-size-lg);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Small wave animation on the emoji */
.greeting-wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50%, 100% { transform: rotate(0deg); }
}

.hero-name {
    font-size: clamp(var(--font-size-3xl), 8vw, var(--font-size-5xl));
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.hero-tagline {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.tagline-separator {
    color: var(--color-text-faint);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Image side */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-avatar {
    width: 320px;
    height: 320px;
    border-radius: var(--radius-full);
    /* Gradient border effect */
    background: linear-gradient(135deg, var(--color-accent), #0099cc, #006699);
    padding: 4px;
    position: relative;
    z-index: 1;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    background: var(--color-bg-mid);
}

/* Fallback when no image */
.hero-avatar.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar.no-image::before {
    content: '👤';
    font-size: 8rem;
}

/* Decorative blur behind avatar */
.hero-decoration {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: var(--radius-full);
    background: var(--color-accent-muted);
    filter: blur(60px);
    z-index: 0;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator a {
    color: var(--color-text-faint);
    font-size: var(--font-size-xl);
}

.scroll-indicator a:hover {
    color: var(--color-accent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}


/* 
============================================================
7. BUTTONS
============================================================
Reusable button styles
============================================================
*/
.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-md);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #0099cc);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--color-bg-dark);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-bright);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}


/* 
============================================================
8. SECTION STYLES (SHARED)
============================================================
Common styles for all content sections
============================================================
*/
.section {
    padding: var(--space-24) var(--space-6);
}

/* Alternate background for visual separation */
.section-alt {
    background: var(--color-bg-mid);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.section-title i {
    color: var(--color-accent);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--space-12);
    font-size: var(--font-size-lg);
}

.accent-link {
    color: var(--color-accent);
    border-bottom: 1px dashed var(--color-accent);
}

.accent-link:hover {
    border-bottom-style: solid;
}


/* 
============================================================
9. ABOUT SECTION
============================================================
Bio text + stats grid
============================================================
*/
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

/* Stats grid */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: 
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.stat:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: var(--font-size-xl);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
    display: block;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-bright);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}


/* 
============================================================
10. SKILLS SECTION
============================================================
Tag-based skill display in category cards
============================================================
*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.skill-category {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: border-color var(--transition-fast);
}

.skill-category:hover {
    border-color: var(--color-border-hover);
}

.skill-category h3 {
    font-size: var(--font-size-base);
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Skill tag pill */
.tag {
    background: var(--color-bg-mid);
    color: var(--color-text-main);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-border);
    transition: 
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}


/* 
============================================================
11. EXPERIENCE / TIMELINE
============================================================
Vertical timeline with connected dots
============================================================
*/
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    /* Vertical line */
    padding-left: var(--space-10);
}

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

.timeline-item {
    position: relative;
    padding-bottom: var(--space-10);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Timeline dot with icon */
.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-10) + 2px);
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-bg-dark);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: var(--font-size-xs);
}

/* Timeline card */
.timeline-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--transition-fast);
}

.timeline-content:hover {
    border-color: var(--color-border-hover);
}

.timeline-header {
    margin-bottom: var(--space-2);
}

.timeline-header h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-1);
}

.timeline-company {
    color: var(--color-accent);
    font-weight: 500;
}

.timeline-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.timeline-details {
    padding-left: var(--space-5);
}

.timeline-details li {
    color: var(--color-text-main);
    margin-bottom: var(--space-2);
    list-style: disc;
    line-height: 1.6;
}


/* 
============================================================
12. PORTFOLIO GRID
============================================================
Project cards with hover effects
============================================================
*/
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.portfolio-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: 
        border-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.portfolio-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.portfolio-icon {
    font-size: var(--font-size-3xl);
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.portfolio-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
}

.portfolio-card p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag-small {
    background: var(--color-bg-mid);
    color: var(--color-text-muted);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    border: 1px solid var(--color-border);
}


/* 
============================================================
13. CERTIFICATIONS
============================================================
Badge grid
============================================================
*/
.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    max-width: 900px;
    margin: 0 auto;
}

.cert-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    transition: border-color var(--transition-fast);
}

.cert-card:hover {
    border-color: var(--color-accent);
}

.cert-icon {
    font-size: var(--font-size-3xl);
    color: var(--color-accent);
    margin-bottom: var(--space-3);
    display: block;
}

.cert-card h4 {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.4;
}


/* 
============================================================
14. EDUCATION
============================================================
Degree cards
============================================================
*/
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: border-color var(--transition-fast);
}

.education-card:hover {
    border-color: var(--color-border-hover);
}

.education-icon {
    font-size: var(--font-size-3xl);
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.education-card h3 {
    margin-bottom: var(--space-2);
}

.education-field {
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.education-school {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.education-year {
    color: var(--color-text-faint);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}


/* 
============================================================
15. CONTACT
============================================================
Contact links and location
============================================================
*/
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    color: var(--color-text-bright);
    transition: 
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.contact-item:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.contact-item i {
    font-size: var(--font-size-xl);
}

.contact-location {
    display: flex;
    gap: var(--space-8);
    color: var(--color-text-muted);
}

.contact-location span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}


/* 
============================================================
16. FOOTER
============================================================
Simple footer with credits
============================================================
*/
.footer {
    padding: var(--space-8) var(--space-6);
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.footer i.fa-heart {
    color: #ff6b6b;
}

.footer-meta {
    margin-top: var(--space-4);
}

.footer-meta a {
    color: var(--color-text-faint);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

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


/* 
============================================================
17. RESPONSIVE: TABLET (768px - 1024px)
============================================================
*/
@media (min-width: 768px) and (max-width: 1024px) {
    /* Navigation */
    .nav-links {
        gap: var(--space-4);
    }
    
    /* Hero */
    .hero-content {
        gap: var(--space-8);
    }
    
    .hero-avatar {
        width: 260px;
        height: 260px;
    }
    
    .hero-decoration {
        width: 280px;
        height: 280px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    
    /* Portfolio - 2 columns on tablet */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Certs - 3 columns on tablet */
    .certs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 
============================================================
18. RESPONSIVE: MOBILE (< 768px)
============================================================
*/
@media (max-width: 767px) {
    /* Reduce base spacing */
    .section {
        padding: var(--space-16) var(--space-4);
    }
    
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    /* Navigation - hamburger menu */
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        /* Hidden by default */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: var(--space-4);
        gap: 0;
        display: none;
    }
    
    /* Show nav when .nav-open is added via JS */
    .nav-links.nav-open {
        display: flex;
    }
    
    .nav-links li {
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: var(--space-4);
        text-align: center;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Hero - stacked layout */
    .hero {
        padding-top: calc(var(--nav-height) + var(--space-8));
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }
    
    /* Photo first on mobile */
    .hero-image {
        order: -1;
    }
    
    .hero-avatar {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .hero-decoration {
        width: 220px;
        height: 220px;
    }
    
    .hero-name {
        font-size: var(--font-size-3xl);
    }
    
    .hero-tagline {
        justify-content: center;
        font-size: var(--font-size-base);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Section titles */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    /* About - stacked */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .about-text p {
        font-size: var(--font-size-base);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Skills - single column */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: var(--space-6);
    }
    
    /* Timeline adjustments */
    .timeline {
        padding-left: var(--space-8);
    }
    
    .timeline-marker {
        left: calc(-1 * var(--space-8) + 2px);
        width: 24px;
        height: 24px;
    }
    
    .timeline-content {
        padding: var(--space-4);
    }
    
    .timeline-header h3 {
        font-size: var(--font-size-lg);
    }
    
    /* Portfolio - single column */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card {
        padding: var(--space-6);
    }
    
    /* Certs - 2 columns */
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .cert-card {
        padding: var(--space-4);
    }
    
    .cert-icon {
        font-size: var(--font-size-2xl);
    }
    
    .cert-card h4 {
        font-size: var(--font-size-xs);
    }
    
    /* Education - single column */
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact - stacked */
    .contact-links {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-item {
        width: 100%;
        justify-content: center;
    }
    
    .contact-location {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}


/* 
============================================================
END OF STYLESHEET
============================================================
Feel free to modify! Questions? luis@zforge.dev
============================================================
*/
