:root {
    --bg: #08080b;
    --bg-soft: #101015;
    --card: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.10);

    --text: #f4f4f5;
    --muted: #94949f;

    --purple: #9b7cff;
    --cyan: #64e8ff;

    --max-width: 1180px;

    --font-main: "Inter", sans-serif;
    --font-mono: "DM Mono", monospace;
}


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


html {
    scroll-behavior: smooth;
}


body {
    background: var(--bg);
    color: var(--text);

    font-family: var(--font-main);

    line-height: 1.6;

    overflow-x: hidden;
}


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


.background-grid {
    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.25;

    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: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );

    z-index: -3;
}


.glow {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(140px);

    opacity: 0.12;

    pointer-events: none;

    z-index: -2;
}


.glow-one {
    background: var(--purple);

    top: -200px;
    right: -150px;
}


.glow-two {
    background: var(--cyan);

    bottom: 10%;
    left: -250px;
}


/* NAVIGATION */

.navbar {
    width: min(var(--max-width), calc(100% - 48px));

    margin: 0 auto;

    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    font-family: var(--font-mono);

    font-size: 22px;
    font-weight: 500;

    letter-spacing: -2px;
}


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


nav {
    display: flex;
    gap: 32px;

    font-size: 13px;

    color: var(--muted);
}


nav a {
    transition: color 0.2s ease;
}


nav a:hover {
    color: white;
}


.nav-button {
    padding: 10px 17px;

    border: 1px solid var(--border);

    border-radius: 8px;

    font-size: 13px;

    transition: all 0.2s ease;
}


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

    background: rgba(155, 124, 255, 0.08);
}


/* HERO */

.hero {
    width: min(var(--max-width), calc(100% - 48px));

    min-height: calc(100vh - 90px);

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    align-items: center;

    gap: 80px;

    padding: 80px 0 100px;
}


.status {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 12px;

    margin-bottom: 28px;

    border: 1px solid var(--border);

    border-radius: 100px;

    background: rgba(255,255,255,0.025);

    color: var(--muted);

    font-family: var(--font-mono);

    font-size: 11px;
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #5eff9b;

    box-shadow: 0 0 12px #5eff9b;
}


.eyebrow {
    margin-bottom: 18px;

    color: var(--purple);

    font-family: var(--font-mono);

    font-size: 12px;

    letter-spacing: 2px;
}


h1 {
    max-width: 760px;

    font-size: clamp(52px, 7vw, 92px);

    line-height: 0.98;

    letter-spacing: -5px;

    font-weight: 800;
}


h1 span,
h2 span {
    display: block;

    color: transparent;

    background: linear-gradient(
        100deg,
        var(--purple),
        var(--cyan)
    );

    background-clip: text;
    -webkit-background-clip: text;
}


.hero-description {
    max-width: 560px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.7;
}


.hero-actions {
    display: flex;

    gap: 12px;

    margin-top: 38px;
}


.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 20px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


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


.button-primary {
    background: white;

    color: #09090b;
}


.button-primary:hover {
    background: #e7e7e9;
}


.button-secondary {
    border: 1px solid var(--border);

    color: var(--text);
}


.button-secondary:hover {
    border-color: rgba(255,255,255,0.25);
}


/* TERMINAL */

.terminal {
    border: 1px solid var(--border);

    border-radius: 14px;

    background: rgba(10,10,14,0.75);

    backdrop-filter: blur(20px);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.35),
        inset 0 1px rgba(255,255,255,0.03);

    overflow: hidden;

    transform: rotate(1.5deg);

    transition: transform 0.3s ease;
}


.terminal:hover {
    transform: rotate(0deg) translateY(-5px);
}


.terminal-header {
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 15px;

    border-bottom: 1px solid var(--border);

    color: #666671;

    font-family: var(--font-mono);

    font-size: 10px;
}


.terminal-dots {
    display: flex;

    gap: 6px;
}


.terminal-dots span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #36363e;
}


.terminal-body {
    padding: 28px;

    font-family: var(--font-mono);

    font-size: 12px;

    line-height: 2;
}


.terminal-body p {
    color: #d4d4d8;
}


.terminal-purple {
    color: var(--purple);
}


.terminal-output {
    color: #70707b !important;

    padding-left: 17px;

    margin-bottom: 8px;
}


.cursor {
    display: inline-block;

    width: 7px;
    height: 14px;

    vertical-align: middle;

    background: var(--purple);

    animation: blink 1s infinite;
}


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


/* STATS */

.stats {
    width: min(var(--max-width), calc(100% - 48px));

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}


.stat {
    padding: 34px 20px;

    border-right: 1px solid var(--border);
}


.stat:last-child {
    border-right: none;
}


.stat strong {
    display: block;

    font-size: 34px;

    letter-spacing: -2px;
}


.stat span {
    color: var(--muted);

    font-size: 12px;
}


/* GENERAL SECTIONS */

.section {
    width: min(var(--max-width), calc(100% - 48px));

    margin: 0 auto;

    padding: 150px 0 0;
}


.section-label {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 65px;

    color: var(--muted);

    font-family: var(--font-mono);

    font-size: 11px;

    letter-spacing: 1.5px;
}


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


/* ABOUT */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}


h2 {
    font-size: clamp(40px, 5vw, 66px);

    line-height: 1.05;

    letter-spacing: -3px;
}


.about-text {
    max-width: 540px;

    color: var(--muted);

    font-size: 16px;
}


.about-text p + p {
    margin-top: 22px;
}


.about-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 30px;
}


.about-tags span,
.tech-list span,
.skill-items span {
    padding: 7px 10px;

    border: 1px solid var(--border);

    border-radius: 6px;

    color: #b8b8c1;

    font-family: var(--font-mono);

    font-size: 10px;
}


/* EXPERIENCE */

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


.timeline-item {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 60px;

    padding: 42px 0;

    border-bottom: 1px solid var(--border);
}


.timeline-date {
    color: var(--muted);

    font-family: var(--font-mono);

    font-size: 10px;

    padding-top: 5px;
}


.timeline-heading {
    display: flex;

    justify-content: space-between;

    align-items: baseline;

    gap: 20px;
}


.timeline-heading h3 {
    font-size: 20px;
}


.timeline-heading span {
    color: var(--purple);

    font-family: var(--font-mono);

    font-size: 11px;
}


.timeline-content p {
    max-width: 700px;

    margin-top: 12px;

    color: var(--muted);

    font-size: 14px;
}


.tech-list {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 20px;
}


/* PROJECTS */

.projects-header {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 50px;
}


.projects-header p {
    max-width: 350px;

    color: var(--muted);

    font-size: 14px;
}


.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}


.project-card {
    position: relative;

    min-height: 350px;

    padding: 34px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: var(--card);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}


.project-card:hover {
    transform: translateY(-5px);

    border-color: rgba(155,124,255,0.45);
}


.project-large {
    grid-column: span 2;

    min-height: 390px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(155,124,255,0.14),
            transparent 35%
        ),
        var(--card);
}


.project-number {
    color: #52525c;

    font-family: var(--font-mono);

    font-size: 11px;
}


.project-content {
    max-width: 650px;
}


.project-icon {
    color: var(--purple);

    font-size: 28px;

    margin-bottom: 20px;
}


.project-card h3 {
    font-size: 27px;

    letter-spacing: -1px;
}


.project-card p {
    max-width: 550px;

    margin-top: 12px;

    color: var(--muted);

    font-size: 14px;
}


.project-link {
    position: absolute;

    top: 28px;
    right: 28px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    color: var(--muted);

    transition: all 0.2s ease;
}


.project-link:hover {
    color: white;

    border-color: var(--purple);

    transform: rotate(10deg);
}


/* SKILLS */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}


.skill-category {
    padding: 30px;

    min-height: 210px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: var(--card);
}


.skill-category h3 {
    margin-bottom: 25px;

    font-size: 16px;
}


.skill-items {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.learning {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.learning div {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);

    font-size: 13px;
}


.learning small {
    color: var(--purple);

    font-family: var(--font-mono);

    font-size: 9px;

    text-transform: uppercase;
}


/* CONTACT */

.contact-section {
    width: min(var(--max-width), calc(100% - 48px));

    margin: 150px auto 0;

    padding: 90px 0 130px;

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


.contact-inner {
    max-width: 800px;
}


.contact-inner h2 {
    font-size: clamp(48px, 7vw, 82px);
}


.contact-inner > p {
    max-width: 500px;

    margin-top: 28px;

    color: var(--muted);

    font-size: 16px;
}


.contact-email {
    display: inline-flex;

    align-items: center;

    gap: 18px;

    margin-top: 40px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--purple);

    font-family: var(--font-mono);

    font-size: clamp(18px, 3vw, 27px);

    transition: color 0.2s ease;
}


.contact-email:hover {
    color: var(--purple);
}


/* FOOTER */

footer {
    width: min(var(--max-width), calc(100% - 48px));

    margin: 0 auto;

    padding: 25px 0 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: #5e5e67;

    font-family: var(--font-mono);

    font-size: 10px;
}


.footer-links {
    display: flex;

    gap: 20px;
}


.footer-links a {
    transition: color 0.2s ease;
}


.footer-links a:hover {
    color: white;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    nav {
        display: none;
    }


    .hero {
        grid-template-columns: 1fr;

        gap: 60px;

        padding-top: 50px;
    }


    .hero-side {
        max-width: 650px;
    }


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


    .stat:nth-child(2) {
        border-right: none;
    }


    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }


    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


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


    .project-large {
        grid-column: span 1;
    }


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

}


@media (max-width: 600px) {

    .navbar,
    .hero,
    .stats,
    .section,
    .contact-section,
    footer {
        width: min(100% - 32px, var(--max-width));
    }


    .navbar {
        height: 75px;
    }


    .nav-button {
        display: none;
    }


    h1 {
        font-size: 52px;

        letter-spacing: -3px;
    }


    .hero-description {
        font-size: 16px;
    }


    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .button {
        width: 100%;
    }


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


    .stat {
        padding: 25px 12px;
    }


    .stat strong {
        font-size: 28px;
    }


    .section {
        padding-top: 100px;
    }


    .section-label {
        margin-bottom: 40px;
    }


    .timeline-item {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .timeline-heading {
        flex-direction: column;

        gap: 4px;
    }


    .projects-header {
        flex-direction: column;

        align-items: start;
    }


    .project-card,
    .project-large {
        min-height: 330px;

        padding: 25px;
    }


    .contact-section {
        margin-top: 100px;

        padding-bottom: 90px;
    }


    footer {
        flex-direction: column;

        align-items: start;

        gap: 18px;
    }

}

/* Scroll reveal */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}
