:root {
    color-scheme: dark;
    font-family:
        "Inter",
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #edf3ff;
    background: #07080d;
    --bg: #07080d;
    --surface: rgba(14, 20, 32, 0.72);
    --surface-strong: rgba(20, 29, 45, 0.9);
    --text: #edf3ff;
    --muted: #9fb0ca;
    --muted-strong: #c9d5e8;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #42d6a4;
    --accent-2: #5bbcff;
    --accent-3: #ffb86b;
    --danger: #ff6b8a;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
    --pointer-x: 50vw;
    --pointer-y: 20vh;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(91, 188, 255, 0.18), transparent 23rem),
        linear-gradient(130deg, rgba(66, 214, 164, 0.1), transparent 34%),
        linear-gradient(320deg, rgba(255, 184, 107, 0.12), transparent 30%),
        #07080d;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(91, 188, 255, 0.8);
    outline-offset: 4px;
}

.ambient-scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mesh {
    position: absolute;
    width: 34rem;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(46px);
    opacity: 0.42;
    animation: drift 14s ease-in-out infinite alternate;
}

.mesh-one {
    left: -9rem;
    top: 4rem;
    background: #42d6a4;
}

.mesh-two {
    right: -10rem;
    top: 18rem;
    background: #5bbcff;
    animation-delay: -5s;
}

.mesh-three {
    left: 38%;
    bottom: -16rem;
    background: #ffb86b;
    animation-delay: -9s;
}

.grid-plane {
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 72%, transparent);
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(3rem, -2rem, 0) scale(1.08);
    }
}

.page-shell {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 4rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(7, 8, 13, 0.74);
    backdrop-filter: blur(22px);
}

.header-inner {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.9rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    width: 2.35rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 0.75rem;
    color: #061018;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 16px 36px rgba(66, 214, 164, 0.25);
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.site-header nav a {
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.site-header nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 2rem;
    min-height: calc(100vh - 68px);
    padding: 4.5rem 0 2rem;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

.hero-panel.visible {
    opacity: 1;
    transform: none;
}

.hero-copy {
    max-width: 760px;
}

.hero-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.3rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(66, 214, 164, 0.32);
    border-radius: 999px;
    background: rgba(66, 214, 164, 0.11);
    color: #d8fff0;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 18px 44px rgba(66, 214, 164, 0.14);
}

.status-dot {
    width: 0.55rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(66, 214, 164, 0.45);
    animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
    70% {
        box-shadow: 0 0 0 0.6rem rgba(66, 214, 164, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 214, 164, 0);
    }
}

.hero-eyebrow,
.eyebrow,
.meta-label,
.contact-label {
    margin: 0;
    font-family:
        "Fira Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-size: 0.78rem;
}

.hero-copy h1 {
    margin: 0.7rem 0 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.3rem, 6.6vw, 6.4rem);
    line-height: 0.92;
    max-width: 14ch;
    color: #fbfdff;
    text-shadow: 0 22px 70px rgba(91, 188, 255, 0.2);
}

.hero-copy h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, #ffffff 8%, #8ed7ff 46%, #ffd39c);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-title {
    margin: 0 0 0.9rem;
    color: var(--muted-strong);
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-tagline {
    max-width: 42rem;
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button-primary {
    padding: 0.9rem 1.25rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #061018;
    box-shadow: 0 20px 46px rgba(66, 214, 164, 0.22);
}

.button-secondary {
    padding: 0.9rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    color: #f7fbff;
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-3px);
}

.hero-panel-side {
    position: relative;
    display: grid;
    gap: 1.25rem;
}

.glass-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
        var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 34%);
    opacity: 0.75;
}

.profile-card {
    padding: 1rem;
    transform: rotate(1.5deg);
    animation: floatCard 5.8s ease-in-out infinite;
}

@keyframes floatCard {
    50% {
        transform: rotate(-0.5deg) translateY(-0.7rem);
    }
}

.profile-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1rem;
    background: #111827;
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.profile-meta {
    position: relative;
    z-index: 1;
    padding: 1rem 0.2rem 0.15rem;
}

.meta-copy,
.meta-info,
.experience-location,
.section-copy,
.project-card-copy p,
.education-card p,
.contact-card strong,
.about-copy p {
    color: var(--muted);
}

.tech-orbit {
    position: relative;
    min-height: 19rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(7, 11, 19, 0.55);
    overflow: hidden;
}

.tech-orbit::before,
.tech-orbit::after {
    content: "";
    position: absolute;
    inset: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    animation: spin 18s linear infinite;
}

.tech-orbit::after {
    inset: 4.8rem;
    border-color: rgba(66, 214, 164, 0.18);
    animation-direction: reverse;
}

.orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 7rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(91, 188, 255, 0.25), rgba(66, 214, 164, 0.18));
    transform: translate(-50%, -50%);
}

.orbit-core span {
    align-self: end;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.orbit-core strong {
    align-self: start;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.orbit-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    width: max-content;
    transform:
        rotate(calc((360deg / var(--orbit-total)) * var(--orbit-index)))
        translateX(7.2rem)
        rotate(calc((360deg / var(--orbit-total)) * var(--orbit-index) * -1));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-tile {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.1rem;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

.stat-tile strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.stat-tile span {
    color: var(--muted);
    font-weight: 700;
}

.content-block {
    padding: 5rem 0 0;
}

.section-title {
    display: grid;
    gap: 0.75rem;
    max-width: 760px;
    margin-bottom: 1.7rem;
}

.section-title h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.05rem, 4vw, 4.2rem);
    line-height: 0.98;
}

.section-copy {
    margin: 0;
    max-width: 44rem;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
    gap: 1rem;
}

.about-copy {
    padding: 1.6rem;
}

.about-copy p {
    position: relative;
    z-index: 1;
    margin: 0;
}

.about-copy p + p {
    margin-top: 1rem;
}

.signal-stack {
    display: grid;
    gap: 0.8rem;
}

.signal-stack span {
    display: flex;
    align-items: center;
    min-height: 4rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    background: linear-gradient(135deg, rgba(91, 188, 255, 0.13), rgba(255, 255, 255, 0.05));
    color: #edf3ff;
    font-weight: 800;
}

.marquee {
    max-width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, 0.1);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 0.75rem;
    padding: 0.9rem 0;
    animation: marquee 22s linear infinite;
}

.marquee span {
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
    font-size: 0.86rem;
    font-weight: 800;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.skill-card,
.experience-card,
.education-card,
.cert-card,
.contact-card {
    padding: 1.35rem;
}

.skill-card h3,
.experience-card h3,
.project-card h3,
.education-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

.skill-card ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.skill-card li {
    display: flex;
    gap: 0.55rem;
    color: var(--muted-strong);
}

.skill-card li::before {
    content: "";
    flex: 0 0 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 18px rgba(255, 184, 107, 0.55);
}

.experience-grid {
    display: grid;
    gap: 1rem;
}

.experience-card {
    transform-style: preserve-3d;
}

.experience-card:hover,
.project-card:hover,
.skill-card:hover,
.cert-card:hover,
.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(91, 188, 255, 0.38);
}

.experience-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.experience-location {
    position: relative;
    z-index: 1;
    margin: 0.35rem 0 0;
}

.experience-card ul {
    position: relative;
    z-index: 1;
    margin: 1rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted-strong);
}

.experience-card li {
    margin-bottom: 0.7rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.project-card {
    min-height: 26rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.35rem;
    transition:
        transform 240ms ease,
        border-color 240ms ease,
        background 240ms ease;
}

.project-card::after {
    content: "";
    position: absolute;
    right: -20%;
    bottom: -18%;
    width: 16rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 214, 164, 0.3), transparent 65%);
}

.project-index {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.25);
    font-family: "Space Grotesk", sans-serif;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
}

.project-card-copy {
    position: relative;
    z-index: 1;
}

.project-card h3 {
    margin: 0.45rem 0 0.85rem;
    font-size: 1.45rem;
}

.project-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.65rem 0.8rem;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-weight: 900;
}

.education-list,
.certification-list,
.contact-grid {
    display: grid;
    gap: 1rem;
}

.education-list {
    grid-template-columns: repeat(2, 1fr);
}

.certification-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.education-card p,
.cert-card p,
.contact-card strong {
    position: relative;
    z-index: 1;
    margin: 0.45rem 0 0;
}

.cert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cert-card span {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 900;
}

.contact-block {
    padding-bottom: 2rem;
}

.contact-grid {
    grid-template-columns: repeat(4, 1fr);
}

.contact-card {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.contact-card strong {
    overflow-wrap: anywhere;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 620ms ease var(--reveal-delay, 0ms),
        transform 620ms ease var(--reveal-delay, 0ms),
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .hero-panel,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel-side {
        grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1fr);
        align-items: stretch;
    }

    .projects-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .page-shell,
    .header-inner {
        width: min(100%, calc(100% - 1.25rem));
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header nav {
        justify-content: flex-start;
    }

    .site-header nav a {
        padding: 0.45rem 0.55rem;
        font-size: 0.84rem;
    }

    .hero-panel {
        min-height: auto;
        padding-top: 2.4rem;
    }

    .hero-copy h1 {
        max-width: 10ch;
        font-size: clamp(2.85rem, 15vw, 4.35rem);
    }

    .hero-actions,
    .hero-panel-side,
    .hero-strip,
    .education-list,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .hero-panel-side {
        display: grid;
    }

    .profile-card {
        transform: none;
    }

    .tech-orbit {
        min-height: 17rem;
    }

    .content-block {
        padding-top: 4rem;
    }

    .project-card {
        min-height: 21rem;
    }
}

@media (max-width: 460px) {
    .brand span:last-child {
        font-size: 0.95rem;
    }

    .hero-banner {
        align-items: flex-start;
        border-radius: 1rem;
    }

    .cert-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
