:root {
    --bg: #07070b;
    --bg-light: #0d0d14;
    --card: rgba(18, 18, 28, 0.72);
    --card-solid: #11111a;

    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #6d3fd8;

    --text: #f5f3ff;
    --muted: #9995aa;
    --border: rgba(255, 255, 255, 0.08);

    --max-width: 1180px;
    --radius: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

::selection {
    background: var(--purple);
    color: white;
}


/* =========================================
   BACKGROUND
========================================= */

.background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );
}

.glow {
    position: absolute;
    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(130px);
    opacity: 0.14;
}

.glow-one {
    background: #7c3aed;
    top: -250px;
    left: -150px;
}

.glow-two {
    background: #4c1d95;
    right: -200px;
    top: 35%;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    width: min(var(--max-width), calc(100% - 40px));
    height: 80px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 100;
}

.logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-dot {
    width: 9px;
    height: 9px;

    background: var(--purple-light);
    border-radius: 50%;

    box-shadow:
        0 0 12px var(--purple),
        0 0 30px rgba(139, 92, 246, 0.5);
}

.navbar nav {
    display: flex;
    gap: 34px;
}

.navbar nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;

    transition: 0.25s ease;
}

.navbar nav a:hover {
    color: white;
}

.nav-button {
    padding: 11px 17px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255,255,255,0.025);

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s ease;
}

.nav-button:hover {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.nav-button span {
    color: var(--purple-light);
    margin-left: 5px;
}

.menu-button {
    display: none;

    border: 1px solid var(--border);
    background: var(--card);

    color: white;

    width: 42px;
    height: 42px;

    border-radius: 10px;

    cursor: pointer;
}

.mobile-menu {
    display: none;
}


/* =========================================
   GENERAL
========================================= */

.section {
    width: min(var(--max-width), calc(100% - 40px));
    margin: auto;
    padding: 130px 0;
}

.eyebrow {
    color: var(--purple-light);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
}

.section-heading {
    margin-bottom: 55px;
}

.section-heading h2 {
    max-width: 720px;

    margin-top: 12px;

    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.section-heading h2 span,
.hero h1 span,
.contact h2 span {
    color: var(--purple-light);
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: calc(100vh - 80px);

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;
    gap: 80px;

    padding-top: 80px;
}

.availability {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 50px;

    background: rgba(255,255,255,0.025);

    color: var(--muted);

    font-size: 11px;
    font-weight: 500;

    margin-bottom: 25px;
}

.availability span {
    width: 7px;
    height: 7px;

    background: #6ee7b7;

    border-radius: 50%;

    box-shadow: 0 0 12px #6ee7b7;
}

.hero h1 {
    max-width: 800px;

    margin-top: 14px;

    font-size: clamp(50px, 7vw, 90px);
    line-height: 0.98;
    letter-spacing: -5px;
}

.hero-description {
    max-width: 650px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 35px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 0 20px;

    border-radius: 11px;

    border: 1px solid var(--border);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: var(--purple);
    border-color: var(--purple);

    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.2);
}

.button.primary:hover {
    background: var(--purple-light);
    box-shadow: 0 15px 45px rgba(139, 92, 246, 0.3);
}

.button.secondary {
    background: rgba(255,255,255,0.025);
}

.button.secondary:hover {
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(139, 92, 246, 0.07);
}

.hero-stats {
    display: flex;
    gap: 40px;

    margin-top: 60px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stats strong {
    font-size: 10px;
    letter-spacing: 1.5px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 11px;
}


/* =========================================
   HERO CARD
========================================= */

.hero-card {
    position: relative;

    padding: 30px;

    min-height: 430px;

    border: 1px solid var(--border);
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.09),
            rgba(255,255,255,0.02)
        );

    backdrop-filter: blur(20px);

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.3);
}

.card-top {
    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
}

.status {
    color: #6ee7b7;
}

.profile-circle {
    width: 90px;
    height: 90px;

    margin: 65px auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(135deg, var(--purple-light), var(--purple-dark));

    box-shadow:
        0 0 50px rgba(139,92,246,0.25);

    font-size: 35px;
    font-weight: 800;
}

.hero-card h2 {
    text-align: center;

    font-size: 25px;
}

.hero-card > p {
    text-align: center;

    color: var(--muted);

    font-size: 12px;
}

.card-line {
    height: 1px;

    margin: 30px 0 20px;

    background: var(--border);
}

.mini-stat {
    display: flex;
    justify-content: space-between;

    padding: 11px 0;

    border-bottom: 1px solid rgba(255,255,255,0.045);

    font-size: 11px;
}

.mini-stat span {
    color: var(--muted);
}

.card-decoration {
    position: absolute;

    width: 200px;
    height: 200px;

    right: -100px;
    bottom: -100px;

    border-radius: 50%;

    border: 1px solid rgba(167,139,250,0.15);
}


/* =========================================
   ABOUT
========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;

    gap: 100px;

    align-items: center;
}

.about-text {
    color: var(--muted);

    font-size: 16px;
    line-height: 1.9;
}

.about-text p + p {
    margin-top: 20px;
}

.about-highlight {
    position: relative;

    padding: 40px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(255,255,255,0.025);
}

.quote-mark {
    display: block;

    color: var(--purple-light);

    font-size: 60px;
    line-height: 0.7;
}

.about-highlight p {
    margin-top: 25px;

    font-size: 18px;
    line-height: 1.7;
}

.quote-author {
    display: block;

    margin-top: 25px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================
   SKILLS
========================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.skill-card {
    position: relative;

    min-height: 310px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(255,255,255,0.025);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);

    border-color: rgba(167,139,250,0.3);

    background: rgba(139,92,246,0.06);
}

.skill-number {
    position: absolute;

    top: 22px;
    right: 22px;

    color: rgba(255,255,255,0.18);

    font-size: 10px;
    font-weight: 700;
}

.skill-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 55px;

    border-radius: 12px;

    background: rgba(139,92,246,0.12);

    color: var(--purple-light);

    font-size: 20px;
}

.skill-card h3 {
    font-size: 17px;
}

.skill-card p {
    margin-top: 12px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================
   PROJECTS
========================================= */

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
}

.projects-heading > p {
    max-width: 350px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.project-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(255,255,255,0.025);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);

    border-color: rgba(167,139,250,0.3);
}

.project-image {
    position: relative;

    height: 270px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.project-one {
    background:
        radial-gradient(circle at 50% 50%, rgba(139,92,246,0.35), transparent 45%),
        linear-gradient(135deg, #11101c, #201335);
}

.project-two {
    background:
        radial-gradient(circle at 50% 50%, rgba(124,58,237,0.2), transparent 45%),
        linear-gradient(135deg, #0d0d12, #19121f);
}

.project-three {
    background:
        radial-gradient(circle at 50% 50%, rgba(167,139,250,0.25), transparent 45%),
        linear-gradient(135deg, #151220, #23183c);
}

.project-four {
    background:
        radial-gradient(circle at 50% 50%, rgba(99,102,241,0.2), transparent 45%),
        linear-gradient(135deg, #0c0d15, #17152a);
}

.project-image::before {
    content: "";

    position: absolute;
    inset: 20px;

    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 15px;
}

.project-label {
    position: absolute;

    top: 25px;
    left: 25px;

    padding: 6px 9px;

    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;

    background: rgba(0,0,0,0.25);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.project-image-content {
    width: 110px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;

    background: rgba(255,255,255,0.04);

    backdrop-filter: blur(15px);

    box-shadow: 0 25px 70px rgba(0,0,0,0.4);

    transform: rotate(-5deg);
}

.project-image-content strong {
    font-size: 28px;
    letter-spacing: -1px;
}

.project-content {
    padding: 28px;
}

.project-meta {
    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.project-content h3 {
    margin-top: 16px;

    font-size: 23px;
}

.project-content p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 20px;
}

.tags span {
    padding: 5px 9px;

    border: 1px solid var(--border);
    border-radius: 6px;

    color: #bbb7ca;

    font-size: 9px;
}


/* =========================================
   PROCESS
========================================= */

.process-list {
    border-top: 1px solid var(--border);
}

.process-item {
    display: grid;
    grid-template-columns: 100px 1fr;

    gap: 30px;

    padding: 30px 0;

    border-bottom: 1px solid var(--border);

    transition: padding 0.3s ease;
}

.process-item:hover {
    padding-left: 15px;
}

.process-item > span {
    color: var(--purple-light);

    font-size: 11px;
    font-weight: 700;
}

.process-item h3 {
    font-size: 20px;
}

.process-item p {
    max-width: 600px;

    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================
   CONTACT
========================================= */

.contact-box {
    position: relative;

    min-height: 450px;

    display: grid;
    grid-template-columns: 1fr 0.7fr;

    align-items: center;

    padding: 70px;

    border: 1px solid var(--border);
    border-radius: 30px;

    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(139,92,246,0.12),
            transparent 45%
        ),
        rgba(255,255,255,0.025);

    overflow: hidden;
}

.contact h2 {
    max-width: 650px;

    margin-top: 15px;

    font-size: clamp(40px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -3px;
}

.contact-content > p:not(.eyebrow):not(.copy-status) {
    max-width: 570px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    gap: 10px;

    margin-top: 30px;
}

.copy-status {
    min-height: 20px;

    margin-top: 12px;

    color: #6ee7b7;

    font-size: 11px;
}

.contact-decoration {
    position: relative;

    width: 330px;
    height: 330px;

    margin: auto;
}

.orbit {
    position: absolute;

    inset: 50% auto auto 50%;

    border: 1px solid rgba(167,139,250,0.15);

    border-radius: 50%;

    transform: translate(-50%, -50%) rotate(-20deg);
}

.orbit-one {
    width: 150px;
    height: 150px;
}

.orbit-two {
    width: 240px;
    height: 240px;

    transform: translate(-50%, -50%) rotate(45deg);
}

.orbit-three {
    width: 320px;
    height: 320px;

    transform: translate(-50%, -50%) rotate(-50deg);
}

.contact-logo {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        var(--purple),
        var(--purple-dark)
    );

    box-shadow:
        0 0 70px rgba(139,92,246,0.35);

    font-size: 38px;
    font-weight: 800;
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: min(var(--max-width), calc(100% - 40px));

    margin: auto;

    padding: 50px 0 30px;

    border-top: 1px solid var(--border);
}

footer > p {
    margin-top: 12px;

    color: var(--muted);

    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 20px;

    margin-top: 30px;
}

.footer-links a {
    color: var(--muted);

    font-size: 11px;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    margin-top: 50px;
    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: #686577;

    font-size: 9px;
}


/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {

    .navbar nav,
    .nav-button {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-menu {
        position: fixed;

        top: 80px;
        left: 20px;
        right: 20px;

        z-index: 99;

        padding: 15px;

        border: 1px solid var(--border);
        border-radius: 15px;

        background: rgba(15,15,23,0.96);

        backdrop-filter: blur(20px);

        transform: translateY(-15px);
        opacity: 0;
        pointer-events: none;

        transition: 0.25s ease;
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu a {
        display: block;

        padding: 13px;

        color: var(--muted);

        font-size: 13px;
    }

    .hero {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero-card {
        max-width: 550px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .contact-decoration {
        display: none;
    }
}


@media (max-width: 650px) {

    .section {
        padding: 90px 0;
    }

    .hero {
        padding-top: 50px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-heading {
        display: block;
    }

    .projects-heading > p {
        margin-top: 20px;
    }

    .project-image {
        height: 230px;
    }

    .process-item {
        grid-template-columns: 50px 1fr;
        gap: 15px;
    }

    .contact-box {
        padding: 40px 25px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}