/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --bg: #0a0a0a;
    --bg-light: #101010;
    --card: #111111;
    --border: #252525;

    --text: #f5f5f5;
    --muted: #a1a1a1;

    --accent: #ffffff;

    --max-width: 1180px;

    --section-padding: 120px;
}


/* =====================================================
   GLOBAL
===================================================== */

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: var(--section-padding) 0;
}

.dark-section {
    background: #0f0f0f;
}

.section-heading {
    margin-bottom: 65px;
    max-width: 750px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -2.5px;
}

.section-heading h2 span {
    color: #777;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    min-height: 76px;

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

.logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #777;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 13px;
    color: #999;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-button {
    border: 1px solid #444;
    padding: 9px 17px;
    border-radius: 6px;

    font-size: 13px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.nav-button:hover {
    background: #fff;
    color: #000;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;
    padding-top: 76px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(255, 255, 255, 0.07),
            transparent 30%
        );
}

.hero-container {
    min-height: calc(100vh - 76px);

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 80px;

    padding-top: 70px;
    padding-bottom: 70px;
}

.hero-intro {
    font-size: 16px;
    color: #999;
    margin-bottom: 8px;
}

.hero-content h1 {
    font-size: clamp(58px, 8vw, 105px);
    line-height: 0.95;
    letter-spacing: -6px;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: #666;
}

.hero-content h2 {
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: -1px;
}

.hero-description {
    max-width: 620px;
    color: #929292;
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 22px;

    border-radius: 6px;

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

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

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

.primary-btn {
    background: #fff;
    color: #000;
}

.primary-btn:hover {
    background: #ddd;
}

.secondary-btn {
    border: 1px solid #333;
    color: #ddd;
}

.secondary-btn:hover {
    border-color: #777;
}

.hero-socials {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

.hero-socials a {
    color: #777;
    font-size: 13px;

    border-bottom: 1px solid transparent;

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

.hero-socials a:hover {
    color: #fff;
    border-color: #fff;
}


/* =====================================================
   CODE CARD
===================================================== */

.hero-card {
    width: 100%;
}

.code-window {
    background: #0e0e0e;
    border: 1px solid #292929;
    border-radius: 12px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5);

    overflow: hidden;

    transform: rotate(1.5deg);

    transition: transform 0.4s ease;
}

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

.window-header {
    height: 45px;

    padding: 0 16px;

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

    border-bottom: 1px solid #222;
}

.window-header p {
    font-size: 11px;
    color: #666;
    font-family: monospace;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
}

.code-content {
    padding: 30px 25px;
    overflow-x: auto;
}

.code-content pre {
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 2;
    color: #bbb;
}

.keyword {
    color: #ddd;
}

.class-name {
    color: #fff;
}

.string {
    color: #999;
}

.boolean {
    color: #aaa;
}


/* =====================================================
   STATS
===================================================== */

.stats-section {
    border-top: 1px solid #202020;
    border-bottom: 1px solid #202020;
}

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

.stat {
    padding: 45px 25px;
    text-align: center;

    border-right: 1px solid #202020;
}

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

.stat h3 {
    font-size: 35px;
    letter-spacing: -1px;
}

.stat p {
    margin-top: 5px;
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


/* =====================================================
   ABOUT
===================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 100px;
}

.about-text {
    color: #999;
    font-size: 16px;
    line-height: 1.9;
}

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

.text-link {
    display: inline-block;
    margin-top: 30px;

    color: #fff;

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

    border-bottom: 1px solid #444;
    padding-bottom: 4px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.highlight-card {
    background: #101010;
    border: 1px solid #222;
    padding: 30px;

    min-height: 200px;

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

.highlight-card:hover {
    border-color: #444;
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 11px;
    color: #555;
}

.highlight-card h3 {
    margin-top: 35px;
    margin-bottom: 10px;

    font-size: 17px;
}

.highlight-card p {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
}


/* =====================================================
   EXPERIENCE
===================================================== */

.timeline {
    position: relative;
    max-width: 900px;
}

.timeline::before {
    content: "";

    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;

    width: 1px;

    background: #333;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
}

.timeline-item + .timeline-item {
    margin-top: 35px;
}

.timeline-dot {
    position: absolute;

    left: 0;
    top: 30px;

    width: 15px;
    height: 15px;

    border: 3px solid #0f0f0f;
    border-radius: 50%;

    background: #888;
    box-shadow: 0 0 0 1px #555;
}

.experience-card {
    background: #121212;
    border: 1px solid #242424;

    padding: 32px;

    transition: border-color 0.25s ease;
}

.experience-card:hover {
    border-color: #444;
}

.experience-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.experience-date {
    font-size: 10px;
    color: #666;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 7px;
}

.experience-card h3 {
    font-size: 23px;
    letter-spacing: -0.5px;
}

.experience-card h4 {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    margin-top: 3px;
}

.experience-card > p {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}

.experience-tag {
    height: fit-content;

    padding: 6px 10px;

    border: 1px solid #333;
    border-radius: 4px;

    color: #888;

    font-size: 10px;
    text-transform: uppercase;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.experience-tech span {
    background: #1a1a1a;
    border: 1px solid #292929;

    padding: 5px 9px;

    font-size: 10px;
    color: #777;
}


/* =====================================================
   PROJECTS
===================================================== */

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

.project-card {
    position: relative;

    background: #101010;
    border: 1px solid #222;

    padding: 38px;

    min-height: 430px;

    overflow: hidden;

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

.project-card:hover {
    transform: translateY(-6px);
    border-color: #444;
}

.project-number {
    position: absolute;

    top: 25px;
    right: 30px;

    font-size: 11px;
    color: #444;
}

.project-content {
    position: relative;
    z-index: 1;
    padding-top: 35px;
}

.project-type {
    font-size: 10px;
    letter-spacing: 2px;
    color: #666;
    font-weight: 700;
}

.project-card h3 {
    margin-top: 13px;
    margin-bottom: 18px;

    font-size: 29px;
    letter-spacing: -1px;
}

.project-card p:not(.project-type) {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}

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

.project-tech span {
    padding: 6px 10px;

    background: #191919;
    border: 1px solid #292929;

    color: #888;

    font-size: 10px;
}

.project-links {
    margin-top: 28px;
}

.project-links a {
    font-size: 12px;
    color: #ddd;

    border-bottom: 1px solid #444;
    padding-bottom: 3px;
}

.project-links a:hover {
    color: #fff;
}


/* =====================================================
   SKILLS
===================================================== */

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;

    background: #292929;
    border: 1px solid #292929;
}

.skill-group {
    background: #0f0f0f;
    padding: 35px;
}

.skill-group h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-list span {
    padding: 8px 12px;

    border: 1px solid #292929;
    background: #151515;

    color: #999;

    font-size: 11px;

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

.skill-list span:hover {
    color: #fff;
    border-color: #555;
}


/* =====================================================
   ACHIEVEMENTS
===================================================== */

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

.achievement-card {
    display: flex;
    align-items: center;
    gap: 20px;

    border: 1px solid #222;
    background: #101010;

    padding: 25px;

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

.achievement-card:hover {
    transform: translateY(-3px);
    border-color: #444;
}

.achievement-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #191919;
    border: 1px solid #292929;

    border-radius: 8px;

    font-size: 19px;
}

.achievement-card h3 {
    font-size: 15px;
}

.achievement-card p {
    color: #777;
    font-size: 12px;
    margin-top: 3px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-section {
    padding: 120px 0;

    background: #f5f5f5;
    color: #0a0a0a;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 100px;
    align-items: end;
}

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

.contact-section .section-label {
    color: #888;
}

.contact-content h2 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -3px;
}

.contact-content h2 span {
    color: #888;
}

.contact-content > p:not(.section-label) {
    max-width: 620px;

    margin-top: 25px;

    color: #666;

    font-size: 15px;
    line-height: 1.8;
}

.contact-email {
    display: inline-block;

    margin-top: 30px;

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

    border-bottom: 2px solid #111;
    padding-bottom: 4px;
}

.contact-links {
    border-top: 1px solid #ccc;
}

.contact-links a {
    display: flex;
    justify-content: space-between;

    padding: 17px 0;

    border-bottom: 1px solid #ccc;

    font-size: 14px;

    transition: padding 0.25s ease;
}

.contact-links a:hover {
    padding-left: 8px;
    padding-right: 8px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: #050505;
    color: #666;

    padding: 25px 0;

    font-size: 11px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}


/* =====================================================
   RESPONSIVE — TABLET
===================================================== */

@media (max-width: 1000px) {

    :root {
        --section-padding: 90px;
    }

    .nav-links {
        gap: 18px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}


/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */

@media (max-width: 700px) {

    :root {
        --section-padding: 75px;
    }

    .container {
        width: min(100% - 32px, 1180px);
    }


    /* NAV */

    .nav-container {
        min-height: 68px;
    }

    .nav-links {
        display: none;
    }

    .nav-button {
        padding: 8px 13px;
    }


    /* HERO */

    .hero {
        padding-top: 68px;
    }

    .hero-container {
        min-height: auto;

        padding-top: 75px;
        padding-bottom: 75px;

        gap: 55px;
    }

    .hero-content h1 {
        font-size: clamp(55px, 17vw, 85px);
        letter-spacing: -4px;
    }

    .hero-content h2 {
        font-size: 21px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-socials {
        justify-content: center;
    }

    .code-content {
        padding: 20px 15px;
    }

    .code-content pre {
        font-size: 10px;
        line-height: 1.8;
    }


    /* STATS */

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

    .stat {
        padding: 30px 15px;
        border-bottom: 1px solid #202020;
    }

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

    .stat h3 {
        font-size: 27px;
    }

    .stat p {
        font-size: 9px;
    }


    /* HEADINGS */

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        letter-spacing: -1.5px;
    }


    /* ABOUT */

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

    .highlight-card {
        min-height: auto;
    }


    /* EXPERIENCE */

    .timeline-item {
        padding-left: 35px;
    }

    .experience-card {
        padding: 24px;
    }

    .experience-top {
        flex-direction: column;
        gap: 15px;
    }

    .experience-tag {
        width: fit-content;
    }

    .experience-card h3 {
        font-size: 20px;
    }


    /* PROJECTS */

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

    .project-card {
        min-height: auto;
        padding: 28px;
    }

    .project-card h3 {
        font-size: 25px;
    }


    /* SKILLS */

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

    .skill-group {
        padding: 25px;
    }


    /* ACHIEVEMENTS */

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


    /* CONTACT */

    .contact-section {
        padding: 80px 0;
    }

    .contact-content h2 {
        letter-spacing: -2px;
    }

    .contact-email {
        font-size: 15px;
        word-break: break-word;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

}


/* =====================================================
   VERY SMALL DEVICES
===================================================== */

@media (max-width: 380px) {

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-socials {
        gap: 15px;
    }

    .project-card,
    .experience-card,
    .highlight-card {
        padding: 22px;
    }

}
