/* home.css — standalone styles for the landing page (index.html).
   The other pages still use the Bootstrap theme in styles.css. */

:root {
    --bg: #0b0d14;
    --bg-2: #11141e;
    --surface: #151926;
    --surface-2: #1b2031;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e8eaf2;
    --muted: #9aa1b5;
    --faint: #6b7288;
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --accent-3: #f472b6;
    --grad: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 100%);
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --max: 1160px;
    color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle background glow + grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
        radial-gradient(700px 500px at -10% 30%, rgba(34, 211, 238, 0.10), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
    pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }

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

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(11, 13, 20, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__links a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.15s ease, background 0.15s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__links .nav__cta {
    color: #fff;
    background: var(--accent);
    margin-left: 6px;
}
.nav__links .nav__cta:hover { background: #6a47ff; }
.nav__toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
}

@media (max-width: 760px) {
    .nav__toggle { display: grid; place-items: center; margin-left: auto; }
    .nav__links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 24px 20px;
        background: var(--bg-2);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .nav__links.is-open { display: flex; }
    .nav__links a { padding: 12px 14px; }
    .nav__links .nav__cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
    background: var(--grad);
    color: #0b0d14;
    box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7);
}
.btn--ghost {
    border-color: var(--border-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 24px;
}
.status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero__name {
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--accent-2);
    margin-bottom: 14px;
    letter-spacing: 0;
}
.hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 3.9rem);
    font-weight: 800;
    margin-bottom: 22px;
}
.hero__lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 34em;
    margin-bottom: 30px;
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.88rem;
    color: var(--faint);
    list-style: none;
    padding: 0;
    margin: 0;
}
.hero__meta i { color: var(--muted); margin-right: 6px; }

/* Demo reel (click-to-load YouTube) */
.reel {
    position: relative;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(140deg, rgba(124, 92, 255, 0.8), rgba(34, 211, 238, 0.5) 50%, rgba(255, 255, 255, 0.06));
    box-shadow: var(--shadow), 0 0 80px -30px rgba(124, 92, 255, 0.6);
}
.reel__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius) - 1px);
    overflow: hidden;
    background: #000;
}
.reel__frame img,
.reel__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
.reel__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 60%);
    color: #fff;
}
.reel__play-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease;
}
.reel__play-icon i { margin-left: 4px; }
.reel__play:hover .reel__play-icon { transform: scale(1.08); background: var(--accent); }
.reel__label {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.reel__tag {
    position: absolute;
    top: -14px;
    right: 18px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(21, 25, 38, 0.6);
    overflow: hidden;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat__value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}
.stat__label { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.eyebrow {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section__sub { color: var(--muted); max-width: 38em; margin: 12px 0 0; }
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 2px;
}
.link-arrow i { transition: transform 0.15s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Project cards ---------- */
.projects {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}
.project {
    grid-column: span 3;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project--wide { grid-column: span 6; flex-direction: row; }
.project:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: var(--shadow);
}
.project__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-2);
}
.project--wide .project__media { flex: 1.25; aspect-ratio: auto; min-height: 340px; }
.project__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project:hover .project__media img { transform: scale(1.04); }
.project__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(11, 13, 20, 0.78);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.project__badge--live { color: #34d399; }
.project__badge--pro { color: #fbbf24; }
.project__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 24px;
}
.project--wide .project__body { padding: 36px; justify-content: center; }
.project__kicker {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--faint);
    margin-bottom: 8px;
}
.project h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 12px; }
.project--wide h3 { font-size: 1.9rem; }
.project p { color: var(--muted); font-size: 0.97rem; }
.project__points {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 8px;
    font-size: 0.93rem;
    color: var(--muted);
}
.project__points li { display: flex; gap: 10px; }
.project__points i { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: auto 0 18px;
}
.chips li {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}
.project__links { display: flex; flex-wrap: wrap; gap: 18px; }
.project__links a { font-weight: 700; font-size: 0.92rem; display: inline-flex; gap: 6px; align-items: center; }
.project__links a:first-child { color: var(--accent-2); }
.project__links a:not(:first-child) { color: var(--muted); }
.project__links a:hover { color: var(--text); }

/* Placeholder art for the proprietary VML project */
.vml-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.22), transparent 55%),
        radial-gradient(circle at 75% 75%, rgba(34, 211, 238, 0.22), transparent 55%),
        var(--bg-2);
}
.vml-art__ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    font-size: 3.4rem;
    color: #fbbf24;
    position: relative;
}
.vml-art__ring::after {
    content: "";
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.vml-art__caption {
    position: absolute;
    bottom: 14px;
    right: 16px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--faint);
}

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap {
    padding: 30px 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(21, 25, 38, 0.4) 100%);
    border: 1px solid var(--border);
}
.cap__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #fff;
    background: var(--grad);
}
.cap:nth-child(2) .cap__icon { background: linear-gradient(110deg, var(--accent-2), #34d399); }
.cap:nth-child(3) .cap__icon { background: linear-gradient(110deg, var(--accent-3), var(--accent)); }
.cap h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Experience timeline ---------- */
.exp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(34, 211, 238, 0.4), transparent);
}
.timeline li { position: relative; padding: 0 0 34px 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.2); }
.timeline__date { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-2); margin-bottom: 4px; }
.timeline h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 2px; }
.timeline__org { color: var(--text); font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.timeline__org span { color: var(--faint); font-weight: 400; }
.timeline p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.side-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.side-card + .side-card { margin-top: 22px; }
.side-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.side-card h3 i { color: var(--accent-2); }
.edu { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.edu strong { display: block; font-size: 0.95rem; }
.edu span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stack__group {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.stack__group h3 {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.stack__group .chips { margin: 0; }
.stack__group .chips li { font-size: 0.82rem; padding: 5px 11px; }

/* ---------- Contact CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 72px 32px;
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(124, 92, 255, 0.35), transparent 70%),
        radial-gradient(500px 300px at 50% 120%, rgba(34, 211, 238, 0.2), transparent 70%),
        var(--surface);
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; margin-bottom: 16px; }
.cta p { color: var(--muted); max-width: 34em; margin: 0 auto 30px; font-size: 1.08rem; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--faint); font-size: 0.88rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.socials { display: flex; gap: 8px; }
.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.1rem;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.socials a:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero { padding-top: 48px; }
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
    .project--wide { flex-direction: column; }
    .project--wide .project__media { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
    .project--wide .project__body { padding: 26px; }
    .project--wide h3 { font-size: 1.45rem; }
    .caps { grid-template-columns: 1fr; }
    .exp-grid { grid-template-columns: 1fr; }
    .stack { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding-top: 72px; }
    .project { grid-column: span 6; }
    .stack { grid-template-columns: 1fr; }
    .stat { padding: 20px 18px; }
    .hero__actions .btn { flex: 1 1 auto; }
    .cta { padding: 52px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
