@font-face {
    font-family: "Gravitica";
    src: local("Gravitica"), local("Gravitica Regular");
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --bg: #0a1220;
    --bg-soft: #111d34;
    --surface: rgba(17, 29, 52, 0.72);
    --surface-strong: rgba(14, 23, 41, 0.92);
    --surface-lift: rgba(28, 43, 70, 0.82);
    --line: rgba(148, 163, 184, 0.26);
    --text: #e7eefc;
    --muted: #9fb2d0;
    --brand: #32d1ff;
    --brand-2: #18a8d8;
    --accent: #ff9f4a;
    --glow: rgba(50, 209, 255, 0.26);
    --container: 1040px;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
    --font-body: "Gravitica", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: "Gravitica", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-ui: "Gravitica", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-alt: "Gravitica", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --contact-stage-bg: rgba(13, 22, 40, 0.78);
    --contact-stage-border: rgba(255, 255, 255, 0.08);
    --contact-card-bg: rgba(17, 29, 52, 0.9);
    --contact-card-border: rgba(255, 255, 255, 0.1);
    --contact-card-label: #9fb2d0;
    --contact-card-value: #ecf4ff;
    --contact-icon-border: rgba(255, 255, 255, 0.18);
    --contact-spotlight: rgba(50, 209, 255, 0.2);
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f4f8ff;
    --bg-soft: #e8f0fb;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --surface-lift: rgba(255, 255, 255, 0.98);
    --line: rgba(19, 40, 80, 0.14);
    --text: #11213e;
    --muted: #506488;
    --brand: #0079a8;
    --brand-2: #055d8d;
    --accent: #cc6a0d;
    --glow: rgba(0, 121, 168, 0.15);
    --shadow: 0 14px 34px rgba(20, 42, 83, 0.14);
    --contact-stage-bg: rgba(255, 255, 255, 0.78);
    --contact-stage-border: rgba(19, 40, 80, 0.08);
    --contact-card-bg: rgba(255, 255, 255, 0.92);
    --contact-card-border: rgba(19, 40, 80, 0.08);
    --contact-card-label: #607494;
    --contact-card-value: #2657cc;
    --contact-icon-border: rgba(255, 255, 255, 0.24);
    --contact-spotlight: rgba(0, 121, 168, 0.16);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: radial-gradient(900px 440px at -10% -15%, rgba(50, 209, 255, 0.18), transparent 58%),
        radial-gradient(900px 420px at 115% 0%, rgba(255, 159, 74, 0.12), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 110px, 110px 100%;
    opacity: 0.8;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 92%);
}

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

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

button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    padding-top: 10px;
    transition: padding-top 0.25s ease;
}

.nav-shell {
    position: relative;
    overflow: visible;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.02)), var(--surface);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--shadow);
    padding: 0 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    opacity: 0.55;
    border-radius: inherit;
}

.site-header.scrolled {
    padding-top: 6px;
}

.site-header.scrolled .nav-shell {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    border-color: rgba(50, 209, 255, 0.34);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: clamp(0.96rem, 1.45vw, 1.08rem);
    font-weight: 500;
}

.brand-name {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.02rem, 1.38vw, 1.22rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    background: linear-gradient(90deg, #f8fbff 0%, #f8fbff 52%, #94dfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: none;
    text-shadow: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #f5f9ff;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

:root[data-theme="light"] .brand-name {
    background: linear-gradient(90deg, #111111 0%, #111111 52%, #0a6d98 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

:root[data-theme="light"] .brand-mark {
    color: #111111;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
}

.nav-link,
.drop-toggle {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 0.75rem;
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 10px;
    transition: 0.24s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.drop-toggle:hover,
.nav-dropdown.open .drop-toggle {
    color: var(--text);
    background: rgba(255, 255, 255, 0.14);
}

.nav-dropdown {
    position: relative;
    z-index: 5;
}

.drop-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.drop-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    transform-origin: 50% 50%;
    transition: transform 0.24s ease, opacity 0.24s ease;
    opacity: 0.88;
}

.drop-toggle:hover .drop-icon {
    opacity: 1;
}

.nav-dropdown.open .drop-toggle .drop-icon {
    transform: rotate(180deg);
}

.drop-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 176px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: 0.24s ease;
    z-index: 999;
    will-change: opacity, transform;
}

.nav-dropdown.open .drop-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.drop-menu a {
    display: block;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.drop-menu a:last-child {
    border-bottom: 0;
}

.drop-menu a:hover {
    color: var(--brand);
    background: rgba(50, 209, 255, 0.08);
}

.theme-btn,
.mobile-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-btn {
    position: relative;
    width: 66px;
    height: 36px;
    padding: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 18, 32, 0.94), rgba(27, 41, 68, 0.94));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.34s ease, background 0.34s ease;
}

.theme-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 18px rgba(0, 0, 0, 0.18);
}

.theme-btn.is-light {
    background: linear-gradient(135deg, rgba(229, 244, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.theme-switch {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.theme-switch__track {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.3) 0 1.3px, transparent 1.6px),
        radial-gradient(circle at 42% 68%, rgba(255, 255, 255, 0.22) 0 1.1px, transparent 1.4px),
        radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.24) 0 1.1px, transparent 1.4px),
        linear-gradient(135deg, #0f1728, #253a60);
    transition: background 0.42s ease, opacity 0.42s ease;
}

.theme-btn.is-light .theme-switch__track {
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.45) 0 1.2px, transparent 1.5px),
        radial-gradient(circle at 62% 62%, rgba(255, 255, 255, 0.36) 0 1px, transparent 1.3px),
        linear-gradient(135deg, #f9fdff, #dcefff 55%, #cfe8ff);
}

.theme-switch__thumb {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd86d, #ff9e38);
    box-shadow: 0 8px 16px rgba(255, 160, 54, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), background 0.42s ease, box-shadow 0.42s ease;
    will-change: transform;
}

.theme-switch__thumb::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.9) 0 25%, transparent 26%),
        radial-gradient(circle at 40% 58%, rgba(80, 46, 0, 0.8) 0 18%, transparent 19%),
        radial-gradient(circle at 58% 68%, rgba(80, 46, 0, 0.8) 0 14%, transparent 15%);
    opacity: 0.95;
}

.theme-btn.is-light .theme-switch__thumb {
    transform: translateX(24px) translateY(-50%);
    background: linear-gradient(135deg, #ffffff, #d9f0ff);
    box-shadow: 0 8px 16px rgba(46, 120, 194, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.theme-btn.is-light .theme-switch__thumb::before {
    inset: 6px;
    background: radial-gradient(circle at 45% 45%, rgba(255, 196, 64, 0.98) 0 42%, transparent 43%);
    box-shadow: 0 0 18px rgba(255, 204, 85, 0.28);
}

.theme-btn:active .theme-switch__thumb {
    transform: translateY(-50%) scale(0.95);
}

.theme-btn.is-light:active .theme-switch__thumb {
    transform: translateX(24px) translateY(-50%) scale(0.95);
}

.contact-btn {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(50, 209, 255, 0.4);
    background: linear-gradient(135deg, rgba(50, 209, 255, 0.22), rgba(24, 168, 216, 0.3));
    color: var(--text);
    font-size: 0.68rem;
    font-family: var(--font-ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.mobile-btn {
    display: none;
}

.mobile-nav {
    display: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 8px;
    padding: 8px;
    background: var(--surface-strong);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav-shell {
        background: var(--surface-strong);
    }

    .drop-menu {
        background: var(--surface-strong);
    }
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav a,
.mobile-nav summary {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
}

.mobile-nav a:hover,
.mobile-nav summary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

main {
    padding: 30px 0 62px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 2.8vw, 28px);
    margin-top: 14px;
}

.hero::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -80px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
    filter: blur(2px);
}

.profile-card,
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.profile-card {
    padding: 10px;
    position: sticky;
    top: 106px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    max-width: 278px;
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(50, 209, 255, 0.35);
}

.profile-photo {
    width: min(100%, 140px);
    max-height: 178px;
    margin: 4px auto 12px;
    border-radius: 10px;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.hero-copy {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--line) 66%, rgba(50, 209, 255, 0.18));
    background:
        radial-gradient(circle at top right, rgba(50, 209, 255, 0.16), transparent 22%),
        radial-gradient(circle at bottom left, rgba(255, 159, 74, 0.08), transparent 20%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-lift) 96%, white 4%), var(--surface));
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%);
    opacity: 0.7;
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-copy__head {
    max-width: 680px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.hero-highlight {
    display: grid;
    gap: 5px;
    padding: 12px 12px 13px;
    border-radius: 13px;
    border: 1px solid color-mix(in srgb, var(--line) 68%, rgba(50, 209, 255, 0.12));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.hero-highlight span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand);
    font-family: var(--font-ui);
}

.hero-highlight strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text);
}

.hero-highlight p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    font-family: var(--font-body);
}

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

.chip {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(50, 209, 255, 0.28);
    background: rgba(50, 209, 255, 0.08);
}

.social-row {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.social-row a {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    overflow: hidden;
    position: relative;
}

.social-row a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 52%);
    opacity: 0.8;
}

.social-row a svg,
.social-row a img {
    position: relative;
    z-index: 1;
}

.social-row a:nth-child(1) {
    background: linear-gradient(135deg, #0a66c2, #4da3ff);
}

.social-row a:nth-child(2) {
    background: linear-gradient(135deg, #20beff, #0f7bdc);
}

.social-row a:nth-child(3) {
    background: linear-gradient(135deg, #00d084, #00a95f);
}

.social-row a:nth-child(4) {
    background: linear-gradient(135deg, #ff7a59, #ff4d8d);
}

.icon-link svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.icon-link img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.social-row a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.22);
    filter: saturate(1.08) brightness(1.04);
}

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

.document-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 180px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, rgba(0, 0, 0, 0.18));
    background:
        radial-gradient(circle at top right, rgba(50, 209, 255, 0.16), transparent 28%),
        linear-gradient(180deg, var(--surface-lift), var(--surface));
}

.document-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.14rem;
    line-height: 1.05;
}

.document-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    border: 1px solid rgba(50, 209, 255, 0.25);
    background: rgba(50, 209, 255, 0.08);
}

.document-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

.document-card .btn {
    width: fit-content;
}

.contact-stage {
    position: relative;
    margin-top: 16px;
    padding: 18px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(50, 209, 255, 0.18), transparent 24%),
        radial-gradient(circle at 82% 28%, rgba(255, 159, 74, 0.16), transparent 20%),
        radial-gradient(circle at 44% 82%, rgba(255, 77, 141, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--contact-stage-border);
    background-color: var(--contact-stage-bg);
}

.contact-stage::before,
.contact-stage::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.contact-stage::before {
    width: 160px;
    height: 160px;
    right: -28px;
    top: -22px;
    background: var(--contact-spotlight);
    animation: floatGlow 7.2s ease-in-out infinite;
}

.contact-stage::after {
    width: 210px;
    height: 210px;
    left: -54px;
    bottom: -66px;
    background: rgba(255, 77, 141, 0.1);
    animation: floatGlow 8.8s ease-in-out infinite reverse;
}

.contact-spotlight {
    position: absolute;
    left: 50%;
    top: 36%;
    width: 170px;
    height: 170px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    pointer-events: none;
}

.contact-spotlight-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(50, 209, 255, 0.32);
    box-shadow: 0 0 0 18px rgba(50, 209, 255, 0.05), 0 0 58px rgba(50, 209, 255, 0.2);
    animation: pulseRing 3.6s ease-in-out infinite;
}

.contact-spotlight-inner {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(50, 209, 255, 0.24) 55%, rgba(10, 18, 32, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(50, 209, 255, 0.2);
}

.contact-info-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.contact-info-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--contact-card-bg);
    border: 1px solid var(--contact-card-border);
    box-shadow: 0 18px 28px rgba(17, 33, 62, 0.08);
    animation: liftCard 6.4s ease-in-out infinite;
}

.contact-location-card {
    animation-delay: 0.45s;
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #2667ff, #33c3ff);
    box-shadow: 0 12px 22px rgba(38, 103, 255, 0.22);
    border: 1px solid var(--contact-icon-border);
}

.contact-location-card .contact-info-icon {
    background: linear-gradient(135deg, #243146, #626c7d);
    box-shadow: 0 12px 22px rgba(36, 49, 70, 0.18);
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-card p {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--contact-card-label);
}

.contact-info-card a,
.contact-info-card span {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--contact-card-value);
}

.contact-location-card span {
    color: var(--contact-card-value);
}

.contact-social-block {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 33, 62, 0.1);
}

.contact-social-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-social-row-secondary {
    margin-top: 12px;
}

.contact-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(62px, 9vw, 84px);
    height: clamp(62px, 9vw, 84px);
    border-radius: 22px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.contact-link::before {
    content: "";
    position: absolute;
    inset: -35%;
    background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 42%, rgba(255,255,255,0.08));
    transform: translateX(-40%) rotate(12deg);
    transition: transform 0.35s ease;
}

.contact-link::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0.65;
}

.contact-link svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    color: currentColor;
    position: relative;
    z-index: 1;
}

.contact-link img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

.contact-link:hover {
    transform: translateY(-6px) scale(1.04) rotate(-1deg);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28);
    filter: saturate(1.15) brightness(1.07);
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-2px);
    }

    .card:hover {
        transform: translateY(-3px);
    }

    .profile-card:hover {
        transform: translateY(-4px);
    }

    .tool-item:hover {
        transform: translateY(-2px);
    }

    .contact-list a:hover {
        transform: none;
    }
}

@media (hover: none) {
    .btn:hover,
    .card:hover,
    .profile-card:hover,
    .tool-item:hover,
    .contact-link:hover,
    .contact-link:hover::before,
    .link-btn:hover svg {
        transform: none;
        box-shadow: inherit;
        filter: none;
    }
}

.contact-link:hover::before {
    transform: translateX(26%) rotate(12deg);
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.82; }
}

@keyframes liftCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.contact-email { background: linear-gradient(135deg, #ff7a59, #ff4d8d); }
.contact-linkedin { background: linear-gradient(135deg, #0a66c2, #4da3ff); }
.contact-kaggle { background: linear-gradient(135deg, #20beff, #0f7bdc); }
.contact-hackerrank { background: linear-gradient(135deg, #00d084, #00a95f); }
.contact-telegram { background: linear-gradient(135deg, #29a9ea, #1a76d2); }
.contact-facebook { background: linear-gradient(135deg, #1877f2, #3956ff); }

.spin-a { animation: spinLiftA 6s ease-in-out infinite; }
.spin-b { animation: spinLiftB 6.4s ease-in-out infinite; }
.spin-c { animation: spinLiftC 6.8s ease-in-out infinite; }
.spin-d { animation: spinLiftD 6.2s ease-in-out infinite; }
.spin-e { animation: spinLiftE 6.6s ease-in-out infinite; }
.spin-f { animation: spinLiftF 7s ease-in-out infinite; }

@keyframes spinLiftA { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-5px) rotate(-2deg)} }
@keyframes spinLiftB { 0%,100%{transform:translateY(8px) rotate(0deg)} 50%{transform:translateY(2px) rotate(2deg)} }
@keyframes spinLiftC { 0%,100%{transform:translateY(-2px) rotate(0deg)} 50%{transform:translateY(-8px) rotate(-3deg)} }
@keyframes spinLiftD { 0%,100%{transform:translateY(6px) rotate(0deg)} 50%{transform:translateY(0) rotate(2deg)} }
@keyframes spinLiftE { 0%,100%{transform:translateY(-4px) rotate(0deg)} 50%{transform:translateY(-10px) rotate(-2deg)} }
@keyframes spinLiftF { 0%,100%{transform:translateY(4px) rotate(0deg)} 50%{transform:translateY(-1px) rotate(3deg)} }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--brand);
    border: 1px solid rgba(50, 209, 255, 0.28);
    background: rgba(50, 209, 255, 0.08);
    border-radius: 999px;
    padding: 6px 10px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin: 0;
    color: var(--text);
}

h1 {
    font-size: clamp(1.6rem, 3.8vw, 2.9rem);
    line-height: 1.08;
    margin-top: 14px;
}

.hero-subtitle {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 720px;
    line-height: 1.8;
    font-family: var(--font-body);
}

.typing {
    color: var(--accent);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    border: 1px solid transparent;
    font-family: var(--font-ui);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #0b1422;
    background: linear-gradient(135deg, var(--brand), #7de5ff);
    box-shadow: 0 12px 28px rgba(50, 209, 255, 0.28);
}

.btn-secondary {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 16px 36px rgba(50, 209, 255, 0.34);
}

.btn-secondary:hover {
    border-color: rgba(50, 209, 255, 0.45);
    background: rgba(50, 209, 255, 0.1);
}

.section {
    margin-top: 30px;
}

.section-title {
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 74px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), transparent);
}

.grid {
    display: grid;
    gap: 12px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
    padding: 16px;
    background: linear-gradient(180deg, var(--surface-lift), var(--surface));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(50, 209, 255, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.skill-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.skill-head img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    flex: 0 0 auto;
}

.skill-list {
    margin-top: 12px;
}

.skill-head div {
    min-width: 0;
}

.skill-head p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
    font-family: var(--font-body);
}

.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), transparent);
    opacity: 0.9;
}

.skill-card-powerbi::before { background: linear-gradient(90deg, #f2c94c, #ff9f43); }
.skill-card-excel::before { background: linear-gradient(90deg, #2faa54, #49c16d); }
.skill-card-python::before { background: linear-gradient(90deg, #2d7dd2, #ffd24a); }
.skill-card-r::before { background: linear-gradient(90deg, #4a67b1, #88a7ff); }

.skill-card h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skill-card h3::after {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), transparent);
    opacity: 0.9;
}

.skill-card .project-tag {
    margin-top: 0;
    margin-bottom: 0;
}

.card p,
li,
.meta {
    color: var(--muted);
    line-height: 1.7;
    font-family: var(--font-body);
}

ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.project-tag {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 0.64rem;
    margin: 6px 6px 0 0;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-ui);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tool-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 8px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tool-item:hover {
    transform: translateY(-2px);
    border-color: rgba(50, 209, 255, 0.42);
    background: rgba(50, 209, 255, 0.08);
}

.tool-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.tool-item h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.education-feed {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 6px 0 6px 48px;
}

.education-feed::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(50, 209, 255, 0.9), rgba(0, 0, 0, 0.2));
    background-size: 100% 220%;
    box-shadow: 0 0 0 1px rgba(50, 209, 255, 0.18), 0 0 18px rgba(50, 209, 255, 0.28);
    animation: timelineFlow 4.8s linear infinite;
}

@keyframes timelineFlow {
    0% {
        background-position: 0 0%;
    }

    100% {
        background-position: 0 100%;
    }
}

.education-item {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, rgba(0, 0, 0, 0.18));
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-lift) 94%, white 6%), var(--surface));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f7faff;
    border: 3px solid #111c2d;
    box-shadow: 0 0 0 4px rgba(50, 209, 255, 0.2);
    animation: timelinePulse 2.4s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(50, 209, 255, 0.18);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(50, 209, 255, 0.1);
    }
}

.education-thumb {
    width: 130px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.education-content h3 {
    margin-bottom: 3px;
    font-size: 1.12rem;
}

.education-degree {
    margin: 0;
    color: color-mix(in srgb, var(--text) 88%, white 12%);
    font-weight: 700;
    font-size: 0.93rem;
}

.education-meta {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-family: var(--font-body);
}

/* Clean contact layout override */
.contact-stage {
    margin-top: 14px;
    display: grid;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
}

.contact-stage::before,
.contact-stage::after,
.contact-spotlight,
.contact-spotlight-ring,
.contact-spotlight-inner {
    display: none;
}

.contact-info-grid {
    display: grid;
    gap: 12px;
}

.contact-info-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--contact-card-bg);
    border: 1px solid var(--contact-card-border);
    box-shadow: 0 14px 24px rgba(17, 33, 62, 0.08);
    animation: none;
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #2667ff, #33c3ff);
    box-shadow: 0 12px 22px rgba(38, 103, 255, 0.22);
    border: 1px solid var(--contact-icon-border);
}

.contact-location-card .contact-info-icon {
    background: linear-gradient(135deg, #243146, #626c7d);
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-card p {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--contact-card-label);
}

.contact-info-card a,
.contact-info-card span {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--contact-card-value);
}

.contact-social-block {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 33, 62, 0.1);
}

.contact-social-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-social-row-secondary {
    margin-top: 10px;
}

.contact-link {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.34s ease, filter 0.34s ease;
}

.education-meta strong {
    color: var(--text);
}

.education-year {
    margin: 0;
    justify-self: end;
    align-self: start;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 84%, white 16%);
}

.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.education-tags span {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 5px 9px;
    font-size: 0.73rem;
    font-family: var(--font-ui);
    color: color-mix(in srgb, var(--text) 84%, white 16%);
    background: rgba(255, 255, 255, 0.04);
}

.link-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-weight: 700;
}

.link-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.link-btn:hover {
    color: var(--accent);
}

.link-btn:hover svg {
    transform: translateX(2px);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}

.contact-list a {
    display: block;
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 9px 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-list a:hover {
    color: var(--text);
    border-color: rgba(50, 209, 255, 0.45);
    background: rgba(50, 209, 255, 0.08);
}

.input,
.textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    padding: 9px 10px;
    color: var(--text);
    font: inherit;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.input:focus,
.textarea:focus {
    outline: 2px solid rgba(50, 209, 255, 0.32);
    border-color: rgba(50, 209, 255, 0.4);
}

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

.contact-form {
    display: grid;
    gap: 11px;
}

.submit-btn {
    margin-top: 4px;
    border: 1px solid rgba(50, 209, 255, 0.42);
    border-radius: 9px;
    padding: 9px 10px;
    color: #0b1422;
    background: linear-gradient(135deg, var(--brand), #88e9ff);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(50, 209, 255, 0.3);
}

.site-footer {
    padding: 18px 0 24px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
    margin-top: 22px;
    font-family: var(--font-ui);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Project Page Styles */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    padding: 0;
    overflow: hidden;
}

.project-card__figure {
    position: relative;
    margin: 0;
    width: 380px;
    height: 280px;
    overflow: hidden;
}

.project-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__figure img {
    transform: scale(1.04);
}

.project-card__gallery-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(12px);
}

.project-card__gallery-btn:hover {
    transform: scale(1.08);
    background: rgba(0, 0, 0, 0.6);
}

.project-card__gallery-btn svg {
    width: 20px;
    height: 20px;
}

.project-card__content {
    padding: 20px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.project-card__content h3 {
    margin: 0;
    font-size: 1.28rem;
    color: var(--text);
}

.project-card__desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
    border: 1px solid rgba(50, 209, 255, 0.28);
    background: rgba(50, 209, 255, 0.08);
}

.project-card__links {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-ui);
}

.project-link svg {
    width: 14px;
    height: 14px;
}

.project-link.github {
    color: #fff;
    background: linear-gradient(135deg, #0a66c2, #4da3ff);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 16px rgba(10, 102, 194, 0.2);
}

.project-link.kaggle {
    color: #fff;
    background: linear-gradient(135deg, #20beff, #0f7bdc);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 16px rgba(32, 190, 255, 0.2);
}

.project-link:hover {
    transform: translateY(-2px);
}

.project-link.github:hover {
    box-shadow: 0 12px 24px rgba(10, 102, 194, 0.3);
}

.project-link.kaggle:hover {
    box-shadow: 0 12px 24px rgba(32, 190, 255, 0.3);
}

.full-width {
    width: 100%;
    margin-top: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    margin-bottom: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover {
    transform: translateX(-2px);
    color: var(--text);
}

.project-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.project-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.detail-stat {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.detail-stat .label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand);
    font-family: var(--font-ui);
}

.detail-stat strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text);
}

.project-detail-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 14px;
    margin-top: 20px;
}

.gallery-main {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 16/10;
    display: grid;
    place-items: center;
}

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

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

.gallery-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(50, 209, 255, 0.4);
}

.gallery-thumb.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(50, 209, 255, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.feature-card {
    padding: 18px;
}

.feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.02rem;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.architecture-block {
    padding: 20px;
    background: var(--surface-lift);
    border: 1px solid color-mix(in srgb, var(--line) 70%, rgba(50, 209, 255, 0.14));
}

.architecture-block pre {
    margin: 0;
    padding: 0;
    font-family: 'Monaco', 'Inconsolata', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text);
    overflow-x: auto;
    line-height: 1.6;
}

.project-tech {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.tech-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-lift), var(--surface));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    border-color: rgba(50, 209, 255, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.tech-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.02rem;
    color: var(--text);
}

.tech-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Phone performance mode: keep layout, remove costly paint/composite effects */
html.mobile-perf {
    scroll-behavior: auto;
}

html.mobile-perf body::before {
    display: none;
}

html.mobile-perf body {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

html.mobile-perf .site-header,
html.mobile-perf .site-header.scrolled {
    position: static;
    top: auto;
    padding-top: 8px;
    transition: none;
}

html.mobile-perf .nav-shell,
html.mobile-perf .site-header.scrolled .nav-shell {
    transform: none;
    transition: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

html.mobile-perf .reveal,
html.mobile-perf .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
}

html.mobile-perf .hero::after {
    display: none;
}

html.mobile-perf .profile-card,
html.mobile-perf .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
    background: var(--surface-strong);
}

html.mobile-perf .hero-copy,
html.mobile-perf .hero-highlight,
html.mobile-perf .document-card,
html.mobile-perf .contact-stage,
html.mobile-perf .feature-card,
html.mobile-perf .tech-card,
html.mobile-perf .project-card {
    background: var(--surface-strong);
}

html.mobile-perf .contact-link {
    box-shadow: none;
    filter: none;
}

html.mobile-perf .contact-stage::before,
html.mobile-perf .contact-stage::after,
html.mobile-perf .contact-spotlight,
html.mobile-perf .contact-spotlight-ring {
    display: none;
}

html.mobile-perf .contact-info-card,
html.mobile-perf .spin-a,
html.mobile-perf .spin-b,
html.mobile-perf .spin-c,
html.mobile-perf .spin-d,
html.mobile-perf .spin-e,
html.mobile-perf .spin-f {
    animation: none;
}

html.mobile-perf .project-card__figure img,
html.mobile-perf .project-card__gallery-btn,
html.mobile-perf .contact-link,
html.mobile-perf .submit-btn,
html.mobile-perf .btn,
html.mobile-perf .theme-switch__thumb,
html.mobile-perf .theme-switch__track {
    transition: none;
}

html.mobile-perf .project-card__gallery-btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.mobile-perf .section,
html.mobile-perf .card,
html.mobile-perf .project-card,
html.mobile-perf .education-item,
html.mobile-perf .feature-card,
html.mobile-perf .tech-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 460px;
}

:focus-visible {
    outline: 2px solid rgba(50, 209, 255, 0.45);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .main-nav,
    .contact-btn {
        display: none;
    }

    .mobile-btn {
        display: inline-flex;
    }

    .hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .profile-card {
        position: relative;
        top: 0;
        max-width: 320px;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card__figure {
        width: 100%;
        height: 280px;
    }

    .project-detail-header {
        grid-template-columns: 1fr;
    }

    .project-detail-meta {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        grid-template-columns: 1fr 100px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-tech {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .tool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 18px;
    }

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

    .nav-shell {
        grid-template-columns: auto 1fr auto;
    }

    .theme-btn {
        justify-self: end;
        width: 66px;
        height: 36px;
        padding: 3px;
    }

    .brand-name {
        font-size: 0.96rem;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-photo {
        width: min(100%, 132px);
        max-height: 168px;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card__figure {
        width: 100%;
        height: 220px;
    }

    .project-card__content {
        padding: 16px;
    }

    .project-card__content h3 {
        font-size: 1.12rem;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-thumbnails {
        flex-direction: row;
        gap: 8px;
    }

    .gallery-thumb {
        width: 100%;
        max-width: 80px;
    }

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

    .project-meta {
        grid-template-columns: 1fr;
    }

    .gallery-item figcaption {
        font-size: 0.82rem;
        padding: 10px 12px;
    }

    .contact-stage {
        padding: 14px;
    }

    .contact-spotlight {
        left: 50%;
        top: 34%;
        width: 140px;
        height: 140px;
    }

    .contact-info-card {
        grid-template-columns: 46px 1fr;
    }

    .contact-info-icon {
        width: 46px;
        height: 46px;
    }

    .education-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
    }

    .education-feed {
        padding-left: 24px;
    }

    .education-feed::before {
        left: 6px;
    }

    .timeline-dot {
        left: -24px;
        top: 22px;
    }

    .education-thumb {
        width: 100%;
        height: 120px;
    }

    .education-year {
        justify-self: start;
    }

    .contact-link {
        width: 64px;
        height: 64px;
    }

}

@media (max-width: 520px) {
    .contact-info-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .contact-stage {
        padding: 12px;
    }

    .contact-social-row {
        justify-content: center;
    }

    .contact-spotlight {
        opacity: 0.35;
    }

    .contact-link {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .contact-link svg {
        width: 24px;
        height: 24px;
    }
}