/* ============================================================
   CAREER / HOME PAGE STYLES
   Location: /assets/css/career.css
   ============================================================ */

:root {
    /* --- Typography - Site-wide consistency --- */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    
    /* --- Primary color palette - Natural Forest --- */
    --primary-accent: #6ee7b7;
    --primary-accent-rgb: 110, 231, 183;
    --secondary-accent: #86efac;
    --tertiary-accent: #bef264;
    
    /* --- Surface colors --- */
    --bg-base: #1a1a1a;
    --bg-surface: #2a2a2a;
    --bg-elevated: #333333;
    --border-color: #4a4a4a;
    
    /* --- Text colors --- */
    --text-primary: #faf8f5;
    --text-secondary: #e8e6e0;
    --text-tertiary: #b8c4b8;
    
    /* --- Spacing --- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* --- Effects --- */
    --glow-color: rgba(110, 231, 183, 0.25);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    
    /* --- Hero Gradients (subtle overlay to let video show through) --- */
    --hero-overlay: linear-gradient(
        180deg, 
        rgba(10, 10, 10, 0.7) 0%,
        rgba(18, 18, 18, 0.4) 15%,
        rgba(26, 26, 26, 0.25) 45%,
        rgba(26, 26, 26, 0.35) 70%,
        rgba(20, 20, 20, 0.75) 100%
    );
    --hero-accent-overlay: linear-gradient(
        135deg, 
        rgba(110, 231, 183, 0.06) 0%, 
        transparent 40%,
        transparent 60%,
        rgba(134, 239, 172, 0.06) 100%
    );
    
    /* --- Section Gradients (each viewport has smooth gradient) --- */
    --section-gradient-1: linear-gradient(180deg, #0a0a0a 0%, #141414 30%, #1a1a1a 70%, #1e1e1e 100%);
    --section-gradient-2: linear-gradient(180deg, #1e1e1e 0%, #1a1a1a 20%, #1c1c1c 80%, #181818 100%);
    --section-gradient-3: linear-gradient(180deg, #181818 0%, #1a1a1a 30%, #1c1c1c 70%, #1e1e1e 100%);
    --section-gradient-4: linear-gradient(180deg, #1e1e1e 0%, #1a1a1a 25%, #1a1a1a 75%, #161616 100%);
    --section-gradient-5: linear-gradient(180deg, #161616 0%, #1a1a1a 30%, #1c1c1c 70%, #1a1a1a 100%);
    --section-gradient-6: linear-gradient(180deg, #1a1a1a 0%, #1c1c1c 30%, #1e1e1e 70%, #202020 100%);
    --section-gradient-7: linear-gradient(180deg, #202020 0%, #242424 30%, #282828 70%, #2a2a2a 100%);
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-base: #f8faf9;
    --bg-surface: #ffffff;
    --bg-elevated: #f0f5f3;
    --border-color: #d1e0db;
    --text-primary: #1a2f28;
    --text-secondary: #4a5f56;
    --text-tertiary: #7a8f85;
    --primary-accent: #059669;
    --primary-accent-rgb: 5, 150, 105;
    --hero-overlay: linear-gradient(
        180deg, 
        rgba(240, 245, 243, 0.96) 0%,
        rgba(248, 250, 249, 0.8) 40%,
        rgba(248, 250, 249, 0.85) 70%,
        rgba(245, 248, 246, 0.95) 100%
    );
    --section-gradient-1: linear-gradient(180deg, #f0f5f3 0%, #f5f8f6 30%, #f8faf9 70%, #fafcfb 100%);
    --section-gradient-2: linear-gradient(180deg, #fafcfb 0%, #f8faf9 30%, #f6f9f7 70%, #f4f7f5 100%);
    --section-gradient-3: linear-gradient(180deg, #f4f7f5 0%, #f6f9f7 30%, #f8faf9 70%, #fafcfb 100%);
    --section-gradient-4: linear-gradient(180deg, #fafcfb 0%, #f8faf9 30%, #f6f9f7 70%, #f4f7f5 100%);
    --section-gradient-5: linear-gradient(180deg, #f4f7f5 0%, #f6f9f7 30%, #f8faf9 70%, #fafcfb 100%);
    --section-gradient-6: linear-gradient(180deg, #fafcfb 0%, #f8faf9 40%, #f5f8f6 100%);
    --section-gradient-7: linear-gradient(180deg, #f5f8f6 0%, #f0f5f3 50%, #edf2ef 100%);
}

/* ============================================================
   VIEWPORT-FITTED SECTIONS
   Each section = exactly 100vh with smooth gradient
   ============================================================ */

.section {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport for mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xxl) var(--space-md);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .section { 
        padding: calc(var(--space-xxl) * 1.5) var(--space-xl); 
    }
}

/* Apply gradients to each viewpoint section */
.section[data-viewpoint="2"] { background: var(--section-gradient-2); }
.section[data-viewpoint="3"] { background: var(--section-gradient-3); }
.section[data-viewpoint="4"] { background: var(--section-gradient-4); }
.section[data-viewpoint="5"] { background: var(--section-gradient-5); }
.section[data-viewpoint="6"] { background: var(--section-gradient-6); }
.section[data-viewpoint="7"] { background: var(--section-gradient-7); }

/* Smooth transition glow at section edges */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .section::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, transparent 100%);
}

[data-theme="light"] .section::after {
    background: linear-gradient(0deg, rgba(0,0,0,0.02) 0%, transparent 100%);
}

.section-header { 
    text-align: center; 
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}
.section-title {
    font-family: var(--font-heading); font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: var(--space-md); position: relative; display: inline-block;
}
.section-title::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 2px; background: linear-gradient(to right, transparent, var(--primary-accent), transparent);
}
.section-subtitle { 
    font-family: var(--font-body); 
    color: var(--text-secondary); 
    max-width: 600px; 
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ============================================================
   HERO SECTION - Viewport 1 (Home page override)
   NOTE: Base styles are in main.css - these are HOME PAGE SPECIFIC
   If changing hero base styles, also check main.css section 17
   ============================================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-xxl) var(--space-md);
    padding-bottom: calc(var(--space-xxl) + 80px);
    /* NO background here - video shows through from .hero-bg */
    /* The overlay gradients provide the tinting */
}

.hero-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 0; /* Changed from -1 to 0 so it's part of stacking context */
}

.hero-bg video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(30%) contrast(1.1); 
}

/* Dark Mode: Make video visible but atmospheric */
[data-theme="dark"] .hero-bg video {
    filter: grayscale(30%) contrast(1.15) brightness(0.8);
}

/* Light Mode: Bright and saturated */
[data-theme="light"] .hero-bg video {
    filter: grayscale(0%) contrast(1.1) brightness(1.1) saturate(1.1);
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1; /* Above video */
    background: var(--hero-overlay);
}

.hero-accent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Above overlay */
    background: var(--hero-accent-overlay);
}

.hero-content { 
    text-align: center; 
    max-width: 900px; 
    z-index: 3; /* Above all overlays */
    padding: 0 var(--space-sm);
}
.hero-headline {
    font-family: var(--font-heading); 
    font-size: clamp(2rem, 8vw, 4.5rem); 
    font-weight: 800;
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin-bottom: var(--space-lg);
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-accent { color: var(--primary-accent); text-shadow: 0 0 30px var(--glow-color); }
.hero-cta { 
    display: flex; 
    flex-direction: column; 
    gap: var(--space-md); 
    align-items: center; 
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}
@media (min-width: 480px) { 
    .hero-cta { 
        flex-direction: row; 
        justify-content: center; 
    } 
}

/* ============================================================
   CTA BUTTONS (Home page override)
   ============================================================
   BASE STYLES: main.css section 18
   HERO BUTTON SIZING: main.css .hero-cta .cta-btn (flex/min/max-width)
   
   THIS FILE OVERRIDES FOR HOME PAGE:
   - .cta-primary: Uses CSS variables instead of hardcoded colors
   - .cta-secondary: Uses 2px border (main.css has 1px)
   
   Last updated: 2026-01-12
   ============================================================ */
.cta-btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
    min-height: 52px;
    min-width: 180px;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-accent), var(--tertiary-accent));
    color: #011c16;
    border: none;
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.25);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.35);
}

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

.cta-secondary:hover {
    background-color: rgba(var(--primary-accent-rgb), 0.05);
    transform: translateY(-2px);
}

/* --- Swiper Sections (Experience/Education/Blog) --- */
.experience-slide, .education-slide, .blog-slide {
    display: flex; flex-direction: column; background: var(--bg-surface);
    border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden;
    height: 100%; transition: transform 0.4s ease, border-color 0.4s ease;
    text-decoration: none; color: inherit;
}
.experience-slide:hover, .education-slide:hover, .blog-slide:hover {
    transform: translateY(-8px); border-color: var(--primary-accent);
}

/* ============================================================
   SLIDE IMAGE PLACEHOLDER / BANNER CONTAINER
   ============================================================
   - Fixed aspect-ratio: 16 / 3.5 prevents card height from changing
   - Images use object-fit: cover to crop, not stretch
   - position: relative on container, absolute on children for stacking
   - Icons and period text float above image with z-index
   
   Last updated: 2026-01-12 - Added banner image support
   ============================================================ */
.slide-image-placeholder {
    aspect-ratio: 16 / 3.5;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Banner image - fills container, crops to fit, won't stretch card */
.slide-image-placeholder .slide-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Icon and period float above image */
.slide-image-placeholder i {
    font-size: 2.2rem;
    color: var(--primary-accent);
    opacity: 0.5;
    position: relative;
    z-index: 2;
}

.slide-image-placeholder .slide-period {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
}

.slide-content { padding: 1.2rem 1.4rem; flex-grow: 1; display: flex; flex-direction: column; }
.slide-content h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.slide-company {
    display: inline-block; background: rgba(var(--primary-accent-rgb), 0.1); color: var(--primary-accent);
    padding: 0.25rem 0.6rem; border-radius: 5px; font-size: 0.75rem; font-weight: 500; margin-bottom: 0.7rem;
}

/* ============================================================
   BLOG/REFLECTIONS SLIDE - SPECIFIC STYLING
   ============================================================
   DIFFERENT from experience/education slides because:
   - Images come from DATABASE (image_url field) not static files
   - 16:9 aspect ratio for cinematic article thumbnails
   - Meta row with category, read time, and author below image
   - Clean separation between meta, title, and excerpt
   
   BASE STYLES: main.css lines 622-670 (.blog-slide base + theme variants)
   THIS FILE: Home page specific overrides for Reflections section
   
   Last updated: 2026-01-13 - 16:9 images with meta row
   ============================================================ */

/* Blog slide image - 16:9 cinematic aspect ratio */
.blog-slide .slide-image-placeholder {
    aspect-ratio: 16 / 9;
}

/* Hide the date badge in image - we show meta separately now */
.blog-slide .slide-period {
    display: none;
}

/* Blog slide content - structured layout */
.blog-slide .slide-content {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Meta row - category, read time, author */
.blog-slide .slide-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.blog-slide .slide-meta-divider {
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* Category badge */
.blog-slide .slide-category {
    display: inline-block;
    background: rgba(var(--primary-accent-rgb), 0.15);
    color: var(--primary-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Read time */
.blog-slide .slide-read-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Author */
.blog-slide .slide-author {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Title */
.blog-slide .slide-content h3 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0.25rem 0 0 0;
    color: var(--text-primary);
}

/* Excerpt text */
.blog-slide .slide-content p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Light theme adjustments for blog meta */
[data-theme="light"] .blog-slide .slide-meta {
    color: var(--text-secondary);
}

[data-theme="light"] .blog-slide .slide-author {
    color: var(--text-primary);
}

/* ============================================================
   INLINE MUSIC PLAYER (Future Value Section)
   State-of-the-art player with pulse animations
   ============================================================ */

/* Album showcase - centered column layout (override main.css row layout) */
.music-album-showcase {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-lg);
    text-align: center !important;
}

/* Tap instruction text */
.album-tap-instruction {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.7;
    font-style: italic;
}

/* Inline Player Controls Container */
.inline-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: var(--space-lg);
    padding: 1.25rem 2rem;
    background: linear-gradient(180deg, rgba(60, 60, 60, 0.6) 0%, rgba(30, 30, 30, 0.8) 100%);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Player Buttons - Base */
.inline-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
}

.inline-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.inline-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.inline-btn:active {
    transform: scale(0.95);
}

/* Main Play Button - larger and accented */
.inline-play {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
    background: linear-gradient(145deg, rgba(110, 231, 183, 0.2) 0%, rgba(110, 231, 183, 0.08) 100%);
    border: 2px solid rgba(110, 231, 183, 0.5);
    color: var(--primary-accent);
    box-shadow: 
        0 4px 20px rgba(110, 231, 183, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.inline-play:hover {
    background: linear-gradient(145deg, var(--primary-accent) 0%, #10b981 100%);
    color: #000;
    border-color: var(--primary-accent);
    box-shadow: 
        0 0 40px rgba(110, 231, 183, 0.5),
        0 0 80px rgba(110, 231, 183, 0.2);
    transform: scale(1.1);
}

/* Pulse animation for when playing */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(110, 231, 183, 0.3),
            0 0 0 0 rgba(110, 231, 183, 0.4);
    }
    50% {
        box-shadow: 
            0 4px 30px rgba(110, 231, 183, 0.5),
            0 0 0 8px rgba(110, 231, 183, 0);
    }
}

@keyframes subtle-vibrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.02); }
    50% { transform: scale(1); }
    75% { transform: scale(1.02); }
}

/* Playing state - add to buttons via JS */
.inline-play.is-playing {
    animation: pulse-glow 2s ease-in-out infinite;
}

.inline-btn.is-playing:not(.inline-play) {
    animation: subtle-vibrate 1.5s ease-in-out infinite;
}

.inline-prev.is-playing {
    animation-delay: 0.2s;
}

.inline-next.is-playing {
    animation-delay: 0.4s;
}

/* Now Playing Info */
.now-playing-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: var(--space-lg);
    padding: 1rem 1.75rem;
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.7) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.now-playing-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-accent);
    font-weight: 600;
}

.now-playing-track {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.now-playing-time {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

/* Progress bar indicator */
.now-playing-info::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
    position: relative;
}

/* Light theme adjustments */
[data-theme="light"] .inline-player-controls {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 245, 243, 0.95) 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .inline-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .inline-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .inline-play {
    background: linear-gradient(145deg, rgba(5, 150, 105, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
    border-color: rgba(5, 150, 105, 0.5);
    color: var(--primary-accent);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.2);
}

[data-theme="light"] .inline-play:hover {
    background: linear-gradient(145deg, var(--primary-accent) 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 0 40px rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .now-playing-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 249, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .now-playing-track {
    color: var(--text-primary);
}

[data-theme="light"] .now-playing-time {
    color: var(--text-secondary);
}

[data-theme="light"] .album-tap-instruction {
    color: var(--text-secondary);
}

[data-theme="light"] .now-playing-info::after {
    background: rgba(0, 0, 0, 0.08);
}

/* Light theme pulse animation */
@keyframes pulse-glow-light {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(5, 150, 105, 0.25),
            0 0 0 0 rgba(5, 150, 105, 0.3);
    }
    50% {
        box-shadow: 
            0 4px 30px rgba(5, 150, 105, 0.4),
            0 0 0 8px rgba(5, 150, 105, 0);
    }
}

[data-theme="light"] .inline-play.is-playing {
    animation: pulse-glow-light 2s ease-in-out infinite;
}

/* ============================================================
   MOBILE RESPONSIVE - Inline Player
   ============================================================ */
@media (max-width: 768px) {
    .inline-player-controls {
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .inline-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    
    .inline-play {
        width: 64px;
        height: 64px;
        font-size: 1.3rem;
    }
    
    .now-playing-info {
        min-width: 240px;
        padding: 0.875rem 1.25rem;
    }
    
    .now-playing-track {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .inline-player-controls {
        gap: 0.75rem;
        padding: 0.875rem 1.25rem;
        border-radius: 50px;
    }
    
    .inline-btn {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
    
    .inline-play {
        width: 56px;
        height: 56px;
        font-size: 1.15rem;
    }
    
    .now-playing-info {
        min-width: 220px;
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }
    
    .now-playing-label {
        font-size: 0.6rem;
    }
    
    .now-playing-track {
        font-size: 0.9rem;
    }
    
    .now-playing-time {
        font-size: 0.7rem;
    }
    
    .album-tap-instruction {
        font-size: 0.75rem;
    }
}

[data-theme="light"] .now-playing-info {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .now-playing-track {
    color: var(--text-primary);
}

[data-theme="light"] .album-tap-instruction {
    color: var(--text-secondary);
}

/* --- CV Grid --- */
.cv-grid-desktop {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg);
    max-width: 1000px; margin: 0 auto;
}
@media (max-width: 900px) { .cv-grid-desktop { display: none; } } /* Use swiper on mobile */
.cv-card {
    display: flex; flex-direction: column; align-items: center; background: var(--bg-surface);
    border: 1px solid var(--border-color); border-radius: 16px; padding: 2.5rem 2rem;
    text-align: center; text-decoration: none; transition: 0.4s ease;
}
.cv-card:hover { transform: translateY(-8px); border-color: var(--primary-accent); }
.cv-card i { font-size: 3rem; color: #dc2626; margin-bottom: 1.5rem; }
.cv-card.linkedin-card i { color: #0077b5; }

/* --- Contact Form (Viewpoint 7) --- */
.contact-section { 
    /* Uses section gradient via data-viewpoint="7" */
    padding-bottom: 80px;
}

.contact-form {
    display: flex; flex-direction: column; gap: var(--space-md); background: var(--bg-surface);
    border: 1px solid var(--border-color); border-radius: 16px; padding: var(--space-xl);
    max-width: 560px; margin: 0 auto; text-align: left;
    position: relative;
    z-index: 2;
}
.form-input, .form-textarea {
    padding: var(--space-md); background-color: var(--bg-base); border: 1px solid var(--border-color);
    border-radius: 8px; color: var(--text-primary); width: 100%;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary-accent); }
.submit-btn {
    background: linear-gradient(135deg, var(--primary-accent), var(--tertiary-accent));
    color: #011c16; border: none; padding: var(--space-md); border-radius: 8px; font-weight: 600;
    text-transform: uppercase; cursor: pointer; width: 100%;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Status Messages */
.form-status {
    padding: var(--space-md);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}
.form-status.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}
.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* --- Swiper Shell (Mobile) --- */
.cv-swiper-shell { display: none; }
@media (max-width: 900px) { .cv-swiper-shell { display: block; } }

/* ============================================================
   SWIPER CONTAINERS - Proper z-index for gradient overlays
   ============================================================ */
.swiper-shell,
.cv-grid-desktop,
.cv-swiper-shell,
.platforms-grid,
.contact-form-container {
    position: relative;
    z-index: 2;
}

/* ============================================================
   HERO SCROLL INDICATOR
   ============================================================
   BASE STYLES: main.css section after CTA buttons
   
   MOBILE BAR CLEARANCE:
   - bottom: calc(var(--space-xl) + 80px) clears mobile navigation bar
   - Mobile breakpoint increases to 100px for extra safety
   
   Last updated: 2026-01-12 - Fixed button being covered by mobile bar
   ============================================================ */
.hero-scroll-indicator {
    position: absolute;
    bottom: calc(var(--space-xl) + 80px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Mobile: extra clearance for mobile navigation bar + HUD */
@media (max-width: 768px) {
    .hero-scroll-indicator {
        bottom: calc(var(--space-lg) + 110px);
    }
}

.hero-scroll-btn {
    background: rgba(var(--primary-accent-rgb), 0.15);
    border: 1px solid rgba(var(--primary-accent-rgb), 0.3);
    color: var(--primary-accent);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    animation: bounceDown 2s infinite;
}

.hero-scroll-btn:hover {
    background: rgba(var(--primary-accent-rgb), 0.25);
    border-color: var(--primary-accent);
    transform: scale(1.1);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ============================================================
   PLATFORMS GRID
   ============================================================ */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

.platform-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.platform-card i {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.platform-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================================
   CONTACT SECTION ENHANCEMENTS
   ============================================================ */
.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(var(--primary-accent-rgb), 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.contact-intro {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.contact-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-accent-rgb), 0.1);
    color: var(--primary-accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 231, 183, 0.35);
}

.form-footer {
    text-align: center;
    margin-top: var(--space-sm);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.form-footer a {
    color: var(--primary-accent);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   MOBILE VIEWPORT IMPROVEMENTS
   - Section-specific adjustments for mobile devices
   ============================================================ */

@media (max-width: 768px) {
    /* --- GENERAL: Move section headers higher --- */
    .section {
        justify-content: flex-start;
        padding-top: 70px;
        padding-bottom: 90px;
    }
    
    .section-header {
        margin-bottom: var(--space-md);
    }
    
    /* --- EXPERIENCE SECTION --- */
    .experience-swiper-section {
        padding-top: 60px;
    }
    
    .experience-swiper-section .section-header {
        margin-bottom: var(--space-sm);
    }
    
    /* Experience cards: show responsibilities with line break */
    .experience-slide .slide-content p {
        white-space: pre-line;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .experience-slide .slide-achievement {
        font-size: 0.7rem;
        padding: 0.5rem;
        margin-top: auto;
    }
    
    /* --- EDUCATION SECTION --- */
    .education-swiper-section {
        padding-top: 60px;
    }
    
    .education-swiper-section .section-header {
        margin-bottom: var(--space-sm);
    }
    
    /* Education cards: larger images */
    .education-slide .slide-image-placeholder {
        aspect-ratio: 16 / 6;
    }
    
    .education-slide .slide-image-placeholder i {
        font-size: 2.2rem;
    }
    
    /* --- REFLECTIONS/BLOG SECTION --- */
    .blog-swiper-section {
        padding-top: 60px;
    }
    
    .blog-swiper-section .section-header {
        margin-bottom: var(--space-sm);
    }
    
    /* ============================================================
       BLOG/REFLECTIONS CARDS - TABLET/MOBILE (768px and below)
       ============================================================
       Images from database via image_url field
       16:9 aspect ratio for cinematic thumbnails
       Meta row with category, read time, author
       
       BASE STYLES: main.css .blog-slide + career.css .blog-slide above
       Last updated: 2026-01-13
       ============================================================ */
    .blog-slide .slide-image-placeholder {
        aspect-ratio: 16 / 9;
    }
    
    .blog-slide .slide-content {
        padding: 1rem 1.2rem;
    }
    
    .blog-slide .slide-meta {
        gap: 0.35rem;
        font-size: 0.65rem;
    }
    
    .blog-slide .slide-category {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .blog-slide .slide-read-time,
    .blog-slide .slide-author {
        font-size: 0.65rem;
    }
    
    .blog-slide .slide-content h3 {
        font-size: 0.95rem;
        line-height: 1.35;
        margin: 0.2rem 0 0 0;
    }
    
    .blog-slide .slide-content p {
        font-size: 0.8rem;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }
    
    /* --- PLATFORMS SECTION --- */
    .platforms-section {
        padding-top: 60px;
        justify-content: flex-start;
    }
    
    .platforms-section .section-header {
        margin-bottom: var(--space-md);
    }
    
    /* Stack platform cards vertically */
    .platforms-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        max-width: 100%;
    }
    
    .platform-card {
        width: 100%;
        padding: 1.25rem 1rem;
    }
    
    .platform-card i {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .platform-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .platform-card p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    /* --- CV SECTION --- */
    .cv-section {
        padding-top: 60px;
        justify-content: flex-start;
    }
    
    .cv-section .section-header {
        margin-bottom: var(--space-md);
    }
}

/* --- Extra small screens (480px and below) --- */
@media (max-width: 480px) {
    .section {
        padding-top: 55px;
        padding-bottom: 80px;
    }
    
    .experience-slide .slide-content p {
        font-size: 0.75rem;
    }
    
    /* ============================================================
       BLOG/REFLECTIONS CARDS - MOBILE (480px and below)
       ============================================================
       Images from database via image_url field
       16:9 aspect ratio maintained
       Compact meta row and text sizing
       
       BASE STYLES: main.css .blog-slide + career.css .blog-slide above
       Last updated: 2026-01-13
       ============================================================ */
    .blog-slide .slide-image-placeholder {
        aspect-ratio: 16 / 9;
    }
    
    .blog-slide .slide-content {
        padding: 0.875rem 1rem;
        gap: 0.35rem;
    }
    
    .blog-slide .slide-meta {
        gap: 0.3rem;
        font-size: 0.6rem;
    }
    
    .blog-slide .slide-category {
        font-size: 0.55rem;
        padding: 0.12rem 0.35rem;
    }
    
    .blog-slide .slide-read-time,
    .blog-slide .slide-author {
        font-size: 0.6rem;
    }
    
    .blog-slide .slide-content h3 {
        font-size: 0.85rem;
        margin: 0.15rem 0 0 0;
    }
    
    .blog-slide .slide-content p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .education-slide .slide-image-placeholder {
        aspect-ratio: 16 / 5;
    }
    
    .platform-card {
        padding: 1rem 0.75rem;
    }
}