:root {
    --bg: #080406;
    --bg-soft: #10070b;
    --panel: rgba(24, 10, 15, 0.84);
    --panel-solid: #180b11;
    --text: #fff4f4;
    --muted: #b8a1a7;
    --cyan: #ff4d5e;
    --blue: #9d1f43;
    --purple: #c03a5a;
    --border: rgba(255,225,230,0.09);
    --border-hover: rgba(255,77,94,0.42);
    --shadow: 0 30px 80px rgba(0,0,0,.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body::selection {
    background: var(--cyan);
    color: #18050b;
}

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

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

.logo {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span,
footer span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--muted);
    font-size: 13px;
    transition: .25s ease;
}

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

.nav-resume {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    transition: .25s ease;
}

.nav-resume:hover {
    border-color: var(--border-hover);
    color: var(--cyan);
}

.section {
    width: min(1180px, 88%);
    margin: auto;
    padding: 110px 0;
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 60px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border: 1px solid rgba(255,77,94,.22);
    background: rgba(255,77,94,.06);
    border-radius: 999px;
    color: #ffd8de;
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 800;
    margin-bottom: 22px;
}

.status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

.eyebrow,
.section-label {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.eyebrow {
    margin-bottom: 16px;
}

.hero h1 {
    max-width: 800px;
    font-size: clamp(52px, 7vw, 92px);
    line-height: .95;
    letter-spacing: -5px;
    margin-bottom: 28px;
}

.hero h1 span,
.section h2 span,
.contact-section h2 span {
    color: var(--cyan);
}

.hero-description {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 30px;
}

.hero-description strong {
    color: var(--text);
}

.hero-actions,
.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    transition: .25s ease;
}

.btn-primary {
    background: var(--cyan);
    color: #18050b;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,77,94,.2);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--cyan);
    transform: translateY(-3px);
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.hero-stack span,
.project-tech span,
.timeline-tags span {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    color: var(--muted);
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 10px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    position: relative;
    width: 330px;
    padding: 18px 18px 0;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(34,12,20,.96), rgba(8,4,6,.97));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cyan);
    filter: blur(120px);
    opacity: .12;
}

.profile-image {
    position: relative;
    display: block;
    width: 240px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,.3));
}

.profile-terminal {
    margin-top: -2px;
    padding: 14px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: #ffd4da;
}

.terminal-top {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.terminal-top span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #44505f;
}

.profile-orbit {
    position: absolute;
    border: 1px solid rgba(255,77,94,.09);
    border-radius: 50%;
}

.orbit-one {
    width: 440px;
    height: 440px;
}

.orbit-two {
    width: 580px;
    height: 580px;
    border-color: rgba(157,31,67,.13);
}

.stats-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.015);
}

.stats-strip div {
    padding: 25px 6%;
    border-right: 1px solid var(--border);
}

.stats-strip div:last-child {
    border-right: 0;
}

.stats-strip strong {
    display: block;
    color: var(--cyan);
    font-size: 14px;
    margin-bottom: 4px;
}

.stats-strip span {
    color: var(--muted);
    font-size: 11px;
}

.two-column,
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    margin-top: 26px;
}

.section-heading {
    margin: 18px 0 45px;
}

.section h2,
.contact-section h2 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -3px;
}

.section-heading p,
.section-text p,
.philosophy-grid p,
.contact-section > .contact-content > p:not(.section-label) {
    color: var(--muted);
}

.section-text p {
    font-size: 17px;
    margin-bottom: 18px;
}

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

.skill-card,
.project-card {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(25,10,16,.94), rgba(9,5,7,.96));
    border-radius: 14px;
    padding: 24px;
    transition: .3s ease;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

.skill-index {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 28px;
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.skill-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

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

.project-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.project-card.featured {
    border-color: rgba(255,77,94,.2);
    background:
        radial-gradient(circle at top right, rgba(255,77,94,.09), transparent 45%),
        linear-gradient(145deg, rgba(25,10,16,.96), rgba(9,5,7,.96));
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.portfolio-card {
    min-height: 280px;
}

.portfolio-card .project-link {
    margin-top: auto;
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.project-number {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 900;
}

.project-type {
    color: #697587;
    font-size: 9px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.project-card h3 {
    max-width: 400px;
    font-size: 25px;
    line-height: 1.1;
    margin-bottom: 13px;
}

.project-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    margin-bottom: 18px;
}

.project-link {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
}

.timeline {
    border-top: 1px solid var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 40px;
    padding: 27px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-date {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
}

.timeline-item h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.timeline-item p {
    color: var(--muted);
    max-width: 750px;
}

.timeline-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.philosophy-grid {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 55px 0;
}

.philosophy-grid p {
    font-size: 17px;
    margin-bottom: 15px;
}

.contact-section {
    width: 100%;
    padding: 120px 6%;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(circle at center, rgba(255,77,94,.08), transparent 45%);
}

.contact-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.contact-section h2 {
    margin: 18px 0;
}

.contact-section > .contact-content > p:not(.section-label) {
    max-width: 680px;
    margin: 0 auto 30px;
}

.contact-actions {
    justify-content: center;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1180px, 88%);
    margin: auto;
    padding: 28px 0;
    color: #687384;
    font-size: 10px;
}

footer div {
    font-weight: 900;
    letter-spacing: 2px;
}

@media (max-width: 950px) {

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 80px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-stack {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .two-column,
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 680px) {

    .navbar {
        padding: 0 5%;
    }

    .nav-resume {
        display: none;
    }

    .section {
        width: 90%;
        padding: 80px 0;
    }

    .hero {
        width: 90%;
    }

    .hero h1 {
        font-size: 54px;
        letter-spacing: -3px;
    }

    .profile-card {
        width: 280px;
    }

    .profile-image {
        width: 205px;
    }

    .stats-strip {
        grid-template-columns: 1fr 1fr;
    }

    .stats-strip div {
        border-bottom: 1px solid var(--border);
    }

    .skills-grid,
    .projects-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}
