/* =========================================================
   AMBIENT BACKGROUND (Parallax orbs)
   ========================================================= */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.orb-1 {
    width: 620px; height: 620px;
    background: radial-gradient(circle, var(--k-orange) 0%, transparent 70%);
    top: -220px; left: -220px;
    opacity: 0.32;
}

.orb-2 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, var(--k-pink) 0%, transparent 70%);
    top: 28%; right: -160px;
    opacity: 0.28;
}

.orb-3 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--k-purple) 0%, transparent 70%);
    bottom: -120px; left: 28%;
    opacity: 0.34;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   NAV
   ========================================================= */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 56px);
    z-index: 100;
    background: var(--nav-bg, rgba(10, 10, 15, 0.6));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease-out);
}

nav.scrolled { border-bottom-color: var(--border); }

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-0);
    text-decoration: none;
}

.logo-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 16px var(--accent-glow);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav-links a:hover { color: var(--text-0); background: var(--surface); }
.nav-links a.active { color: var(--text-0); background: var(--surface-hover); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--text-0);
    color: var(--bg-0);
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: var(--gradient);
    z-index: 101;
    width: 0%;
    transition: width 0.08s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* =========================================================
   LAYOUT
   ========================================================= */
main { position: relative; z-index: 2; }

section {
    padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 56px);
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-2);
    margin-bottom: 24px;
}

.eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--accent);
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--text-0);
}

h2.section-title {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 64px;
    max-width: 800px;
}

.text-muted { color: var(--text-2); }
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 40px;
    max-width: 100%;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1440px;
    gap: 0;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 36px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

/* Brand banner image as the hero centerpiece */
.hero-banner {
    position: relative;
    width: 100%;
    margin: 0 0 44px;
    border-radius: clamp(16px, 2vw, 28px);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 40px 120px -20px rgba(127, 82, 255, 0.35),
        0 20px 60px -10px rgba(199, 17, 225, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    animation: heroBannerIn 1.1s var(--ease-out) 0.15s forwards;
}

.hero-banner img {
    display: block;
    width: 100%;
    height: auto;
    /* Crop the empty top/bottom of the 16:9 brand banner so the
       wordmark sits flush inside the rounded card on the web. */
    aspect-ratio: 5 / 2;
    object-fit: cover;
    object-position: center;
}

.hero-banner-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(at 20% 25%, rgba(228, 72, 87, 0.0) 0%, transparent 60%),
        radial-gradient(at 80% 30%, rgba(199, 17, 225, 0.0) 0%, transparent 60%);
    mix-blend-mode: screen;
}

@keyframes heroBannerIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-desc {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--text-2);
    max-width: 640px;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.7s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text-0);
    border-color: var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    border-top: 1px solid var(--border);
    padding: 32px clamp(20px, 4vw, 56px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-3);
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 2;
}

.footer-coffee {
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}
.footer-coffee:hover {
    color: var(--accent-2);
}

.coffee-hover {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.coffee-hover:hover {
    gap: 10px;
}
.coffee-emoji {
    transition: transform 0.3s var(--ease-out);
    display: inline-block;
}
.coffee-hover:hover .coffee-emoji {
    transform: translateX(4px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .hero { padding-top: calc(var(--nav-h) + 16px); }
    .hero-banner { margin-bottom: 32px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-photo-wrap { position: relative; top: 0; width: 100%; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 720px) {
    :root { --nav-h: 60px; }
    .nav-links { display: none; }
    section { padding: 80px 20px; }
    .stats { grid-template-columns: 1fr; gap: 32px; }
    .contact-info { flex-direction: column; align-items: center; }
    .timeline { padding-left: 24px; }
    .tl-card { padding: 22px 20px; }
    .tl-dot { left: -24px; }
    .project-card { min-height: 0; padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

