:root {
    --bg: #0d1117;
    --card: rgba(255, 255, 255, .04);
    --card-border: rgba(255, 255, 255, .08);
    --text: #f5f7fa;
    --muted: #b8c2d3;
    --accent: #5eead4;
    --shadow: 0 10px 40px rgba(0, 0, 0, .35);
    --radius: 18px;
    --transition: all .28s cubic-bezier(.4, 0, .2, 1);
}

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

html {
    font-size: 86%;
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.62;
    overflow-x: hidden;
    width: 100%;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(94, 234, 212, .06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, .06), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

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

.page-shell {
    width: min(1180px, 92%);
    margin: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.4rem;
    position: sticky;
    top: 1rem;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(13, 17, 23, .85);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    margin: 1rem auto 2.5rem;
    width: 100%;
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 78vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(94, 234, 212, .12), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(94, 234, 212, .12);
    color: var(--accent);
    padding: .45rem .95rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: .8rem;
}

.hero h1 {
    font-size: clamp(2.7rem, 5.6vw, 4.8rem);
    line-height: 1.03;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    font-family: "Space Grotesk", sans-serif;
}

.hero-description {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 1.7rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: .95rem 1.45rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    color: #081018;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(94, 234, 212, .2);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
}

/* HERO IMAGE */
.hero-visual {
    position: relative;
}

.profile-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #161b22;
    aspect-ratio: 4 / 4.5;
    box-shadow: var(--shadow);
}

.profile-frame::after {
    content: "BUILD • LEARN • SHIP";
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    font-size: .72rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255, 255, 255, .78);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.hero-visual:hover .profile-frame img {
    transform: scale(1.04);
}

.floating-panel {
    position: absolute;
    max-width: 240px;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(17, 24, 39, .88);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    z-index: 3;
}

.panel-top {
    top: -25px;
    left: -35px;
}

.panel-bottom {
    bottom: -25px;
    right: -35px;
}

/* SECTIONS */
.section {
    padding: 2rem 0;
    scroll-margin-top: 4.8rem;
    width: 100%;
    box-sizing: border-box;
}

.hero {
    scroll-margin-top: 4.8rem;
}

.section+.section {
    padding-top: 1rem;
}

.section-heading {
    margin-bottom: 1.2rem;
}

.section-tag {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: .5rem;
}

.section-heading h2 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.1;
}

/* GRID */
.spotlight-grid,
.project-grid,
.contact-grid,
.skill-categories {
    display: grid;
    gap: .9rem;
}

.spotlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* CARDS */
.spotlight-card,
.project-card,
.contact-card,
.skill-group {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.15rem;
    transition: var(--transition);
    backdrop-filter: blur(18px);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(94, 234, 212, .04),
            transparent 40%);
    opacity: 0;
    pointer-events: none;
    transition: .35s ease;
}

.project-card>* {
    position: relative;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.featured-project {
    border-color: rgba(94, 234, 212, .3);
    background: rgba(94, 234, 212, .02);
}

.project-card:hover,
.spotlight-card:hover,
.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(94, 234, 212, .3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .4);
}

.spotlight-label,
.project-badge,
.skill-group-label {
    color: var(--accent);
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .8rem;
    display: inline-block;
}

.project-desc {
    color: var(--muted);
    flex-grow: 1;
}

.project-topline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-stack {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1.2rem;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.project-links a {
    color: var(--accent);
    font-weight: 600;
}

.project-links a:hover {
    text-decoration: underline;
}

/* SKILLS */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.skill-list span {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .06);
    padding: .65rem .95rem;
    border-radius: 999px;
    font-size: .9rem;
    transition: var(--transition);
}

.skill-list span:hover {
    background: rgba(94, 234, 212, .1);
    border-color: rgba(94, 234, 212, .2);
}

/* CONTACT */
.contact-card {
    text-decoration: none;
}

.contact-card span {
    color: var(--muted);
    display: block;
    margin-bottom: .4rem;
}

.contact-card strong {
    color: var(--text);
    transition: var(--transition);
}

.contact-card:hover strong {
    color: var(--accent);
}

/* FOOTER */
footer {
    padding: 2.5rem 0 3rem;
    text-align: center;
    color: rgba(255, 255, 255, .55);
    font-size: .92rem;
}

/* MOBILE */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .floating-panel {
        display: none;
    }

    .hero::before {
        display: none;
    }

    .navbar {
        margin: 1rem 1rem 2.5rem;
        max-width: none;
        width: calc(100% - 2rem);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: #0d1117;
        padding: 1.4rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, .08);
        gap: 1rem;
        max-width: calc(100% - 2rem);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
    }

    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.7rem 1rem;
    }

    .section+.section {
        padding-top: .75rem;
    }

    .navbar {
        padding: 1rem 1.2rem;
    }
}