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

/* ===== THEMES ===== */
:root,
[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-2: #111111;
    --bg-card: #141414;
    --bg-card-h: #1a1a1a;
    --border: rgba(255, 255, 255, 0.07);
    --border-h: rgba(255, 255, 255, 0.15);
    --text: #e8e2d4;
    --text-2: #6b6560;
    --text-3: #999490;
    --accent: #d4ff6a;
    --accent-2: #ff7f5c;
    --accent-rgb: 212, 255, 106;
    --nav-bg: rgba(10, 10, 10, 0.92);
    --modal-bg: #141414;
    --shadow: rgba(0, 0, 0, 0.7);
    --tag-bg: rgba(212, 255, 106, 0.07);
    --tag-color: #d4ff6a;
}

[data-theme="light"] {
    --bg: #f2efe8;
    --bg-2: #e8e4db;
    --bg-card: #faf8f4;
    --bg-card-h: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --border-h: rgba(0, 0, 0, 0.18);
    --text: #1a1814;
    --text-2: #7a7268;
    --text-3: #5a5248;
    --accent: #1a1814;
    --accent-2: #c44a2a;
    --accent-rgb: 26, 24, 20;
    --nav-bg: rgba(242, 239, 232, 0.94);
    --modal-bg: #faf8f4;
    --shadow: rgba(0, 0, 0, 0.08);
    --tag-bg: rgba(26, 24, 20, 0.06);
    --tag-color: #1a1814;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Syne', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.35s ease, color 0.35s ease;
    cursor: none;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ===== CURSOR ===== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
    will-change: transform;
}

.cursor-trail {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: left 0.12s ease, top 0.12s ease, width 0.2s, height 0.2s, opacity 0.2s;
    opacity: 0.5;
    will-change: transform;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
    width: 16px;
    height: 16px;
    background: var(--accent-2);
    mix-blend-mode: normal;
}

body:has(a:hover) .cursor-trail,
body:has(button:hover) .cursor-trail {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    border-color: var(--accent-2);
}

@media (pointer: coarse) {

    .cursor,
    .cursor-trail {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-2);
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.2s;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
    color: var(--text);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.1rem;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-btn:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.open span:nth-child(2) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
}

.mobile-drawer.open {
    max-height: 300px;
    padding: 24px 0;
}

.mobile-drawer ul {
    list-style: none;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-2);
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, padding-left 0.2s;
}

.drawer-link:hover {
    color: var(--accent);
    padding-left: 8px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-pad {
    padding: 120px 0;
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 72px;
}

.section-index {
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    animation: revealRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.25s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.55s;
}

.delay-5 {
    animation-delay: 0.7s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stagger-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 64px 64px 80px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 60px;
}

.hero-bg-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hbl {
    position: absolute;
    background: var(--border);
}

.hbl-1 {
    left: 33%;
    top: 0;
    width: 1px;
    height: 100%;
    opacity: 0.4;
}

.hbl-2 {
    left: 66%;
    top: 0;
    width: 1px;
    height: 100%;
    opacity: 0.2;
}

.hbl-3 {
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-2);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-name {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
    margin-bottom: 28px;
}

.name-line {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    display: block;
}

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

.hero-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-2);
    margin-bottom: 40px;
    min-height: 1.6em;
}

.role-prefix {
    color: var(--accent-2);
}

.typewriter::after {
    content: '|';
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.3);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-h);
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.cta-secondary:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-2);
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-h);
}

.hero-image-col {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-frame {
    position: relative;
    display: inline-block;
}

.profile-frame-border {
    position: absolute;
    inset: -10px;
    border: 1px solid var(--border-h);
    border-radius: 24px;
    pointer-events: none;
}

.profile-frame-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: var(--accent);
}

.profile-img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    filter: grayscale(15%);
    transition: filter 0.3s;
}

.profile-img:hover {
    filter: grayscale(0%);
}

.profile-tag {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: var(--bg-card);
    border: 1px solid var(--border-h);
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 8px 24px var(--shadow);
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 2s ease-in-out infinite;
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-2);
    opacity: 0.5;
    animation: revealUp 1s 1.2s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--text-2));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(0.6);
        opacity: 1;
    }
}

/* ===== ABOUT ===== */
.about-section {
    background: var(--bg);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 400;
}

.about-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 40px;
}

.edu-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.edu-card:hover {
    border-color: var(--border-h);
    background: var(--bg-card-h);
    transform: translateX(4px);
}

.edu-icon {
    font-size: 0.7rem;
    color: var(--accent);
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-h);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.edu-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.edu-card p {
    font-size: 0.8rem;
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
}

.interests-title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 400;
}

.interest-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.2s;
}

.interest-item:first-of-type {
    border-top: 1px solid var(--border);
}

.interest-item:hover {
    padding-left: 8px;
}

.i-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.interest-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
}

.interest-item p {
    font-size: 0.8rem;
    color: var(--text-2);
}

/* ===== SKILLS ===== */
.skills-section {
    background: var(--bg-2);
}

.skills-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.skill-group {
    padding: 40px;
    background: var(--bg-card);
    transition: background 0.2s;
    border: 1px solid transparent;
}

.skill-group:hover {
    background: var(--bg-card-h);
}

.skill-group-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-arrow {
    color: var(--accent);
    transition: transform 0.2s;
}

.skill-group:hover .skill-arrow {
    transform: translateX(4px);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 6px 14px;
    background: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.stag:hover {
    background: rgba(var(--accent-rgb), 0.15);
    transform: translateY(-2px);
}

/* ===== PROJECTS ===== */
.projects-section {
    background: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    transition: background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.project-card:first-child {
    border-radius: 16px 0 0 0;
}

.project-card:nth-child(2) {
    border-radius: 0 16px 0 0;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
    transform: translateY(-4px);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-2);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
    filter: grayscale(20%) brightness(0.9);
}

.project-card:hover .project-image {
    transform: scale(1.04);
    filter: grayscale(0%) brightness(1);
}

.project-img-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
}

.project-body {
    padding: 28px;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.project-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.badge-active {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.badge-live {
    background: rgba(255, 127, 92, 0.1);
    color: var(--accent-2);
    border: 1px solid rgba(255, 127, 92, 0.2);
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 20px;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.tech-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 3px 10px;
    border: 1px solid var(--border-h);
    border-radius: 4px;
    color: var(--text-3);
    background: var(--bg);
}

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

.pa-live {
    flex: 1;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.pa-live:hover {
    opacity: 0.88;
    transform: scale(1.02);
}

.pa-detail {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-h);
    color: var(--text-2);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 7px;
    text-align: center;
    background: none;
    cursor: none;
    font-family: 'Syne', sans-serif;
    transition: border-color 0.2s, color 0.2s;
}

.pa-detail:hover {
    border-color: var(--text-2);
    color: var(--text);
}

/* ===== EXPERIENCE ===== */
.exp-section {
    background: var(--bg-2);
}

.exp-timeline {
    position: relative;
    padding-left: 28px;
}

.exp-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.3;
}

.exp-item {
    position: relative;
    margin-bottom: 40px;
}

.exp-item:last-child {
    margin-bottom: 0;
}

.exp-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid var(--accent);
    transition: background 0.2s;
}

.exp-item:hover .exp-dot {
    background: var(--accent);
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.exp-card:hover {
    border-color: var(--border-h);
    background: var(--bg-card-h);
    transform: translateX(4px);
}

.exp-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.exp-role {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.exp-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-2);
    white-space: nowrap;
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
}

.exp-company {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.exp-location {
    font-size: 0.78rem;
    color: var(--text-2);
    margin-bottom: 14px;
}

.exp-desc {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.7;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.exp-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    padding: 3px 10px;
    background: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 4px;
}

/* ===== REVIEWS ===== */
.reviews-section {
    background: var(--bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    position: relative;
    transition: background 0.25s, border-color 0.25s, transform 0.3s;
}

.review-card:first-child {
    border-radius: 16px 0 0 0;
}

.review-card:nth-child(2) {
    border-radius: 0 16px 0 0;
}

.review-card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
    transform: translateY(-4px);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover::before {
    transform: scaleX(1);
}

.review-stars {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-quote-mark {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 8px;
}

.review-text {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 1px solid var(--border-h);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.author-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-2);
    margin-top: 2px;
}

/* ===== CONTACT ===== */
.contact-section {
    background: var(--bg-2);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 40px;
    font-weight: 400;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.contact-detail-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: padding-left 0.2s;
}

.contact-detail-row:first-child {
    border-top: 1px solid var(--border);
}

.contact-detail-row:hover {
    padding-left: 8px;
}

.cdr-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    width: 48px;
    flex-shrink: 0;
}

.cdr-value {
    font-size: 0.9rem;
    color: var(--text);
    flex: 1;
}

.cdr-arrow {
    font-size: 0.9rem;
    color: var(--text-2);
    transition: transform 0.2s;
}

.contact-detail-row:hover .cdr-arrow {
    transform: translate(3px, -3px);
    color: var(--accent);
}

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

.social-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 8px 16px;
    letter-spacing: 0.06em;
    border: 1px solid var(--border-h);
    border-radius: 6px;
    color: var(--text-2);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-chip:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.field-wrap {
    position: relative;
}

.field-wrap input,
.field-wrap textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 18px 10px;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 0.25s, background 0.25s;
    outline: none;
    resize: none;
}

.field-wrap input:focus,
.field-wrap textarea:focus {
    border-color: var(--accent);
    background: var(--bg-card-h);
}

.field-wrap label {
    position: absolute;
    left: 18px;
    top: 16px;
    font-size: 0.8rem;
    color: var(--text-2);
    pointer-events: none;
    transition: top 0.2s, font-size 0.2s, color 0.2s;
    font-family: 'JetBrains Mono', monospace;
}

.field-wrap input:focus+label,
.field-wrap input:not(:placeholder-shown)+label,
.field-wrap textarea:focus+label,
.field-wrap textarea:not(:placeholder-shown)+label {
    top: 6px;
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.06em;
}

.field-wrap input,
.field-wrap textarea {
    color-scheme: dark;
}

.field-wrap input::placeholder,
.field-wrap textarea::placeholder {
    color: transparent;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    color: var(--bg);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 16px 32px;
    border-radius: 10px;
    border: none;
    cursor: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    letter-spacing: 0.02em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy,
.footer-made {
    font-size: 0.75rem;
    color: var(--text-2);
    letter-spacing: 0.04em;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--modal-bg);
    border: 1px solid var(--border-h);
    border-radius: 20px;
    max-width: 780px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 48px;
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    font-size: 0.9rem;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
    background: var(--accent);
    color: var(--bg);
    transform: rotate(90deg);
}

.modal-project-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-project-subtitle {
    font-size: 0.9rem;
    color: var(--text-2);
    margin-bottom: 36px;
    line-height: 1.6;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-title::before {
    content: '//';
    color: var(--text-2);
}

.modal-body-text {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.8;
    white-space: pre-line;
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-feature-list li {
    font-size: 0.88rem;
    color: var(--text-2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.modal-feature-list li::before {
    content: '▹';
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.modal-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 100px 32px 80px;
        gap: 48px;
        text-align: center;
    }

    .hero-image-col {
        display: flex;
        justify-content: center;
        order: -1;
    }

    .profile-img {
        max-width: 180px;
        aspect-ratio: 1/1;
        border-radius: 50%;
        object-fit: cover;
        object-position: top;
    }

    .profile-frame-border {
        border-radius: 50%;
        inset: -8px;
    }

    .profile-frame-border::before {
        display: none;
    }

    .profile-tag {
        left: 50%;
        transform: translateX(-50%);
        bottom: -18px;
        white-space: nowrap;
    }

    .hero-label {
        display: inline-flex;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 96px 24px 72px;
    }

    .container {
        padding: 0 24px;
    }

    .section-pad {
        padding: 80px 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .modal-box {
        padding: 28px 24px;
    }

    .skills-layout {
        gap: 2px;
    }

    .modal-project-title {
        font-size: 1.5rem;
    }

    .exp-timeline {
        padding-left: 20px;
    }

    .exp-dot {
        left: -26px;
    }

    .review-card:first-child,
    .review-card:nth-child(2) {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .name-line {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-h);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-2);
}

/* Selection */
::selection {
    background: var(--accent);
    color: #0a0a0a;
}

/* ===== SCROLL-TO-TOP FAB (mobile only) ===== */
.fab-wrap {
    display: none;
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 2000;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
}

.fab-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.nav-item,
.drawer-link {
    text-transform: capitalize;
}

.fab-track {
    fill: none;
    stroke: var(--border-h);
    stroke-width: 2.5;
}

.fab-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 145;
    stroke-dashoffset: 145;
    transition: stroke-dashoffset 0.1s linear;
}

.fab-btn {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-h);
    color: var(--accent);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 20px var(--shadow);
}

.fab-btn.visible {
    opacity: 1;
    pointer-events: all;
}

.fab-btn:active {
    transform: scale(0.92);
}

@media (max-width: 768px) {
    .fab-wrap {
        display: flex;
    }
}

/* ===== SOCIAL CHIPS WITH IMAGES ===== */
.social-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.social-chip-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
    display: block;
}