/* ===========================
   DESIGN SYSTEM
   =========================== */
:root {
    --bg-0: #050507;
    --bg-1: #0a0a0f;
    --bg-2: #111118;
    --bg-3: #18182a;
    --bg-card: rgba(17, 17, 24, 0.6);

    --text-0: #f0f0f5;
    --text-1: #c4c4d4;
    --text-2: #8888a0;
    --text-3: #555568;
    --text-4: #3a3a4a;

    --accent: #7c6aff;
    --accent-2: #00e5ff;
    --accent-3: #ff5fa2;
    --accent-soft: rgba(124, 106, 255, 0.15);
    --accent-glow: rgba(124, 106, 255, 0.25);

    --gradient: linear-gradient(135deg, #7c6aff 0%, #00e5ff 50%, #7c6aff 100%);
    --gradient-2: linear-gradient(135deg, #7c6aff, #ff5fa2);
    --gradient-border: linear-gradient(135deg, rgba(124,106,255,0.4), rgba(0,229,255,0.2), rgba(255,95,162,0.3));

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(124, 106, 255, 0.35);

    --font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 24px;
    --radius-xl: 32px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

body {
    font-family: var(--font);
    background: var(--bg-0);
    color: var(--text-0);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===========================
   UTILITIES
   =========================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

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

/* ===========================
   AURORA BLOBS
   =========================== */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: aurora-float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    top: 40%;
    right: -10%;
    animation-delay: -7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-3);
    bottom: -5%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes aurora-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ===========================
   SPOTLIGHT
   =========================== */
.spotlight {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,106,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: left 0.5s var(--ease), top 0.5s var(--ease);
}

/* ===========================
   ANIMATED GRADIENT BORDER
   =========================== */
.bento-card-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        var(--border-angle, 0deg),
        rgba(124,106,255,0.5),
        rgba(0,229,255,0.3),
        rgba(255,95,162,0.3),
        rgba(124,106,255,0.1),
        transparent 50%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s var(--ease), --border-angle 0.5s;
    animation: border-rotate 6s linear infinite;
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes border-rotate {
    to { --border-angle: 360deg; }
}

*:hover > .bento-card-border {
    opacity: 1;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    z-index: 101;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: var(--radius-s);
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-pills {
    display: flex;
    list-style: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px;
    position: relative;
    backdrop-filter: blur(10px);
}

.nav-pill {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 100px;
    transition: color 0.3s var(--ease);
    position: relative;
    z-index: 1;
}

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

.nav-indicator {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    background: rgba(124,106,255,0.12);
    border-radius: 100px;
    transition: all 0.4s var(--ease-spring);
    z-index: 0;
    pointer-events: none;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: rgba(124,106,255,0.15);
    border: 1px solid rgba(124,106,255,0.3);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.nav-cta-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

.nav-cta:hover {
    background: rgba(124,106,255,0.25);
    border-color: rgba(124,106,255,0.5);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-0);
    z-index: 101;
}

/* ===========================
   HERO
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 120px 0 40px;
}

.hero-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 12px;
    background: rgba(124,106,255,0.08);
    border: 1px solid rgba(124,106,255,0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-2);
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--text-0);
}

.hero-highlight {
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--gradient);
    opacity: 0.3;
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-1);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 40px;
}

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

/* Glow Button */
.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font);
    color: white;
    border: none;
    border-radius: var(--radius-s);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    z-index: 1;
}

.btn-glow-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
    z-index: -1;
    transition: opacity 0.3s;
}

.btn-glow-text {
    position: relative;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--accent-glow), 0 0 80px rgba(124,106,255,0.15);
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-1);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
    color: var(--text-0);
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-3px);
}

.btn-ghost svg {
    transition: transform 0.3s var(--ease);
}

.btn-ghost:hover svg {
    transform: translate(3px, -3px);
}

/* Hero Card */
.hero-card {
    position: relative;
    border-radius: var(--radius-l);
    overflow: visible;
}

.hero-card-border {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-l);
    background: var(--gradient-border);
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
    z-index: 0;
}

.hero-card-content {
    position: relative;
    z-index: 1;
    background: var(--bg-2);
    border-radius: var(--radius-l);
    padding: 28px;
    backdrop-filter: blur(20px);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.hero-card-avatar {
    position: relative;
    width: 52px;
    height: 52px;
}

.hero-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    animation: spin 4s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-card-meta h3 {
    font-size: 1rem;
    font-weight: 700;
}

.hero-card-meta span {
    font-size: 0.8rem;
    color: var(--text-2);
}

.hero-card-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #00ff88;
    background: rgba(0,255,136,0.08);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(0,255,136,0.15);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

.hero-card-code {
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.9;
    padding: 18px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-s);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.code-line { white-space: nowrap; }
.code-line.indent { padding-left: 1.5em; }
.c-keyword { color: #c792ea; }
.c-name { color: #82aaff; }
.c-prop { color: #f78c6c; }
.c-str { color: #c3e88d; }
.c-num { color: #f78c6c; }

.hero-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mini-stat {
    text-align: center;
    padding: 12px 8px;
    background: rgba(124,106,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    transition: all 0.3s var(--ease);
}

.mini-stat:hover {
    background: rgba(124,106,255,0.12);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.mini-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mini-stat-label {
    font-size: 0.7rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================
   MARQUEE
   =========================== */
.marquee {
    margin-top: auto;
    padding: 0 0 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.marquee::before, .marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-0), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-0), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: marquee 30s linear infinite;
    padding-right: 24px;
}

.marquee-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    transition: color 0.3s;
}

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

.marquee-dot {
    color: var(--accent);
    font-size: 0.5rem;
    opacity: 0.5;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   SECTIONS
   =========================== */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-alt {
    background: rgba(10,10,15,0.5);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-number {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--accent);
}

.section-line {
    width: 40px;
    height: 1px;
    background: var(--gradient);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 60px;
}

.section-heading-lg {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ===========================
   BENTO GRID - ABOUT
   =========================== */
.about-bento {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-m);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.bento-card:hover {
    border-color: rgba(124,106,255,0.15);
    transform: translateY(-3px);
}

.bento-card-inner {
    position: relative;
    padding: 32px;
    z-index: 1;
}

.bento-main {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.bento-terminal {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.bento-highlight {
    grid-column: span 1;
}

.about-bento .bento-highlight:nth-child(3) { grid-column: 1; }
.about-bento .bento-highlight:nth-child(4) { grid-column: 1; }
.about-bento .bento-highlight:nth-child(5) { grid-column: 2; }

.about-bento {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto auto;
}

.about-bento .bento-highlight:nth-child(3) { grid-row: 2; grid-column: 1; }
.about-bento .bento-highlight:nth-child(4) { grid-row: 2; grid-column: 2; }
.about-bento .bento-highlight:nth-child(5) { grid-row: 3; grid-column: 1 / 3; }

.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-0);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-s);
    margin-bottom: 16px;
}

.bento-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.bento-highlight h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-highlight p {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* ===========================
   TERMINAL
   =========================== */
.terminal {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

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

.terminal-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-3);
}

.terminal-body {
    flex: 1;
    padding: 18px;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.8;
    min-height: 260px;
    overflow: hidden;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 2px;
}

.t-prompt { color: var(--accent); font-weight: 600; }
.t-cmd { color: var(--text-0); white-space: pre-wrap; word-break: break-all; }

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

@keyframes blink { 50% { opacity: 0; } }

/* ===========================
   SKILLS
   =========================== */
.skills-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card {
    position: relative;
    border-radius: var(--radius-m);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.skill-card:hover {
    border-color: rgba(124,106,255,0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.skill-card-inner {
    position: relative;
    z-index: 1;
    padding: 32px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.skill-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-s);
    background: color-mix(in srgb, var(--icon-color) 12%, transparent);
}

.skill-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--icon-color);
}

.skill-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

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

.skill-pill {
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-1);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.skill-pill:hover {
    color: var(--text-0);
    background: var(--accent-soft);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.project-row {
    position: relative;
}

.project-row-inner {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 32px 28px;
    border-radius: var(--radius-m);
    border: 1px solid transparent;
    transition: all 0.4s var(--ease);
    cursor: default;
}

.project-row-inner:hover {
    background: var(--bg-card);
    border-color: var(--border);
    transform: translateX(8px);
}

.project-number {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-4);
    transition: color 0.3s;
}

.project-row-inner:hover .project-number {
    color: var(--accent);
}

.project-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    transition: color 0.3s;
}

.project-row-inner:hover .project-name {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 550px;
}

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

.project-tech span {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-2);
    padding: 4px 12px;
    background: rgba(0,229,255,0.06);
    border: 1px solid rgba(0,229,255,0.12);
    border-radius: 100px;
}

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

.project-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    transition: all 0.3s var(--ease);
}

.project-btn svg {
    width: 18px;
    height: 18px;
}

.project-btn:hover {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ===========================
   EXPERIENCE
   =========================== */
.exp-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-card {
    position: relative;
    border-radius: var(--radius-m);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.exp-card:hover {
    border-color: rgba(124,106,255,0.15);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.exp-card-inner {
    position: relative;
    z-index: 1;
    padding: 32px;
}

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

.exp-role h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.exp-company {
    font-size: 0.92rem;
    color: var(--accent-2);
    font-weight: 500;
}

.exp-date {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    padding: 5px 14px;
    background: var(--accent-soft);
    border-radius: 100px;
    white-space: nowrap;
}

.exp-desc {
    font-size: 0.92rem;
    color: var(--text-1);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.exp-tags span {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 4px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
}

/* ===========================
   CONTACT
   =========================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-1);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    transition: all 0.3s var(--ease);
}

.contact-link:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    background: rgba(124,106,255,0.05);
}

.contact-link-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-s);
}

.contact-link-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.contact-link-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-link-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-0);
}

.contact-link-arrow {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: var(--text-3);
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}

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

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

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    color: var(--text-2);
    transition: all 0.3s var(--ease);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px) rotate(-5deg);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* Contact Form */
.contact-form {
    position: relative;
    border-radius: var(--radius-l);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color 0.3s;
}

.contact-form:focus-within {
    border-color: var(--border-hover);
}

.contact-form-inner {
    position: relative;
    z-index: 1;
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.92rem;
    font-family: var(--font);
    color: var(--text-0);
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    outline: none;
    transition: all 0.3s var(--ease);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-4);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124,106,255,0.1);
    background: rgba(124,106,255,0.03);
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.footer-grid {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-text {
    font-size: 0.88rem;
    color: var(--text-2);
}

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

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.anim-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.anim-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.anim-in[data-delay="0"] { transition-delay: 0ms; }
.anim-in[data-delay="1"] { transition-delay: 100ms; }
.anim-in[data-delay="2"] { transition-delay: 200ms; }
.anim-in[data-delay="3"] { transition-delay: 300ms; }
.anim-in[data-delay="4"] { transition-delay: 400ms; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { max-width: 420px; margin: 0 auto; }
    .skills-bento { grid-template-columns: 1fr 1fr; }
    .about-bento { grid-template-columns: 1fr; }
    .about-bento .bento-highlight:nth-child(3),
    .about-bento .bento-highlight:nth-child(4),
    .about-bento .bento-highlight:nth-child(5) {
        grid-row: auto; grid-column: auto;
    }
    .bento-terminal { grid-column: auto; grid-row: auto; }
    .bento-main { grid-column: auto; grid-row: auto; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-center, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .hero { padding-top: 100px; }
    .hero-line { font-size: 2.2rem; letter-spacing: -1px; }
    .section-heading { font-size: 1.8rem; margin-bottom: 40px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .skills-bento { grid-template-columns: 1fr; }
    .project-row-inner { grid-template-columns: 40px 1fr; }
    .project-actions { grid-column: 2; }
    .exp-top { flex-direction: column; }

    .nav-pills {
        display: none; /* hidden on mobile, toggle opens */
    }

    .nav-pills.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5,5,7,0.95);
        backdrop-filter: blur(24px);
        border: none;
        border-radius: 0;
        padding: 100px 32px;
        z-index: 99;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-pills.open .nav-pill {
        font-size: 1.5rem;
        padding: 12px 0;
        border-radius: 0;
    }

    .nav-pills.open .nav-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-line { font-size: 1.8rem; }
    .hero-card-stats { grid-template-columns: 1fr; }
    .hero-card-code { font-size: 0.7rem; }
}
