/* ==========================================================================
   Portfolio Modern Dark Minimalist & Bento Grid (Linear / Vercel Aesthetic)
   Pure Vanilla CSS — Lightweight, Hardware-Accelerated, Reduced-Motion Safe
   ========================================================================== */

:root {
    --bg-base: #07080b;
    --bg-elevated: #0d0f15;
    --bg-card: rgba(17, 20, 29, 0.72);
    --bg-card-hover: rgba(23, 27, 39, 0.92);
    --bg-subtle: rgba(255, 255, 255, 0.03);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(129, 140, 248, 0.45);

    --text-primary: #f4f6fb;
    --text-secondary: #9aa3b8;
    --text-muted: #646e85;

    --accent-primary: #818cf8;
    --accent-secondary: #38bdf8;
    --accent-emerald: #34d399;
    --accent-violet: #c084fc;

    --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 42px -10px rgba(129, 140, 248, 0.25);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --container-max: 1140px;
    --nav-height: 72px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Ambient Background Grid & Glow */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 35%, transparent 100%);
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

.orb-primary {
    width: 480px;
    height: 480px;
    top: -160px;
    left: 50%;
    transform: translateX(-65%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.42), transparent 70%);
    animation: floatSlow 14s ease-in-out infinite alternate;
}

.orb-secondary {
    width: 380px;
    height: 380px;
    top: 40px;
    right: -100px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 70%);
    animation: floatSlow 18s ease-in-out infinite alternate-reverse;
}

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

ul {
    list-style: none;
}

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

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section {
    padding-block: 5.5rem;
    position: relative;
}

.section-header {
    max-width: 660px;
    margin-bottom: 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.85rem;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary));
}

.section-title {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--accent-primary);
    color: #07080b;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ==========================================================================
   Sticky Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
    background-color: rgba(7, 8, 11, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border-subtle);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.28), rgba(56, 189, 248, 0.14));
    border: 1px solid rgba(129, 140, 248, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.brand:hover .brand-mark {
    transform: translateY(-1px) scale(1.03);
    border-color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
}

.nav-link {
    padding: 0.42rem 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.07);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
}

/* Mobile Menu Drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 12, 18, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.1rem 1.25rem 1.5rem;
    z-index: 99;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1.35rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background-color 0.22s ease, border-color 0.22s ease;
    white-space: nowrap;
}

.btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.22s var(--ease-out);
}

.btn:hover svg.icon-arrow {
    transform: translateX(3px);
}

.btn-primary {
    background: linear-gradient(180deg, #f8fafc 0%, #dbe3f4 100%);
    color: #090b10;
    box-shadow: 0 8px 24px -6px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(255, 255, 255, 0.32);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.24);
    color: #bbf7d0;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulseDot 2.2s infinite;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 15%, #a5b4fc 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    max-width: 520px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero Visual Code/System Bento Card */
.hero-card {
    background: linear-gradient(180deg, rgba(22, 26, 38, 0.85), rgba(12, 15, 22, 0.92));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.7), transparent);
}

.window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.window-dots span:nth-child(1) { background: #f87171; opacity: 0.75; }
.window-dots span:nth-child(2) { background: #fbbf24; opacity: 0.75; }
.window-dots span:nth-child(3) { background: #34d399; opacity: 0.75; }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.code-block {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.75;
    color: #cbd5e1;
    overflow-x: auto;
}

.tok-kw { color: #c084fc; }
.tok-fn { color: #818cf8; }
.tok-str { color: #34d399; }
.tok-prop { color: #38bdf8; }
.tok-muted { color: #64748b; }

.hero-mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.mini-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* ==========================================================================
   Bento Cards & About Section
   ========================================================================== */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.28s var(--ease-out), border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.about-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.about-story {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.about-story h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.about-story p {
    color: var(--text-secondary);
    font-size: 0.97rem;
}

.about-timeline {
    grid-column: span 5;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.15rem;
    border-left: 1px solid var(--border-strong);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -4.5px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--accent-primary);
    margin-bottom: 0.2rem;
}

.timeline-role {
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--text-primary);
}

.timeline-place {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.timeline-summary {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.about-pillar {
    grid-column: span 4;
}

.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.28);
    color: var(--accent-primary);
}

.pillar-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.pillar-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Skills / Tech Stack Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.skill-card-head {
    margin-bottom: 1.35rem;
}

.skill-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.skill-card-sub {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.skill-tags {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.62rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease-out);
}

.skill-row:hover {
    border-color: rgba(129, 140, 248, 0.4);
    background: rgba(129, 140, 248, 0.06);
    transform: translateX(3px);
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-badge {
    font-family: var(--font-mono);
    font-size: 0.71rem;
    padding: 0.16rem 0.52rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* ==========================================================================
   Projects Showcase Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.project-preview {
    height: 205px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-preview[data-accent="indigo"] {
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.26), rgba(13, 16, 25, 0.95) 70%);
}
.project-preview[data-accent="emerald"] {
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.24), rgba(13, 16, 25, 0.95) 70%);
}
.project-preview[data-accent="sky"] {
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.24), rgba(13, 16, 25, 0.95) 70%);
}
.project-preview[data-accent="violet"] {
    background: radial-gradient(circle at 80% 20%, rgba(192, 132, 252, 0.24), rgba(13, 16, 25, 0.95) 70%);
}

.preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.preview-cat {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(7, 8, 11, 0.65);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.preview-stat {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-primary);
    opacity: 0.85;
}

/* Stylized UI Mockup inside Project Preview */
.preview-mockup {
    background: rgba(10, 12, 18, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 0.85rem 1rem;
    transform: translateY(20px);
    transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.35);
}

.project-card:hover .preview-mockup {
    transform: translateY(10px);
    border-color: rgba(255, 255, 255, 0.22);
}

.mockup-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 46px;
    margin-top: 0.5rem;
}

.mockup-bars span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.85), rgba(129, 140, 248, 0.15));
}

.mockup-lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 0.45rem;
}

.mockup-lines span {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.project-body {
    padding: 1.5rem 1.65rem 1.65rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.project-year {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.35rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    padding: 0.25rem 0.62rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--text-primary);
}

.project-link svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s var(--ease-out);
}

.project-link:hover svg {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.22s ease, transform 0.22s var(--ease-out), background-color 0.22s ease;
}

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

.channel-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.channel-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.channel-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.channel-val {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Quick Contact Form (Database-free WA / Email Launcher) */
.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border-radius: var(--radius-sm);
    background: rgba(7, 8, 11, 0.65);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.16);
}

textarea.form-control {
    resize: vertical;
    min-height: 115px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.form-actions .btn {
    flex: 1 1 180px;
}

.form-note {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding-block: 2.25rem;
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Animations & Scroll-Reveal (IntersectionObserver)
   ========================================================================== */
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes floatSlow {
    0% { transform: translate(-65%, 0) scale(1); }
    100% { transform: translate(-60%, 24px) scale(1.06); }
}

.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js-enabled [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

    .about-story,
    .about-timeline {
        grid-column: span 12;
    }

    .about-pillar {
        grid-column: span 4;
    }

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

@media (max-width: 768px) {
    .section {
        padding-block: 4rem;
    }

    .nav-links,
    .nav-cta-desktop {
        display: none;
    }

    .nav-toggle,
    .mobile-menu {
        display: flex;
    }

    .mobile-menu {
        flex-direction: column;
    }

    .hero {
        padding-top: 2.75rem;
    }

    .about-pillar {
        grid-column: span 12;
    }

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

    .hero-stats {
        gap: 0.75rem;
    }

    .bento-card {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
