/* ================================================
   PAUL KOSLOWSKY - DATA SCIENTIST PORTFOLIO
   Dark Ocean Theme with Teal Accents
   ================================================ */

/* CSS Variables */
:root {
    /* Colors - Light Mode (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-subtle: rgba(6, 182, 212, 0.1);
    --accent-glow: rgba(6, 182, 212, 0.15);
    
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    
    /* Status Colors */
    --status-live: #10b981;
    --status-upcoming: #06b6d4;
    
    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max: 1600px;
    --section-padding: 80px;
    
    /* Animation */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #030510;
    --bg-secondary: #050812;
    --bg-tertiary: #0a0f15;
    --bg-card: #0f1419;
    --bg-card-hover: #1a1f2a;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    
    --accent: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-subtle: rgba(6, 182, 212, 0.1);
    --accent-glow: rgba(6, 182, 212, 0.15);
    
    --border: #1a1f2a;
    --border-light: #252a35;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.03), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.02), transparent 50%);
    pointer-events: none;
    z-index: -2;
}

[data-theme="dark"] body::before {
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.03), transparent 50%);
}

/* Floating Lines Background */
.floating-lines-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    /* OVERALL BRIGHTNESS CONTROL: Adjust this value (0.3 = dim, 0.8 = bright) */
    opacity: 1;
}

.floating-lines-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 15, 26, 0.85);
}

.nav-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-logo .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: clamp(0.9rem, 1.1vw, 1.25rem);
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-base);
}

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

/* Theme Toggle Switch - Apple Style */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color var(--transition-base), opacity var(--transition-base);
    flex-shrink: 0;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0.4;
}

[data-theme="dark"] .sun-icon {
    opacity: 0.4;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    color: var(--accent);
}

.theme-toggle {
    position: relative;
    width: 50px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--border);
    border-radius: 15px;
    transition: background var(--transition-base);
    display: block;
}

[data-theme="dark"] .theme-toggle-track {
    background: rgba(6, 182, 212, 0.3);
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform var(--transition-base), background var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: block;
}

.theme-toggle.dark .theme-toggle-thumb {
    transform: translateX(20px);
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.theme-toggle:hover .theme-toggle-track {
    background: var(--border-light);
}

[data-theme="dark"] .theme-toggle:hover .theme-toggle-track {
    background: rgba(6, 182, 212, 0.4);
}

.theme-toggle:active .theme-toggle-thumb {
    transform: scale(0.95);
}

.theme-toggle.dark:active .theme-toggle-thumb {
    transform: translateX(20px) scale(0.95);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 120px;
    align-items: center;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 5vw 40px;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    background: var(--accent-subtle);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    font-size: clamp(0.9rem, 1.1vw, 1.25rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 36px;
}

.status-dot {
    width: 14px;
    height: 14px;
    background: var(--status-live);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 36px;
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 52px;
    max-width: 700px;
}

.hero-cta {
    display: flex;
    gap: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    font-weight: 600;
    border-radius: 16px;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

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

/* Code Block Visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 750px;
    width: 100%;
}

[data-theme="dark"] .code-block {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.code-header {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dot:hover {
    transform: scale(1.1);
}

.dot.red { 
    background: #ff5f57; 
}

.dot.red:active {
    transform: scale(0.95);
}

.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

/* Red button click animations */
.code-block.shaking {
    animation: shake 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.code-block.exploding {
    animation: explode 0.2s ease-out forwards;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px) rotate(-2deg); }
    20%, 40%, 60%, 80% { transform: translateX(10px) rotate(2deg); }
}

@keyframes explode {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0.7;
    }
}

/* Fun message popup */
.close-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
    text-align: center;
}

.close-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.close-message h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.close-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.close-message .emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    animation: bounce 0.6s ease infinite;
}

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

/* Particle effect */
.particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.8;
    animation: particle-float 0.5s ease-out forwards;
}

@keyframes particle-float {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

.code-block pre {
    padding: 36px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: clamp(0.875rem, 1vw, 1.125rem);
    line-height: 2.1;
}

.code-block .keyword { color: #c678dd; }
.code-block .string { color: #98c379; }
.code-block .comment { color: var(--text-tertiary); font-style: italic; }

/* ================================================
   SECTIONS - SHARED STYLES
   ================================================ */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .about {
    background: rgba(15, 20, 25, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image-wrapper {
    position: sticky;
    top: 120px;
}

.about-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 120px;
    height: 120px;
    color: var(--text-tertiary);
    opacity: 0.4;
    z-index: 1;
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

.image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-intro {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.career-timeline-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.career-column-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.career-column-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.about-timeline {
    position: relative;
    padding-left: 32px;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.work-career .timeline-item {
    transform: translateX(20px);
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

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

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px var(--bg-secondary);
    transform: none;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.timeline-period {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
    white-space: nowrap;
    padding: 4px 12px;
    background: var(--accent-subtle);
    border-radius: 6px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.highlight-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.highlight-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .highlight-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
}

.highlight-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.highlight-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ================================================
   PROJECTS SECTION
   ================================================ */
.projects {
    padding: var(--section-padding) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-slow);
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.project-card.featured {
    border-color: rgba(6, 182, 212, 0.3);
}

.project-card.featured:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 60px -20px var(--accent-glow);
}

.project-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.project-placeholder {
    width: 80px;
    height: 80px;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

.project-status {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status.live {
    background: rgba(34, 197, 94, 0.15);
    color: var(--status-live);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-status.upcoming {
    background: rgba(6, 182, 212, 0.15);
    color: var(--status-upcoming);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.project-status .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.project-content {
    padding: 28px;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

.project-link:hover {
    color: var(--text-primary);
}

.project-link.primary {
    color: var(--accent);
}

.project-link.primary:hover {
    color: var(--accent-hover);
}

/* ================================================
   SKILLS SECTION
   ================================================ */
.skills {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skills {
    background: rgba(15, 20, 25, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition-slow);
    opacity: 0;
    transform: translateY(20px);
}

.skill-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.skill-category:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.skill-category-title svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--accent-subtle);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--accent);
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact {
    padding: var(--section-padding) 0;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content .section-title {
    margin-bottom: 16px;
}

.contact-content .section-description {
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-base);
    min-width: 320px;
    justify-content: center;
}

.contact-link svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.contact-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-subtext {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-wrapper {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .career-timeline-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-right {
        gap: 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .theme-toggle-wrapper {
        gap: 10px;
    }
    
    .theme-icon {
        width: 16px;
        height: 16px;
    }
    
    .theme-toggle {
        width: 44px;
        height: 26px;
    }
    
    .theme-toggle-thumb {
        width: 20px;
        height: 20px;
        top: 3px;
        left: 3px;
    }
    
    .theme-toggle.dark .theme-toggle-thumb {
        transform: translateX(18px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-link {
        min-width: auto;
        width: 100%;
        max-width: 320px;
    }
    
    .about-timeline {
        padding-left: 24px;
    }
    
    .timeline-marker {
        left: -24px;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .career-timeline-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .section-container {
        padding: 0 16px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .code-block {
        font-size: 0.8rem;
    }
}

/* Animation delays for staggered reveals */
.project-card:nth-child(1) { transition-delay: 0ms; }
.project-card:nth-child(2) { transition-delay: 100ms; }
.project-card:nth-child(3) { transition-delay: 200ms; }

.skill-category:nth-child(1) { transition-delay: 0ms; }
.skill-category:nth-child(2) { transition-delay: 50ms; }
.skill-category:nth-child(3) { transition-delay: 100ms; }
.skill-category:nth-child(4) { transition-delay: 150ms; }
.skill-category:nth-child(5) { transition-delay: 200ms; }
.skill-category:nth-child(6) { transition-delay: 250ms; }
.skill-category:nth-child(7) { transition-delay: 300ms; }

.timeline-item:nth-child(1) { transition-delay: 0ms; }
.timeline-item:nth-child(2) { transition-delay: 100ms; }
.timeline-item:nth-child(3) { transition-delay: 200ms; }

.highlight-card:nth-child(1) { transition-delay: 0ms; }
.highlight-card:nth-child(2) { transition-delay: 100ms; }
.highlight-card:nth-child(3) { transition-delay: 200ms; }

/* Print Styles */
@media print {
    .navbar,
    .hero-visual,
    .hero-cta {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}

/* ================================================
   BARREL RIDING EASTER EGG POPUP
   ================================================ */
.barrel-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.barrel-popup.show {
    display: flex;
    opacity: 1;
}

.barrel-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.barrel-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: barrelPopupIn var(--transition-slow) ease-out;
}

@keyframes barrelPopupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.barrel-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    z-index: 10002;
}

.barrel-popup-close:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
}

.barrel-popup-close svg {
    width: 18px;
    height: 18px;
}

.barrel-popup-image {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
}

[data-theme="dark"] .barrel-popup-content {
    background: var(--bg-card);
    border-color: var(--border);
}

