:root {
    --background: #080b10;
    --surface: #10151d;
    --surface-light: #151c26;

    --text: #f4f7fb;
    --muted: #9ca8b8;

    --accent: #7c6cff;
    --accent-light: #a79cff;

    --border: rgba(255,255,255,.08);

    --max-width: 1150px;
}


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


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;

    background: var(--background);
    color: var(--text);

    line-height: 1.7;
}


.container {
    width: min(90%, var(--max-width));
    margin: auto;
}


section {
    padding: 110px 0;
}


.alternate {
    background: var(--surface);
}


/* NAV */

nav {
    position: fixed;
    width: 100%;
    top: 0;

    z-index: 100;

    backdrop-filter: blur(18px);

    background: rgba(8,11,16,.75);

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


.nav-container {
    height: 72px;

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


.logo {
    color: white;

    text-decoration: none;

    font-size: 1.35rem;
    font-weight: 800;
}


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


.nav-links {
    display: flex;
    gap: 25px;

    align-items: center;
}


.nav-links a {
    color: var(--muted);

    text-decoration: none;

    font-size: .9rem;

    transition: .25s;
}


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


#themeToggle {
    border: 1px solid var(--border);

    background: var(--surface);

    color: white;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;
}


.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    background: var(--accent);

    filter: blur(180px);

    opacity: .13;

    top: 5%;
    right: -250px;
}


.hero-content {
    position: relative;
    z-index: 2;
}


.intro,
.section-label {
    color: var(--accent-light);

    font-family: "JetBrains Mono";

    letter-spacing: 2px;

    font-size: .85rem;
}


.hero h1 {
    font-size: clamp(4rem, 10vw, 7.5rem);

    line-height: 1;

    letter-spacing: -5px;

    margin: 15px 0;
}


.hero h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);

    color: var(--muted);

    margin-bottom: 25px;
}


#typing {
    color: var(--accent-light);
}


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

    color: var(--muted);

    font-size: 1.1rem;
}


.hero-tags,
.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin: 25px 0;
}


.hero-tags span,
.tags span {
    border: 1px solid var(--border);

    padding: 7px 12px;

    border-radius: 100px;

    color: var(--muted);

    font-size: .8rem;

    background: rgba(255,255,255,.03);
}


.hero-buttons {
    display: flex;

    gap: 15px;

    margin: 35px 0;
}


.primary-btn,
.secondary-btn {
    display: inline-block;

    padding: 13px 22px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 600;
}


.primary-btn {
    background: var(--accent);

    color: white;
}


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

    color: white;
}


.social-links {
    display: flex;
    gap: 25px;
}


.social-links a,
.project-links a,
.contact-links a {
    color: var(--muted);

    text-decoration: none;
}


.social-links a:hover,
.project-links a:hover,
.contact-links a:hover {
    color: var(--accent-light);
}


/* SECTIONS */

.section-title {
    font-size: clamp(2.2rem,5vw,3.7rem);

    letter-spacing: -2px;

    margin: 10px 0 50px;
}


/* ABOUT */

.about-grid {
    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 70px;
}


.about-text p {
    color: var(--muted);

    margin-bottom: 20px;
}


.quick-info {
    display: grid;

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

    gap: 15px;
}


.quick-info div {
    background: var(--surface);

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

    border-radius: 12px;

    padding: 30px;
}


.quick-info strong {
    display: block;

    font-size: 2rem;

    color: var(--accent-light);
}


.quick-info span {
    color: var(--muted);

    font-size: .85rem;
}


/* SKILLS */

.skills-grid {
    display: grid;

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

    gap: 18px;
}


.skill-card {
    padding: 30px;

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

    border-radius: 14px;

    background: var(--background);

    transition: .3s;
}


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

    border-color: var(--accent);
}


.skill-card h3 {
    margin-bottom: 15px;
}


/* PROJECTS */

.projects-grid {
    display: grid;

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

    gap: 25px;
}


.project-card {
    padding: 40px;

    background: var(--surface);

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

    border-radius: 16px;

    transition: .3s;
}


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

    border-color: var(--accent);
}


.project-number {
    color: var(--accent);

    font-family: "JetBrains Mono";

    margin-bottom: 20px;
}


.project-card h3 {
    font-size: 1.8rem;

    margin-bottom: 15px;
}


.project-card p,
.project-card li {
    color: var(--muted);
}


.project-card ul {
    padding-left: 20px;

    margin: 20px 0;
}


.project-links {
    display: flex;

    gap: 25px;

    margin-top: 25px;
}


/* ACHIEVEMENTS */

.achievement-grid {
    display: grid;

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

    gap: 15px;
}


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

    padding: 35px 20px;

    border-radius: 12px;

    text-align: center;
}


.achievement strong {
    font-size: 2.1rem;

    color: var(--accent-light);
}


.achievement p {
    color: var(--muted);

    margin-top: 8px;
}


/* TIMELINE */

.timeline {
    border-left: 2px solid var(--border);

    margin-left: 10px;
}


.timeline-item {
    padding: 0 0 55px 40px;

    position: relative;
}


.timeline-item::before {
    content: "";

    position: absolute;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: var(--accent);

    left: -7px;
    top: 8px;
}


.timeline-item span {
    color: var(--accent-light);

    font-family: "JetBrains Mono";

    font-size: .8rem;
}


.timeline-item h3 {
    margin-top: 8px;
}


.timeline-item h4,
.timeline-item p {
    color: var(--muted);
}


/* CONTACT */

.contact {
    text-align: center;
}


.contact-content {
    max-width: 700px;
}


.contact h2 {
    font-size: clamp(2.5rem,6vw,4.5rem);

    margin: 15px 0;
}


.contact p {
    color: var(--muted);

    margin-bottom: 35px;
}


.contact-links {
    display: flex;

    justify-content: center;

    gap: 30px;

    margin-top: 35px;
}


/* FOOTER */

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

    text-align: center;

    padding: 25px;

    color: var(--muted);

    font-size: .8rem;
}


/* LIGHT MODE */

body.light {
    --background: #f8f9fc;
    --surface: #ffffff;
    --surface-light: #f2f3f7;

    --text: #15171b;
    --muted: #626a78;

    --border: rgba(0,0,0,.1);
}


body.light nav {
    background: rgba(248,249,252,.8);
}


body.light .logo {
    color: var(--text);
}


body.light #themeToggle {
    color: var(--text);
}


/* MOBILE */

@media (max-width: 850px) {

    .nav-links a {
        display: none;
    }

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

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

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

}


@media (max-width: 550px) {

    section {
        padding: 80px 0;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

}
.reveal {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}


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