/* =========================
   BASE STYLES
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0d10;
    color: #f2f2f2;
    line-height: 1.6;
}

h1,
h2,
h3 {
    line-height: 1.1;
}

p {
    color: #a7adb7;
}

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

section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 30px;
}

header.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 30px;
}


/* =========================
   NAVIGATION
========================= */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(11, 13, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #22262d;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
}

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

    .nav-links a {
        color: #a7adb7;
        font-size: 14px;
        transition: color 0.2s ease;
    }

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

.back-link {
    color: #a7adb7;
    font-size: 14px;
    transition: color 0.2s ease;
}

    .back-link:hover {
        color: #ffffff;
    }


/* =========================
   HERO & TYPOGRAPHY
========================= */

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    color: #7f8793;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(60px, 10vw, 110px);
    letter-spacing: -5px;
    margin-bottom: 20px;
}

.hero h2 {
    max-width: 700px;
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 400;
    color: #a7adb7;
    margin-bottom: 30px;
}

.hero-description {
    max-width: 600px;
    font-size: 18px;
    margin-bottom: 40px;
}

.section-label {
    color: #7f8793;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

section h2 {
    font-size: clamp(40px, 6vw, 70px);
    letter-spacing: -2px;
    margin-bottom: 40px;
}


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

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 13px 22px;
    background: #ffffff;
    color: #0b0d10;
    font-weight: 600;
    border: 1px solid #ffffff;
    transition: all 0.2s ease;
}

    .button:hover {
        background: transparent;
        color: #ffffff;
    }

    .button.secondary {
        background: transparent;
        color: #ffffff;
    }

        .button.secondary:hover {
            background: #ffffff;
            color: #0b0d10;
        }


/* =========================
   HOME SECTIONS
========================= */

#about,
#skills,
#experience,
#projects,
#resume,
#contact {
    border-top: 1px solid #22262d;
}

    #about p:not(.section-label),
    #resume > p:not(.section-label),
    #contact > p:not(.section-label) {
        max-width: 750px;
        font-size: 19px;
        margin-bottom: 20px;
    }

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .skills-list span {
        padding: 10px 16px;
        border: 1px solid #303640;
        color: #c5cad2;
        font-size: 14px;
    }

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

.project-card {
    min-height: 380px;
    padding: 30px;
    border: 1px solid #292e36;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.project-number {
    color: #666d77;
    font-size: 13px;
    margin-bottom: 40px;
}

.project-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.project-card > p:not(.project-number) {
    font-size: 15px;
    margin-bottom: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 25px;
}

    .project-tags span {
        font-size: 12px;
        color: #858c97;
        border: 1px solid #303640;
        padding: 5px 9px;
    }

.project-link {
    font-weight: 600;
    font-size: 14px;
}

    .project-link:hover {
        text-decoration: underline;
    }

/* Experience */
.experience-item {
    border: 1px solid #292e36;
    padding: 30px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

    .experience-header h3 {
        font-size: 24px;
    }

.experience-date {
    color: #666d77;
    font-size: 14px;
}

.experience-company {
    margin: 8px 0 20px;
}

.experience-item ul {
    padding-left: 20px;
    color: #a7adb7;
}

    .experience-item li {
        margin-bottom: 10px;
    }

.contact-links {
    display: flex;
    gap: 30px;
}

    .contact-links a {
        border-bottom: 1px solid #ffffff;
        padding-bottom: 4px;
    }

        .contact-links a:hover {
            opacity: 0.6;
        }


/* =========================
   MEGA MAKER LAYOUTS
========================= */

/* Overview Section */
.project-info {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.project-description p {
    font-size: 18px;
    margin-bottom: 20px;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border: 1px solid #292e36;
    background: #0f1217;
}

.detail-title {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #666d77;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    color: #f2f2f2;
    font-size: 15px;
    font-weight: 500;
}

/* Design Section */
.design-image {
    margin-top: 40px;
}

    .design-image img {
        width: 100%;
        max-width: 1000px;
        height: auto;
        border: 1px solid #292e36;
        display: block;
    }

.caption {
    font-size: 14px;
    color: #666d77;
    margin-top: 10px;
}

/* Level Showcase */
.levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.level-card {
    border: 1px solid #292e36;
    background: #0f1217;
    display: flex;
    flex-direction: column;
}

.level-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-bottom: 1px solid #292e36;
}

.level-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.level-number {
    color: #666d77;
    font-size: 13px;
    margin-bottom: 15px;
}

.level-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.level-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

.difficulty {
    margin-top: auto;
    align-self: flex-start;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 4px 10px;
    border: 1px solid #303640;
    color: #a7adb7;
    font-weight: 600;
}

/* Design Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.process-card {
    border: 1px solid #292e36;
    padding: 30px;
}

.process-number {
    color: #666d77;
    font-size: 13px;
    margin-bottom: 20px;
}

.process-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.process-card p {
    font-size: 15px;
}

/* Takeaways Section */
.takeaways p {
    max-width: 750px;
    font-size: 18px;
    margin-bottom: 20px;
}


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

footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px;
    border-top: 1px solid #22262d;
}

    footer p {
        font-size: 13px;
    }


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

@media (max-width: 800px) {
    nav {
        padding: 18px 20px;
    }

    /* Keep the links on mobile, wrapped under the logo */
    nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 18px;
    }

    section,
    header.hero {
        padding: 80px 20px;
    }

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

    .projects,
    .project-info,
    .levels,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
}
