/* ================================================================
   Jatin Ahir Portfolio — Style.css
   "JatinOS — Dark Terminal Universe"
================================================================ */

/* ========================
   CSS CUSTOM PROPERTIES
======================== */
:root {
    --bg: #000000;
    --bg-2: #080808;
    --bg-3: #111111;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-2: rgba(255, 255, 255, 0.16);
    --text: #f5f5f5;
    --text-muted: #777777;
    --text-dim: #444444;
    --accent: #00f5d4;
    --accent-2: #6366f1;
    --accent-3: #f59e0b;
    --danger: #ff4d6d;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

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

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

/* ========================
   READING PROGRESS
======================== */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ========================
   CUSTOM CURSOR
======================== */
#cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 245, 212, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.12s;
}

#cursor-dot.hovered {
    width: 4px;
    height: 4px;
    background: var(--accent);
}

#cursor-ring.hovered {
    width: 52px;
    height: 52px;
    border-color: var(--accent);
}

/* ========================
   CANVAS BACKGROUND
======================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* ========================
   NAVBAR
======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

.logo-caret {
    color: var(--accent);
    margin-right: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    position: relative;
    transition: color var(--transition);
}

.nav-link::before {
    content: attr(data-label);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    position: absolute;
    top: -2px;
    left: 8px;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::before {
    opacity: 1;
}

.nav-resume {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(0, 245, 212, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    transition: background var(--transition), border-color var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-resume:hover {
    background: rgba(0, 245, 212, 0.08);
    border-color: var(--accent);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================
   HERO
======================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 2rem 4rem;
    position: relative;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Terminal --- */
.hero-terminal-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.terminal-window {
    background: #0d0d0d;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 245, 212, 0.06), 0 40px 80px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: #181818;
    border-bottom: 1px solid var(--border);
}

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

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.t-red {
    background: #ff5f57;
}

.t-yellow {
    background: #febc2e;
}

.t-green {
    background: #28c840;
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin: 0 auto;
}

.terminal-body {
    padding: 1.4rem 1.6rem;
    min-height: 280px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.9;
}

.t-line {
    margin-bottom: 2px;
}

.t-blank {
    height: 0.5rem;
}

.t-dim {
    color: var(--text-dim);
}

.t-prompt>.t-cmd-prefix {
    color: var(--accent);
}

.t-prompt>.t-cmd-text {
    color: var(--text);
}

.t-output {
    color: #aaa;
    padding-left: 1rem;
}

.t-name {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

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

.t-highlight {
    color: var(--accent-3);
}

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-110%) skewX(-20deg);
    transition: transform 0.5s;
}

.btn-primary:hover::before {
    transform: translateX(110%) skewX(-20deg);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.4);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 245, 212, 0.05);
}

.hero-socials {
    display: flex;
    gap: 1rem;
}

.hero-socials a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.hero-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* --- Abstract Art / Constellation --- */
.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 480px;
}

.constellation-wrap {
    position: relative;
    width: 360px;
    height: 360px;
}

.c-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.c-ring-1 {
    width: 160px;
    height: 160px;
    border-color: rgba(0, 245, 212, 0.15);
    animation: spin-slow 20s linear infinite;
}

.c-ring-2 {
    width: 260px;
    height: 260px;
    animation: spin-slow 30s linear infinite reverse;
    border-style: dashed;
}

.c-ring-3 {
    width: 360px;
    height: 360px;
    animation: spin-slow 45s linear infinite;
    border-color: rgba(99, 102, 241, 0.12);
}

@keyframes spin-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.c-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.c-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #000;
    box-shadow: 0 0 50px rgba(0, 245, 212, 0.35), 0 0 100px rgba(0, 245, 212, 0.12);
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 30px rgba(0, 245, 212, 0.25), 0 0 60px rgba(0, 245, 212, 0.08);
    }

    to {
        box-shadow: 0 0 60px rgba(0, 245, 212, 0.5), 0 0 120px rgba(0, 245, 212, 0.18);
    }
}

/* Orbiting badges */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 3;
}

.orbit-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border-2);
    border-radius: 24px;
    padding: 6px 12px 6px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
    animation: badge-float 4s ease-in-out infinite alternate;
}

.orbit-badge i {
    font-size: 1rem;
}

.badge-java {
    color: #f89820;
}

.badge-spring {
    color: #6db33f;
}

.badge-docker {
    color: #2496ed;
}

.badge-aws {
    color: #ff9900;
}

.badge-k8s {
    color: #326ce5;
}

.badge-ai {
    color: #a78bfa;
}

@keyframes badge-float {
    from {
        transform: translate(-50%, -50%) translateY(-4px);
    }

    to {
        transform: translate(-50%, -50%) translateY(4px);
    }
}

/* Orbit positions — placed as points on a circle */
.orbit-1 {
    transform: translate(-50%, -50%) rotate(0deg) translateX(130px) rotate(0deg);
    top: 50%;
    left: 50%;
}

.orbit-2 {
    transform: translate(-50%, -50%) rotate(60deg) translateX(130px) rotate(-60deg);
    top: 50%;
    left: 50%;
}

.orbit-3 {
    transform: translate(-50%, -50%) rotate(120deg) translateX(130px) rotate(-120deg);
    top: 50%;
    left: 50%;
}

.orbit-4 {
    transform: translate(-50%, -50%) rotate(180deg) translateX(130px) rotate(-180deg);
    top: 50%;
    left: 50%;
}

.orbit-5 {
    transform: translate(-50%, -50%) rotate(240deg) translateX(130px) rotate(-240deg);
    top: 50%;
    left: 50%;
}

.orbit-6 {
    transform: translate(-50%, -50%) rotate(300deg) translateX(130px) rotate(-300deg);
    top: 50%;
    left: 50%;
}

.orbit-1 .orbit-badge {
    animation-delay: 0s;
    animation-duration: 3.2s;
}

.orbit-2 .orbit-badge {
    animation-delay: -0.5s;
    animation-duration: 3.8s;
}

.orbit-3 .orbit-badge {
    animation-delay: -1s;
    animation-duration: 3.5s;
}

.orbit-4 .orbit-badge {
    animation-delay: -1.5s;
    animation-duration: 4.2s;
}

.orbit-5 .orbit-badge {
    animation-delay: -2s;
    animation-duration: 3.1s;
}

.orbit-6 .orbit-badge {
    animation-delay: -2.5s;
    animation-duration: 4.5s;
}

/* Status card */
.status-card {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-ring 2s ease infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.6);
    }

    80% {
        box-shadow: 0 0 0 10px rgba(0, 245, 212, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 245, 212, 0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    font-family: 'JetBrains Mono', monospace;
    animation: fade-down 1.5s ease infinite alternate;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes fade-down {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

/* ========================
   MARQUEE
======================== */
.marquee-section {
    padding: 1.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.marquee-track {
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    width: max-content;
    gap: 0;
}

.marquee-left .marquee-inner {
    animation: mar-left 25s linear infinite;
}

.marquee-right .marquee-inner {
    animation: mar-right 30s linear infinite;
}

@keyframes mar-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes mar-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.marquee-inner span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1.2rem;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
    white-space: nowrap;
    transition: color 0.2s;
}

.marquee-inner span:hover {
    color: var(--accent);
}

/* ========================
   SHARED SECTION STYLES
======================== */
.section {
    padding: 6rem 2rem;
}

.section-dark {
    background: var(--bg-2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eyebrow-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.eyebrow-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.section-heading {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   REVEAL ANIMATIONS
======================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-up[data-delay="100"] {
    transition-delay: 0.1s;
}

.reveal-up[data-delay="150"] {
    transition-delay: 0.15s;
}

.reveal-up[data-delay="200"] {
    transition-delay: 0.2s;
}

.reveal-up[data-delay="250"] {
    transition-delay: 0.25s;
}

.reveal-up[data-delay="300"] {
    transition-delay: 0.3s;
}

/* ========================
   BENTO GRID (ABOUT)
======================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.bento-card:hover {
    border-color: var(--border-2);
    background: var(--surface-2);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-bio {
    grid-column: span 7;
}

.bento-stats {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.bento-loc {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.bento-now {
    grid-column: span 4;
}

.bento-stack {
    grid-column: span 4;
}

.card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.bento-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.bento-role {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.bento-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

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

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap var(--transition);
}

.inline-link:hover {
    gap: 0.7rem;
}

/* Stats */
.bento-stat {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.stat-big {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-sup {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    width: 100%;
}

/* Location */
.loc-globe {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.loc-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.loc-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.loc-avail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.avail-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-ring 2s ease infinite;
}

/* Now items */
.now-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.now-item i {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 3px;
    min-width: 14px;
}

/* Stack bars */
.stack-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.3rem;
    font-size: 0.78rem;
}

.sbar span {
    color: var(--text-muted);
}

.sbar em {
    color: var(--text-dim);
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-align: right;
}

.sbar-track {
    grid-column: 1 / -1;
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.sbar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   SKILLS — TABS + HEX GRID
======================== */
.skills-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.stab {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: none;
    transition: all var(--transition);
    font-family: 'Space Grotesk', sans-serif;
}

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

.stab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.skills-panel {
    display: none;
}

.skills-panel.active {
    display: block;
}

.hex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hex-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
    animation: pop-in 0.4s ease both;
}

.hex-cell:hover {
    color: var(--text);
    border-color: var(--border-2);
    background: var(--surface-2);
    transform: translateY(-2px);
}

.hex-cell i {
    font-size: 1.1rem;
}

.accent-hex {
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--accent);
    background: rgba(0, 245, 212, 0.05);
}

.accent-hex:hover {
    border-color: var(--accent);
    background: rgba(0, 245, 212, 0.1);
    color: var(--accent);
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================
   PROJECTS
======================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: start;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    position: relative;
}

.project-item:first-child {
    border-top: 1px solid var(--border);
}

.project-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--surface);
    opacity: 0;
    border-radius: var(--radius);
    transition: opacity var(--transition);
    z-index: -1;
}

.project-item:hover::after {
    opacity: 1;
}

.project-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dim);
    line-height: 1;
    transition: color var(--transition);
    padding-top: 0.25rem;
}

.project-item:hover .project-num {
    color: var(--accent);
}

.project-content {
    flex: 1;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.project-sub {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.project-links-row {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.plink {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: all var(--transition);
}

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

.plink-live:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.project-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags-row span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    transition: all var(--transition);
}

.project-item:hover .project-tags-row span {
    border-color: rgba(0, 245, 212, 0.2);
    color: var(--text-muted);
}

.project-icon-wrap {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.proj-icon {
    font-size: 2rem;
    color: var(--text-dim);
    transition: color var(--transition), transform var(--transition);
}

.project-item:hover .proj-icon {
    color: var(--accent);
    transform: scale(1.1) rotate(-5deg);
}

.projects-cta {
    margin-top: 3rem;
    text-align: center;
}

/* ========================
   EXPERIENCE — GIT LOG
======================== */
.gitlog {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 3rem;
}

.gitlog-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.gitlog-item:first-child {
    border-top: 1px solid var(--border);
}

.gl-hash {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.gl-sha {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.gl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-2);
    box-shadow: 0 0 12px var(--accent);
}

/* Connecting line between items */
.gitlog-item:not(:last-child) .gl-hash::after {
    content: '';
    display: block;
    width: 1px;
    flex: 1;
    background: linear-gradient(to bottom, rgba(0, 245, 212, 0.4), transparent);
    min-height: 40px;
    margin-top: 0.5rem;
}

.gl-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.gl-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.type-feat {
    background: rgba(0, 245, 212, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 245, 212, 0.25);
}

.type-intern {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.gl-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.gl-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-left: auto;
}

.gl-company {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gl-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.gl-bullets li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.65;
}

.gl-bullets li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.gl-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gl-tech span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
}

/* Education mini cards */
.edu-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.edu-mini {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color var(--transition);
}

.edu-mini:hover {
    border-color: var(--border-2);
}

.edu-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.edu-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.edu-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.edu-info span {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
}

/* ========================
   CONTACT
======================== */
.section-contact {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
}

.contact-container {
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 640px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

.cc-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.cc-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.cc-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cc-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(0, 245, 212, 0.3);
    padding: 0.9rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: all var(--transition);
    width: 100%;
    justify-content: center;
}

.cc-email:hover {
    background: rgba(0, 245, 212, 0.07);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.15);
}

.cc-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    transition: all var(--transition);
}

.cc-link:hover {
    color: var(--text);
    border-color: var(--border-2);
    background: var(--surface-2);
}

.cc-avail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-dim);
}

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

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

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
}

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

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    color: var(--text-dim);
    font-size: 1rem;
    transition: color var(--transition);
}

.footer-socials a:hover {
    color: var(--accent);
}

/* ========================
   BACK TO TOP
======================== */
#back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-top:hover {
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

/* ========================
   MAGNETIC BUTTON
======================== */
.mag-btn {
    position: relative;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-art {
        display: none;
    }

    .bento-bio {
        grid-column: span 12;
    }

    .bento-stats {
        grid-column: span 12;
        flex-direction: row;
    }

    .bento-loc {
        grid-column: span 6;
    }

    .bento-now {
        grid-column: span 6;
    }

    .bento-stack {
        grid-column: span 12;
    }

    .project-item {
        grid-template-columns: 60px 1fr;
    }

    .project-icon-wrap {
        display: none;
    }

    .gitlog-item {
        grid-template-columns: 100px 1fr;
        gap: 1.5rem;
    }

    .edu-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .bento-loc {
        grid-column: span 12;
    }

    .bento-now {
        grid-column: span 12;
    }

    .bento-stats {
        flex-direction: column;
    }

    .project-item {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }

    .project-num {
        font-size: 2rem;
    }

    .gitlog-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .gl-hash {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .gitlog-item:not(:last-child) .gl-hash::after {
        display: none;
    }

    .contact-card {
        padding: 2rem;
    }

    .cc-links {
        flex-direction: column;
    }

    .cc-link {
        width: 100%;
        justify-content: center;
    }

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

    .section {
        padding: 4rem 1.25rem;
    }

    .hero {
        padding: 80px 1.25rem 3rem;
    }
}

@media (max-width: 480px) {
    .hero-cta-row {
        flex-direction: column;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .skills-tabs {
        flex-direction: column;
    }

    .stab {
        width: 100%;
        text-align: left;
    }
}