
:root {
    --bg: #09090f;
    --surface: #11111b;
    --surface-light: #171724;
    --text: #f5f5fa;
    --muted: #a09fb5;
    --purple: #a78bfa;
    --blue: #60a5fa;
    --border: rgba(255, 255, 255, 0.09);
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "DM Sans", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

::selection {
    background: var(--purple);
    color: #09090f;
}

.ambient {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

.ambient-one {
    top: 5%;
    left: -220px;
    background: #8054ff;
}

.ambient-two {
    right: -230px;
    top: 45%;
    background: #2563eb;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    background: rgba(9, 9, 15, 0.84);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.logo {
    font: 700 1.8rem var(--font-heading);
    letter-spacing: -2px;
}

.logo span {
    color: var(--purple);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.88rem;
    color: var(--muted);
    transition: color 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.contact-link {
    color: var(--text);
    border: 1px solid var(--border);
    padding: 9px 17px;
    border-radius: 9px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    height: 2px;
    width: 18px;
    background: var(--text);
    transition: transform 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.section {
    width: min(1120px, 84%);
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 78px);
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 30px;
    padding-top: 75px;
    padding-bottom: 110px;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: rise-in 0.8s ease both;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 13px;
    color: #cbc8dd;
    font-size: 0.67rem;
    letter-spacing: 1px;
    margin-bottom: 35px;
}

.status-dot,
.bot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ee7b7;
    box-shadow: 0 0 12px rgba(110, 231, 183, 0.55);
}

.eyebrow {
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.15;
}

.hero h1 {
    font-size: clamp(3.7rem, 7.5vw, 6.4rem);
    letter-spacing: -5px;
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(110deg, #c4b5fd, #818cf8 52%, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-role {
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    font-weight: 500;
    letter-spacing: -0.7px;
    min-height: 48px;
}

#role-text {
    color: var(--purple);
}

.cursor {
    color: var(--blue);
    animation: blink 0.8s steps(2) infinite;
}

.hero-description {
    max-width: 525px;
    color: var(--muted);
    font-size: 1rem;
    margin: 23px 0 30px;
}

.hero-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.button {
    min-height: 49px;
    padding: 12px 19px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: #0a0911;
    background: linear-gradient(110deg, #c4b5fd, #818cf8);
    box-shadow: 0 8px 35px rgba(129, 140, 248, 0.12);
}

.button-primary:hover {
    box-shadow: 0 10px 40px rgba(129, 140, 248, 0.27);
}

.button-secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover {
    border-color: var(--purple);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 25px;
    margin-top: 45px;
    color: #77768e;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.hero-art {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    animation: rise-in 1s 0.15s ease both;
}

.orbit {
    position: absolute;
    width: min(100%, 390px);
    aspect-ratio: 1;
    border: 1px solid rgba(167, 139, 250, 0.17);
    border-radius: 50%;
}

.orbit-one {
    transform: rotate(-25deg) scaleY(0.74);
}

.orbit-two {
    transform: rotate(55deg) scaleY(0.74);
    border-color: rgba(96, 165, 250, 0.19);
}

.orbit-center {
    width: 205px;
    height: 205px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #24203e, #11111b 68%);
    box-shadow: 0 0 80px rgba(129, 90, 240, 0.15), inset 0 0 35px rgba(167, 139, 250, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: float 5s ease-in-out infinite;
}

.code-symbol {
    font: 700 4rem var(--font-heading);
    color: var(--purple);
    letter-spacing: -5px;
}

.orbit-caption {
    color: var(--muted);
    font-size: 0.57rem;
    letter-spacing: 2px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 20, 33, 0.94);
    border: 1px solid var(--border);
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    animation: float 4s ease-in-out infinite;
}

.mini-icon {
    color: var(--purple);
    font: 700 1rem var(--font-heading);
}

.card-python {
    top: 16%;
    left: 1%;
}

.card-django {
    right: 0;
    top: 33%;
    animation-delay: -1.5s;
}

.card-web {
    left: 8%;
    bottom: 13%;
    animation-delay: -2.5s;
}

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.63rem;
    color: #77768e;
    letter-spacing: 1.5px;
}

.scroll-line {
    width: 30px;
    height: 1px;
    background: var(--purple);
}

.content-section {
    padding-top: 110px;
    padding-bottom: 45px;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading h2,
.contact-panel h2 {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    letter-spacing: -2px;
}

.section-description {
    margin-top: 15px;
    color: var(--muted);
    max-width: 520px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 65px;
}

.about-copy p {
    color: var(--muted);
    margin-bottom: 20px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 10px;
}

.text-link span {
    transition: transform 0.2s;
}

.text-link:hover span {
    transform: translate(3px, -3px);
}

.about-details {
    display: grid;
    gap: 13px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.detail-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 11px;
    color: var(--purple);
    font-size: 1.35rem;
}

.detail-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.detail-card p {
    font-size: 0.82rem;
    color: var(--muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.skill-card {
    min-height: 175px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 23px;
    border-radius: 14px;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.4);
}

.skill-symbol {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    margin-bottom: 19px;
    border-radius: 10px;
    color: var(--purple);
    background: rgba(167, 139, 250, 0.1);
    font: 700 0.95rem var(--font-heading);
}

.skill-card h3 {
    font-size: 1rem;
    margin-bottom: 7px;
}

.skill-card p,
.skill-note {
    font-size: 0.8rem;
    color: var(--muted);
}

.skill-note {
    margin-top: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.25s, border-color 0.25s;
}

.project-visual {
    height: 235px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.visual-one {
    background: radial-gradient(ellipse at 50% 100%, #30234e, #161323 72%);
}

.visual-two {
    background: radial-gradient(ellipse at 20% 20%, #17354a, #111821 75%);
}

.visual-three {
    background: radial-gradient(ellipse at 75% 20%, #30305c, #171525 75%);
}

.visual-label {
    position: absolute;
    top: 17px;
    left: 19px;
    font-size: 0.62rem;
    letter-spacing: 1px;
    color: #b5b0cd;
}

.mock-window {
    width: 70%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(12, 12, 21, 0.8);
    transform: rotate(-4deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mock-top {
    display: flex;
    gap: 5px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.mock-top i {
    width: 6px;
    height: 6px;
    background: #8882a8;
    border-radius: 50%;
}

.mock-content {
    padding: 18px;
}

.mock-line {
    display: block;
    width: 80%;
    height: 6px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: #39344f;
}

.mock-line.short {
    width: 36%;
    background: #a78bfa;
}

.mock-line.medium {
    width: 60%;
}

.mock-blocks {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.mock-blocks i {
    height: 48px;
    flex: 1;
    border-radius: 5px;
    background: linear-gradient(135deg, #4c347d, #24243d);
}

.chat-preview {
    width: 77%;
    display: grid;
    gap: 13px;
    transform: rotate(2deg);
}

.chat-message {
    max-width: 90%;
    padding: 12px;
    font-size: 0.67rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.user-message {
    justify-self: end;
    background: rgba(129, 140, 248, 0.13);
}

.bot-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.bot-dot {
    flex-shrink: 0;
    margin-top: 5px;
}

.chat-input-preview {
    display: flex;
    justify-content: space-between;
    color: #9291a8;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 0.68rem;
}

.chat-input-preview span {
    color: #11111b;
    background: var(--purple);
    padding: 0 6px;
    border-radius: 5px;
}

.portfolio-preview {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: rotate(-3deg);
}

.preview-mark {
    color: var(--purple);
    font: 700 1.3rem var(--font-heading);
}

.preview-title {
    font: 700 clamp(1.8rem, 4vw, 2.7rem)/1.05 var(--font-heading);
    letter-spacing: -2px;
}

.preview-pill {
    width: fit-content;
    font-size: 0.55rem;
    letter-spacing: 1px;
    border: 1px solid rgba(196, 181, 253, 0.4);
    padding: 6px 10px;
    border-radius: 20px;
    color: #c4b5fd;
}

.project-info {
    padding: 24px;
}

.project-type {
    color: var(--purple);
    font-size: 0.65rem;
    letter-spacing: 1.1px;
    margin-bottom: 11px;
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 0.68rem;
    color: #c1bfd2;
    background: rgba(255, 255, 255, 0.045);
}

.project-link {
    margin-top: 22px;
    font-size: 0.8rem;
}

.contact-section {
    padding-top: 130px;
    padding-bottom: 110px;
}

.contact-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 7vw, 70px);
    border: 1px solid rgba(167, 139, 250, 0.23);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(104, 80, 191, 0.16), transparent 55%),
        var(--surface);
}

.contact-panel > p:not(.eyebrow):not(.email-note) {
    max-width: 530px;
    margin: 22px 0 27px;
    color: var(--muted);
}

.email-note {
    margin-top: 14px;
    color: #85839c;
    font-size: 0.75rem;
}

.footer {
    width: 84%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer p,
.back-top {
    font-size: 0.76rem;
    color: var(--muted);
}

.back-top:hover {
    color: var(--text);
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 850px) {
    .navbar {
        padding: 0 6%;
    }

    .nav-links {
        gap: 19px;
    }

    .section {
        width: 88%;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 75px;
        gap: 10px;
    }

    .hero-art {
        min-height: 360px;
    }

    .scroll-cue {
        bottom: 15px;
    }

    .about-grid {
        gap: 35px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 75px;
    }

    .navbar {
        min-height: 68px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 18px 6% 24px;
        background: rgba(12, 12, 20, 0.98);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

    .nav-links.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 0;
    }

    .contact-link {
        text-align: center;
        margin-top: 8px;
    }

    .section {
        width: 88%;
    }

    .hero {
        min-height: auto;
        padding-top: 65px;
        padding-bottom: 100px;
    }

    .availability {
        font-size: 0.58rem;
        margin-bottom: 28px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 14vw, 5rem);
        letter-spacing: -3px;
    }

    .hero-role {
        min-height: 58px;
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 7px;
        margin-top: 30px;
    }

    .hero-art {
        min-height: 315px;
        transform: scale(0.9);
        margin: -5px -15px;
    }

    .orbit {
        width: 320px;
    }

    .orbit-center {
        width: 165px;
        height: 165px;
    }

    .code-symbol {
        font-size: 3rem;
    }

    .floating-card {
        padding: 9px 11px;
        font-size: 0.72rem;
    }

    .card-python {
        left: -2%;
        top: 12%;
    }

    .card-django {
        right: -3%;
        top: 31%;
    }

    .card-web {
        bottom: 8%;
        left: 0;
    }

    .scroll-cue {
        font-size: 0.55rem;
    }

    .content-section {
        padding-top: 80px;
    }

    .section-heading h2,
    .contact-panel h2 {
        letter-spacing: -1.5px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-grid {
        gap: 10px;
    }

    .skill-card {
        padding: 17px;
        min-height: 160px;
    }

    .skill-card p {
        font-size: 0.74rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-visual {
        height: 215px;
    }

    .project-info {
        padding: 21px;
    }

    .contact-section {
        padding-top: 90px;
        padding-bottom: 75px;
    }

    .footer {
        width: 88%;
        gap: 12px;
    }

    .footer p,
    .back-top {
        font-size: 0.7rem;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
