*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #f9fafc;
    --border: #e7e9ef;
    --text: #0f172a;
    --text-2: #1e293b;
    --muted: #667085;
    --muted-2: #98a2b3;
    --accent: #1d4ed8;
    --accent-soft: #eff6ff;
    --accent-line: #bfdbfe;
    --success: #0f9f6e;

    --font-head: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Inter', sans-serif;

    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 56px;
    --space-9: 72px;
    --space-10: 104px;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.03);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.03);

    --nav-h: 86px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 8% -8%, #eff6ff 0%, #ffffff 42%), var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f7fa;
}

::-webkit-scrollbar-thumb {
    background: #c6d1e8;
    border-radius: 999px;
}

.container {
    width: min(1280px, 100% - 56px);
    margin-inline: auto;
}

section {
    padding: var(--space-10) 0;
    scroll-margin-top: 12px;
}

.section-header,
.section-header-row {
    margin-bottom: var(--space-8);
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 2.9vw, 3.1rem);
    font-weight: 720;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 10px;
    max-width: 16ch;
}

.section-subtitle {
    font-size: 1.03rem;
    line-height: 1.78;
    color: var(--muted);
    max-width: 58ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #1e40af;
    box-shadow: 0 12px 22px rgba(29, 78, 216, 0.25);
}

.btn-outline {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: #c8d3e7;
    background: #f8faff;
}

.btn-ghost {
    background: var(--surface-soft);
    color: var(--text-2);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: #f1f4fa;
    border-color: #d6ddeb;
}

.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.18s; }
.d4 { transition-delay: 0.24s; }
.d5 { transition-delay: 0.3s; }

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
    transition: height 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.navbar.scrolled {
    height: 78px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    min-height: 54px;
}

.nav-logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.nav-logo-mark {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
}

.nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 520;
    transition: color 0.24s var(--ease), background-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.nav-links a:hover {
    color: var(--text);
    background: #f4f7fc;
}

.nav-links a.active {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.24);
}

.nav-hamburger {
    justify-self: end;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font-size: 1.16rem;
    cursor: pointer;
    transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.nav-hamburger:hover {
    border-color: #c4d2eb;
    background: #f7faff;
}

.hero {
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: var(--space-9);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(34px, 5vw, 88px);
    align-items: center;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.55rem, 5.2vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 760;
    margin-bottom: 24px;
    max-width: 12ch;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-title mark {
    background: transparent;
    padding: 0;
    color: inherit;
}

.hero-desc {
    max-width: 56ch;
    color: var(--muted);
    font-size: clamp(1.04rem, 1.4vw, 1.16rem);
    line-height: 1.82;
    margin-bottom: var(--space-6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-7);
}

.hero-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(198, 209, 232, 0.8), rgba(198, 209, 232, 0.16));
    margin-bottom: var(--space-5);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 2.1vw, 2rem);
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 730;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--muted);
    font-size: 0.86rem;
    letter-spacing: 0.01em;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid #d9e1ef;
    background: #ffffff;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.profile-link i {
    font-size: 1rem;
}

.profile-link:hover {
    border-color: #bfd2ef;
    background: #f8fbff;
    color: var(--accent);
    transform: translateY(-1px);
}

.hero-image-col {
    position: relative;
    isolation: isolate;
    perspective: 1100px;
    width: min(100%, 470px);
    justify-self: end;
}

.hero-image-col::before,
.hero-image-col::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero-image-col::before {
    width: 220px;
    height: 220px;
    top: -28px;
    right: -18px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.24) 0%, rgba(59, 130, 246, 0) 72%);
}

.hero-image-col::after {
    width: 170px;
    height: 170px;
    left: -30px;
    bottom: -24px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 75%);
}

.hero-image-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #cfdcf0;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.14), 0 4px 14px rgba(15, 23, 42, 0.08);
    background: linear-gradient(155deg, #f2f8ff 0%, #dbe8fc 100%);
    aspect-ratio: 4 / 5;
    transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease), border-color 0.42s var(--ease);
}

.hero-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(132deg, rgba(255, 255, 255, 0.34) 8%, rgba(255, 255, 255, 0) 45%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: saturate(1.04) contrast(1.04);
    transition: transform 0.7s var(--ease), filter 0.55s var(--ease);
}

.hero-image-col:hover .hero-image-frame {
    transform: translateY(-6px) rotateX(2.2deg) rotateY(-2.2deg);
    border-color: #bcd0ec;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.2), 0 6px 18px rgba(15, 23, 42, 0.1);
}

.hero-image-col:hover .hero-image-frame img {
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.06);
}

.hero-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e1e8f4;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    font-size: 0.79rem;
    font-weight: 620;
    color: var(--text-2);
    white-space: nowrap;
    animation: chipFloat 4.8s ease-in-out infinite;
    z-index: 3;
}

.hero-chip i {
    color: var(--accent);
    font-size: 0.95rem;
}

.hs-neural {
    top: 10%;
    left: -16px;
    animation-delay: 0s;
}

.hs-logic {
    right: -22px;
    top: 46%;
    animation-delay: 0.8s;
}

.hs-systems {
    left: 18px;
    bottom: 18px;
    animation-delay: 1.6s;
}

@keyframes chipFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.about,
.resume,
.contact {
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(30px, 4.2vw, 74px);
}

.about-img-col {
    position: relative;
    width: min(100%, 390px);
    isolation: isolate;
}

.about-img-col::before {
    content: "";
    position: absolute;
    width: 110%;
    height: 102%;
    left: -5%;
    top: 4%;
    border-radius: 30px;
    border: 1px dashed rgba(148, 163, 184, 0.42);
    z-index: -1;
    pointer-events: none;
}

.about-img {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    border: 1px solid #cedcf1;
    background: linear-gradient(148deg, #f3f9ff 0%, #d8e8ff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.about-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(176deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 42%);
    pointer-events: none;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: saturate(1.03) contrast(1.03);
    transition: transform 0.64s var(--ease), filter 0.5s var(--ease);
}

.about-img-col:hover .about-img {
    transform: translateY(-6px) rotate(-0.75deg);
    border-color: #bacce7;
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16), 0 6px 16px rgba(15, 23, 42, 0.08);
}

.about-img-col:hover .about-img img {
    transform: scale(1.045);
    filter: saturate(1.07) contrast(1.06);
}

.about-badge {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: radial-gradient(circle at 30% 25%, #4f83ff 0%, #2563eb 58%, #1e40af 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px rgba(29, 78, 216, 0.34);
}

.about-badge strong {
    font-family: var(--font-head);
    font-size: 1.66rem;
    line-height: 1;
}

.about-badge span {
    margin-top: 3px;
    font-size: 0.61rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

.about-body {
    color: var(--muted);
    margin-bottom: var(--space-6);
    max-width: 60ch;
}

.about-body p + p {
    margin-top: 14px;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: var(--space-6);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #ffffff;
}

.info-item .lbl {
    font-size: 0.69rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
    margin-bottom: 2px;
}

.info-item .val {
    color: var(--text-2);
    font-size: 0.94rem;
    font-weight: 500;
}

.val-open {
    color: var(--success) !important;
    font-weight: 600 !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: var(--space-7);
}

.skill-card,
.project-card,
.event-card,
.contact-card,
.contact-form {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.skill-card {
    border-radius: 18px;
    padding: 24px;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.skill-card:hover {
    border-color: #d4dfef;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.skill-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.22rem;
    margin-bottom: 14px;
}

.skill-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin-bottom: 7px;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    border-radius: 999px;
    border: 1px solid #dfe6f2;
    background: #f8faff;
    color: #334155;
    font-size: 0.73rem;
    font-weight: 550;
    padding: 4px 10px;
}

.skills-bars-box {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(26px, 4vw, 40px);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.sbb-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}

.bars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 44px;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bar-name {
    color: var(--text-2);
    font-size: 0.9rem;
}

.bar-pct {
    color: var(--accent);
    font-size: 0.87rem;
    font-weight: 620;
}

.bar-track {
    height: 7px;
    border-radius: 999px;
    background: #e8edf6;
    overflow: hidden;
}

.bar-fill {
    width: var(--w);
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.resume-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 62px);
}

.rc-title {
    font-family: var(--font-head);
    font-size: 1.27rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.rc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #edf3ff;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline {
    position: relative;
    padding-left: 22px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #c3d9fb 0%, rgba(195, 217, 251, 0.06) 100%);
}

.tl-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 30px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: #ffffff;
}

.tl-period {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 630;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tl-role {
    font-family: var(--font-head);
    font-size: 1.02rem;
    margin-bottom: 2px;
}

.tl-org {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 7px;
}

.tl-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.72;
}

.tabs-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: var(--space-7);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fbfcfe;
    padding: 6px;
}

.tab-btn {
    min-height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 620;
    cursor: pointer;
    transition: background-color 0.24s var(--ease), color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.tab-btn.active {
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.tab-btn:not(.active):hover {
    color: var(--text-2);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-card:hover {
    border-color: #d4dfef;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.project-thumb {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    font-size: clamp(2rem, 3vw, 2.8rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumb i {
    line-height: 1;
    color: #1f2937;
}

.pt-1 { background: linear-gradient(140deg, #ecf3ff 0%, #cfddfa 100%); }
.pt-2 { background: linear-gradient(140deg, #ecfdf6 0%, #bdf4df 100%); }
.pt-3 { background: linear-gradient(140deg, #fff6ea 0%, #ffd8ae 100%); }
.pt-4 { background: linear-gradient(140deg, #f6f2ff 0%, #e6dbff 100%); }
.pt-5 { background: linear-gradient(140deg, #eefdff 0%, #c3f0f9 100%); }
.pt-6 { background: linear-gradient(140deg, #fffce9 0%, #fff4b8 100%); }

.proj-links {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-card:hover .proj-links {
    opacity: 1;
    transform: translateY(0);
}

.proj-links a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dbe4f1;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.proj-links a:hover {
    color: var(--accent);
    border-color: #b9cff4;
    background: #ffffff;
}

.project-body {
    padding: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 11px;
}

.tech-tag {
    font-size: 0.69rem;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    padding: 3px 9px;
}

.project-title {
    font-family: var(--font-head);
    font-size: 1.07rem;
    letter-spacing: -0.01em;
    margin-bottom: 7px;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.72;
}

.events-list {
    display: grid;
    gap: 14px;
}

.event-card {
    border-radius: 16px;
    padding: 19px 21px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}

.event-card:hover {
    transform: translateY(-1px);
    border-color: #d8e2f1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ev-date {
    min-width: 60px;
    text-align: center;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    padding: 9px;
    flex-shrink: 0;
}

.ev-date .day {
    font-family: var(--font-head);
    color: var(--accent);
    font-size: 1.42rem;
    line-height: 1;
}

.ev-date .mon {
    color: #4f7fcb;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.ev-info {
    min-width: 0;
    flex: 1;
}

.ev-info h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.ev-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 0.81rem;
}

.ev-badge {
    flex-shrink: 0;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 620;
}

.b-up {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #b7ebd1;
}

.b-done {
    background: #f5f7fa;
    color: #667085;
    border: 1px solid #dde2ea;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 70px);
}

.contact-info > p {
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 46ch;
}

.contact-cards {
    display: grid;
    gap: 11px;
}

.contact-card {
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 74px;
    padding: 12px 14px;
    transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}

.contact-card:hover {
    border-color: #d6e1f2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.cc-icon {
    width: 41px;
    height: 41px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    flex-shrink: 0;
}

.cc-txt strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-2);
    margin-bottom: 2px;
}

.cc-txt span {
    color: var(--muted);
    font-size: 0.83rem;
}

.cc-arrow {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 0.84rem;
}

.contact-form {
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px);
}

.cf-title {
    font-family: var(--font-head);
    font-size: 1.36rem;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.cf-sub {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 630;
    color: var(--text-2);
    letter-spacing: 0.02em;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d9e1ef;
    background: #f9fbff;
    color: var(--text);
    font-size: 0.92rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}

.form-group input,
.form-group select {
    min-height: 44px;
    padding: 0 13px;
}

.form-group textarea {
    min-height: 124px;
    resize: vertical;
    padding: 11px 13px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #9bbbf3;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background: #ffffff;
}

.form-group select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%2398a2b3' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.btn-submit {
    width: 100%;
    margin-top: 6px;
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    font-weight: 760;
}

.footer-logo-mark {
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: var(--accent);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.77rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.22s var(--ease);
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-social a {
    width: 33px;
    height: 33px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: #c8d7f0;
    background: #f5f8ff;
}

.footer-copy {
    color: var(--muted-2);
    font-size: 0.78rem;
}

#btt {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), background-color 0.26s var(--ease);
}

#btt.visible {
    opacity: 1;
    transform: translateY(0);
}

#btt:hover {
    background: #1e40af;
}

@media (max-width: 1180px) {
    .container {
        width: min(1140px, 100% - 44px);
    }

    .nav-links a {
        padding-inline: 12px;
        font-size: 0.9rem;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid,
    .about-grid,
    .resume-cols,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-col {
        max-width: 520px;
        width: 100%;
        margin-inline: auto;
    }

    .about-img-col {
        margin-inline: auto;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 54px);
    }
}

@media (max-width: 860px) {
    :root {
        --nav-h: 78px;
    }

    .container {
        width: min(100%, 100% - 34px);
    }

    section {
        padding: 84px 0;
    }

    .section-header,
    .section-header-row {
        margin-bottom: var(--space-7);
    }

    .nav-inner {
        grid-template-columns: auto auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 14px 26px rgba(15, 23, 42, 0.11);
        padding: 10px;
        display: grid;
        gap: 6px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
        min-height: 42px;
        border-radius: 11px;
        padding: 0 12px;
    }

    .nav-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        max-width: 13ch;
        font-size: clamp(2.25rem, 9.2vw, 3.3rem);
    }

    .hero-actions {
        margin-bottom: var(--space-6);
    }

    .hero-chip {
        display: none;
    }

    .bars-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100%, 100% - 26px);
    }

    section {
        padding: 72px 0;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 38px);
    }

    .hero-image-col {
        max-width: 100%;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-wrap: wrap;
    }

    .ev-badge {
        margin-left: auto;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-col::before,
    .hero-image-col::after,
    .about-img-col::before {
        display: none;
    }

    .about-badge {
        right: 10px;
        bottom: 10px;
        width: 92px;
        height: 92px;
    }

    .footer-inner,
    .footer-right {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs-row {
        width: 100%;
        justify-content: space-between;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
