/* ============================================================
   Yaswanth Kandikattu — Portfolio
   Premium editorial design system
   ============================================================ */

:root {
    --bg: #f7f6f3;
    --bg-soft: #efede8;
    --surface: #ffffff;
    --ink: #1c1b1a;
    --ink-soft: #5b5a57;
    --ink-faint: #8a8883;
    --line: #e3e1da;
    --line-strong: #d4d2ca;
    --accent: #2f6d5a;
    --accent-soft: #e7efe9;
    --accent-ink: #1f4f40;
    --shadow-sm: 0 1px 2px rgba(28, 27, 26, 0.04);
    --shadow-md: 0 12px 30px -12px rgba(28, 27, 26, 0.10);
    --shadow-lg: 0 40px 80px -30px rgba(28, 27, 26, 0.18);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141312;
        --bg-soft: #1b1a19;
        --surface: #1f1e1d;
        --ink: #f4f3f0;
        --ink-soft: #b5b3ad;
        --ink-faint: #817e78;
        --line: #2a2927;
        --line-strong: #353431;
        --accent: #5bb99b;
        --accent-soft: #1e2b27;
        --accent-ink: #8cd4b8;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
    }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

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

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

p { margin: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: 110px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.section-label span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    display: inline-block;
}

.section-title {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 56px;
    max-width: 14ch;
}

/* ---------- Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.is-scrolled {
    padding: 10px 0;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 var(--line);
}

.nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.12em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

.logo-yk {
    position: relative;
    display: inline-block;
    font-weight: 900;
    background: linear-gradient(
        110deg,
        var(--ink) 0%,
        var(--ink) 30%,
        #ffffff 50%,
        var(--accent) 55%,
        var(--ink) 70%,
        var(--ink) 100%
    );
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: yk-shine 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 2px rgba(47, 109, 90, 0.4));
}

@keyframes yk-shine {
    0% { background-position: 140% 0; }
    55%, 100% { background-position: -140% 0; }
}

@media (prefers-color-scheme: dark) {
    .logo-yk {
        background: linear-gradient(
            110deg,
            #f4f3f0 0%,
            #f4f3f0 30%,
            #ffffff 50%,
            #7ee0bf 55%,
            #f4f3f0 70%,
            #f4f3f0 100%
        );
        background-size: 240% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 0 8px rgba(91, 185, 155, 0.55));
    }
}

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

.nav-menu {
    display: flex;
    gap: 34px;
}

.nav-menu-cta {
    display: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--ink);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-ink);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
    .btn-primary { background: var(--accent); color: #0d1f18; }
    .btn-primary:hover { background: var(--accent-ink); color: #0d1f18; }
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-small {
    padding: 9px 18px;
    font-size: 13px;
    background: var(--ink);
    color: var(--bg);
}

.btn-small:hover {
    background: var(--accent-ink);
    transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
    .btn-small { background: var(--accent); color: #0d1f18; }
}

.btn-block { width: 100%; }

/* ---------- Hamburger ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.hamburger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 180px 0 90px;
    background: var(--bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 80% -10%, var(--accent-soft) 0%, transparent 60%),
        radial-gradient(900px 500px at 0% 20%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 55%);
    pointer-events: none;
}

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

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 34px;
    padding: 7px 14px 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.hero-meta .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
    50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin: 0 0 34px;
    max-width: 16ch;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 0.9s var(--ease-out);
}

.hero.is-loaded .line-inner { transform: translateY(0); }

.hero-em {
    font-style: italic;
    font-weight: 600;
    color: var(--accent);
    background: linear-gradient(120deg, var(--accent), var(--accent-ink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    color: var(--ink-soft);
    max-width: 56ch;
    margin-bottom: 42px;
    line-height: 1.55;
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.hero-actions .btn-primary { background: var(--ink); }
.hero-actions .btn-ghost { background: var(--surface); border-color: var(--line-strong); }

.hero-facts {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 34px;
}

.fact dt {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 6px;
}

.fact dd {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

.hero-rule {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
    overflow: hidden;
}

.hero-rule span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--accent);
    transform: translateX(-100%);
    animation: rule-move 9s var(--ease) infinite;
}

@keyframes rule-move {
    0% { transform: translateX(-100%); }
    60% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* ---------- About ---------- */
.about { background: var(--bg); }

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

.statement {
    font-size: clamp(1.8rem, 3.2vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 28px;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 54ch;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.about-photo {
    margin: 0;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 28%;
    border-radius: var(--radius);
    background: var(--bg-soft);
    box-shadow: var(--shadow-md);
}

.about-photo figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
}

.about-story p {
    font-size: 1.02rem;
    color: var(--ink-soft);
    line-height: 1.65;
    border-left: 2px solid var(--accent);
    padding-left: 18px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    border-top: 1px solid var(--line);
    padding-top: 48px;
}

.about-highlights li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-highlights h3 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent-ink);
    line-height: 1;
}

@media (prefers-color-scheme: dark) {
    .about-highlights h3 { color: var(--accent); }
}

.about-highlights p {
    font-size: 0.98rem;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 26ch;
}

/* ---------- Experience ---------- */
.experience { background: var(--bg-soft); }

.exp-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 40px;
    max-width: 820px;
}

.exp-when {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.exp-when span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    background: var(--surface);
    margin-bottom: 14px;
}

.exp-role {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 10px;
}

.exp-org {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 30px;
}

.exp-org .exp-loc {
    color: var(--ink-faint);
    font-size: 1rem;
    font-weight: 400;
}

.achievements {
    display: grid;
    gap: 18px;
    max-width: 60ch;
}

.achievements li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-soft);
    line-height: 1.55;
    font-size: 1.02rem;
}

.achievements li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- Skills ---------- */
.skills { background: var(--bg); }

.skills-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skills-col {
    padding: 34px 34px 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.skills-col:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.skills-col h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

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

.tech-list li {
    font-size: 0.95rem;
    color: var(--ink-soft);
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg);
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.skills-col:hover .tech-list li {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    color: var(--ink);
}

/* ---------- Work / Projects ---------- */
.work { background: var(--bg-soft); }

.project {
    position: relative;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 40px;
    padding: 52px 0;
    border-top: 1px solid var(--line);
}

.project:last-child { border-bottom: 1px solid var(--line); }

/* Simple project layout (no visual panel) */
.project-simple {
    display: block;
    padding: 44px 0;
}

.project-simple-body {
    max-width: 720px;
}

.project-simple-body .project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.project-simple-body p {
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 22px;
}

.project-simple-body .project-actions {
    margin-top: 4px;
}

.project-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-faint);
    letter-spacing: 0.06em;
    padding-top: 4px;
}

.project-visual {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.project-body {
    grid-column: 2;
    grid-row: 2;
}

.visual-glyph {
    position: absolute;
    top: 50%;
    left: 44px;
    transform: translateY(-50%);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--accent-ink);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.visual-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
    z-index: 1;
}

.visual-bars {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 34px 44px;
}

.visual-bars i {
    display: block;
    flex: 1;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
    border-radius: 4px;
    transition: height 0.5s var(--ease);
}

.visual-bars i:nth-child(1) { height: 40%; }
.visual-bars i:nth-child(2) { height: 72%; }
.visual-bars i:nth-child(3) { height: 55%; }
.visual-bars i:nth-child(4) { height: 88%; }
.visual-bars i:nth-child(5) { height: 64%; }

.visual-dots {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background-image:
        radial-gradient(var(--accent) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    opacity: 0.25;
}

.visual-line {
    position: absolute;
    top: 40%;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.visual-rank {
    position: absolute;
    top: 50%;
    left: 44px;
    transform: translateY(-50%);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--accent-ink);
    letter-spacing: -0.03em;
}

.visual-genesis {
    background: linear-gradient(135deg, rgba(47, 109, 90, 0.10) 0%, rgba(99, 102, 241, 0.08) 100%), var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px;
}

.visual-badge-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    padding: 5px 12px;
    border-radius: 100px;
}

.visual-stack-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: auto 0;
    flex-wrap: wrap;
}

.v-tech-node {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.v-tech-arrow {
    color: var(--accent);
    font-size: 16px;
    font-weight: bold;
}

.visual-resume {
    background: linear-gradient(135deg, rgba(235, 87, 87, 0.08) 0%, rgba(47, 109, 90, 0.10) 100%), var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px;
}

.visual-score-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: auto 0;
    padding: 16px 24px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.v-score-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
}

.v-score-val {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent-ink);
    line-height: 1;
}

.v-score-meta {
    font-size: 12px;
    color: var(--ink-soft);
}

@media (prefers-color-scheme: dark) {
    .visual-genesis {
        background: linear-gradient(135deg, rgba(47, 109, 90, 0.20) 0%, rgba(99, 102, 241, 0.12) 100%), var(--surface);
    }
    .visual-resume {
        background: linear-gradient(135deg, rgba(235, 87, 87, 0.14) 0%, rgba(47, 109, 90, 0.16) 100%), var(--surface);
    }
    .v-tech-node, .visual-score-card {
        background: #252826;
        border-color: rgba(255, 255, 255, 0.1);
    }
    .v-score-val {
        color: #7de3be;
    }
}

.project-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 14px;
}

.project-body > p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 58ch;
    margin-bottom: 24px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.project-tech span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-ink);
    transition: gap 0.35s var(--ease), color 0.3s var(--ease);
}

@media (prefers-color-scheme: dark) {
    .project-link { color: var(--accent); }
}

.project-link .arrow {
    transition: transform 0.35s var(--ease);
}

.project-link:hover { gap: 14px; }
.project-link:hover .arrow { transform: translateX(4px); }

.project-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.project-link-ghost {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.project-link-ghost:hover {
    color: var(--ink);
    border-color: var(--line-strong);
    background: var(--surface);
}

/* ---------- Contact ---------- */
.contact {
    background: #161817;
    color: #e6eae7;
}

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

.contact .section-label span { color: var(--accent); }
.contact .label-line { background: var(--accent); }

.contact-head {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #f2f5f3;
    margin-bottom: 24px;
    max-width: 14ch;
}

.contact-sub {
    font-size: 1.1rem;
    color: rgba(235, 240, 236, 0.72);
    line-height: 1.6;
    max-width: 44ch;
    margin-bottom: 44px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 34px;
    max-width: 420px;
}

.contact-list li {
    display: flex;
    align-items: baseline;
    gap: 24px;
}

.cl-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(235, 240, 236, 0.45);
    width: 82px;
    flex-shrink: 0;
}

.contact-list a, .contact-list span:not(.cl-label) {
    font-size: 1.08rem;
    color: #e6eae7;
    font-weight: 500;
}

.contact-list a { transition: color 0.3s var(--ease); }
.contact-list a:hover { color: #7de3be; }

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    background: #202422;
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.45);
}

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

.form-row.full, .form-row:has(textarea) { grid-column: span 2; }

.contact-form label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(235, 240, 236, 0.78);
}

.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 15px;
    color: #f2f5f3;
    background: #171a18;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 13px 15px;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5bb99b;
    background: #1c201e;
    box-shadow: 0 0 0 4px rgba(91, 185, 155, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(235, 240, 236, 0.35); }

.contact-form .btn-primary {
    grid-column: span 2;
    background: var(--accent);
    color: #ffffff;
    border: none;
    font-weight: 600;
    margin-top: 6px;
}

.contact-form .btn-primary:hover {
    background: #39826c;
    box-shadow: 0 8px 20px -4px rgba(47, 109, 90, 0.4);
    transform: translateY(-2px);
}

.form-status {
    grid-column: span 2;
    font-size: 14px;
    font-weight: 500;
    color: #7de3be;
    min-height: 20px;
}

/* ---------- Footer ---------- */
.footer {
    background: #0f1210;
    padding: 54px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: #f2f5f3; }
.footer-tag { font-size: 0.9rem; color: rgba(235, 240, 236, 0.5); }

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(235, 240, 236, 0.75);
    transition: color 0.3s var(--ease);
}

.footer-links a:hover { color: #7de3be; }

.footer-copy {
    font-size: 0.85rem;
    color: rgba(235, 240, 236, 0.4);
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.42s; }

.project .project-body {
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.project.is-visible .project-body {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-side { order: -1; }
    .exp-item { grid-template-columns: 1fr; gap: 14px; }
    .exp-when { flex-direction: row; align-items: center; }
    .exp-when span { margin-bottom: 0; }
    .contact-inner { grid-template-columns: 1fr; gap: 56px; }
    .contact-form { grid-template-columns: 1fr; }
    .form-row.full, .form-row:has(textarea) { grid-column: span 1; }
    .form-status { grid-column: span 1; }
    .footer-inner { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(320px, 82vw);
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        background: var(--bg);
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        transition: transform 0.45s var(--ease);
        padding: 0;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.is-open { transform: translateX(0); }
    .nav-menu.is-open .nav-link::after { transform: scaleX(1); }
    .nav-menu .nav-link { font-size: 1.15rem; color: var(--ink); }

    .hamburger { display: flex; }

    .nav-cta { display: none; }
    .nav-menu-cta { display: block; margin-top: 10px; }
    .nav-menu-cta .btn { min-width: 160px; }

    .hero { padding: 130px 0 70px; }
    .hero-facts { gap: 36px; }
    .hero-actions .btn { width: 100%; }

    .section { padding: 80px 0; }
    .about-highlights { grid-template-columns: 1fr; gap: 32px; }

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

    .project { grid-template-columns: 1fr; gap: 22px; padding: 40px 0; }
    .project-num { font-size: 1rem; grid-column: 1; grid-row: auto; }
    .project-visual { aspect-ratio: 16 / 9; grid-column: 1; grid-row: auto; }
    .project-body { grid-column: 1; grid-row: auto; }

    .contact-form { padding: 24px; gap: 18px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .nav-menu { width: 85vw; }
    .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
    .hero-facts { gap: 28px; }
    .hero-facts .fact { gap: 4px; }
    .statement { font-size: clamp(1.5rem, 7vw, 2.2rem); }
    .exp-role { font-size: clamp(1.5rem, 6vw, 2.1rem); }
    .contact-head { font-size: clamp(2rem, 10vw, 3rem); }
    .project-title { font-size: clamp(1.3rem, 5vw, 1.7rem); }
    .skills-col { padding: 24px; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .hamburger, .footer-links, .hero-rule { display: none; }
    body { background: #fff; color: #000; }
}
