@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 400;
    src: url("https://monzim.com/cf-fonts/v/geist-mono/5.2.7/latin/wght/normal.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 500;
    src: url("https://monzim.com/cf-fonts/v/geist-mono/5.2.7/latin/wght/normal.woff2") format("woff2");
    font-display: swap;
}

:root {
    --bg: #090a0c;
    --bg-soft: #0f1116;
    --panel: #13161d;
    --panel-2: #191d26;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);
    --text: #f5f5f7;
    --text-soft: #bec3cd;
    --text-dim: #8991a0;
    --accent: #22c55e;
    --accent-2: #16a34a;
    --accent-bg: rgba(34, 197, 94, 0.1);
    --accent-glow: rgba(34, 197, 94, 0.35);
    --accent-pill-text: #87f3ab;
    --btn-primary-text: #041109;
    --nav-cta-text: #d8ffe5;
    --grid-dot: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(12, 12, 14, 0.72);
    --nav-top-glow: rgba(255, 255, 255, 0.09);
    --nav-link-hover: rgba(255, 255, 255, 0.07);
    --meta-bg: rgba(255, 255, 255, 0.03);
    --btn-ghost-hover: rgba(255, 255, 255, 0.04);
    --btn-ghost-border-hover: rgba(255, 255, 255, 0.3);
    --chip-border: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] {
    --bg: #f5f7fb;
    --bg-soft: #edf2f7;
    --panel: #ffffff;
    --panel-2: #f6f8fb;
    --line: rgba(15, 23, 42, 0.12);
    --line-2: rgba(15, 23, 42, 0.2);
    --text: #0f172a;
    --text-soft: #334155;
    --text-dim: #64748b;
    --accent: #16a34a;
    --accent-2: #15803d;
    --accent-bg: rgba(22, 163, 74, 0.1);
    --accent-glow: rgba(22, 163, 74, 0.22);
    --accent-pill-text: #166534;
    --btn-primary-text: #f7fff9;
    --nav-cta-text: #166534;
    --grid-dot: rgba(15, 23, 42, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.82);
    --nav-top-glow: rgba(15, 23, 42, 0.12);
    --nav-link-hover: rgba(15, 23, 42, 0.06);
    --meta-bg: rgba(15, 23, 42, 0.03);
    --btn-ghost-hover: rgba(15, 23, 42, 0.04);
    --btn-ghost-border-hover: rgba(15, 23, 42, 0.24);
    --chip-border: rgba(15, 23, 42, 0.12);
    --input-border: rgba(15, 23, 42, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
}

html.theme-switching body,
html.theme-switching .nav-shell,
html.theme-switching .theme-btn,
html.theme-switching .theme-btn-float,
html.theme-switching .nav-cta,
html.theme-switching .hero-meta span,
html.theme-switching .panel,
html.theme-switching .project-card,
html.theme-switching .timeline-item,
html.theme-switching .timeline-year,
html.theme-switching .contact-form,
html.theme-switching .contact-links a,
html.theme-switching .chip,
html.theme-switching .fgroup input,
html.theme-switching .fgroup textarea,
html.theme-switching footer {
    transition: background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-switching body::before,
html.theme-switching .orb-a,
html.theme-switching .orb-b {
    transition: background 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.16;
    pointer-events: none;
    z-index: -2;
}

.page-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: -1;
}

.orb-a {
    width: 420px;
    height: 420px;
    background: rgba(34, 197, 94, 0.12);
    top: -120px;
    right: -110px;
}

.orb-b {
    width: 380px;
    height: 380px;
    background: rgba(34, 197, 94, 0.08);
    left: -140px;
    bottom: 8%;
}

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

main {
    padding-top: 88px;
}

.section-inner {
    margin: 0 auto;
    max-width: 1080px;
    width: 100%;
}

.topbar {
    display: flex;
    justify-content: center;
    left: 0;
    padding: 0 18px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 18px;
    z-index: 60;
}

.nav-shell {
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    gap: 6px;
    height: 50px;
    max-width: calc(100vw - 36px);
    padding: 6px 6px 6px 16px;
    pointer-events: auto;
    position: relative;
}

.nav-shell::before {
    background: linear-gradient(180deg, var(--nav-top-glow), transparent 42%);
    border-radius: inherit;
    content: "";
    inset: 0;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
    position: absolute;
    animation: liquidBorder 6s ease-in-out infinite alternate;
}

@keyframes liquidBorder {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.nav-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(34, 197, 94, 0.06) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-shell:hover::after {
    opacity: 1;
}

.brand {
    align-items: center;
    border-right: 1px solid var(--line);
    color: var(--text);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    height: 24px;
    letter-spacing: -0.01em;
    margin-right: 4px;
    padding-right: 14px;
}

.brand-avatar {
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    display: block;
    height: 22px;
    overflow: hidden;
    width: 22px;
}

.brand-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.brand-name {
    text-transform: lowercase;
}

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

.nav-links a {
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.005em;
    padding: 7px 14px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--nav-link-hover);
    color: var(--text);
}

.theme-btn {
    align-items: center;
    background: var(--meta-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    height: 36px;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    width: 36px;
}

.theme-btn:hover {
    background: var(--nav-link-hover);
    border-color: var(--line-2);
    color: var(--text);
}

.theme-btn-float {
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(180%);
    border-color: var(--line);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
    height: 50px;
    pointer-events: auto;
    position: fixed;
    right: 18px;
    top: 18px;
    width: 50px;
    z-index: 65;
}

.nav-cta {
    align-items: center;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 999px;
    color: var(--nav-cta-text);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    letter-spacing: 0.07em;
    margin-left: 4px;
    padding: 0 16px;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: rgba(34, 197, 94, 0.24);
    box-shadow: 0 0 18px var(--accent-glow);
    transform: translateY(-1px);
}

.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 4px;
    height: 36px;
    justify-content: center;
    padding: 0 10px;
    pointer-events: auto;
}

.burger-btn span {
    background: var(--text-soft);
    border-radius: 2px;
    display: block;
    height: 2px;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    width: 18px;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.burger-btn:hover span {
    background: var(--text);
}

.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 70;
}

.mobile-drawer[aria-hidden="false"] {
    display: block;
}

.drawer-backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-drawer[aria-hidden="false"] .drawer-backdrop {
    opacity: 1;
}

.drawer-panel {
    background: var(--bg);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 320px;
    padding: 28px 24px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    width: 85vw;
}

.mobile-drawer[aria-hidden="false"] .drawer-panel {
    transform: translateX(0);
}

.drawer-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.drawer-eyebrow {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.drawer-close {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.drawer-close:hover {
    background: var(--nav-link-hover);
    border-color: var(--line-2);
    color: var(--text);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.drawer-links a {
    border-radius: var(--radius-md);
    color: var(--text-soft);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    padding: 12px 4px;
    transition: color 0.2s, background 0.2s;
}

.drawer-links a:hover,
.drawer-links a.active {
    color: var(--text);
    background: var(--nav-link-hover);
}

.drawer-footer {
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.drawer-cta {
    align-items: center;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: var(--radius-md);
    color: var(--nav-cta-text);
    display: flex;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s, box-shadow 0.2s;
}

.drawer-cta:hover {
    background: rgba(34, 197, 94, 0.24);
    box-shadow: 0 0 18px var(--accent-glow);
}

.drawer-social {
    display: flex;
    gap: 16px;
}

.drawer-social a {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.drawer-social a:hover {
    color: var(--accent);
}

body.drawer-open {
    overflow: hidden;
}

section {
    padding: 110px 30px;
}

.hero {
    min-height: calc(100vh - 88px);
    padding-top: 78px;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 70px;
    grid-template-columns: 1.2fr 0.9fr;
}

.eyebrow {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.3rem, 5.8vw, 4.9rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
    max-width: 780px;
    margin-bottom: 28px;
}

.hero-title span {
    color: var(--accent);
}

.hero-lead {
    color: var(--text-soft);
    font-size: clamp(1.03rem, 1.4vw, 1.18rem);
    letter-spacing: 0.01em;
    margin-bottom: 14px;
    max-width: 670px;
}
.hero-lead span {
    color: var(--accent);
}

.hero-desc {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 640px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.hero-meta span {
    background: var(--meta-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.09em;
    padding: 7px 13px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.btn {
    align-items: center;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    min-height: 42px;
    padding: 0 20px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    border: 1px solid transparent;
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background: var(--accent-2);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--text-soft);
}

.btn-ghost:hover {
    background: var(--btn-ghost-hover);
    border-color: var(--btn-ghost-border-hover);
    color: var(--text);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-links a {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.hero-links a:hover {
    color: var(--accent);
}

.hero-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%), var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-photo-wrap {
    border-bottom: 1px solid var(--line);
    height: 330px;
    overflow: hidden;
}

.hero-photo {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.hero-card-body {
    padding: 24px;
}

.hero-card-body .eyebrow {
    margin-bottom: 16px;
}

.hero-card-body ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.hero-card-body li {
    align-items: baseline;
    color: var(--text-soft);
    display: flex;
    font-size: 14px;
    gap: 8px;
}

.hero-card-body li span {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    min-width: 86px;
    text-transform: uppercase;
}

.section-head {
    margin-bottom: 42px;
    max-width: 760px;
}

.section-head .eyebrow {
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.06;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--text-dim);
    max-width: 620px;
}

#skills,
#contact {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.panel:hover {
    border-color: var(--line-2);
    transform: translateY(-2px);
}

.panel h3 {
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

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

.chip {
    align-items: center;
    background: var(--panel-2);
    border: 1px solid var(--chip-border);
    border-radius: 999px;
    color: var(--text-soft);
    display: inline-flex;
    font-size: 12px;
    gap: 8px;
    font-weight: 500;
    padding: 6px 12px;
}

.chip img {
    height: 16px;
    object-fit: contain;
    width: 16px;
}

[data-theme="dark"] .chip img[data-mono] {
    filter: invert(1) brightness(0.82);
}

[data-theme="light"] .chip img[data-mono] {
    filter: none;
}

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

.project-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: inherit;
    display: block;
    grid-column: span 6;
    padding: 28px;
    position: relative;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.project-card:nth-child(1) {
    grid-column: span 7;
}

.project-card:nth-child(2) {
    grid-column: span 5;
}

.project-card:nth-child(3),
.project-card:nth-child(4),
.project-card:nth-child(5) {
    grid-column: span 4;
}

.project-card::after {
    background: radial-gradient(circle at 85% 12%, rgba(34, 197, 94, 0.2), transparent 54%);
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.25s;
}

.project-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.33);
    transform: translateY(-3px);
}

.project-card:hover::after {
    opacity: 1;
}

.project-index {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.09em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.project-card h3 {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-soft);
    font-size: 0.96rem;
    margin-bottom: 18px;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.timeline-year {
    background: var(--accent-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    color: var(--accent-pill-text);
    display: inline-flex;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.09em;
    margin-bottom: 14px;
    padding: 6px 10px;
    text-transform: uppercase;
}

.timeline-item h3 {
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-soft);
    margin-bottom: 14px;
}

.contact-grid {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1.1fr;
}

.contact-copy h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.04;
    margin: 14px 0 16px;
}

.contact-copy p {
    color: var(--text-dim);
    margin-bottom: 22px;
}

.contact-mail {
    color: var(--accent);
    display: inline-block;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: none;
}

.contact-links {
    display: grid;
    gap: 10px;
}

.contact-links a {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    transition: all 0.2s;
}

.contact-links a:hover {
    border-color: var(--line-2);
    color: var(--text);
    transform: translateX(3px);
}

.contact-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.form-msg {
    border-radius: var(--radius-md);
    display: none;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 11px 12px;
}

.form-msg.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.32);
    color: #7aeda1;
}

.form-msg.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #fca5a5;
}

.form-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.fgroup {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.fgroup label {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.fgroup input,
.fgroup textarea {
    background: var(--panel-2);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fgroup input:focus,
.fgroup textarea:focus {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.fgroup input::placeholder,
.fgroup textarea::placeholder {
    color: #7f8694;
}

.fgroup textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form .btn-primary {
    border-radius: 12px;
    justify-content: center;
    width: 100%;
}

.contact-form .btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

footer {
    border-top: 1px solid var(--line);
    padding: 30px;
}

.footer-inner {
    color: var(--text-dim);
    display: flex;
    font-family: var(--mono);
    font-size: 11px;
    justify-content: space-between;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-grid {
        gap: 44px;
        grid-template-columns: 1fr;
    }

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

    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(2),
    .project-card:nth-child(3),
    .project-card:nth-child(4),
    .project-card:nth-child(5) {
        grid-column: span 6;
    }

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

@media (max-width: 820px) {
    section {
        padding: 88px 22px;
    }

    .topbar {
        padding: 0 10px;
        top: 12px;
    }

    .nav-shell {
        max-width: calc(100vw - 72px);
        padding-left: 11px;
    }

    .theme-btn-float {
        height: 42px;
        right: 10px;
        top: 12px;
        width: 42px;
    }

    .brand {
        margin-right: 0;
        padding-right: 10px;
    }

    .brand-name {
        display: none;
    }

    .nav-cta {
        display: none;
    }

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

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

    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(2),
    .project-card:nth-child(3),
    .project-card:nth-child(4),
    .project-card:nth-child(5) {
        grid-column: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    main {
        padding-top: 74px;
    }

    .hero {
        min-height: auto;
        padding-top: 46px;
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .hero-photo-wrap {
        height: 250px;
    }

    .theme-btn-float {
        height: 40px;
        right: 8px;
        width: 40px;
    }

    .nav-links {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .chip {
        font-size: 11px;
    }
}
