/* ===================================================
   VERSION 2 — JATEVO.AI INSPIRED
   Dark terminal aesthetic, monospace-heavy,
   teal/cyan accents, subtle glow effects
=================================================== */

:root {
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1140px;
}

/* ========== DARK THEME (PRIMARY) ========== */
[data-theme="dark"] {
    --bg-base: #080C14;
    --bg-primary: #0B1120;
    --bg-secondary: #0F1629;
    --bg-card: #111A2E;
    --bg-card-hover: #152035;
    --bg-nav: rgba(8, 12, 20, 0.92);
    --bg-code: #0A0F1A;
    --border: rgba(56, 189, 248, 0.08);
    --border-card: rgba(56, 189, 248, 0.12);
    --border-hover: rgba(56, 189, 248, 0.25);
    --border-glow: rgba(56, 189, 248, 0.15);
    --text-primary: #E2E8F0;
    --text-secondary: #7C8DB5;
    --text-tertiary: #4A5578;
    --text-muted: #334163;
    --accent: #38BDF8;
    --accent-dim: #1E90C8;
    --accent-glow: rgba(56, 189, 248, 0.12);
    --accent-glow-strong: rgba(56, 189, 248, 0.2);
    --teal: #2DD4BF;
    --teal-soft: rgba(45, 212, 191, 0.1);
    --green: #22C55E;
    --green-soft: rgba(34, 197, 94, 0.12);
    --orange: #F97316;
    --orange-soft: rgba(249, 115, 22, 0.12);
    --purple: #A78BFA;
    --purple-soft: rgba(167, 139, 250, 0.1);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.06);
    --line-decoration: rgba(56, 189, 248, 0.04);
    --hero-gradient: var(--bg-base);
    --section-alt-gradient: var(--bg-primary);
}

/* ========== LIGHT THEME ========== */
[data-theme="light"] {
    --bg-base: #F8FAFC;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --bg-code: #F1F5F9;
    --border: #E2E8F0;
    --border-card: #E2E8F0;
    --border-hover: #CBD5E1;
    --border-glow: rgba(14, 116, 144, 0.12);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-muted: #CBD5E1;
    --accent: #0891B2;
    --accent-dim: #0E7490;
    --accent-glow: rgba(14, 116, 144, 0.08);
    --accent-glow-strong: rgba(14, 116, 144, 0.12);
    --teal: #0D9488;
    --teal-soft: rgba(13, 148, 136, 0.08);
    --green: #16A34A;
    --green-soft: rgba(22, 163, 74, 0.08);
    --orange: #EA580C;
    --orange-soft: rgba(234, 88, 12, 0.08);
    --purple: #7C3AED;
    --purple-soft: rgba(124, 58, 237, 0.08);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-glow: none;
    --line-decoration: rgba(0,0,0,0.03);
    --hero-gradient: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 50%, #FDF4FF 100%);
    --section-alt-gradient: linear-gradient(135deg, #F0FDFA 0%, #F8FAFC 50%, #EFF6FF 100%);
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 80px; }
html.loaded { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }

/* ========== DECORATIVE LINES (jatevo-style diagonal lines) ========== */
.deco-lines {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.deco-lines::before,
.deco-lines::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 200%;
    background: linear-gradient(to bottom, transparent, var(--line-decoration), transparent);
    transform: rotate(15deg);
}
.deco-lines::before { right: 20%; top: -50%; }
.deco-lines::after { right: 35%; top: -30%; }

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

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

.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border-card);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
    color: var(--text-secondary);
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--text-primary); }

.nav-cta {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 18px;
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.nav-cta:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-hamburger span {
    width: 20px; height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition);
}

/* ========== SECTIONS ========== */
.section-wrap {
    position: relative;
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 110px 28px;
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 24px;
}
.section-badge--teal { background: var(--teal-soft); color: var(--teal); }
.section-badge--accent { background: var(--accent-glow); color: var(--accent); }
.section-badge--orange { background: var(--orange-soft); color: var(--orange); }
.section-badge--purple { background: var(--purple-soft); color: var(--purple); }
.section-badge--green { background: var(--green-soft); color: var(--green); }

.section-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}
.section-title .muted { color: var(--text-tertiary); }

.section-desc {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.8;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
}

.hero .section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-soft);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 28px;
    transition: background 0.4s ease, color 0.4s ease;
}
.hero-status .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 2s ease-in-out infinite;
    transition: background 0.4s ease;
}
/* Typing color: green */
.typing-green { color: var(--green); }
.typing-dot-green { background: var(--green) !important; }
.hero-status:has(.typing-green) { background: var(--green-soft); color: var(--green); }
/* Typing color: red */
.typing-red { color: #F87171; }
.typing-dot-red { background: #F87171 !important; }
.hero-status:has(.typing-red) { background: rgba(248, 113, 113, 0.1); color: #F87171; }
.typing-cursor {
    animation: cursorBlink 0.7s step-end infinite;
    font-weight: 300;
    margin-left: 1px;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero h1 {
    font-family: var(--font-mono);
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.hero h1 .line2 { color: var(--text-tertiary); }
.hero h1 .period { color: var(--accent); }

.hero-desc {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.btn {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--bg-base);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* Hero right — stat card cluster (jatevo-style) */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hero-card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-card-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero-card-big {
    font-family: var(--font-mono);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-card-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.hero-card-sub-item {
    background: var(--bg-card);
    padding: 14px 16px;
}

.hero-card-sub-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.hero-card-sub-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-card-sub-value .highlight { color: var(--teal); font-size: 13px; }

/* Hero bottom stats row (jatevo-style) */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.hero-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all var(--transition);
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.hero-stat-value {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.hero-stat-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.about-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-card-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.about-card-status {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 6px;
}
.about-card-status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.about-card-body {
    padding: 4px 0;
}

.about-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.about-info-row:last-child { border-bottom: none; }
.about-info-row:hover { background: var(--accent-glow); }
.about-info-row--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}
.about-info-row--link:hover { background: var(--accent-glow-strong); }
.about-info-row--link:hover .about-info-value { color: var(--accent); }
.link-hint {
    font-size: 12px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}
.about-info-row--link:hover .link-hint { opacity: 1; }

.about-info-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.about-info-row:hover .about-info-icon {
    background: var(--accent-glow-strong);
}

.about-info-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}

.about-info-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========== TECH STACK ========== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.stack-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
}
.stack-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--border-glow), transparent, transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}
.stack-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.stack-card:hover::before { opacity: 1; }

.stack-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stack-card-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stack-card-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stack-card-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stack-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.stack-tag:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ========== EXPERIENCE TIMELINE ========== */
.timeline {
    margin-top: 40px;
    position: relative;
    padding-left: 28px;
}

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

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 32px;
    padding: 32px 0 32px 24px;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover { background: var(--accent-glow); margin: 0 -20px; padding-left: 44px; padding-right: 20px; border-radius: var(--radius); }

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 38px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-item.current .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow-strong);
}

.timeline-date-col {
    padding-top: 4px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.timeline-current {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-top: 4px;
}
.timeline-current .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: blink 2s ease-in-out infinite; }

.timeline-role {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.timeline-company {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-location {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    font-style: italic;
    opacity: 0.85;
}

.timeline-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-highlights li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.7;
}
.timeline-highlights li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
}

/* ========== PROJECTS ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: translateY(-2px);
}

.project-img {
    width: 100%;
    height: 190px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }

.project-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.project-img-placeholder .icon { font-size: 28px; opacity: 0.3; }

.project-body {
    padding: 22px;
}

.project-body-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.project-title {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-company {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.project-stack-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--accent-glow);
    color: var(--accent-dim);
    border: 1px solid var(--border-glow);
}
[data-theme="dark"] .project-stack-tag {
    background: rgba(56, 189, 248, 0.08);
    color: var(--text-secondary);
    border-color: rgba(56, 189, 248, 0.15);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.project-links a {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}

.project-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-1px);
}

.project-links a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.project-links a:hover svg {
    opacity: 1;
}

/* Grouped links layout for multi-app projects */
.project-links-grouped {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.project-links-grouped .link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.project-links-grouped .link-row-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    min-width: 52px;
}

.project-links-grouped a {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}

.project-links-grouped a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-1px);
}

.project-links-grouped a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.project-links-grouped a:hover svg {
    opacity: 1;
}

/* ========== HACKATHON ========== */
.hackathon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    margin-top: 40px;
    overflow: hidden;
}

.hackathon-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hackathon-card-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hackathon-card-live {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 6px;
}
.hackathon-card-live .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.hackathon-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.hackathon-info {
    padding: 28px 24px;
}

.hackathon-name {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hackathon-event {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 16px;
}

.hackathon-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.hackathon-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
    border-left: 1px solid var(--border);
}

.hackathon-img {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    min-height: 130px;
}

/* ========== CONTACT ========== */
.contact-center { text-align: center; }
.contact-center .section-desc { margin: 0 auto 48px; }

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition);
}
.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.contact-link .icon { font-size: 16px; }

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 36px 28px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}
.footer .dot { color: var(--green); }

/* ========== SCROLLBAR ========== */
[data-theme="dark"] ::-webkit-scrollbar { width: 6px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg-base); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero .section { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .hackathon-card-body { grid-template-columns: 1fr; }
    .hackathon-images { border-left: none; border-top: 1px solid var(--border); }
    .timeline-item { grid-template-columns: 1fr; gap: 4px; }
    .timeline-date-col { padding-top: 0; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(24px);
        padding: 16px 28px;
        border-bottom: 1px solid var(--border);
        gap: 14px;
    }
    .nav-hamburger { display: flex; }
    .nav-cta { display: none; }
    .hero-stats { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: 1fr; }
    .contact-grid { flex-direction: column; align-items: center; }
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
