:root {
    --bg: #080b13;
    --bg-soft: #0d1220;
    --surface: rgba(17, 23, 38, .78);
    --surface-solid: #111726;
    --surface-hover: #171f31;
    --text: #f4f7fb;
    --muted: #9ba6b8;
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .18);
    --accent: #7cf7ce;
    --accent-2: #6aa9ff;
    --accent-dark: #08281f;
    --danger: #ff8b94;
    --success: #6ff0bd;
    --shadow: 0 28px 80px rgba(0, 0, 0, .35);
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 32px;
    --header-height: 82px;
    --shell: min(1180px, calc(100% - 40px));
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg: #f4f7fb;
    --bg-soft: #e9eef6;
    --surface: rgba(255, 255, 255, .80);
    --surface-solid: #ffffff;
    --surface-hover: #f5f8fc;
    --text: #111827;
    --muted: #5f6b7d;
    --line: rgba(17, 24, 39, .10);
    --line-strong: rgba(17, 24, 39, .18);
    --accent: #0cbf8c;
    --accent-2: #397eef;
    --accent-dark: #dff8ef;
    --shadow: 0 28px 80px rgba(31, 48, 80, .13);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(106, 169, 255, .10), transparent 30%),
        radial-gradient(circle at 88% 28%, rgba(124, 247, 206, .08), transparent 28%),
        var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    transition: background-color .25s ease, color .25s ease;
}
body.menu-open { overflow: hidden; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
::selection { background: var(--accent); color: #07120f; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #07120f;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.cursor-glow {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(124, 247, 206, .08);
    filter: blur(90px);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .3s ease;
}
@media (pointer: fine) { .cursor-glow.visible { opacity: 1; } }

.shell { width: var(--shell); margin-inline: auto; }
.section-pad { position: relative; padding: 120px 0; }
.section-kicker {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
}
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.section-heading-wide { display: flex; justify-content: space-between; align-items: end; margin-bottom: 52px; }
.section-heading h2,
.project-heading h2,
.contact-intro h2 {
    max-width: 820px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(35px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, height .25s ease;
}
.site-header.scrolled {
    border-color: var(--line);
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--surface-solid), var(--bg-soft));
    color: var(--accent);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.03em;
    box-shadow: inset 0 1px rgba(255,255,255,.07);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-family: "Manrope", sans-serif; font-size: 15px; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.desktop-nav a { position: relative; padding: 8px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
    display: inline-grid;
    min-width: 42px;
    height: 42px;
    padding: 0 11px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.icon-button:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-hover); }
.theme-toggle { flex: 0 0 auto; }
.theme-icon { display: inline-flex; align-items: center; justify-content: center; }
.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: inline-flex; }
.site-header.menu-active {
    border-color: var(--line);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
}
.language-switcher { position: relative; }
.language-button { display: flex; gap: 7px; }
.language-button > span { font-size: 16px; line-height: 1; }
.language-button strong { font-size: 11px; letter-spacing: .05em; }
.language-button svg { width: 14px; height: 14px; transition: transform .2s ease; }
.language-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.language-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.language-menu a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; color: var(--muted); font-size: 13px; }
.language-menu a:hover, .language-menu a.active { background: var(--surface-hover); color: var(--text); }
.language-menu small { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.mobile-menu-button { display: none; }
.mobile-menu-button .menu-open,
.mobile-menu-button .menu-close {
    width: 100%;
    height: 100%;
    place-items: center;
    line-height: 0;
}
.mobile-menu-button .menu-open { display: grid; }
.mobile-menu-button .menu-close { display: none; }
.mobile-menu-button .menu-open svg,
.mobile-menu-button .menu-close svg {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
}
.mobile-menu-button[aria-expanded="true"] .menu-open { display: none; }
.mobile-menu-button[aria-expanded="true"] .menu-close { display: grid; }
.mobile-nav {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}
.mobile-nav .shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px 0 calc(40px + env(safe-area-inset-bottom));
}
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-family: "Manrope", sans-serif;
    font-size: clamp(20px, 6vw, 26px);
    font-weight: 700;
}
.mobile-nav a span { color: var(--accent); font: 700 11px "DM Sans", sans-serif; letter-spacing: .1em; }
.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero { min-height: 100vh; padding-top: calc(var(--header-height) + 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 72px; }
.hero-content { position: relative; z-index: 2; }
.availability { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; }
.availability > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent); animation: pulse 2s infinite; }
.eyebrow { margin: 0 0 17px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(52px, 6.8vw, 96px); line-height: .97; letter-spacing: -.065em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--accent); text-shadow: 0 0 36px rgba(124,247,206,.10); }
.hero-text { max-width: 620px; margin: 32px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--accent); color: #07120f; box-shadow: 0 14px 32px rgba(55, 236, 182, .15); }
.button-primary:hover { box-shadow: 0 18px 40px rgba(55, 236, 182, .25); }
.button-secondary { border-color: var(--line-strong); background: var(--surface); }
.button-secondary:hover { background: var(--surface-hover); }
.hero-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-links a:hover { color: var(--text); }
.hero-links svg { width: 17px; height: 17px; }
.hero-visual { position: relative; min-width: 0; }
.profile-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 96%, transparent), color-mix(in srgb, var(--bg-soft) 88%, transparent)); box-shadow: var(--shadow); transform: rotate(2deg); }
.profile-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, rgba(124,247,206,.25), transparent 40%, rgba(106,169,255,.22)); filter: blur(1px); }
.profile-topline { display: flex; justify-content: space-between; padding: 2px 5px 14px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.profile-photo-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: radial-gradient(circle at 50% 25%, rgba(124,247,206,.18), transparent 38%), linear-gradient(145deg, #131b2a, #080c14); }
.profile-photo { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.88) contrast(1.05); }
.profile-ring { position: absolute; inset: 13% 7% auto; z-index: 1; aspect-ratio: 1; border: 1px solid rgba(124,247,206,.25); border-radius: 50%; box-shadow: 0 0 80px rgba(124,247,206,.13); }
.floating-code { position: absolute; z-index: 3; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(8,11,19,.72); color: var(--accent); font: 700 11px monospace; backdrop-filter: blur(8px); }
.code-one { top: 10%; left: 6%; }
.code-two { right: 6%; bottom: 9%; color: var(--accent-2); }
.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; }
.profile-meta div { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.profile-meta small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.profile-meta strong { display: block; font-size: 12px; }
.hero-badge { position: absolute; right: -30px; bottom: 16%; z-index: 4; display: grid; grid-template-columns: 38px 1fr; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.hero-badge > span { display: grid; grid-row: span 2; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--accent-dark); color: var(--accent); }
.hero-badge strong, .hero-badge small { margin-left: 10px; line-height: 1.3; }
.hero-badge strong { font-size: 12px; }
.hero-badge small { color: var(--muted); font-size: 9px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.hero-orb-one { top: 18%; right: -180px; width: 420px; height: 420px; border: 1px solid rgba(106,169,255,.2); }
.hero-orb-two { bottom: 10%; left: -140px; width: 300px; height: 300px; border: 1px solid rgba(124,247,206,.18); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 26px 34px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font: 800 clamp(28px, 4vw, 42px) "Manrope", sans-serif; letter-spacing: -.04em; }
.stat span { max-width: 160px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.about-section { border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.about-content > p { margin: 0 0 22px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 44px 0 34px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.about-facts > div { min-width: 0; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-facts span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.about-facts strong, .about-facts a { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.about-facts a:hover { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--text); font-weight: 700; }
.text-link svg { width: 18px; height: 18px; color: var(--accent); }

.skills-section { background: color-mix(in srgb, var(--bg-soft) 68%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skills-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.card-heading > span, .timeline-title > span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.card-heading h3, .timeline-title { margin: 0; font: 700 20px "Manrope", sans-serif; }
.skills-list { display: grid; gap: 22px; }
.skill-label { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.skill-label small { color: var(--muted); }
.skill-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.skill-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.skill-item.animate .skill-track span { width: var(--skill-level); }

.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.timeline-title { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.timeline-column { position: relative; }
.timeline-column::before { content: ""; position: absolute; top: 58px; bottom: 16px; left: 7px; width: 1px; background: var(--line); }
.timeline-card { position: relative; margin-left: 32px; padding: 0 0 40px 22px; }
.timeline-card:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; top: 5px; left: -31px; width: 14px; height: 14px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-card time { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.timeline-card h4 { margin: 8px 0 2px; font: 700 22px "Manrope", sans-serif; }
.timeline-card > strong { color: var(--muted); font-size: 13px; }
.timeline-card p { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.timeline-card .tag-list { margin-top: 18px; }
.tag-list span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 700; }

.services-section { background: color-mix(in srgb, var(--bg-soft) 64%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 280px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.service-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: var(--accent); filter: blur(100px); opacity: 0; transition: opacity .3s ease; }
.service-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); background: var(--surface-hover); }
.service-card:hover::after { opacity: .18; }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.service-top > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.service-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: var(--accent); }
.service-card h3 { margin: 56px 0 14px; font: 700 22px "Manrope", sans-serif; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }

.projects-section { overflow: hidden; }
.project-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.project-filters { display: inline-flex; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.project-filters button { padding: 9px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.project-filters button.active { background: var(--text); color: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .28s ease, opacity .28s ease, border-color .28s ease; }
.project-card:hover { transform: translateY(-7px); border-color: var(--line-strong); }
.project-card.hidden { display: none; }
.project-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #12192a, #0a0e17); }
.project-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,11,19,.52), transparent 55%); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.project-card:hover .project-image img { transform: scale(1.04); }
.project-index { position: absolute; right: 18px; bottom: 15px; z-index: 2; color: white; font: 800 12px "Manrope", sans-serif; letter-spacing: .1em; }
.project-body { padding: 26px; }
.project-category { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-body h3 { margin: 8px 0 10px; font: 700 24px "Manrope", sans-serif; }
.project-body p { min-height: 48px; margin: 0; color: var(--muted); font-size: 14px; }
.project-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-bottom > a, .project-lock { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--accent); }
.project-bottom > a:hover { background: var(--accent); color: #07120f; }
.project-lock { color: var(--muted); opacity: .55; }

.contact-section { background: color-mix(in srgb, var(--bg-soft) 70%, transparent); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-intro > p:not(.section-kicker) { max-width: 540px; margin: 28px 0 36px; color: var(--muted); font-size: 17px; }
.contact-email { display: inline-flex; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.contact-email > svg { width: 24px; height: 24px; color: var(--accent); }
.contact-email span { display: flex; flex-direction: column; }
.contact-email small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.contact-email strong { font-size: 13px; }
.contact-socials { display: flex; gap: 8px; margin-top: 18px; }
.contact-socials a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.contact-socials a:hover { border-color: var(--line-strong); color: var(--accent); transform: translateY(-2px); }
.contact-form { display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label:not(.consent) { display: grid; gap: 7px; }
.contact-form label > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: color-mix(in srgb, var(--bg) 65%, transparent); color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input { height: 50px; padding: 0 14px; }
.contact-form textarea { min-height: 150px; padding: 13px 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.contact-form input:user-invalid, .contact-form textarea:user-invalid { border-color: var(--danger); }
.consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent input { width: 16px; height: 16px; min-width: 16px; margin: 4px 0 0; accent-color: var(--accent); }
.consent span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.submit-button { justify-self: start; border: 0; }
.submit-button:disabled { opacity: .6; cursor: wait; }
.form-alert { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.form-alert.success { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); color: var(--success); }
.form-alert.error { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); }
.form-alert svg { flex: 0 0 auto; margin-top: 2px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 120px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.footer-inner p span { display: block; margin-top: 4px; }
.back-to-top { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; }
.back-to-top:hover { background: var(--surface-hover); color: var(--accent); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-delay { transition-delay: .12s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 4%, transparent); } }

@media (max-width: 1080px) {
    :root { --shell: min(100% - 36px, 940px); }
    .desktop-nav { display: none; }
    .mobile-menu-button { display: inline-grid; }
    .hero-grid { gap: 42px; }
    .hero-badge { right: -10px; }
    .section-grid, .section-heading { gap: 46px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { gap: 46px; }
}

@media (max-width: 820px) {
    :root { --header-height: 72px; }
    .section-pad { padding: 90px 0; }
    .brand-copy small { display: none; }
    .hero { min-height: auto; padding-top: calc(var(--header-height) + 62px); }
    .hero-grid, .section-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .availability, .hero-actions, .hero-links { justify-content: center; }
    .hero-text { margin-inline: auto; }
    .hero-visual { width: min(540px, 88%); margin: 18px auto 0; }
    .profile-card { transform: none; }
    .stats-row { margin-top: 72px; }
    .stat { grid-template-columns: 1fr; gap: 6px; padding: 22px; text-align: center; }
    .stat span { margin-inline: auto; }
    .section-heading, .section-heading-wide, .project-heading { display: block; }
    .section-heading h2 { margin-top: 0; }
    .skills-grid, .timeline-grid, .projects-grid { grid-template-columns: 1fr; }
    .skills-grid, .timeline-grid { gap: 24px; }
    .project-filters { margin-top: 26px; }
    .contact-intro { text-align: center; }
    .contact-intro > p:not(.section-kicker) { margin-inline: auto; }
    .contact-socials { justify-content: center; }
}

@media (max-width: 600px) {
    :root { --shell: calc(100% - 28px); }
    .section-pad { padding: 76px 0; }
    .header-inner { gap: 10px; }
    .brand { gap: 8px; }
    .brand-mark { width: 40px; height: 40px; }
    .brand-copy strong { font-size: 13px; }
    .header-actions { gap: 5px; }
    .theme-toggle, .mobile-menu-button {
        display: inline-grid;
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
    }
    .language-button { min-width: 54px; }
    .language-button > span { display: none; }
    .language-menu { position: fixed; top: 66px; right: 14px; left: 14px; width: auto; }
    .hero h1 { font-size: clamp(44px, 14vw, 66px); }
    .hero-text { font-size: 16px; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .button { width: 100%; }
    .hero-links { gap: 16px; }
    .hero-links span { display: none; }
    .hero-links a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; }
    .hero-visual { width: 100%; }
    .hero-badge { right: 8px; bottom: 12%; }
    .profile-meta { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .stat + .stat { border-top: 1px solid var(--line); border-left: 0; }
    .about-facts { grid-template-columns: 1fr; }
    .skills-card, .contact-form { padding: 24px 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 240px; }
    .service-card h3 { margin-top: 40px; }
    .project-filters { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
    .project-filters button { padding-inline: 7px; font-size: 11px; }
    .project-body { padding: 22px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-email { max-width: 100%; }
    .contact-email strong { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
    .footer-inner { flex-direction: column; padding: 32px 0; }
    .footer-inner .brand-copy small { display: block; }
}

@media (max-width: 390px) {
    .brand-copy { display: none; }
    .hero-badge { position: static; width: max-content; max-width: 100%; margin: 14px auto 0; }
    .project-filters { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   V2 — DEVELOPER EXPERIENCE
   ========================================================= */
:root {
    --accent-3: #ad72ff;
    --code-blue: #76b7ff;
    --code-purple: #c18cff;
    --code-yellow: #ffd479;
}
body { position: relative; isolation: isolate; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(106,169,255,.035), transparent 38%),
        radial-gradient(circle at 50% -12%, rgba(124,247,206,.10), transparent 36%);
}
.code-background { position: fixed; inset: 0; z-index: -4; width: 100%; height: 100%; opacity: .58; pointer-events: none; }
.tech-grid-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(124,247,206,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(106,169,255,.10) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
    animation: gridDrift 22s linear infinite;
}
.aurora { position: fixed; z-index: -3; width: 38vw; height: 38vw; border-radius: 50%; filter: blur(95px); opacity: .11; pointer-events: none; }
.aurora-one { left: -14vw; top: 24vh; background: var(--accent-2); animation: auroraFloat 18s ease-in-out infinite alternate; }
.aurora-two { right: -16vw; top: 55vh; background: var(--accent-3); animation: auroraFloat 23s ease-in-out infinite alternate-reverse; }
@keyframes gridDrift { to { background-position: 72px 72px; } }
@keyframes auroraFloat { to { transform: translate3d(8vw, -7vh, 0) scale(1.12); } }

.site-header { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 86%, transparent), color-mix(in srgb, var(--bg) 58%, transparent)); }
.site-header.scrolled { box-shadow: 0 12px 44px rgba(0,0,0,.18); }
.brand-mark { position: relative; overflow: hidden; background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #06110f; box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 18%, transparent); }
.brand-mark::after { content: ""; position: absolute; inset: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: rotate(20deg) translateX(-80%); animation: brandShine 4.8s ease-in-out infinite; }
@keyframes brandShine { 45%,100% { transform: rotate(20deg) translateX(90%); } }

.hero { overflow: clip; }
.hero::before { content: "01 / HOME"; position: absolute; left: max(18px, calc((100vw - 1180px) / 2 - 80px)); top: 48%; color: color-mix(in srgb, var(--muted) 34%, transparent); font: 700 10px/1 "Manrope", sans-serif; letter-spacing: .18em; writing-mode: vertical-rl; }
.hero h1 { text-shadow: 0 20px 70px rgba(0,0,0,.20); }
.hero h1 em { position: relative; display: inline-block; color: transparent; background: linear-gradient(90deg, var(--accent), #7bb8ff 46%, #b987ff); background-clip: text; -webkit-background-clip: text; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .07em; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); transform-origin: left; animation: codeUnderline 3.6s ease-in-out infinite; }
@keyframes codeUnderline { 0%,100% { transform: scaleX(.28); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
.availability { backdrop-filter: blur(14px); box-shadow: inset 0 0 24px rgba(124,247,206,.025); }

.hero-visual { min-height: 590px; }
.developer-stage { position: relative; width: min(610px, 100%); min-height: 560px; margin-left: auto; perspective: 1200px; transform-style: preserve-3d; }
.code-studio { position: absolute; inset: 32px 22px 56px 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 25px; background: rgba(8, 12, 23, .86); box-shadow: 0 40px 100px rgba(0,0,0,.42), 0 0 70px rgba(106,169,255,.08); backdrop-filter: blur(28px); transform: rotateY(-4deg) rotateX(2deg); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.developer-stage:hover .code-studio { transform: rotateY(-1deg) rotateX(0deg) translateY(-5px); }
.studio-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 47px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff7485; }
.window-dots i:nth-child(2) { background: var(--code-yellow); }
.window-dots i:nth-child(3) { background: var(--accent); }
.studio-bar > span { color: #aab5c7; font: 600 10px/1 "Manrope", sans-serif; }
.studio-bar > small { justify-self: end; color: var(--accent); font: 800 8px/1 "Manrope", sans-serif; letter-spacing: .12em; }
.studio-tabs { display: flex; align-items: end; height: 38px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.10); }
.studio-tabs span { display: grid; height: 100%; place-items: center; padding: 0 17px; border-right: 1px solid rgba(255,255,255,.06); color: #69758a; font: 600 9px/1 "Manrope", sans-serif; }
.studio-tabs span.active { position: relative; color: #dbe6f4; background: rgba(255,255,255,.025); }
.studio-tabs span.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.code-editor { display: grid; grid-template-columns: 42px 1fr; min-height: 338px; padding: 24px 20px 22px 0; background: linear-gradient(135deg, rgba(12,18,33,.92), rgba(7,11,21,.97)); }
.line-numbers { padding-right: 12px; border-right: 1px solid rgba(255,255,255,.05); color: #3f4a5e; font: 500 12px/1.75 "SFMono-Regular", Consolas, monospace; text-align: right; user-select: none; }
.code-editor pre { overflow: hidden; margin: 0; padding-left: 18px; }
.code-editor code { display: block; color: #d0d8e6; font: 500 clamp(11px, 1.1vw, 13px)/1.75 "SFMono-Regular", Consolas, monospace; white-space: pre; }
.code-editor code b { color: var(--code-purple); font-weight: 600; }
.code-editor code span { color: #ff8fb3; }
.code-editor code strong { color: var(--code-yellow); font-weight: 600; }
.code-editor code em { color: var(--code-blue); font-style: normal; }
.code-editor code q { color: var(--accent); quotes: none; }
.code-editor code[data-code-typing] { position: relative; min-height: 16.5em; }
.code-editor code[data-code-typing].typing-active::after,
.code-editor code[data-code-typing].typing-complete::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 1.08em;
    margin-left: 3px;
    vertical-align: -.15em;
    border-radius: 1px;
    background: var(--accent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 72%, transparent);
}
.code-editor code[data-code-typing].typing-active::after { animation: terminalBlink .72s steps(1) infinite; }
.code-editor code[data-code-typing].typing-complete::after { animation: terminalBlink 1s steps(1) infinite; }
.terminal-bar { display: flex; align-items: center; gap: 8px; min-height: 51px; padding: 0 17px; border-top: 1px solid rgba(255,255,255,.07); background: #060a13; font: 600 10px/1 "SFMono-Regular", Consolas, monospace; }
.terminal-bar > span { color: var(--accent); }
.terminal-bar > strong { color: #c6d0df; font-weight: 500; }
.terminal-bar > i { width: 7px; height: 14px; background: var(--accent); animation: terminalBlink .8s steps(1) infinite; }
@keyframes terminalBlink { 50% { opacity: 0; } }
.profile-node { position: absolute; z-index: 4; right: -6px; top: -4px; width: 142px; height: 142px; padding: 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 32px; background: rgba(16,23,39,.88); box-shadow: 0 24px 62px rgba(0,0,0,.38), 0 0 40px rgba(124,247,206,.08); backdrop-filter: blur(18px); transform: rotate(4deg); }
.profile-node img { width: 100%; height: 100%; border-radius: 25px; object-fit: cover; object-position: center top; }
.profile-node-ring { position: absolute; inset: -10px; border: 1px dashed rgba(124,247,206,.30); border-radius: 38px; animation: nodeSpin 16s linear infinite; }
.online-dot { position: absolute; right: 4px; bottom: 5px; width: 15px; height: 15px; border: 3px solid #101727; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
@keyframes nodeSpin { to { transform: rotate(360deg); } }
.orbit { position: absolute; z-index: 3; border: 1px dashed rgba(106,169,255,.20); border-radius: 50%; pointer-events: none; animation: orbitSpin 18s linear infinite; }
.orbit span { position: absolute; display: grid; width: 44px; height: 26px; place-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; background: rgba(12,18,32,.92); color: #c7d1df; font: 800 8px/1 "Manrope", sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.24); animation: orbitReverse 18s linear infinite; }
.orbit-a { width: 430px; height: 430px; left: 42px; top: 55px; }
.orbit-a span:nth-child(1) { left: -18px; top: 48%; }
.orbit-a span:nth-child(2) { right: 18px; top: 8px; }
.orbit-a span:nth-child(3) { right: -17px; bottom: 72px; }
.orbit-b { width: 515px; height: 515px; left: -12px; top: 12px; animation-duration: 25s; animation-direction: reverse; }
.orbit-b span { animation-duration: 25s; animation-direction: reverse; }
.orbit-b span:nth-child(1) { left: 58px; bottom: 6px; }
.orbit-b span:nth-child(2) { left: 16px; top: 78px; }
.orbit-b span:nth-child(3) { right: -10px; top: 54%; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitReverse { to { transform: rotate(-360deg); } }
.metric-card { position: absolute; z-index: 5; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(13,20,36,.90); box-shadow: 0 20px 50px rgba(0,0,0,.34); backdrop-filter: blur(18px); }
.metric-speed { left: -28px; bottom: 36px; width: 168px; padding: 15px; }
.metric-speed small, .metric-status small { color: #748198; font: 800 8px/1 "Manrope", sans-serif; letter-spacing: .12em; }
.metric-speed strong { display: block; margin: 8px 0 10px; color: var(--accent); font: 800 27px/1 "Manrope", sans-serif; }
.metric-speed strong span { color: #67758a; font-size: 10px; }
.metric-speed > div { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.metric-speed > div i { display: block; width: 98%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: metricLoad 2.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes metricLoad { from { width: 0; } }
.metric-status { right: 5px; bottom: 4px; display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 13px 15px; }
.metric-status > i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(124,247,206,.08); animation: pulse 1.5s infinite; }
.metric-status > span { display: flex; flex-direction: column; gap: 5px; }
.metric-status strong { font-size: 11px; }

.tech-marquee { position: relative; overflow: hidden; margin-top: 58px; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-track { display: flex; width: max-content; align-items: center; gap: 24px; padding: 15px 0; animation: techSlide 28s linear infinite; }
.tech-track span { color: var(--muted); font: 800 10px/1 "Manrope", sans-serif; letter-spacing: .13em; white-space: nowrap; }
.tech-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes techSlide { to { transform: translateX(-26%); } }

.service-card, .skills-card, .timeline-card, .project-card { position: relative; isolation: isolate; overflow: hidden; }
.service-card::before, .skills-card::before, .timeline-card::before, .project-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(440px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 42%); opacity: 0; transition: opacity .3s; }
.service-card:hover::before, .skills-card:hover::before, .timeline-card:hover::before, .project-card:hover::before { opacity: 1; }
.service-card { backdrop-filter: blur(16px); }
.service-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 26px 70px rgba(0,0,0,.22), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
.project-card { box-shadow: 0 18px 58px rgba(0,0,0,.15); backdrop-filter: blur(18px); }
.project-image::before { content: "VIEW / SOURCE"; position: absolute; z-index: 3; left: 18px; top: 18px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; background: rgba(7,11,19,.62); color: #fff; font: 800 8px/1 "Manrope", sans-serif; letter-spacing: .12em; backdrop-filter: blur(12px); transform: translateY(-8px); opacity: 0; transition: opacity .3s, transform .3s; }
.project-card:hover .project-image::before { opacity: 1; transform: translateY(0); }

.contact-section { position: relative; overflow: hidden; }
.contact-section::before { content: ""; position: absolute; left: -14vw; bottom: -20vw; width: 48vw; height: 48vw; border: 1px solid color-mix(in srgb, var(--accent-2) 16%, transparent); border-radius: 50%; box-shadow: 0 0 100px color-mix(in srgb, var(--accent-2) 6%, transparent); }
.contact-grid { grid-template-columns: .72fr 1.28fr; gap: 56px; }
.brief-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); box-shadow: var(--shadow), 0 0 80px color-mix(in srgb, var(--accent-2) 5%, transparent); backdrop-filter: blur(24px); }
.brief-panel-head { padding: 28px 30px 25px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 55%); }
.brief-panel-head > div:first-child > span { color: var(--accent); font: 800 9px/1 "Manrope", sans-serif; letter-spacing: .16em; }
.brief-panel-head h3 { margin: 10px 0 7px; font: 750 clamp(24px, 3vw, 34px)/1.16 "Manrope", sans-serif; letter-spacing: -.035em; }
.brief-panel-head p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; }
.brief-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 23px; }
.brief-steps span { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 10px; font-weight: 600; }
.brief-steps b { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.project-brief-form { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-form select { height: 50px; padding: 0 42px 0 14px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { background-color: color-mix(in srgb, var(--bg) 88%, transparent); }
.form-submit-row { display: flex; align-items: center; gap: 18px; }
.form-submit-row small { max-width: 330px; color: var(--muted); font-size: 9px; line-height: 1.55; }

@media (max-width: 1080px) {
    .hero-visual { min-height: 530px; }
    .developer-stage { min-height: 510px; }
    .code-studio { right: 8px; }
    .profile-node { right: 0; }
    .orbit-b { display: none; }
    .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 34px; }
}
@media (max-width: 820px) {
    .hero::before { display: none; }
    .hero-visual { min-height: 560px; }
    .developer-stage { margin-inline: auto; }
    .code-studio { inset: 42px 18px 64px; transform: none; }
    .developer-stage:hover .code-studio { transform: translateY(-3px); }
    .profile-node { right: 4px; top: 0; width: 118px; height: 118px; border-radius: 26px; }
    .profile-node img { border-radius: 20px; }
    .orbit-a { width: 390px; height: 390px; left: 50%; top: 78px; transform: translateX(-50%); animation: none; }
    .orbit-a span { animation: none; }
    .metric-speed { left: 2px; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .code-background { opacity: .34; }
    .tech-grid-bg { background-size: 48px 48px; }
    .hero-visual { min-height: 480px; }
    .developer-stage { min-height: 470px; }
    .code-studio { inset: 42px 0 58px; border-radius: 20px; }
    .studio-tabs span { padding-inline: 11px; }
    .code-editor { grid-template-columns: 34px 1fr; min-height: 295px; padding: 18px 10px 17px 0; }
    .line-numbers { font-size: 9px; }
    .code-editor pre { padding-left: 10px; }
    .code-editor code { font-size: clamp(8.3px, 2.55vw, 11px); line-height: 1.85; }
    .profile-node { width: 94px; height: 94px; padding: 6px; border-radius: 22px; }
    .profile-node img { border-radius: 16px; }
    .profile-node-ring { inset: -7px; border-radius: 27px; }
    .orbit { display: none; }
    .metric-speed { left: 4px; bottom: 2px; width: 145px; }
    .metric-status { right: 3px; bottom: 0; min-width: 166px; }
    .metric-status strong { font-size: 9px; }
    .tech-marquee { margin-top: 34px; }
    .brief-panel { border-radius: 22px; }
    .brief-panel-head { padding: 24px 20px 21px; }
    .brief-steps { grid-template-columns: 1fr; }
    .form-submit-row { display: grid; }
    .form-submit-row small { text-align: center; }
}
@media (max-width: 390px) {
    .hero-visual { min-height: 455px; }
    .developer-stage { min-height: 445px; }
    .profile-node { right: -2px; }
    .metric-speed { width: 132px; padding: 12px; }
    .metric-speed strong { font-size: 22px; }
    .metric-status { min-width: 151px; padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .code-background { display: none; }
    .tech-grid-bg, .aurora, .tech-track, .brand-mark::after, .profile-node-ring, .orbit, .terminal-bar > i { animation: none !important; }
}


/* =========================================================
   V3 — MASAÜSTÜ KATMAN / MOBİL UYUM DÜZELTMELERİ
   ========================================================= */
.kudu-verification-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    color: var(--text);
}
.kudu-verification-card > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
}
.kudu-verification-card > span svg { width: 19px; height: 19px; }
.kudu-verification-card div { display: flex; flex-direction: column; gap: 3px; }
.kudu-verification-card small { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.kudu-verification-card strong { font-size: 11px; }
.kudu-verification-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.site-footer a { color: inherit; }
.site-footer p a { color: var(--accent); font-weight: 700; }
.site-footer p a:hover { text-decoration: underline; }

/* Kod editörü, profil ve performans kartları artık birbirinin alanına girmez. */
@media (min-width: 821px) {
    .hero-visual { min-height: 640px; }
    .developer-stage { min-height: 610px; }
    .code-studio { inset: 54px 64px 118px 0; }
    .profile-node { z-index: 12; right: -2px; top: 0; }
    .metric-card { z-index: 11; }
    .metric-speed { left: 20px; bottom: 10px; }
    .metric-status { right: 12px; bottom: 10px; }
    .orbit-a { left: 24px; top: 70px; }
    .orbit-b { left: -30px; top: 30px; }
}

@media (min-width: 821px) and (max-width: 1080px) {
    .hero-visual { min-height: 610px; }
    .developer-stage { min-height: 585px; }
    .code-studio { inset: 52px 58px 112px 0; }
    .profile-node { right: 0; top: 2px; }
    .metric-speed { left: 12px; }
    .metric-status { right: 8px; }
}

@media (max-width: 820px) {
    .hero-visual { min-height: 620px; }
    .developer-stage { min-height: 600px; }
    .code-studio { inset: 58px 12px 126px; }
    .profile-node { z-index: 12; right: 4px; top: 0; }
    .metric-card { z-index: 11; }
    .metric-speed { left: 4px; bottom: 10px; }
    .metric-status { right: 4px; bottom: 10px; }
}

@media (max-width: 600px) {
    .hero-visual { min-height: 560px; }
    .developer-stage { min-height: 545px; }
    .code-studio { inset: 54px 0 120px; }
    .profile-node { top: 0; right: 0; }
    .metric-speed { bottom: 8px; }
    .metric-status { bottom: 8px; }
    .kudu-verification-card { width: 100%; }
}

@media (max-width: 390px) {
    .hero-visual { min-height: 540px; }
    .developer-stage { min-height: 525px; }
    .code-studio { bottom: 116px; }
}

/* Mobil tema ve menü kararlılığı */
html[data-theme="light"] .site-header.scrolled,
html[data-theme="light"] .site-header.menu-active,
html[data-theme="light"] .mobile-nav {
    box-shadow: 0 12px 34px rgba(31, 48, 80, .08);
}

@media (max-width: 380px) {
    .brand-copy { display: none; }
    .header-inner { gap: 8px; }
    .language-button { min-width: 48px; padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav { transition: none; }
}
