﻿:root {
    /* Modern dark theme with a slight neon accent */
    --bg: #0b0f14;
    --bg-elev: rgba(14, 18, 26, 0.6);
    --border: #1f2937;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #8b5cf6; /* violet-500 */
    --accent-2: #d946ef; /* fuchsia-500 */
    --accent-3: #ec4899; /* pink-500 */
    --card: rgba(255,255,255,0.045);
    --shadow: 0 12px 40px rgba(0,0,0,.45);
    --blur: saturate(160%) blur(14px);
    /* Scrollbar theme */
    --scrollbar-size: 12px;
    --scrollbar-radius: 999px;
    --scrollbar-track: rgba(255,255,255,0.03);
    --scrollbar-thumb-bg: linear-gradient(180deg, var(--accent), var(--accent-2));
    --scrollbar-thumb-bg-hover: linear-gradient(180deg, var(--accent-2), var(--accent-3));
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Prevent accidental horizontal scroll from glow layers/marquees */
html, body {
    overflow-x: hidden
}

.theme-toggle {
    display: none
}

.site {
    position: relative;
    min-height: 100vh;
    color: var(--text);
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 800px at -10% -20%, rgba(167,139,250,.18), transparent 40%), radial-gradient(900px 700px at 110% 10%, rgba(236,72,153,.14), transparent 50%), linear-gradient(180deg, rgba(2,6,12,0.8), rgba(2,6,12,0.6)), var(--bg)
}

.theme-toggle-btn {
    display: none
}

/* Blurred purple lighting layers */
.bg-lights {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden
}

.glow {
    position: absolute;
    filter: blur(90px);
    opacity: .6;
    mix-blend-mode: screen
}

.glow--tl {
    top: -15%;
    left: -12%;
    width: 48vw;
    height: 48vw;
    background: radial-gradient(closest-side, rgba(139,92,246,.35), transparent 70%)
}

.glow--tr {
    top: -18%;
    right: -15%;
    width: 52vw;
    height: 52vw;
    background: radial-gradient(closest-side, rgba(217,70,239,.28), transparent 70%)
}

.glow--b {
    bottom: -28%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(closest-side, rgba(236,72,153,.22), transparent 70%)
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px
}

.section {
    padding: 72px 0
}

.section--tight {
    padding: 32px 0 16px
}

.section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px
}

    .section__head h2 {
        margin: 0;
        font-size: 32px
    }

.link {
    color: var(--accent);
    text-decoration: none
}

.kicker {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px
}

/* Tech badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
    color: var(--text)
}

/* Badges single-line infinite marquee (rightward) */
.badges-marquee {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08));
    backdrop-filter: var(--blur);
    padding: 8px
}

.badges-loop {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    width: max-content;
    animation: badges-right 36s linear infinite
}

.badges-set {
    display: inline-flex;
    gap: 10px
}

.badges-marquee:hover .badges-loop {
    animation-play-state: paused
}

.badges-marquee .badge {
    font-size: 14px;
    padding: 8px 14px
}
/* Remove divider line between badges inside marquee */
.badges-marquee .badges-set .badge + .badge::before {
    content: none
}

.badges--nowrap {
    white-space: nowrap
}

.badge--emph {
    border-color: transparent;
    background: linear-gradient(90deg, rgba(139,92,246,.18), rgba(217,70,239,.18));
    box-shadow: 0 6px 18px rgba(139,92,246,.15), inset 0 0 0 1px rgba(255,255,255,.06)
}

.badges-set .badge {
    display: inline-flex;
    align-items: center
}

    .badges-set .badge + .badge {
        position: relative
    }

        .badges-set .badge + .badge::before {
            content: "";
            position: absolute;
            left: -6px;
            top: 50%;
            transform: translateY(-50%);
            height: 14px;
            width: 1px;
            background: linear-gradient(var(--accent), transparent)
        }

@keyframes badges-right {
    0% {
        transform: translateX(-50%)
    }

    100% {
        transform: translateX(0%)
    }
}

@media (prefers-reduced-motion: reduce) {
    .badges-loop {
        animation: none
    }
}

/* Header - Win11 acrylic + GitHub layout */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border)
}

    .header.glass {
        backdrop-filter: var(--blur);
        background: var(--bg-elev)
    }

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px
}

    .nav a {
        color: var(--text);
        text-decoration: none;
        opacity: .9
    }

.theme-toggle-btn {
    min-width: 40px;
    justify-content: center
}

/* Mobile hamburger (polished) */
.nav-toggle {
    display: none
}

.nav__btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .25s ease
}

    .nav__btn svg {
        width: 20px;
        height: 20px
    }

@media (max-width: 740px) {
    /* container context for absolute dropdown */
    .header .container {
        position: relative
    }

    .nav__btn {
        display: inline-flex;
        position: relative;
        z-index: 51;
        width: 48px;
        height: 48px
    }

        .nav__btn svg {
            width: 22px;
            height: 22px
        }

    #nav-toggle:checked + .nav__btn {
        border-color: var(--accent);
        box-shadow: 0 8px 24px rgba(139,92,246,.25)
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 8px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 8px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--bg);
        box-shadow: 0 18px 60px rgba(0,0,0,.45), 0 10px 30px rgba(139,92,246,.12);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s ease, opacity .2s ease
    }

    #nav-toggle:checked ~ .nav {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        z-index: 52
    }

    .nav a {
        display: block;
        width: 100%;
        padding: 12px 10px;
        border-radius: 10px;
        border: 1px solid transparent
    }

        .nav a:hover {
            background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
            border-color: var(--border)
        }

        .nav a[aria-current="page"] {
            background: linear-gradient(90deg, rgba(139,92,246,.18), rgba(217,70,239,.18));
            border-color: transparent
        }

        .nav a:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px
        }
}

/* Lock background scroll when mobile menu is open (modern browsers) */
body:has(#nav-toggle:checked) {
    overflow: hidden
}

@media (prefers-reduced-motion: reduce) {
    .nav,
    .nav__btn::after {
        transition: none
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    transition: transform .15s ease, box-shadow .2s ease;
    text-align: center
}

.btn--primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #0b0f14;
    box-shadow: 0 8px 20px rgba(216,70,239,.25)
}

.btn--outline {
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
    border-color: var(--border)
}

.btn--ghost {
    background: transparent;
    border-color: transparent
}

.btn:hover {
    transform: translateY(-1px)
}

/* Hero */
.hero {
    position: relative;
    padding: 120px 0 72px;
    border-bottom: 1px solid var(--border)
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 48px;
    line-height: 1.1
}

.hero p {
    margin: 0 0 18px;
    color: var(--muted)
}

.hero__cta {
    display: flex;
    gap: 12px;
    margin-bottom: 14px
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chip {
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    opacity: .9;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08))
}

/* Fluid typography for headings */
.hero h1 {
    font-size: clamp(28px, 6vw, 48px)
}

.section__head h2 {
    font-size: clamp(20px, 3.2vw, 32px)
}

/* Hero decorative glow */
.hero::before {
    content: "";
    position: absolute;
    inset: auto 10% -10% auto;
    width: 320px;
    height: 320px;
    filter: blur(80px);
    background: radial-gradient(closest-side, rgba(139,92,246,.25), transparent 70%);
    pointer-events: none
}

.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
    box-shadow: var(--shadow)
}

.glass {
    backdrop-filter: var(--blur)
}

/* Fake window */
.win-titlebar {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border)
}

    .win-titlebar .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block
    }

    .win-titlebar .close {
        background: #ff6b6b
    }

    .win-titlebar .max {
        background: #ffd43b
    }

    .win-titlebar .min {
        background: #51cf66
    }

.code {
    font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--text);
    padding: 10px 14px
}
/* Prevent code from overflowing on small screens */
.code {
    overflow: auto
}

    .code pre, .code code {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: anywhere
    }

/* Projects Grid */
.grid.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.project {
    padding: 20px;
    position: relative;
    overflow: hidden
}

    .project h3 {
        margin: 0 0 6px;
        font-size: 18px
    }

    .project p {
        margin: 0 0 10px;
        color: var(--muted);
        min-height: 44px
    }

    .project .tags {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin: 8px 0
    }

        .project .tags span {
            font-size: 12px;
            border: 1px dashed var(--border);
            padding: 4px 8px;
            border-radius: 999px;
            opacity: .9
        }

    .project .meta {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        align-items: center;
        margin-top: 16px
    }

    .project::after {
        content: "";
        position: absolute;
        inset: auto -40% -40% auto;
        width: 180px;
        height: 180px;
        background: radial-gradient(closest-side, rgba(139,92,246,.20), transparent);
        transform: rotate(25deg);
        pointer-events: none
    }

/* About */
.about {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 18px
}

.about__left {
    display: flex;
    flex-direction: column;
    align-items: center
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(2,6,12,.6))
}

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    justify-items: center
}

    .stats div {
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 10px;
        text-align: center;
        background: var(--card);
        display: grid;
        place-items: center;
        min-height: 64px;
        width: 100%
    }

    .stats strong {
        display: block;
        font-size: 18px
    }

    .stats span {
        color: var(--muted);
        font-size: 12px
    }

.skills {
    display: grid;
    gap: 12px;
    margin-top: 8px
}

.skill span {
    display: block;
    margin-bottom: 6px
}

.skill .bar {
    height: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    border: 1px solid var(--border);
    overflow: hidden
}

    .skill .bar i {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, var(--accent), var(--accent-2))
    }
/* About details */
.about__section {
    margin-top: 16px
}

    .about__section h4 {
        margin: 12px 0 8px;
        font-size: 16px
    }

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px
}

    .timeline li {
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 10px 12px;
        background: var(--card)
    }

.tl-title {
    font-weight: 600
}

.tl-meta {
    color: var(--muted);
    font-size: 13px
}

.tl-time {
    color: var(--muted);
    font-size: 12px;
    opacity: .9
}

.socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px
}

    .socials .chip {
        text-decoration: none
    }
/* Social buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
    text-decoration: none;
    color: var(--text);
    transition: transform .15s ease, box-shadow .25s ease, border-color .25s ease
}

    .social-btn svg {
        width: 16px;
        height: 16px;
        display: block
    }

    .social-btn:hover {
        transform: translateY(-1px);
        border-color: var(--accent);
        box-shadow: 0 10px 30px rgba(139,92,246,.18)
    }

    .social-btn.is-github svg {
        fill: #e5e7eb
    }

    .social-btn.is-linkedin svg {
        fill: #0A66C2
    }

    .social-btn.is-x svg {
        fill: #e5e7eb
    }

/* Stacked socials and stats (index about left) */
.socials--stack {
    display: grid;
    gap: 8px;
    width: 100%
}

    .socials--stack .social-btn {
        width: 100%;
        justify-content: center
    }

.stats--stack {
    grid-template-columns: 1fr;
    width: 100%
}

    .stats--stack div {
        width: 100%;
        min-height: 56px;
        display: grid;
        place-items: center
    }

/* Contact */
.contact {
    padding: 18px
}

.form {
    display: grid;
    gap: 12px
}

    .form .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }

    .form label {
        display: grid;
        gap: 6px;
        font-size: 14px
    }

input, textarea {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    color: var(--text);
    font: inherit
}

    input:focus, textarea:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(139,92,246,.25)
    }

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    margin-top: auto
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer .links {
    display: flex;
    gap: 12px
}

.footer a {
    color: var(--muted);
    text-decoration: none
}

/* Responsive */
@media (max-width: 940px) {
    .hero__inner {
        grid-template-columns: 1fr
    }

    .grid.projects {
        grid-template-columns: repeat(2,1fr)
    }

    .about {
        grid-template-columns: 1fr
    }

    .avatar {
        width: 120px;
        height: 120px
    }
}
/* Allow header/nav to wrap neatly on small/medium screens */
@media (max-width: 740px) {
    .header__inner {
        height: auto;
        padding: 14px 0;
        gap: 10px;
        flex-wrap: wrap
    }

    .brand {
        font-size: 18px
    }

    .nav {
        flex-wrap: wrap;
        row-gap: 6px
    }
}

@media (max-width: 620px) {
    .grid.projects {
        grid-template-columns: 1fr
    }

    .form .row {
        grid-template-columns: 1fr
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch
    }

        .hero__cta .btn {
            width: 100%
        }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .container {
        padding: 0 16px
    }

    .hero {
        padding: 80px 0 56px
    }

    .hero__inner {
        gap: 18px
    }

    .hero h1 {
        line-height: 1.15
    }
}

@media (max-width: 480px) {
    .badges-marquee .badge {
        font-size: 12px;
        padding: 6px 10px
    }

    .chip {
        font-size: 11px
    }
}
/* Stack section headers on very small screens to avoid overflow */
@media (max-width: 520px) {
    .section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px
    }
}

@media (max-width: 420px) {
    .stats {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width: 340px) {
    .stats {
        grid-template-columns: 1fr
    }
}

/* Subtle hover lift for cards */
.card {
    transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease
}

    .card:hover {
        transform: translateY(-2px);
        border-color: var(--accent);
        box-shadow: 0 18px 50px rgba(139,92,246,.18)
    }

/* Accent text */
.accent {
    color: var(--accent)
}

.txt-gradient {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

/* Services */
.grid.services {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px
}

.service {
    padding: 20px;
    display: flex;
    flex-direction: column
}

    .service .icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        color: var(--accent);
        background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.08));
        border: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(139,92,246,.12)
    }

    .service h3 {
        margin: 12px 0 6px;
        font-size: 18px
    }

    .service p {
        margin: 0 0 10px;
        color: var(--muted)
    }

.features {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 6px
}

    .features li {
        display: flex;
        align-items: center;
        gap: 8px
    }

        .features li::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 0 3px rgba(139,92,246,.15)
        }

.service .actions {
    margin-top: auto;
    display: flex;
    gap: 10px
}

@media (max-width: 1100px) {
    .grid.services {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width: 620px) {
    .grid.services {
        grid-template-columns: 1fr
    }
}

/* Process timeline */
.process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    counter-reset: step
}

    .process .step {
        position: relative;
        padding: 18px
    }

.step__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

.step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0b0f14;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 16px rgba(139,92,246,.22)
}

.process .step p {
    margin: 0 0 10px;
    color: var(--muted)
}

.step__bullets {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px
}

.process .step::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent)
}

.process .step:last-child::after {
    display: none
}

@media (max-width:1100px) {
    .process {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:620px) {
    .process {
        grid-template-columns: 1fr
    }

        .process .step::after {
            display: none
        }
}
/* Responsive helper: 3/2/1 columns without inline styles */
.process.process--auto {
    grid-template-columns: repeat(3,1fr)
}

@media (max-width:1100px) {
    .process.process--auto {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:620px) {
    .process.process--auto {
        grid-template-columns: 1fr
    }
}

/* Media defaults for images/videos */
img, video {
    max-width: 100%;
    height: auto
}
/* Safer wrapping for long text/links to avoid horizontal scroll on phones */
:where(p, h1, h2, h3, h4, h5, h6, a, span) {
    overflow-wrap: anywhere
}

/* Themed scrollbars */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,.7) var(--scrollbar-track)
}
/* WebKit (Chrome/Edge/Safari) */
::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size)
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-left: 1px solid var(--border)
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-bg);
    border-radius: var(--scrollbar-radius);
    border: 2px solid rgba(11,15,20,.9);
    box-shadow: inset 0 2px 8px rgba(139,92,246,.25)
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--scrollbar-thumb-bg-hover)
    }

::-webkit-scrollbar-corner {
    background: transparent
}
