/* ==========================================================================
   Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    color-scheme: light;
    --bg: #f7f7f5;
    --bg-alt: #eeedeb;
    --surface: #ffffff;
    --surface-soft: #f0f0ee;
    --ink: #0d0d0d;
    --ink-soft: #1a1a1a;
    --muted: #5c6166;
    --muted-light: #8b8f94;
    --line: #e2e2de;
    --line-strong: #cdcdc8;
    --accent: #14b8a6;
    --accent-strong: #0d9488;
    --accent-soft: rgba(20, 184, 166, 0.12);
    --accent-glow: rgba(20, 184, 166, 0.20);
    --danger: #b91c1c;
    --shadow-sm: 0 2px 8px rgba(13, 13, 13, 0.04);
    --shadow: 0 12px 48px rgba(13, 13, 13, 0.07);
    --shadow-lg: 0 24px 72px rgba(13, 13, 13, 0.10);
    --radius: 18px;
    --radius-sm: 10px;
    --radius-pill: 30px;
    --header-height: 76px;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width: 1200px;
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body.nav-open {
    overflow: hidden;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #001913;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    font-family: var(--mono);
    font-size: 13px;
    z-index: 2000;
}

.skip-link:focus {
    left: 0;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(247, 247, 245, 0.86);
    border-bottom: 1px solid rgba(226, 226, 222, 0.75);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    transition: background 200ms ease, border-color 200ms ease;
}

header.scrolled {
    background: rgba(247, 247, 245, 0.95);
    border-bottom-color: rgba(205, 205, 200, 0.85);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    max-width: 1400px;
    margin: 0 auto;
    height: var(--header-height);
}

/* Terminal-style logo */
.logo {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--ink);
    transition: color 180ms ease;
}

.logo span {
    color: var(--accent-strong);
}

.menu {
    display: flex;
    justify-content: center;
    flex: 1;
}

.menu > li {
    display: inline-block;
    position: relative;
    color: var(--ink);
}

.menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 58px;
    height: var(--header-height);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    transition: color 200ms ease, opacity 200ms ease;
}

.menu > li > a::before {
    content: "";
    position: absolute;
    width: calc(100% - 24px);
    height: 3px;
    bottom: 8px;
    left: 12px;
    border-radius: 3px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 220ms ease;
}

.menu > li:hover > a,
.menu > li:focus-within > a,
.menu > li > a:focus-visible {
    color: var(--ink);
}

.menu > li:hover > a::before,
.menu > li:focus-within > a::before,
.menu > li > a:focus-visible::before {
    transform: scaleX(1);
}

/* Submenu / dropdown */
.submenu {
    overflow: hidden;
    position: absolute;
    left: -40px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    height: 0;
    padding: 0;
    transition: height 280ms ease, padding 280ms ease;
}

.menu > li:hover .submenu,
.menu > li:focus-within .submenu {
    height: auto;
    padding: 10px;
}

.submenu a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    border-radius: var(--radius-sm);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 220ms ease 60ms, transform 220ms ease 60ms, background 180ms ease, color 180ms ease;
}

.menu > li:hover .submenu a,
.menu > li:focus-within .submenu a {
    opacity: 1;
    transform: translateY(0);
}

.submenu a:hover,
.submenu a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* Nav toggle (mobile) */
.nav-toggle,
.hamburger {
    display: none;
}

.menu-overlay {
    display: none;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 28px 40px;
    scroll-margin-top: var(--header-height);
}

.eyebrow {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-strong);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.85;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

/* ==========================================================================
   Hero / About Section
   ========================================================================== */
#hakkinda {
    padding-top: 60px;
}

.card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 44px 44px 44px 210px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card img {
    position: absolute;
    left: -90px;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    width: 240px;
    z-index: 2;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow:
        0 24px 48px rgba(13, 13, 13, 0.15),
        0 0 0 1px rgba(13, 13, 13, 0.04),
        0 0 40px var(--accent-glow);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.4px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid rgba(20, 184, 166, 0.25);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.40); }
    70% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.card h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.card .role {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    max-width: 48ch;
    line-height: 1.7;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.socials a:hover,
.socials a:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Stats panel */
.glass-panel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    padding: 36px;
    border-radius: var(--radius);
    max-width: 700px;
    margin: 48px auto 0;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-family: var(--mono);
    color: var(--ink);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-item p {
    color: var(--muted);
    font-size: 13px;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
#yetenekler {
    background:
        linear-gradient(180deg, rgba(247, 247, 245, 0.75) 0%, rgba(238, 237, 235, 0.92) 100%),
        url('/assets/grad.png') center / cover no-repeat;
    background-attachment: fixed;
    max-width: 100%;
    padding-top: 100px;
    padding-bottom: 60px;
}

.icerikparallax {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.card-y {
    display: flex;
    flex-direction: column;
    width: 320px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.card-y:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.card-y img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    padding: 8px;
}

.card-y h3 {
    font-size: 18px;
    font-weight: 650;
    margin-bottom: 6px;
}

.card-y .tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent-strong);
    opacity: 0.85;
    margin-bottom: 12px;
}

.card-y p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.7;
    flex: 1;
}

.socials-y {
    display: flex;
    gap: 10px;
}

.socials-y a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.socials-y a:hover,
.socials-y a:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.project-card > img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: var(--surface-soft);
    padding: 30px;
}

.project-icon {
    height: 160px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    font-size: 44px;
    color: var(--accent-strong);
}

.project-body {
    padding: 28px;
}

.project-body h3 {
    font-size: 19px;
    font-weight: 650;
    margin-bottom: 10px;
}

.project-body p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.7;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tag-list li {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.2px;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-strong);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}

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

.field label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.field input,
.field textarea {
    background: var(--surface-soft);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    resize: vertical;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn-primary {
    align-self: flex-start;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 650;
    padding: 13px 28px;
    background: var(--ink);
    color: var(--surface);
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.form-status.is-error {
    color: var(--danger);
}

.form-status.is-success {
    color: var(--accent-strong);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--ink);
}

.contact-list i {
    width: 20px;
    color: var(--accent-strong);
}

.contact-list a:hover,
.contact-list a:focus-visible {
    color: var(--accent-strong);
}

.response-note {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted-light);
}

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.check-line input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.check-line a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

.check-line a:hover {
    color: var(--accent-strong);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-container {
    max-width: 100%;
    padding: 24px 6%;
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin-top: 60px;
}

.cta-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.cta-text h2 {
    font-size: 28px;
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-text p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    max-width: 52ch;
}

.main-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: var(--muted);
    font-size: 18px;
    transition: color 200ms ease, transform 200ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--accent-strong);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.8px;
    margin: 0 0 18px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: color 180ms ease;
}

.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
    color: var(--accent-strong);
}

.copyright {
    font-size: 12px;
    color: var(--muted-light);
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.copyright a {
    font-weight: 500;
    transition: color 180ms ease;
}

.copyright a:hover {
    color: var(--accent-strong);
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    width: min(480px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: cookieSlideIn 400ms ease;
}

@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.cookie-banner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-actions .btn-ghost {
    padding: 8px 16px;
    font-size: 13px;
}

.cookie-actions .btn-primary {
    font-size: 13px;
    padding: 10px 20px;
}

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty-state {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-content {
    width: min(840px, calc(100% - 48px));
    margin: 0 auto;
    padding: 80px 0 100px;
}

.legal-content h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.legal-content section {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.legal-content p {
    color: var(--muted);
    line-height: 1.75;
}

.legal-content a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--accent-strong);
}

.legal-updated {
    margin-top: 32px;
    color: var(--muted-light) !important;
    font-size: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        padding: 20px 5%;
    }

    .cta-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    nav {
        height: 64px;
        padding: 0 16px;
    }

    :root {
        --header-height: 64px;
    }

    body,
    #yetenekler {
        background-attachment: scroll;
    }

    #yetenekler {
        background-image:
            linear-gradient(180deg, rgba(247, 247, 245, 0.75) 0%, rgba(238, 237, 235, 0.92) 100%) !important;
    }

    /* Hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 10px;
        margin: -10px;
        cursor: pointer;
        z-index: 1100;
        border-radius: 10px;
        transition: background-color 200ms ease;
    }

    .hamburger:hover,
    .hamburger:focus-visible {
        background: var(--accent-soft);
    }

    .hamburger span {
        height: 2px;
        width: 100%;
        background: var(--ink);
        border-radius: 2px;
        transform-origin: center;
        transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    body:has(.nav-toggle:checked) {
        overflow: hidden;
    }

    /* Menu overlay */
    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(13, 13, 13, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 350ms ease, visibility 350ms ease;
        z-index: 1040;
    }

    .nav-toggle:checked ~ .menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile menu */
    .menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(300px, 82vw);
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        gap: 2px;
        padding: 90px 14px 32px;
        background: rgba(255, 255, 255, 0.97);
        border-left: 1px solid var(--line);
        box-shadow: -30px 0 60px rgba(13, 13, 13, 0.10);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        transform: translateX(100%);
        transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
    }

    .nav-toggle:checked ~ .menu {
        transform: translateX(0);
    }

    .menu > li {
        height: auto;
        width: 100%;
    }

    .menu > li + li {
        border-top: 1px solid var(--line);
        margin-top: 2px;
        padding-top: 2px;
    }

    .menu > li > a {
        height: auto;
        padding: 15px 16px;
        justify-content: flex-start;
        border-radius: var(--radius-sm);
        font-size: 16px;
        font-weight: 550;
        transition: background-color 200ms ease, color 200ms ease;
    }

    .menu > li > a::before {
        display: none;
    }

    .menu > li:hover > a,
    .menu > li > a:focus-visible {
        background: var(--accent-soft);
        color: var(--accent-strong);
    }

    .submenu {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: none;
        margin: 8px 0 12px;
        padding: 0 0 0 16px !important;
        border-left: 2px solid rgba(20, 184, 166, 0.25);
    }

    .submenu a {
        opacity: 1 !important;
        transform: none !important;
        font-size: 14px;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        color: var(--muted);
    }

    .submenu a:hover,
    .submenu a:focus-visible {
        background: var(--accent-soft);
        color: var(--accent-strong);
    }

    .card {
        flex-direction: column;
        text-align: center;
        padding: 32px 28px;
    }

    .card img {
        position: static;
        height: 180px;
        width: 150px;
        transform: none;
        margin-bottom: 8px;
        box-shadow: 0 20px 30px rgba(13, 13, 13, 0.15);
    }

    .card p {
        max-width: 100%;
    }

    .socials {
        justify-content: center;
    }

    section {
        padding: 70px 18px 20px;
    }

    .glass-panel {
        flex-direction: column;
        padding: 24px;
        gap: 18px;
    }

    .cookie-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 22px;
    }

    .card img {
        height: 150px;
        width: 120px;
    }

    .card h1 {
        font-size: 22px;
    }

    .glass-panel {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 18px;
        gap: 14px 10px;
    }

    .stat-item h3 {
        font-size: 26px;
    }

    .stat-item p {
        font-size: 12px;
    }

    .card-y {
        width: 100%;
        padding: 22px;
    }

    .project-body {
        padding: 20px;
    }

    .contact-form {
        padding: 22px;
    }

    .footer-container {
        padding: 20px 4%;
    }

    .cta-text h2 {
        font-size: 24px;
    }

    .main-footer {
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
