:root {
    --bg-main: #060403;
    --bg-surface: #120d09;
    --bg-surface-elevated: #1a130d;
    --text-main: #f6efe6;
    --text-primary: #fbf6ef;
    --text-secondary: #d8c8b3;
    --text-muted: #9f8d79;
    --primary: #c68a43;
    --primary-light: #e4b87b;
    --accent: #dfb36f;
    --accent-light: #f2d7a0;
    --accent-purple: #d19c67;
    --purple: #b77736;
    --emerald: #9ca37f;
    --amber: #e3a54c;
    --success: #b9c48d;
    --gradient-primary: linear-gradient(135deg, #f2d7a0 0%, #d59b55 52%, #8f5b27 100%);
    --border-light: rgba(242, 215, 160, 0.14);
    --glass-bg: rgba(17, 12, 8, 0.48);
    --glass-border: rgba(242, 215, 160, 0.2);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    --trans-fast: 0.2s ease;
    --trans-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-display: 'Cormorant Garamond', serif;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background elements */
.noise-bg {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none; opacity: 0.04; z-index: 100;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}
.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; z-index: -1;
}
.orb-1 { top: 10%; left: 10%; width: 300px; height: 300px; background: var(--primary); }
.orb-2 { bottom: 20%; right: 10%; width: 400px; height: 400px; background: var(--accent); opacity: 0.2; }
.orb-3 { top: 50%; left: 50%; width: 250px; height: 250px; background: var(--accent-purple); opacity: 0.15; transform: translate(-50%, -50%); }

/* Typography */
h1, h2, h3, h4 { letter-spacing: -0.02em; }
.text-accent { color: var(--accent); }
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 30px; font-weight: 500; font-family: var(--font-body);
    text-decoration: none; transition: all 0.3s ease; gap: 8px; cursor: pointer; border: none; font-size: 0.95rem;
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    color: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5); transform: translateY(-2px); }
.btn-outline {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-light);
    color: var(--text-main);
}
.btn-outline:hover { background: rgba(59, 130, 246, 0.05); border-color: var(--accent-light); color: var(--accent-light); transform: translateY(-2px); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.nav-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a:not(.btn) {
    position: relative;
    padding: 0.25rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--trans-fast);
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover {
    color: var(--accent-light);
}
.nav-links a:not(.btn):hover::after {
    width: 100%;
}
.nav-links .btn {
    margin-left: 0.25rem;
}

@media (max-width: 900px) {
    .nav-content {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-links a:not(.btn) {
        font-size: 0.84rem;
    }
}

@media (max-width: 640px) {
    .nav-content {
        flex-direction: column;
        gap: 0.85rem;
    }

    .nav-links {
        justify-content: center;
        gap: 0.85rem 1rem;
    }
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(92px, 10vw, 116px) 0; }
.section-title { font-size: 36px; font-family: var(--font-heading); margin-bottom: 16px; text-align: center; }

/* Subtitle/number logic */
.section-header { text-align: center; margin-bottom: clamp(2.75rem, 5vw, 3.75rem); }
.section-number { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; display: inline-block; margin-bottom: 10px; }
.section-number::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.section-subtitle { color: rgba(148, 163, 184, 0.92); font-size: 18px; line-height: 1.72; max-width: 640px; margin: 0 auto; }

/* Dashboard Skills Items */
.skills-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 24px);
    grid-auto-rows: minmax(min-content, auto);
    margin-top: 40px;
}
@media (min-width: 768px) {
    .skills-dashboard { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .skills-dashboard { grid-template-columns: repeat(3, 1fr); }
}

.glass-panel { background: var(--glass-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--border-light); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal); }
.glass-panel:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2); border-color: rgba(59, 130, 246, 0.4); }

.artifact-card {
    display: grid;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
}
.artifact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
}

.artifact-meta { padding: 1.5rem; background: rgba(17, 24, 39, 0.6); border-top: 1px solid var(--border-light); margin-top: auto; }
.artifact-meta h3 { font-size: 1rem; color: var(--text-main); margin-bottom: 0.4rem; font-family: var(--font-heading); font-weight: 700; display:flex; align-items:center;}
.artifact-meta p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; position: relative; }
.skill-tag {
    display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.75rem; font-family: var(--font-body);
    font-weight: 500; color: var(--text-muted); cursor: default; transition: all var(--trans-fast); position: relative;
}
.skill-tag:hover {
    color: var(--accent-light); border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.05); transform: translateY(-1px);
}
.skill-tag::after {
    content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(4px) scale(0.95);
    margin-bottom: 0.5rem; padding: 0.4rem 0.8rem; background: var(--bg-surface-elevated); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); color: var(--text-main); font-size: 0.75rem; font-weight: 600; white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; z-index: 100;
}
.skill-tag:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }

/* Terminal */
.artifact-terminal { height: 180px; background: #0f172a; padding: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #38bdf8; overflow-y: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.mockup-header { background: #1e293b; padding: 0.6rem 1rem; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--border-light); }
.mockup-header i { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.mockup-header i:nth-child(1) { background: #ef4444; } .mockup-header i:nth-child(2) { background: #eab308; } .mockup-header i:nth-child(3) { background: #22c55e; }

/* Pipeline */
.pipeline-visualizer { height: 180px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 1rem; background: radial-gradient(circle at center, rgba(59, 130, 246, 0.06) 0%, transparent 70%); }
.pv-node { padding: 0.5rem 1rem; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; z-index: 2; transition: all 0.3s ease; color: var(--text-muted); }
.pv-node.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); transform: scale(1.1); }
.pv-edge { height: 2px; width: 30px; background: var(--border-light); position: relative; overflow: hidden; }
.pv-edge::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: pulse-data 2s infinite linear; }
@keyframes pulse-data { 0% { left: -100% } 100% { left: 100% } }

/* Waveform */
.waveform-artifact { display: flex; align-items: center; gap: 4px; height: 60px; }
.w-bar { width: 6px; background: linear-gradient(180deg, var(--accent) 0%, var(--purple) 100%); border-radius: 3px; opacity: 0.8; animation: w-bounce 1s ease-in-out infinite; }
.w-bar:nth-child(odd) { animation-duration: 1.2s; animation-delay: -0.5s; background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%); }
.w-bar:nth-child(3n) { animation-duration: 0.8s; animation-delay: -0.2s; background: linear-gradient(180deg, var(--primary) 0%, var(--purple) 100%); }
@keyframes w-bounce { 0%, 100% { height: 8px; } 50% { height: 48px; } }


/* Hero */
.hero { display: flex; align-items: center; min-height: 100vh; padding-top: 92px; }
.hero-content { max-width: 920px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 0 1px rgba(30, 41, 59, 0.28), 0 10px 24px rgba(59, 130, 246, 0.08);
}
.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.45);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.6vw, 5rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}
.hero-title .accent-line {
    display: inline;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
}
.text-center { text-align: center; }
.hero-subtitle {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}
.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}
.hero-stats { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px;}
.stat-card { padding: 20px 30px; background: var(--glass-bg); border: 1px solid var(--border-light); border-radius: 16px; text-align: center; min-width: 160px;}
.stat-num { display: block; font-size: 32px; font-weight: 800; margin-bottom: 5px; font-family: var(--font-heading);}
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* About basic */
.about-card { padding: 44px; background: var(--glass-bg); border: 1px solid var(--border-light); border-radius: 24px; text-align: center; }
.about-profile-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(248px, 320px) minmax(0, 1fr);
    gap: clamp(2.6rem, 4vw, 3.8rem);
    align-items: center;
    overflow: hidden;
    text-align: left;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.1) 0%, transparent 34%),
        radial-gradient(circle at bottom right, rgba(192, 132, 252, 0.1) 0%, transparent 28%),
        linear-gradient(180deg, rgba(15, 25, 41, 0.94) 0%, rgba(10, 14, 26, 0.82) 100%);
}
.about-portrait-panel {
    display: flex;
    justify-content: center;
}
.about-portrait-frame {
    position: relative;
    width: min(100%, 320px);
    min-height: 400px;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(96, 165, 250, 0.18);
    background:
        radial-gradient(circle at 50% 16%, rgba(96, 165, 250, 0.24) 0%, rgba(139, 92, 246, 0.12) 34%, transparent 58%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.82) 0%, rgba(9, 17, 30, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.about-portrait-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.18;
    pointer-events: none;
}
.about-portrait-image {
    position: absolute;
    left: 50%;
    bottom: -68px;
    z-index: 1;
    width: 108%;
    max-width: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.38));
}
.about-copy {
    position: relative;
    z-index: 1;
    max-width: 630px;
}
.about-text { font-size: 1.02rem; color: rgba(203, 213, 225, 0.9); line-height: 1.76; text-align: left; max-width: 58ch; }
.about-text + .about-text { margin-top: 1rem; }
.about-text-secondary { color: rgba(148, 163, 184, 0.92); }
.about-text strong { color: white; font-weight: 500;}
.about-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.75rem;
}
.about-signal {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-profile-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 32px 24px;
        text-align: center;
    }

    .about-copy,
    .about-text {
        text-align: center;
        max-width: none;
    }

    .about-signals {
        justify-content: center;
    }

    .about-portrait-frame {
        width: min(100%, 340px);
        min-height: 360px;
    }
}

/* ══════════════ FLAGSHIPS (Synced with index.html) ══════════════ */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

#featured .section-header { text-align: left; }
#featured .section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; text-align: left; }
#featured .section-subtitle { color: rgba(203, 213, 225, 0.84); max-width: 550px; margin: 0; }
.project-showcase { display: flex; flex-direction: column; gap: 4rem; }

.flagship-card {
    position: relative;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    transform-origin: top center;
    z-index: 10;
    transition: box-shadow var(--trans-normal), border-color var(--trans-normal), transform var(--trans-normal);
}

.flagship-card:hover {
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.flagship-card.reverse {
    grid-template-columns: 1fr 1fr;
    direction: ltr;
}

.flagship-card.reverse .fc-content { order: 2; }
.flagship-card.reverse .fc-visual { order: 1; }

@media(max-width:900px){
    .flagship-card,
    .flagship-card.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        padding: 2rem;
        min-height: auto;
    }

    .fc-visual { min-height: 280px; }
}

.fc-content { display: flex; flex-direction: column; justify-content: center; }
.fc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    color: var(--accent-light);
    width: fit-content;
}

.fc-badge.accent-purple { color: var(--purple); background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.2); }
.fc-badge.accent-emerald { color: var(--emerald); background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); }
.fc-badge.accent-blue { color: var(--accent-light); background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.2); }

.fc-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.fc-desc { color: rgba(203, 213, 225, 0.84); font-size: 1.02rem; margin-bottom: 1.5rem; line-height: 1.7; }
.fc-features { margin-bottom: 1.5rem; }
.fc-features li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; color: var(--text-secondary); font-size: 0.93rem; }
.fc-features li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

.fc-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.fc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.fc-actions .btn {
    width: fit-content;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    transition: all var(--trans-fast);
}

.tag:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
}

.fc-visual {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.fc-bg-1 { background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%); }
.fc-bg-2 { background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%); }
.fc-bg-3 { background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%); }
.fc-bg-4 { background: radial-gradient(circle at center, rgba(59, 130, 246, 0.06) 0%, transparent 60%), radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%); }

.mockup-window { width: 90%; background: #0f172a; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(30, 41, 59, 0.5); box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15); }
.mockup-body.mockup-terminal { padding: 1.5rem; font-family: 'JetBrains Mono', monospace; color: #e2e8f0; font-size: 0.82rem; line-height: 1.7; }
.t-success { color: #22c55e; }
.t-info { color: #94a3b8; }
.t-accent { color: var(--accent-light); }

.phone-mockup {
    max-width: 260px;
    height: 450px;
    border-radius: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 6px solid #334155;
}

.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background: #334155; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; }
.voice-wave { display: flex; gap: 4px; align-items: center; justify-content: center; margin-bottom: 2rem; }
.voice-wave i { width: 4px; background: var(--purple); border-radius: 2px; animation: wave 1.2s infinite ease-in-out alternate; }
.voice-wave i:nth-child(1) { height: 20px; animation-delay: .1s; }
.voice-wave i:nth-child(2) { height: 40px; animation-delay: .2s; }
.voice-wave i:nth-child(3) { height: 60px; animation-delay: .3s; }
.voice-wave i:nth-child(4) { height: 35px; animation-delay: .4s; }
.voice-wave i:nth-child(5) { height: 15px; animation-delay: .5s; }
@keyframes wave { 0% { transform: scaleY(0.5); } 100% { transform: scaleY(1.2); } }
.phone-text { text-align: center; color: #e2e8f0; }
.phone-text p { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.25rem; }
.phone-text span { color: #94a3b8; font-size: 0.85rem; }

.nodes-mockup { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.n-node { padding: 0.7rem 1.4rem; background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.n-node.active { background: var(--emerald); color: #fff; border-color: var(--emerald); box-shadow: 0 0 16px rgba(5, 150, 105, 0.3); }
.n-line { width: 2px; height: 24px; background: var(--border-light); }

.pipeline-mockup { display: flex; flex-direction: column; gap: 0.75rem; width: 80%; }
.pipe { padding: 0.9rem 1rem; background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-left: 4px solid var(--border-light); border-radius: 6px; font-size: 0.88rem; font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); color: var(--text-secondary); }
.pipe.accent { border-left-color: var(--accent); background: rgba(79, 70, 229, 0.03); color: var(--accent); }


/* Project Gallery */
#projects .section-header {
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

#projects .section-subtitle {
    max-width: 760px;
    color: var(--text-secondary);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1.75rem, 2.5vw, 2.25rem);
}

.repo-card {
    position: relative;
    padding: clamp(2.15rem, 3vw, 2.55rem);
    display: flex;
    flex-direction: column;
    height: 100%;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.08) 0%, transparent 34%),
        linear-gradient(180deg, rgba(19, 29, 47, 0.92) 0%, rgba(12, 19, 33, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
}

.repo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.42), 0 0 44px rgba(59, 130, 246, 0.06);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}

.repo-icon { font-size: 2rem; }

.repo-links a {
    color: var(--text-muted);
    transition: color var(--trans-fast);
}

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

.repo-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.35;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.repo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.12);
    color: rgba(147, 197, 253, 0.9);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.repo-badge-muted {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(148, 163, 184, 0.12);
    color: rgba(148, 163, 184, 0.9);
}

.repo-desc {
    color: rgba(203, 213, 225, 0.84);
    font-size: 0.96rem;
    margin-bottom: 1.55rem;
    flex-grow: 1;
    line-height: 1.72;
}

.repo-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: auto;
    font-size: 0.79rem;
    color: rgba(148, 163, 184, 0.82);
    font-family: 'JetBrains Mono', monospace;
}

.repo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.7rem;
    padding-top: 0.25rem;
}

.repo-actions .btn {
    width: fit-content;
}

.archive-cta {
    margin-top: clamp(4rem, 7vw, 5rem);
}

@media (max-width: 900px) {
    #projects .section-header {
        margin-bottom: 2.5rem;
    }

    .repo-card {
        padding: 2rem;
    }

    .archive-cta {
        margin-top: 3.25rem;
    }
}

/* Contact / CTA */
.cta-box {
    padding: clamp(5.35rem, 8vw, 6.3rem) clamp(2rem, 6vw, 3.5rem);
    text-align: center;
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.cta-box::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.06) 50%, transparent 70%);
    top: -80px;
    right: -80px;
    filter: blur(60px);
    animation: ctaOrbFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ctaOrbFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-30px, 20px) scale(1.2); }
}

.cta-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.15rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cta-desc {
    color: rgba(203, 213, 225, 0.84);
    max-width: 560px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
    position: relative;
    z-index: 1;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--trans-normal);
}

.contact-btn.telegram {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.contact-btn.telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.15);
}

.contact-btn.email {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-btn.email:hover {
    border-color: var(--accent-light);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    color: var(--accent-light);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(10px);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    width: min(1180px, 100%);
    max-height: min(94vh, 1000px);
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.45) rgba(255, 255, 255, 0.03);
    color: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: linear-gradient(135deg, rgba(15, 25, 41, 0.98) 0%, rgba(10, 14, 26, 0.98) 100%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 80px rgba(59, 130, 246, 0.08);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    z-index: 4;
}

.modal-close:hover {
    color: white;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.35);
}

.modal-body {
    padding: 0;
}

.project-modal-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    min-height: auto;
    align-items: start;
}

.project-modal-media {
    position: relative;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-right: 1px solid var(--border-light);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12) 0%, transparent 42%), radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.12) 0%, transparent 38%), linear-gradient(180deg, rgba(15, 25, 41, 0.9) 0%, rgba(10, 14, 26, 0.75) 100%);
}

.modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    width: fit-content;
    border-radius: var(--radius-full);
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-light);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-video-frame,
.modal-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: #09111e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-video-frame iframe,
.modal-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
    background: #000;
}

.modal-video-frame video {
    object-fit: contain;
}

.modal-video-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-video-caption {
    padding: 0 4px;
}

.modal-video-caption h3 {
    color: rgba(241, 245, 249, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.modal-video-caption p {
    margin-top: 5px;
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.82rem;
    line-height: 1.5;
}

.modal-secondary-videos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.modal-secondary-title {
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-secondary-videos .modal-video-frame {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
}

.modal-video-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%), linear-gradient(180deg, rgba(9, 17, 30, 0.92) 0%, rgba(9, 17, 30, 0.98) 100%);
}

.modal-video-label {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modal-video-title {
    margin-top: auto;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.modal-video-note {
    margin-top: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 36ch;
}

.project-modal-copy {
    padding: 30px 68px 30px 30px;
    overflow: visible;
}

.project-modal-copy h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 2.8vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1.1rem;
    max-width: none;
}

.project-modal-lead {
    color: rgba(203, 213, 225, 0.84);
    line-height: 1.56;
    font-size: 0.92rem;
    max-width: 58ch;
}

.project-modal-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.modal-metric {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
}

.modal-metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.modal-metric-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.project-modal-section {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
}

.project-modal-section h3 {
    margin-bottom: 12px;
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-modal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-modal-section li {
    position: relative;
    padding-left: 16px;
    color: rgba(203, 213, 225, 0.84);
    line-height: 1.48;
    font-size: 0.86rem;
}

.project-modal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.project-modal-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 20px;
}

.project-modal-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.8rem;
    font-weight: 600;
}

.project-modal-copy::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 11px;
}

.project-modal-copy::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.45);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.project-modal-copy::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 960px) {
    .project-modal-shell {
        grid-template-columns: 1fr;
    }

    .project-modal-media {
        border-right: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .project-modal-grid,
    .project-modal-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .project-modal-copy {
        padding: 30px 28px 28px;
    }

    .project-modal-copy h2 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .fc-actions .btn {
        width: 100%;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        max-height: 94vh;
    }

    .project-modal-media,
    .project-modal-copy {
        padding: 22px 18px;
    }

    .project-modal-grid,
    .project-modal-metrics {
        grid-template-columns: 1fr;
    }

    .modal-close {
        top: 14px;
        right: 14px;
    }
}

/* Golden cinematic redesign */
body {
    background:
        radial-gradient(circle at 12% 10%, rgba(212, 153, 83, 0.18) 0%, transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(120, 74, 30, 0.2) 0%, transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(88, 52, 21, 0.28) 0%, transparent 35%),
        linear-gradient(180deg, #090604 0%, #050403 100%);
    color: var(--text-main);
}

.noise-bg {
    opacity: 0.06;
    mix-blend-mode: soft-light;
}

.glow-orb {
    filter: blur(110px);
    opacity: 0.24;
}

.orb-1 {
    background: rgba(221, 168, 98, 0.72);
    width: 360px;
    height: 360px;
}

.orb-2 {
    background: rgba(110, 67, 30, 0.68);
    width: 440px;
    height: 440px;
}

.orb-3 {
    background: rgba(246, 215, 158, 0.24);
    width: 300px;
    height: 300px;
}

.text-accent {
    color: var(--accent-light);
}

.text-gradient {
    background: linear-gradient(135deg, #f5dfb5 0%, #d9a05a 52%, #8f5c2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: linear-gradient(180deg, rgba(20, 14, 9, 0.74) 0%, rgba(10, 7, 5, 0.9) 100%);
    border-color: rgba(242, 215, 160, 0.1);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 244, 221, 0.03);
}

.glass-panel:hover {
    border-color: rgba(242, 215, 160, 0.2);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46), 0 0 34px rgba(217, 160, 90, 0.08);
}

.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #f3d59a 0%, #d89b54 55%, #9d612a 100%);
    color: #120b07;
    box-shadow: 0 10px 28px rgba(157, 97, 42, 0.28), inset 0 1px 0 rgba(255, 248, 236, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 16px 38px rgba(157, 97, 42, 0.38), 0 0 40px rgba(223, 179, 111, 0.16);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 247, 232, 0.02);
    border-color: rgba(242, 215, 160, 0.18);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(242, 215, 160, 0.07);
    border-color: rgba(242, 215, 160, 0.34);
    color: var(--accent-light);
}

.navbar {
    background: rgba(8, 6, 4, 0.72);
    border-bottom: 1px solid rgba(242, 215, 160, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.logo {
    font-size: 1.7rem;
    letter-spacing: -0.02em;
}

.nav-links a:not(.btn) {
    color: rgba(233, 220, 203, 0.84);
}

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

.section-title {
    color: var(--text-primary);
    font-size: clamp(2.25rem, 4vw, 3.4rem);
}

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

.section-number::before {
    background: var(--accent);
}

.section-subtitle {
    color: rgba(216, 200, 179, 0.84);
}

.artifact-card:hover {
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), 0 0 34px rgba(217, 160, 90, 0.08);
    border-color: rgba(242, 215, 160, 0.18);
}

.artifact-meta {
    background: linear-gradient(180deg, rgba(18, 13, 9, 0.9) 0%, rgba(10, 7, 5, 0.96) 100%);
}

.artifact-terminal {
    background: #0b0705;
    color: #eac88d;
}

.mockup-header {
    background: #16100b;
}

.pipeline-visualizer {
    background: radial-gradient(circle at center, rgba(223, 179, 111, 0.1) 0%, transparent 68%);
}

.pv-node.active {
    background: linear-gradient(135deg, #efcf93 0%, #d59850 100%);
    color: #110b07;
    border-color: rgba(242, 215, 160, 0.4);
    box-shadow: 0 0 20px rgba(223, 179, 111, 0.26);
}

.pv-edge::after {
    background: linear-gradient(90deg, transparent, rgba(242, 215, 160, 0.95), transparent);
}

.w-bar {
    background: linear-gradient(180deg, #f0d59b 0%, #b77736 100%);
}

.w-bar:nth-child(odd) {
    background: linear-gradient(180deg, #f8e4bc 0%, #d89b54 100%);
}

.w-bar:nth-child(3n) {
    background: linear-gradient(180deg, #c98b43 0%, #8d5727 100%);
}

.skill-tag {
    background: rgba(255, 244, 221, 0.03);
    border-color: rgba(242, 215, 160, 0.11);
    color: rgba(216, 200, 179, 0.76);
}

.skill-tag:hover {
    color: var(--accent-light);
    border-color: rgba(242, 215, 160, 0.3);
    background: rgba(242, 215, 160, 0.06);
}

.skill-tag::after {
    background: rgba(16, 11, 8, 0.96);
    border-color: rgba(242, 215, 160, 0.16);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 10% auto auto 50%;
    width: min(78vw, 860px);
    height: min(64vw, 520px);
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 179, 111, 0.14) 0%, rgba(148, 95, 46, 0.08) 32%, transparent 68%);
    filter: blur(8px);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: min(84vw, 940px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(242, 215, 160, 0.34), transparent);
    box-shadow: 0 0 24px rgba(223, 179, 111, 0.28);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1080px;
}

.hero-badge {
    padding: 10px 20px;
    background: rgba(242, 215, 160, 0.08);
    border-color: rgba(242, 215, 160, 0.2);
    color: var(--accent-light);
    box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.08), 0 10px 24px rgba(100, 57, 21, 0.18);
}

.hero-title {
    font-size: clamp(3.3rem, 6vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
    margin-bottom: 1.3rem;
    text-shadow: 0 0 30px rgba(246, 223, 181, 0.05);
}

.hero-subtitle {
    max-width: 840px;
    color: rgba(226, 212, 194, 0.86);
    font-size: clamp(1.06rem, 1.8vw, 1.28rem);
}

.hero-subtitle strong {
    color: var(--accent-light);
}

.hero-stats {
    gap: 1rem;
    margin-bottom: 2.65rem;
}

.stat-card {
    min-width: 176px;
    background: linear-gradient(180deg, rgba(18, 13, 9, 0.88) 0%, rgba(11, 8, 6, 0.96) 100%);
    border: 1px solid rgba(242, 215, 160, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.03), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.stat-label {
    color: rgba(184, 164, 138, 0.86);
}

.hero-reel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 920px;
    margin: 0 auto;
}

.hero-reel-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(242, 215, 160, 0.16);
    background: linear-gradient(180deg, rgba(21, 14, 9, 0.96) 0%, rgba(10, 7, 5, 1) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 28px rgba(217, 160, 90, 0.07);
    transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.hero-reel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 5, 4, 0.02) 0%, rgba(7, 5, 4, 0.1) 52%, rgba(7, 5, 4, 0.5) 100%);
    pointer-events: none;
}

.hero-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.82;
    filter: saturate(1.08) contrast(1.06);
    transform: scale(1.095);
    transform-origin: center center;
    transition: transform 0.45s ease;
}

.hero-reel-label {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 1;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(10, 7, 5, 0.74);
    border: 1px solid rgba(242, 215, 160, 0.16);
    color: var(--accent-light);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-reel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 215, 160, 0.28);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.36), 0 0 34px rgba(217, 160, 90, 0.12);
}

.hero-reel-card:focus-visible {
    outline: none;
    transform: translateY(-4px);
    border-color: rgba(242, 215, 160, 0.34);
    box-shadow:
        0 0 0 3px rgba(242, 215, 160, 0.18),
        0 24px 52px rgba(0, 0, 0, 0.36),
        0 0 36px rgba(217, 160, 90, 0.14);
}

.about-profile-card {
    background:
        radial-gradient(circle at top left, rgba(223, 179, 111, 0.12) 0%, transparent 30%),
        radial-gradient(circle at bottom right, rgba(120, 74, 30, 0.16) 0%, transparent 30%),
        linear-gradient(180deg, rgba(18, 13, 9, 0.94) 0%, rgba(10, 7, 5, 0.92) 100%);
    border-color: rgba(242, 215, 160, 0.12);
}

.about-portrait-frame {
    border-color: rgba(242, 215, 160, 0.16);
    background:
        radial-gradient(circle at 50% 12%, rgba(243, 213, 154, 0.2) 0%, rgba(157, 97, 42, 0.08) 34%, transparent 58%),
        linear-gradient(180deg, rgba(19, 14, 10, 0.9) 0%, rgba(8, 6, 5, 0.98) 100%);
}

.about-portrait-image {
    bottom: -88px;
    filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.42));
}

.about-text {
    color: rgba(226, 212, 194, 0.88);
}

.about-text-secondary {
    color: rgba(184, 164, 138, 0.88);
}

.about-signals {
    gap: 0.9rem;
}

.about-signal {
    background: rgba(255, 244, 221, 0.03);
    border-color: rgba(242, 215, 160, 0.12);
    color: rgba(226, 212, 194, 0.8);
}

#featured .section-subtitle {
    color: rgba(216, 200, 179, 0.8);
}

.project-showcase {
    gap: clamp(4.25rem, 7vw, 5rem);
}

.flagship-card {
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(180deg, rgba(19, 14, 10, 0.96) 0%, rgba(10, 7, 5, 0.96) 100%);
    border-color: rgba(242, 215, 160, 0.1);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.34), 0 0 36px rgba(217, 160, 90, 0.05);
}

.flagship-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 215, 160, 0.34), transparent);
    opacity: 0.95;
}

.flagship-card:hover {
    border-color: rgba(242, 215, 160, 0.18);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.4), 0 0 42px rgba(217, 160, 90, 0.12);
}

.fc-badge {
    background: rgba(242, 215, 160, 0.08);
    border-color: rgba(242, 215, 160, 0.18);
    color: var(--accent-light);
}

.fc-badge.accent-purple {
    color: #efc790;
    background: rgba(217, 160, 90, 0.08);
    border-color: rgba(217, 160, 90, 0.18);
}

.fc-badge.accent-emerald {
    color: #e7dbb0;
    background: rgba(185, 196, 141, 0.08);
    border-color: rgba(185, 196, 141, 0.18);
}

.fc-badge.accent-blue {
    color: #f0d7a0;
    background: rgba(223, 179, 111, 0.08);
    border-color: rgba(223, 179, 111, 0.18);
}

.fc-title {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    color: var(--text-primary);
}

.fc-desc {
    color: rgba(226, 212, 194, 0.82);
}

.fc-features li {
    color: rgba(216, 200, 179, 0.84);
}

.fc-features li::before {
    color: var(--accent-light);
}

.tag {
    background: rgba(255, 244, 221, 0.03);
    border-color: rgba(242, 215, 160, 0.12);
    color: rgba(226, 212, 194, 0.78);
}

.tag:hover {
    background: rgba(242, 215, 160, 0.08);
    border-color: rgba(242, 215, 160, 0.28);
    color: var(--accent-light);
    box-shadow: 0 0 18px rgba(223, 179, 111, 0.08);
}

.fc-visual {
    min-height: 430px;
    padding: 1.25rem;
}

.fc-bg-1 {
    background: radial-gradient(circle at center, rgba(223, 179, 111, 0.12) 0%, transparent 66%);
}

.fc-bg-2 {
    background: radial-gradient(circle at center, rgba(181, 119, 54, 0.14) 0%, transparent 66%);
}

.fc-bg-3 {
    background: radial-gradient(circle at center, rgba(243, 213, 154, 0.12) 0%, transparent 68%);
}

.fc-bg-4 {
    background:
        radial-gradient(circle at center, rgba(223, 179, 111, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(157, 97, 42, 0.08) 0%, transparent 48%);
}

.case-preview-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
}

.case-preview-stage::before {
    content: "";
    position: absolute;
    inset: 14% 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 179, 111, 0.16) 0%, rgba(121, 73, 30, 0.08) 52%, transparent 74%);
    filter: blur(18px);
}

.case-preview-frame {
    position: relative;
    width: min(100%, 308px);
    aspect-ratio: 9 / 18.5;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(180deg, #1a120d 0%, #050403 100%);
    border: 1px solid rgba(242, 215, 160, 0.24);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 245, 227, 0.04), 0 0 44px rgba(223, 179, 111, 0.1);
}

.case-preview-frame-wide {
    width: min(100%, 560px);
    aspect-ratio: 16 / 9;
    border-radius: 28px;
}

.case-preview-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255, 248, 236, 0.1) 0%, transparent 28%, transparent 72%, rgba(255, 248, 236, 0.06) 100%);
    pointer-events: none;
    z-index: 2;
}

.case-preview-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.case-preview-video-contain {
    object-fit: contain;
    object-position: center center;
    background: #080604;
}

.case-preview-frame-wide .case-preview-video {
    transform: scale(1.095);
    transform-origin: center center;
}

.case-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 4, 3, 0.08) 0%, rgba(5, 4, 3, 0.18) 44%, rgba(5, 4, 3, 0.82) 100%);
    z-index: 1;
}

.case-preview-frame-wide .case-preview-overlay {
    background:
        linear-gradient(180deg, rgba(5, 4, 3, 0.12) 0%, rgba(5, 4, 3, 0.08) 42%, rgba(5, 4, 3, 0.68) 100%),
        radial-gradient(circle at center, rgba(223, 179, 111, 0.08) 0%, transparent 62%);
}

.case-preview-badge {
    display: none;
}

.case-preview-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 3;
    display: grid;
    gap: 0.25rem;
}

.case-preview-caption strong {
    color: #fff7ea;
    font-size: 0.92rem;
    font-weight: 700;
}

.case-preview-caption span {
    color: rgba(242, 226, 205, 0.78);
    font-size: 0.72rem;
}

#projects .section-subtitle {
    color: rgba(216, 200, 179, 0.82);
}

.project-grid {
    gap: clamp(2rem, 2.8vw, 2.5rem);
}

.repo-card {
    background:
        radial-gradient(circle at top right, rgba(223, 179, 111, 0.12) 0%, transparent 34%),
        linear-gradient(180deg, rgba(20, 14, 10, 0.95) 0%, rgba(9, 7, 5, 0.98) 100%);
    border-color: rgba(242, 215, 160, 0.12);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 248, 236, 0.03);
}

.repo-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 215, 160, 0.3), transparent);
}

.repo-card:hover {
    border-color: rgba(242, 215, 160, 0.24);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.42), 0 0 34px rgba(217, 160, 90, 0.08);
}

.repo-links a {
    color: rgba(226, 212, 194, 0.58);
}

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

.repo-preview {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(242, 215, 160, 0.14);
    background: linear-gradient(180deg, rgba(21, 14, 9, 0.96) 0%, rgba(8, 6, 5, 1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.03), 0 16px 34px rgba(0, 0, 0, 0.22);
    margin-bottom: 1.35rem;
    transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.repo-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 5, 4, 0.04) 0%, rgba(6, 5, 4, 0.1) 52%, rgba(6, 5, 4, 0.5) 100%);
    pointer-events: none;
}

.repo-preview:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 215, 160, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.05), 0 22px 40px rgba(0, 0, 0, 0.28), 0 0 28px rgba(217, 160, 90, 0.1);
}

.repo-preview:focus-visible {
    outline: none;
    transform: translateY(-4px);
    border-color: rgba(242, 215, 160, 0.3);
    box-shadow:
        0 0 0 3px rgba(242, 215, 160, 0.16),
        inset 0 1px 0 rgba(255, 248, 236, 0.05),
        0 22px 40px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(217, 160, 90, 0.12);
}

.repo-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: saturate(1.05) contrast(1.04);
    transition: transform 0.45s ease;
}

.repo-preview-video-horizontal {
    transform: scale(1.095);
    transform-origin: center center;
}

.repo-preview:hover .repo-preview-video-horizontal,
.repo-preview:focus-visible .repo-preview-video-horizontal {
    transform: scale(1.125);
}

.repo-preview-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 0.38rem 0.76rem;
    border-radius: 999px;
    background: rgba(10, 7, 5, 0.74);
    border: 1px solid rgba(242, 215, 160, 0.16);
    color: var(--accent-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.repo-badge {
    background: rgba(242, 215, 160, 0.07);
    border-color: rgba(242, 215, 160, 0.14);
    color: rgba(242, 215, 160, 0.92);
}

.repo-badge-muted {
    background: rgba(255, 244, 221, 0.03);
    border-color: rgba(242, 215, 160, 0.08);
    color: rgba(184, 164, 138, 0.9);
}

.repo-desc {
    color: rgba(226, 212, 194, 0.84);
}

.repo-tech {
    color: rgba(184, 164, 138, 0.82);
}

.archive-cta {
    margin-top: clamp(4.5rem, 7vw, 5.4rem);
}

.cta-box {
    border-color: rgba(242, 215, 160, 0.14);
    background:
        radial-gradient(circle at 20% 15%, rgba(223, 179, 111, 0.12) 0%, transparent 28%),
        radial-gradient(circle at 80% 85%, rgba(120, 74, 30, 0.14) 0%, transparent 30%),
        linear-gradient(135deg, rgba(20, 14, 10, 0.9) 0%, rgba(8, 6, 4, 0.96) 100%);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38), 0 0 46px rgba(217, 160, 90, 0.06);
}

.cta-box::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 215, 160, 0.4), transparent);
}

.cta-box::after {
    background: radial-gradient(circle, rgba(223, 179, 111, 0.12) 0%, rgba(157, 97, 42, 0.06) 50%, transparent 70%);
}

.cta-title {
    color: var(--text-primary);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.06;
}

.cta-desc {
    color: rgba(216, 200, 179, 0.82);
}

.contact-btn {
    border-color: rgba(242, 215, 160, 0.14);
    background: rgba(255, 244, 221, 0.03);
    color: var(--text-primary);
}

.contact-btn.telegram {
    background: linear-gradient(135deg, #f3d59a 0%, #d99e5a 55%, #9d612a 100%);
    color: #120b07;
    border-color: rgba(242, 215, 160, 0.2);
}

.contact-btn.telegram:hover {
    box-shadow: 0 16px 36px rgba(157, 97, 42, 0.32), 0 0 36px rgba(223, 179, 111, 0.14);
}

.contact-btn.email:hover {
    border-color: rgba(242, 215, 160, 0.22);
    background: rgba(242, 215, 160, 0.06);
    color: var(--accent-light);
}

.site-footer {
    background: rgba(8, 6, 4, 0.72);
    border-top: 1px solid rgba(242, 215, 160, 0.08);
}

.site-footer a {
    color: rgba(216, 200, 179, 0.76);
}

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

.modal-backdrop {
    background: rgba(4, 3, 2, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(180deg, rgba(18, 13, 9, 0.98) 0%, rgba(8, 6, 4, 0.99) 100%);
    border: 1px solid rgba(242, 215, 160, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(217, 160, 90, 0.08);
}

.modal-close {
    background: rgba(255, 244, 221, 0.05);
    border-color: rgba(242, 215, 160, 0.14);
    color: rgba(216, 200, 179, 0.82);
}

.modal-close:hover {
    background: rgba(242, 215, 160, 0.09);
    border-color: rgba(242, 215, 160, 0.24);
    color: var(--accent-light);
}

.project-modal-shell {
    background: linear-gradient(180deg, rgba(18, 13, 9, 0.92) 0%, rgba(9, 7, 5, 0.98) 100%);
}

.project-modal-media {
    background:
        radial-gradient(circle at 40% 12%, rgba(223, 179, 111, 0.12) 0%, transparent 40%),
        linear-gradient(180deg, rgba(15, 11, 8, 0.96) 0%, rgba(6, 5, 4, 0.98) 100%);
    border-right: 1px solid rgba(242, 215, 160, 0.08);
}

.modal-kicker {
    background: rgba(242, 215, 160, 0.08);
    border-color: rgba(242, 215, 160, 0.16);
    color: var(--accent-light);
}

.modal-video-frame,
.modal-video-placeholder {
    border-color: rgba(242, 215, 160, 0.14);
    background: linear-gradient(180deg, rgba(15, 11, 8, 0.96) 0%, rgba(6, 5, 4, 1) 100%);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36), 0 0 30px rgba(217, 160, 90, 0.08);
}

.modal-video-label {
    background: rgba(10, 7, 5, 0.74);
    border-color: rgba(242, 215, 160, 0.16);
    color: var(--accent-light);
}

.modal-video-title {
    color: var(--text-primary);
}

.modal-video-note,
.project-modal-lead {
    color: rgba(216, 200, 179, 0.82);
}

.project-modal-copy h2 {
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.98;
}

.modal-metric,
.project-modal-section {
    background: linear-gradient(180deg, rgba(20, 14, 10, 0.86) 0%, rgba(10, 7, 5, 0.94) 100%);
    border-color: rgba(242, 215, 160, 0.12);
}

.modal-metric-value {
    color: var(--text-primary);
}

.modal-metric-label {
    color: rgba(184, 164, 138, 0.84);
}

.project-modal-section h3 {
    color: var(--accent-light);
}

.project-modal-section li {
    color: rgba(216, 200, 179, 0.86);
}

.project-modal-section li::before {
    color: var(--accent);
}

.project-modal-chip {
    background: rgba(255, 244, 221, 0.04);
    border-color: rgba(242, 215, 160, 0.12);
    color: rgba(226, 212, 194, 0.82);
}

.project-modal-copy::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(242, 215, 160, 0.72) 0%, rgba(157, 97, 42, 0.74) 100%);
}

.project-modal-copy::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 244, 221, 0.04);
}

@media (max-width: 960px) {
    .hero-title {
        white-space: normal;
    }

    .hero-reel {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .fc-visual {
        min-height: 360px;
    }

    .case-preview-frame {
        width: min(100%, 280px);
    }

    .case-preview-frame-wide {
        width: min(100%, 460px);
    }

    .project-modal-media {
        border-right: 0;
        border-bottom: 1px solid rgba(242, 215, 160, 0.08);
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 120px;
    }

    .hero-badge {
        font-size: 0.78rem;
    }

    .stat-card {
        min-width: 140px;
        padding: 18px 20px;
    }

    .repo-preview {
        aspect-ratio: 4 / 3;
    }

    .case-preview-frame {
        width: min(100%, 248px);
        border-radius: 28px;
    }

    .case-preview-frame-wide {
        width: min(100%, 100%);
        border-radius: 22px;
    }
}
