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

* {
    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: #08090d;
    color: #f5f5f5;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

button {
    font: inherit;
}


/* ========================================
   HEADER
======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;

    background: rgba(8, 9, 13, 0.75);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 20px 24px;

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

.logo {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: #a7a7b0;
    font-size: 14px;
    font-weight: 500;

    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.menu-button {
    display: none;
    border: none;
    background: transparent;
    color: white;
    font-size: 24px;
    cursor: pointer;
}


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

.hero {
    position: relative;

    max-width: 1200px;
    min-height: calc(100vh - 80px);

    margin: auto;
    padding: 100px 24px;

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

    gap: 80px;
    overflow: hidden;
}

/* Background glow */

.hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    top: 80px;
    right: 80px;

    background: #5b5bf7;
    opacity: 0.12;

    filter: blur(120px);
    border-radius: 50%;

    pointer-events: none;
}


/* Hero content */

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

    position: relative;
    z-index: 2;
}

.hero-greeting {
    color: #8b8bff;

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

    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 86px);

    line-height: 1;
    letter-spacing: -4px;

    margin-bottom: 28px;

    background: linear-gradient(
        135deg,
        #ffffff 20%,
        #8b8bff 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

    color: #92929d;

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


/* ========================================
   BUTTONS
======================================== */

.hero-buttons {
    display: flex;
    gap: 14px;

    margin-top: 38px;
}

.btn {
    display: inline-flex;

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

    padding: 13px 22px;

    border-radius: 8px;

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

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

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

.primary-btn {
    background: #ffffff;
    color: #08090d;
}

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

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);

    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.secondary-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.07);
}


/* ========================================
   CODE VISUAL
======================================== */

.hero-decoration {
    position: relative;

    width: 350px;
    height: 350px;

    flex-shrink: 0;

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

.code-card {
    width: 300px;

    padding: 35px;

    border-radius: 18px;

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

    border: 1px solid rgba(255, 255, 255, 0.1);

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

    backdrop-filter: blur(20px);

    transform: rotate(3deg);

    transition: transform 0.4s ease;
}

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

.code-card span {
    display: block;

    font-family: "Courier New", monospace;

    font-size: 70px;

    color: #8b8bff;

    text-align: center;
}


/* ========================================
   GENERAL SECTIONS
======================================== */

.introduction,
.skills-preview,
.featured-project,
.home-cta {
    max-width: 1100px;

    margin: auto;

    padding: 110px 24px;
}

.section-label {
    color: #8b8bff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

section h2 {
    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.introduction > p:not(.section-label) {
    max-width: 700px;

    color: #92929d;

    font-size: 17px;
}


/* ========================================
   LINKS
======================================== */

.text-link {
    display: inline-block;

    margin-top: 25px;

    color: #ffffff;

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

    transition: transform 0.25s ease;
}

.text-link:hover {
    transform: translateX(5px);
}


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

.skills {
    display: grid;

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

    gap: 16px;

    margin-top: 45px;
}

.skill {
    padding: 28px;

    min-height: 160px;

    border-radius: 14px;

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

    border: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        transform 0.3s ease,
        border 0.3s ease,
        background 0.3s ease;
}

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

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

    border-color: rgba(139, 139, 255, 0.35);
}

.skill h3 {
    font-size: 18px;

    margin-bottom: 12px;
}

.skill p {
    color: #858590;

    font-size: 14px;
}


/* ========================================
   FEATURED PROJECT
======================================== */

.featured-project {
    position: relative;

    padding-top: 130px;
    padding-bottom: 130px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.featured-project p:not(.section-label) {
    max-width: 700px;

    color: #92929d;

    font-size: 17px;
}


/* ========================================
   CTA
======================================== */

.home-cta {
    text-align: center;

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

.home-cta p {
    color: #92929d;

    margin-bottom: 30px;
}


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

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);

    padding: 30px 24px;

    text-align: center;

    color: #6f6f79;

    font-size: 13px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .nav-links {
        gap: 18px;
    }

    .hero {
        gap: 40px;
    }

    .hero-decoration {
        width: 280px;
        height: 280px;
    }

    .code-card {
        width: 240px;
    }

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


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .navbar {
        padding: 18px 20px;
    }

    .nav-links {
        display: none;

        position: absolute;

        top: 70px;
        left: 20px;
        right: 20px;

        padding: 20px;

        flex-direction: column;

        gap: 18px;

        background: #111218;

        border: 1px solid rgba(255, 255, 255, 0.1);

        border-radius: 12px;
    }

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

    .menu-button {
        display: block;
    }


    /* Hero */

    .hero {
        min-height: auto;

        padding-top: 80px;
        padding-bottom: 90px;

        flex-direction: column;

        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

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

    .hero-description {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;

        flex-wrap: wrap;
    }

    .hero-decoration {
        width: 260px;
        height: 260px;
    }

    .code-card {
        width: 220px;
    }

    .code-card span {
        font-size: 55px;
    }


    /* Skills */

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


    /* Sections */

    .introduction,
    .skills-preview,
    .featured-project,
    .home-cta {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}