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

html {
    scroll-behavior: smooth;
}

body {
    background: #0d0d0f;
    color: #e8e6e0;
    font-family: 'Syne', sans-serif;
}

/* --- hero --- */
#hero {
    position: sticky;
    top: 0;
    min-height: 40vh;
    height: auto;
    padding: 48px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 1;
    gap: 48px;
}

/* --- main menu --- */
#hero .burger {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

#hero .burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #5a9e6f;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

#hero .burger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

#hero .burger.open span:nth-child(2) {
    opacity: 0;
}

#hero .burger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- main menu nav --- */
#hero .nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100vh;
    background: #111114;
    border-left: 0.5px solid #2a2a2e;
    z-index: 1;
    display: none;
    align-items: start;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 30px;
}

#hero .overlay-nav {
    display: inherit;
    flex-direction: column;
    gap: 32px;
}

#hero .overlay-link {
    font-family: 'DM Mono', monospace;
    font-size: 20px;
    color: #5a9e6f;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: transform 0.2s ease;
}

#hero .overlay-link:hover {
    transform: translateY(-5px);
}

#hero .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}

#hero .hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---- terminal ---- */
.terminal {
    width: 100%;
    max-width: 420px;
    background: #0a0a0c;
    border: 0.5px solid #2a2a2e;
    border-radius: 10px;
    overflow: hidden;
}

.terminal-bar {
    background: #5a9e6f;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 0.5px solid #2a2a2e;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.terminal-title {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #444;
    margin-left: 30%;
    margin-right: 40%;
}

.terminal-body {
    padding: 24px 20px;
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: #e8e6e0;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.prompt {
    color: #5a9e6f;
}

.cursor {
    color: #5a9e6f;
    animation: blink 1s step-end infinite;
}

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

#hero .tag {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #5a9e6f;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

#hero h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

#hero h1 span {
    color: #4a8f64;
}

#hero .desc {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: #888;
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 28px;
}

#hero nav {
    display: flex;
    gap: 24px;
}

#hero nav a {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #5a9e6f;
    text-decoration: none;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #2a5e3f;
    padding-bottom: 2px;
}

/* --- projects --- */
#projects {
    position: relative;
    z-index: 2;
    background: #111114;
    border-radius: 16px 16px 0 0;
    padding: 40px 48px;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.section-label {
    grid-column: 1/-1;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #444;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.project-card {
    background: #161619;
    border: 0.5px solid #222;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.4s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover {
    border-color: #3a6e50;
    transform: translateY(-9px);
}

.project-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-card p {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.show-more {
    display: none;
}

.stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stack span {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #555;
    border: 0.5px solid #2a2a2e;
    padding: 3px 10px;
    border-radius: 20px;
}

/* --- about --- */
#about {
    position: relative;
    z-index: 2;
    background: #0d0d0f;
    /* border-radius: 16px 16px 0 0; */
    padding: 40px 48px;
    /* box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.7); */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 32px;
}

#about h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

#about h2 span {
    color: #4a8f64;
}

.about-text p {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: #888;
    line-height: 1.9;
    max-width: 480px;
    margin-bottom: 16px;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 8px;
}

.skill-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-label {
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    color: #5a9e6f;
    letter-spacing: 0.12em;
}

.skill-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.skill-items span {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: #aaa;
    border: 0.5px solid #2a2a2e;
    border-radius: 20px;
    padding: 3px 10px;
}

#contact {
    position: relative;
    z-index: 2;
    background: #0d0d0f;
    padding: 0 48px;
    margin-bottom: 100px;
    /* box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.7); */
}

#contact h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

#contact h2 span {
    color: #4a8f64;
}

.contact-desc {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: #888;
    line-height: 1.9;
    max-width: 480px;
    margin-bottom: 32px;
}

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

.contact-btn {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: #8c4ec1;
    text-decoration: none;
    border: 0.5px solid #2a5e3f;
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.06em;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-btn:hover {
    background: #1a3d28;
    color: #7dcf9a;
}

.contact-btn.primary {
    /* background: #1a3d28; */
    color: #7dcf9a;
    border-color: #2a5e3f;
}

.contact-btn.primary:hover {
    background: #224d33;
}

@media (max-width: 768px) {

    /* styles in here only apply when screen is 768px wide or less */
    #hero {
        flex-direction: column;
        padding-top: 80px;
    }

    .hero-right {
        order: -1;
    }

    #projects {
        display: block;
    }

    .project-card:nth-child(n+6) {
        display: none;
    }

    .show-more {
        grid-column: 1/-1;
        display: block;
        width: 90%;
        margin: 12px auto 0;
        text-align: center;
        font-family: 'DM Mono', monospace;
        font-size: 12px;
        color: #5a9e6f;
        background: transparent;
        border: 0.5px solid #2a5e3f;
        padding: 6px;
        border-radius: 8px;
        cursor: pointer;
        letter-spacing: 0.1em;
    }

    .about-grid {
        display: block;
    }
}