@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&family=Rubik+Mono+One&display=swap');

:root {
    --bg: #f6f7f9;
    --text: #0f0f0f;
    --muted: #4b5563;
    --accent: #ff7b00;
    --accent-soft: #ffe5c7;
    --border: #0f0f0f;
    --card: #ffffff;
    --shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
    --nav-blur: blur(12px);
}

body.dark-theme {
    --bg: #0f1115;
    --text: #f5f6f9;
    --muted: #a8b0c2;
    --accent: #ff9f40;
    --accent-soft: rgba(255, 159, 64, 0.12);
    --border: #f5f6f9;
    --card: #151821;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    font-family: "Rubik", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 12px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    backdrop-filter: var(--nav-blur);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: "Rubik Mono One", monospace;
    font-size: 22px;
    letter-spacing: 0.04em;
    position: relative;
    padding-right: 14px;
}

.logo::after {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    height: 28px;
    width: 2px;
    background: var(--border);
}

.nav_buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    position: relative;
    padding-right: 14px;
}

.nav_buttons::after {
    content: "";
    position: absolute;
    right: 0;
    top: 6px;
    height: 28px;
    width: 2px;
    background: var(--border);
}

.nav_buttons a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 6px 10px;
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav_buttons a:hover {
    transform: translateY(-1px);
    background: var(--accent-soft);
    color: var(--text);
}

.hamburger {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    width: 40px;
    height: 40px;
}

.hamburger span {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
    transform: translateX(-50%);
}

.hamburger span:nth-child(1) {
    top: 12px;
}

.hamburger span:nth-child(2) {
    top: 19px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}

.hamburger.active span:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

.theme-switch {
    display: flex;
    align-items: center;
    padding-left: 6px;
}

#theme-toggle {
    display: none;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background: color-mix(in srgb, var(--border) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 35%, transparent);
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.switch-label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--card);
    border: 1px solid color-mix(in srgb, var(--border) 25%, transparent);
    border-radius: 50%;
    transition: transform 0.25s ease, left 0.25s ease;
    box-shadow: var(--shadow);
}

#theme-toggle:checked + .switch-label {
    background: color-mix(in srgb, var(--accent) 45%, transparent);
}

#theme-toggle:checked + .switch-label::after {
    left: calc(100% - 23px);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 18px 20px;
    min-height: calc(100vh - 100px);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

.px p {
    margin: 0;
    font-family: "Rubik Mono One", monospace;
    font-size: clamp(24px, 3.5vw, 36px);
    text-align: left;
}

.pp p {
    margin: 0;
    font-family: "Rubik Mono One", monospace;
    font-size: clamp(32px, 5.5vw, 60px);
    text-align: left;
}

.lede {
    margin: 4px 0 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: #0f0f0f;
    box-shadow: var(--shadow);
}

.btn.ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.fill {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    border-radius: 14px;
}

.fill img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    max-width: 360px;
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--bg) 70%, rgba(0, 0, 0, 0.4));
    z-index: 999;
    backdrop-filter: blur(6px);
}

.overlay-content {
    position: relative;
    margin: 10vh auto;
    width: min(620px, 92vw);
    background: var(--card);
    color: var(--text);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.exit-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 800;
}

.exit-btn:hover {
    color: var(--accent);
}

.about-me h2 {
    margin: 6px 0 6px;
    font-size: 24px;
}

.about-me p {
    margin: 8px 0;
    color: var(--muted);
}

.contact-me {
    margin: 18px 0 6px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--accent-soft);
}

.contact-me h3 {
    margin: 0 0 6px;
}

.contact-me a {
    color: var(--text);
    font-weight: 700;
}

.contact-me a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav_buttons {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .nav_buttons.active {
        max-height: 200px;
        opacity: 1;
        padding: 16px 0;
    }

    .nav_buttons::after {
        display: none;
    }

    .nav_buttons a {
        padding: 14px 20px;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .logo::after {
        display: none;
    }

    .theme-switch {
        margin-left: auto;
    }

    .hero {
        padding: 32px 20px 24px;
        min-height: auto;
        gap: 28px;
    }

    .hero-copy {
        gap: 16px;
    }

    .eyebrow {
        font-size: 12px;
    }

    .lede {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-media {
        order: -1;
        padding: 12px;
    }

    .fill img {
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 10px 16px;
    }

    .hero {
        padding: 28px 18px 20px;
        gap: 24px;
    }

    .hero-copy {
        gap: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 8px;
    }

    .btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
    }

    .fill img {
        max-width: 240px;
    }

    .overlay-content {
        width: min(540px, 90vw);
        padding: 20px;
    }
}
