/* ========================================================
   ALF RINGKOWSKI - Personal Website
   Technical / Engineering Design System
   ======================================================== */

:root {
    --primary: #0078d4;
    --primary-dark: #005a9e;
    --primary-light: #4da3e8;
    --primary-ultra-light: #e8f4fd;
    --accent: #00b7c3;
    --success: #107c10;
    --bg-primary: #fafbfc;
    --bg-secondary: #f0f2f5;
    --bg-tertiary: #e4e7eb;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-tertiary: #8892a4;
    --border-color: #e2e8f0;
    --border-strong: #cbd5e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --hero-gradient: linear-gradient(160deg, #0a1628 0%, #0d2137 40%, #0f2b4a 70%, #0078d4 100%);
    --nav-bg: rgba(250, 251, 252, 0.95);
    --timeline-line: #e2e8f0;
    --scrollbar-track: #f0f2f5;
    --scrollbar-thumb: #cbd5e0;
    --mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    --grid-color: rgba(0, 120, 212, 0.04);
}

[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #161b22;
    --bg-card-hover: #1c2129;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;
    --border-color: #30363d;
    --border-strong: #484f58;
    --shadow-sm: 0 1px 3px 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);
    --hero-gradient: linear-gradient(160deg, #010409 0%, #0d1117 40%, #0a1929 70%, #003d6b 100%);
    --nav-bg: rgba(13, 17, 23, 0.95);
    --timeline-line: #30363d;
    --scrollbar-track: #161b22;
    --scrollbar-thumb: #30363d;
    --grid-color: rgba(0, 120, 212, 0.03);
    --primary-ultra-light: rgba(0, 120, 212, 0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; font-size: 16px; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
::selection { background: var(--primary); color: #fff; }
img { max-width: 100%; height: auto; }

/* ----------------------------------------
   NAVIGATION
   ---------------------------------------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar.transparent { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.navbar.transparent.scrolled { background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--border-color); }

.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; }

.nav-logo { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--primary); text-decoration: none; transition: opacity 0.2s; flex-shrink: 0; }
.navbar.transparent:not(.scrolled) .nav-logo { color: #ffffff; }
.nav-logo:hover { opacity: 0.7; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.84rem; font-weight: 500; padding: 6px 12px; border-radius: 3px; transition: all 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-ultra-light); }
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.active { background: rgba(0, 120, 212, 0.1); }
.navbar.transparent:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.7); }
.navbar.transparent:not(.scrolled) .nav-links a:hover, .navbar.transparent:not(.scrolled) .nav-links a.active { color: #ffffff; background: rgba(255, 255, 255, 0.08); }

.theme-toggle { background: none; border: 1px solid var(--border-color); border-radius: 3px; width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.15s; margin-left: 8px; flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.navbar.transparent:not(.scrolled) .theme-toggle { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.navbar.transparent:not(.scrolled) .theme-toggle:hover { border-color: rgba(255,255,255,0.5); color: #ffffff; }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text-primary); flex-shrink: 0; }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: all 0.2s; }
.navbar.transparent:not(.scrolled) .mobile-toggle span { background: #ffffff; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--nav-bg); backdrop-filter: blur(12px); flex-direction: column; padding: 12px 24px; border-bottom: 1px solid var(--border-color); gap: 2px; }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 10px 12px; }
    .navbar.transparent:not(.scrolled) .nav-links a { color: var(--text-secondary); }
    .navbar.transparent:not(.scrolled) .nav-links a:hover,
    .navbar.transparent:not(.scrolled) .nav-links a.active { color: var(--primary); background: var(--primary-ultra-light); }
}

.nav-actions { display: flex; align-items: center; gap: 6px; }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border-color); border-radius: 3px; padding: 5px 10px; cursor: pointer; color: var(--text-secondary); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; transition: all 0.15s; white-space: nowrap; }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.navbar.transparent:not(.scrolled) .lang-btn { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.navbar.transparent:not(.scrolled) .lang-btn:hover { border-color: rgba(255,255,255,0.5); color: #ffffff; }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { letter-spacing: 0.5px; }
.lang-arrow { font-size: 0.6rem; transition: transform 0.15s; }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: calc(100% + 4px); right: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 3px; box-shadow: var(--shadow-lg); padding: 4px; min-width: 150px; display: none; z-index: 1001; }
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; background: none; border: none; border-radius: 2px; cursor: pointer; font-family: inherit; font-size: 0.84rem; color: var(--text-primary); transition: background 0.1s; text-align: left; }
.lang-option:hover { background: var(--bg-secondary); }
.lang-option.active { color: var(--primary); font-weight: 600; }
.lang-option .check { margin-left: auto; color: var(--primary); font-size: 0.75rem; }

/* ----------------------------------------
   PAGE HERO (Subpages)
   ---------------------------------------- */
.page-hero {
    background: var(--hero-gradient);
    padding: 120px 24px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,120,212,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,120,212,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.page-hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.page-hero .breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--mono); font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.page-hero .breadcrumb a:hover { color: #ffffff; }
.page-hero .breadcrumb .sep { font-size: 0.7rem; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; color: #ffffff; margin-bottom: 12px; letter-spacing: -0.3px; }
.page-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 520px; margin: 0 auto; }

.hero-geo { position: absolute; border: 1px solid rgba(0, 120, 212, 0.07); pointer-events: none; }
.hero-geo:nth-child(1) { width: 200px; height: 200px; top: 10%; left: 5%; }
.hero-geo:nth-child(2) { width: 120px; height: 120px; top: 60%; right: 10%; }
.hero-geo:nth-child(3) { width: 80px; height: 80px; bottom: 20%; left: 15%; }
.hero-geo:nth-child(4) { width: 160px; height: 160px; top: 25%; right: 25%; }

/* ----------------------------------------
   HOME HERO
   ---------------------------------------- */
.home-hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--hero-gradient);
    position: relative; overflow: hidden;
    padding: 80px 24px 60px;
}
.hero-bg-image img { transition: opacity 0.3s; }
[data-theme="dark"] .hero-bg-image img { opacity: 0.18 !important; filter: grayscale(0.2) brightness(0.8) saturate(0.9) !important; }

.home-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,120,212,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,120,212,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.home-hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; width: 100%; }

.avatar-container { width: 150px; height: 150px; margin: 0 auto 24px; position: relative; }
.avatar-ring { position: absolute; inset: -3px; border: 1px solid rgba(0, 120, 212, 0.4); border-radius: 16px; }
.avatar-inner { position: relative; width: 150px; height: 150px; background: linear-gradient(160deg, #0a1628, #0078d4); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(0,120,212,0.3); border-radius: 16px; }
.avatar-gallery-link { position: absolute; top: 50%; left: calc(100% + 12px); transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-family: var(--mono); font-size: 0.68rem; color: rgba(255,255,255,0.7); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 2px; transition: color 0.15s, border-color 0.15s; }
.avatar-gallery-link svg { width: 13px; height: 13px; }
.avatar-gallery-link:hover { color: #ffffff; border-color: var(--primary); }
@media (max-width: 560px) { .avatar-gallery-link { position: static; transform: none; left: auto; margin-top: 8px; } }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 120, 212, 0.08); border: 1px solid rgba(0, 120, 212, 0.2); padding: 5px 14px; color: rgba(255, 255, 255, 0.8); font-family: var(--mono); font-size: 0.72rem; font-weight: 400; margin-bottom: 18px; letter-spacing: 0.3px; }
.hero-badge .pulse { width: 6px; height: 6px; background: #107c10; border-radius: 50%; }

.home-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #ffffff; margin-bottom: 10px; letter-spacing: -0.5px; line-height: 1.1; }
.home-hero h1 .highlight { color: var(--primary-light); }

.hero-typed { min-height: 1.4em; border-right: 2px solid rgba(0,120,212,0.6); display: inline-block; padding-right: 3px; font-family: var(--mono); font-size: 0.9em; animation: blink-cursor 1s step-end infinite; }
@keyframes blink-cursor { 50% { border-color: transparent; } }

.home-hero h2 { font-size: clamp(0.9rem, 1.8vw, 1.05rem); font-weight: 400; color: rgba(255, 255, 255, 0.55); margin-bottom: 32px; line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.25); cursor: pointer; z-index: 3; padding: 8px; transition: color 0.15s; }
.scroll-indicator:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 600px) {
    .home-hero { padding: 80px 20px 56px; min-height: 100svh; }
    .home-hero h2 { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); overflow-wrap: break-word; }
    .hero-typed { font-size: 0.8em; white-space: normal; }
    .hero-bg-image img { opacity: 0.2 !important; }
    .hero-bg-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,18,34,0.45) 0%, rgba(8,18,34,0.28) 42%, rgba(8,18,34,0.66) 100%); }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { font-size: 0.9rem; width: 100%; max-width: 280px; justify-content: center; }
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 3px; font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.15s; font-family: inherit; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: #ffffff; color: var(--primary-dark); }
.btn-primary:hover { background: #f0f4f8; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }
.btn-filled { background: var(--primary); color: #ffffff; }
.btn-filled:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #ffffff; }

/* ----------------------------------------
   SECTIONS
   ---------------------------------------- */
.section { padding: 80px 24px; position: relative; }
.section-alt { background: var(--bg-secondary); }
.container { max-width: 1060px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { display: inline-block; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 10px; padding: 2px 8px; border: 1px solid var(--primary); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--text-primary); margin-bottom: 10px; letter-spacing: -0.3px; }
.section-subtitle { font-size: 0.92rem; color: var(--text-secondary); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ----------------------------------------
   ABOUT
   ---------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.92rem; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 480px) { .about-stats { grid-template-columns: 1fr; } }

.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 3px solid var(--primary); padding: 16px 14px; text-align: center; transition: border-color 0.15s; }
.stat-card:hover { border-color: var(--primary); }
.stat-number { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.stat-label { font-family: var(--mono); font-size: 0.65rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1.5px; }

.about-image { display: flex; justify-content: center; }
.about-visual { width: 100%; max-width: 360px; aspect-ratio: 1; background: var(--bg-card); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.about-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }

.about-icon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 24px; position: relative; z-index: 1; }
.about-icon-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border-color); transition: border-color 0.15s; }
.about-icon-item:hover { border-color: var(--primary); }
.about-icon-item svg { width: 28px; height: 28px; color: var(--primary); }
.about-icon-item span { font-size: 0.68rem; font-weight: 600; color: var(--text-secondary); text-align: center; font-family: var(--mono); }

/* ----------------------------------------
   TIMELINE
   ---------------------------------------- */
.timeline { position: relative; padding-left: 32px; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 1px; background: var(--timeline-line); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot { position: absolute; left: -26px; top: 8px; width: 8px; height: 8px; background: var(--primary); border: 2px solid var(--bg-primary); box-shadow: 0 0 0 2px var(--primary); }
.timeline-item:hover .timeline-dot { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.timeline-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 22px; transition: border-color 0.15s; }
.timeline-card:hover { border-color: var(--primary); }
.timeline-date { display: inline-block; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; color: var(--primary); background: var(--primary-ultra-light); padding: 2px 8px; margin-bottom: 8px; letter-spacing: 0.3px; }
[data-theme="dark"] .timeline-date { background: rgba(0, 120, 212, 0.1); }
.timeline-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.timeline-company { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.timeline-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.timeline-desc ul { list-style: none; padding: 0; }
.timeline-desc li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.timeline-desc li::before { content: '//'; position: absolute; left: 0; color: var(--primary); font-family: var(--mono); font-size: 0.7rem; font-weight: 700; }

/* Certifications */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 36px; }
.cert-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 18px; display: flex; align-items: flex-start; gap: 12px; transition: border-color 0.15s; }
.cert-card:hover { border-color: var(--primary); }
.cert-icon { flex-shrink: 0; width: 36px; height: 36px; background: var(--primary-ultra-light); border: 1px solid var(--primary); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.cert-icon svg { width: 18px; height: 18px; }
.cert-name { font-weight: 600; color: var(--text-primary); font-size: 0.88rem; margin-bottom: 2px; }
.cert-issuer { font-family: var(--mono); font-size: 0.7rem; color: var(--text-tertiary); }
a.cert-card { cursor: pointer; }
.cert-link-hint { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; color: var(--primary); }
.cert-link-hint svg { width: 11px; height: 11px; }

/* ----------------------------------------
   SKILLS
   ---------------------------------------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 768px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-item { background: var(--bg-card); border: 1px solid var(--border-color); padding: 18px; transition: border-color 0.15s; }
.skill-item:hover { border-color: var(--primary); }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.skill-name { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.skill-name svg { width: 18px; height: 18px; color: var(--primary); }
.skill-percent { font-family: var(--mono); font-weight: 700; font-size: 0.8rem; color: var(--primary); }
.skill-bar { width: 100%; height: 3px; background: var(--bg-tertiary); overflow: hidden; }
.skill-fill { height: 100%; background: var(--primary); width: 0; transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.skill-tag { font-family: var(--mono); font-size: 0.68rem; padding: 2px 7px; background: var(--primary-ultra-light); color: var(--primary-dark); font-weight: 500; border: 1px solid transparent; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
a.skill-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-theme="dark"] .skill-tag { background: rgba(0, 120, 212, 0.08); color: var(--primary-light); }
[data-theme="dark"] a.skill-tag:hover { background: var(--primary); color: #fff; }

/* ----------------------------------------
   HOBBIES
   ---------------------------------------- */
.hobbies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .hobbies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hobbies-grid { grid-template-columns: 1fr; } }
.hobby-card { background: var(--bg-card); border: 1px solid var(--border-color); overflow: hidden; transition: border-color 0.15s; position: relative; }
.hobby-card:hover { border-color: var(--primary); }
.hobby-visual { height: 160px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hobby-visual.motorcycle { background: linear-gradient(160deg, #0a1628, #1a2a40); }
.hobby-visual.skydiving { background: linear-gradient(160deg, #0a1628, #0d3b5e); }
.hobby-visual.hiking { background: linear-gradient(160deg, #0a1628, #0d3a1f); }
.hobby-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,120,212,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,120,212,0.05) 1px, transparent 1px); background-size: 24px 24px; }
.hobby-icon-large { font-size: 2rem; opacity: 0.7; position: relative; z-index: 1; font-family: var(--mono); color: rgba(255,255,255,0.7); letter-spacing: -1px; }
.hobby-visual .deco { display: none; }
.hobby-fade-top { animation: hobbyFade 12s ease-in-out infinite; }
@keyframes hobbyFade { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hobby-fade-top { animation: none; } }
.hobby-body { padding: 20px; }
.hobby-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.hobby-desc { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7; margin-bottom: 12px; }
.hobby-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hobby-tag { font-family: var(--mono); font-size: 0.68rem; padding: 2px 7px; font-weight: 500; border: 1px solid var(--border-color); color: var(--text-secondary); transition: all 0.15s; text-decoration: none; }
.hobby-card:hover .hobby-tag { border-color: var(--primary); color: var(--primary); }
a.hobby-tag:hover { background: var(--primary); color: #fff !important; border-color: var(--primary); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 36px; }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-card); transition: border-color 0.15s; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover { border-color: var(--primary); }
.gallery-item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 10, 20, 0.92); opacity: 0; visibility: hidden; transition: opacity 0.2s ease; }
.lightbox:target { opacity: 1; visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox img { position: relative; max-width: 92vw; max-height: 86vh; object-fit: contain; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-close { position: absolute; top: 18px; right: 24px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; line-height: 1; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; background: rgba(255, 255, 255, 0.08); transition: background 0.15s, border-color 0.15s; }
.lightbox-close:hover { background: var(--primary); border-color: var(--primary); }

/* ----------------------------------------
   CONTACT
   ---------------------------------------- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.contact-info p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; margin-bottom: 24px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-icon { width: 36px; height: 36px; background: var(--primary-ultra-light); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .contact-icon { background: rgba(0, 120, 212, 0.08); }
.contact-icon svg { width: 16px; height: 16px; color: var(--primary); }
.contact-label { font-family: var(--mono); font-size: 0.65rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1.5px; }
.contact-value { font-weight: 600; color: var(--text-primary); font-size: 0.88rem; }
.contact-value a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
.contact-value a:hover { text-decoration: underline; }

.cta-card { background: var(--bg-card); border: 1px solid var(--border-color); border-top: 2px solid var(--primary); padding: 32px; text-align: center; transition: border-color 0.15s; }
.cta-card:hover { border-color: var(--primary); }
.cta-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.cta-card p { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.7; font-size: 0.88rem; }
.btn-linkedin { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--primary); color: white; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: all 0.15s; border: none; cursor: pointer; font-family: inherit; }
.btn-linkedin:hover { background: var(--primary-dark); }
.btn-linkedin svg { width: 16px; height: 16px; }

/* ----------------------------------------
   QUICK-LINK CARDS
   ---------------------------------------- */
.quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.quicklink-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 22px 18px; text-decoration: none; color: inherit; transition: border-color 0.15s; display: flex; flex-direction: column; gap: 8px; }
.quicklink-card:hover { border-color: var(--primary); }
.quicklink-icon { width: 36px; height: 36px; background: var(--primary-ultra-light); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; font-family: var(--mono); font-weight: 700; }
.quicklink-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.quicklink-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.quicklink-arrow { margin-top: auto; color: var(--primary); font-family: var(--mono); font-weight: 500; font-size: 0.75rem; display: flex; align-items: center; gap: 4px; transition: gap 0.15s; }
.quicklink-card:hover .quicklink-arrow { gap: 8px; }
.quicklink-arrow svg { width: 14px; height: 14px; }

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer { text-align: center; padding: 24px; background: var(--bg-secondary); border-top: 1px solid var(--border-color); margin-top: auto; }
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 16px; list-style: none; margin-bottom: 10px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.78rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }
.footer p { color: var(--text-tertiary); font-size: 0.75rem; font-family: var(--mono); }
.footer-heart { color: var(--primary); }

/* ----------------------------------------
   BACK TO TOP
   ---------------------------------------- */
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 36px; height: 36px; border-radius: 3px; background: var(--primary); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top svg { width: 18px; height: 18px; }

/* ----------------------------------------
   SCROLL REVEAL
   ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.35s ease, transform 0.35s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }

/* ----------------------------------------
   PRINT
   ---------------------------------------- */
@media print {
    .navbar, .theme-toggle, .mobile-toggle, .back-to-top,
    .scroll-indicator, .hero-geo, .avatar-ring, .lang-switcher { display: none !important; }
    .home-hero, .page-hero { min-height: auto; background: #0078d4 !important; padding: 32px 24px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .section { padding: 28px 24px; }
    body { background: white !important; color: #1a1f36 !important; font-size: 11pt; }
    .hobby-card, .timeline-card, .cert-card, .skill-item, .stat-card, .cta-card, .quicklink-card { background: white !important; border: 1px solid #ddd !important; box-shadow: none !important; }
    .hobby-visual { height: 50px; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .skill-fill { transition: none !important; }
    a { color: #0078d4 !important; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
    .btn::after, .nav-links a::after, .footer-links a::after { content: none !important; }
    .hobbies-grid, .certs-grid, .skills-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
