/* =====================================================
   PORTFOLIO — STYLE.CSS
   Dark, precise, professional
   ===================================================== */

:root {
  --black: #050a12;
  --deep: #080f1a;
  --surface: #0e1520;
  --surface2: #162030;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);
  --blue: #2563eb;
  --blue-bright: #60a5fa;
  --blue-glow: rgba(37,99,235,0.5);
  --cyan: #22d3ee;
  --cyan-dim: #0891b2;
  --white: #f8fafc;
  --white-dim: rgba(248,250,252,0.72);
  --white-dimmer: rgba(248,250,252,0.4);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  overflow-x: hidden;
  cursor: none;
}

/* Fixed space background sits behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #050a12;
  z-index: -2;
}

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

/* =====================================================
   LOADER
   ===================================================== */

#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.line-container {
  position: absolute;
  inset: 0;
}

.h-line {
  position: absolute;
  left: -100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
  animation: sweepH 2.4s var(--ease-in-out) infinite;
  opacity: 0;
}

.v-line {
  position: absolute;
  top: -100%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--blue-bright), var(--cyan), transparent);
  animation: sweepV 2.4s var(--ease-in-out) infinite;
  opacity: 0;
}

@keyframes sweepH {
  0% { left: -100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes sweepV {
  0% { top: -100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.loader-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.loader-ring {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  border-top-color: var(--blue-bright);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loader-pct {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}

.loader-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-dimmer);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.loader-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--white-dimmer);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.loader-corner.tl { top: 24px; left: 24px; }
.loader-corner.tr { top: 24px; right: 24px; }
.loader-corner.bl { bottom: 24px; left: 24px; }
.loader-corner.br { bottom: 24px; right: 24px; }

/* =====================================================
   CURSOR
   ===================================================== */

.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--blue-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.1s;
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transition: left 0.12s, top 0.12s, transform 0.2s, border-color 0.2s;
}

body:has(a:hover) .cursor { transform: scale(2); }
body:has(a:hover) .cursor-trail { transform: scale(1.5); border-color: rgba(59,130,246,0.8); }
body:has(button:hover) .cursor { transform: scale(2); }

/* =====================================================
   NAVIGATION
   ===================================================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(3,5,8,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
}

#navbar.scrolled {
  background: rgba(3,5,8,0.9);
  border-color: var(--border);
  padding: 14px 48px;
  backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.logo-bracket { color: var(--blue-bright); }
.logo-text { color: var(--white); margin: 0 2px; }

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-bright);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-dimmer);
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =====================================================
   HERO SECTION
   ===================================================== */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 64px;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--blue-bright);
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.hero-name {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.5rem, 6vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.name-line { display: block; }
.name-line.accent { color: var(--blue-bright); }

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white-dim);
  letter-spacing: 0.05em;
}

.tag-sep {
  color: var(--blue-bright);
  opacity: 0.5;
}

.hero-desc {
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: none;
}

.btn-primary svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 12px 40px var(--blue-glow); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-primary.full {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
  background: none;
  border: 1px solid var(--blue);
  color: var(--blue-bright);
}
.btn-primary.full:hover { background: var(--blue); color: var(--white); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white-dim);
  letter-spacing: 0.08em;
  transition: color 0.2s;
  cursor: none;
}
.btn-ghost:hover { color: var(--white); }

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

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white-dimmer);
}

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

/* Profile */

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: rotateSlow linear infinite;
}

.ring-1 {
  width: 360px; height: 360px;
  border-color: rgba(37,99,235,0.2);
  animation-duration: 20s;
}

.ring-2 {
  width: 410px; height: 410px;
  border-color: rgba(8,145,178,0.12);
  animation-duration: 30s;
  animation-direction: reverse;
  border-style: dashed;
}

.ring-3 {
  width: 460px; height: 460px;
  border-color: rgba(37,99,235,0.06);
  animation-duration: 40s;
}

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

.profile-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.3) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.profile-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-bright);
  position: relative;
  z-index: 2;
  filter: saturate(0.9) contrast(1.05);
}

/* Fallback if icon.png missing */
.profile-img-fallback {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border: 2px solid var(--border-bright);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.profile-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--white-dim);
  letter-spacing: 0.08em;
  z-index: 3;
}

.badge-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

.floating-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.f-tag {
  position: absolute;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blue-bright);
  letter-spacing: 0.08em;
  animation: floatTag 4s ease-in-out infinite;
}

.f-tag.t1 { top: 0; right: -20px; animation-delay: 0s; }
.f-tag.t2 { top: 50%; right: -40px; transform: translateY(-50%); animation-delay: 1s; }
.f-tag.t3 { bottom: 20px; right: -10px; animation-delay: 0.5s; }
.f-tag.t4 { top: 20px; left: -30px; animation-delay: 1.5s; }

@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.f-tag.t2 {
  animation-name: floatTag2;
}
@keyframes floatTag2 {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 8px)); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--blue-bright));
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dimmer);
}

/* =====================================================
   SECTION COMMONS
   ===================================================== */

section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 64px;
  position: relative;
}

/* Subtle dark backdrop on non-hero sections for readability over space bg */
section:not(#hero) {
  background: rgba(5, 10, 18, 0.55);
  backdrop-filter: blur(2px);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

#about { padding: 100px 64px; }

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

.about-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 28px;
}

.about-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--blue-bright);
  border-left: 2px solid var(--blue-bright);
  padding-left: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.about-timeline { display: flex; flex-direction: column; gap: 28px; }

.tl-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  flex-shrink: 0;
  margin-top: 5px;
}
.tl-dot.active { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tl-dot.current { background: var(--blue-bright); border-color: var(--blue-bright); box-shadow: 0 0 12px rgba(96,165,250,0.6); animation: pulse-dot 2s ease-in-out infinite; }

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--blue-bright);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.tl-item p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.65;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 48px;
}

.about-card {
  background: rgba(14, 21, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s;
  backdrop-filter: blur(8px);
}

.about-card:hover {
  border-color: rgba(96,165,250,0.3);
  transform: translateX(4px);
}

.ac-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--blue-bright);
}
.ac-icon svg { width: 100%; height: 100%; }

.about-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-card p {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.6;
}

.skill-card code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-bright);
  background: rgba(37,99,235,0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

.section-header {
  margin-bottom: 64px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blue-bright);
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-header p {
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 12px;
  letter-spacing: 0.05em;
}

/* =====================================================
   3D SECTION
   ===================================================== */

#interactive3d {
  padding: 80px 48px;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

#threeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--white-dimmer);
  background: rgba(3,5,8,0.6);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  pointer-events: none;
}

.canvas-hint svg { width: 14px; height: 14px; }

/* =====================================================
   SKILLS
   ===================================================== */

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

.skill-card {
  background: rgba(14, 21, 32, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

.skill-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(37,99,235,0.08);
}

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

.skill-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--blue-bright);
}
.skill-icon svg { width: 100%; height: 100%; }

.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.skill-card p {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.skill-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s var(--ease-out);
}

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

.skill-tags span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 4px;
  color: var(--blue-bright);
}

/* =====================================================
   PROJECTS
   ===================================================== */

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

.project-card {
  background: rgba(14, 21, 32, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(37,99,235,0.08);
}

.project-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.project-media {
  flex: 1;
  background: var(--deep);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.project-card.featured .project-media {
  min-width: 360px;
  min-height: auto;
}

.project-mockup {
  background: #0a0f17;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
}

.project-mockup.small { max-width: 260px; font-size: 0.8em; }

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.mockup-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-bright);
}

.mockup-content {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
}

.code-line { white-space: nowrap; }
.code-line.small { font-size: 0.65rem; }
.code-line.pad { padding-left: 16px; }
.code-line.c-dim { color: var(--white-dimmer); }

.c-k { color: #7dd3fc; }
.c-v { color: #a5f3fc; }
.c-o { color: var(--white-dim); }
.c-f { color: #93c5fd; }
.c-s { color: #86efac; }

.api-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.api-method {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  width: 36px;
  text-align: center;
}

.api-method.get { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.api-method.post { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.api-method.del { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }

.api-path { font-family: var(--font-mono); font-size: 0.68rem; color: var(--white-dim); }

.dashboard { }
.dash-row { display: flex; gap: 8px; margin-bottom: 12px; }
.dash-block { height: 36px; border-radius: 4px; }
.dash-block.blue { flex: 1; background: rgba(37,99,235,0.3); border: 1px solid rgba(37,99,235,0.3); }
.dash-block.white { width: 60px; background: var(--surface2); border: 1px solid var(--border); }
.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.dash-chart .bar { flex: 1; background: linear-gradient(to top, var(--blue), var(--cyan)); border-radius: 2px 2px 0 0; opacity: 0.7; }

.project-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.project-year, .project-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-year { color: var(--white-dimmer); }
.project-type {
  color: var(--blue-bright);
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.6;
  flex: 1;
}

.project-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-stack span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white-dim);
  letter-spacing: 0.05em;
}

.project-links {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-dim);
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
  cursor: none;
}

.proj-link svg { width: 14px; height: 14px; }
.proj-link:hover { color: var(--white); border-color: var(--border-bright); }
.proj-link.primary { color: var(--blue-bright); border-color: rgba(59,130,246,0.3); }
.proj-link.primary:hover { border-color: var(--blue-bright); }

/* =====================================================
   CONTACT
   ===================================================== */

#contact {
  padding: 120px 48px;
}

.contact-inner {
  background: rgba(14, 21, 32, 0.75);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.contact-inner::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--blue-bright);
  margin-top: 3px;
  flex-shrink: 0;
}

.ci-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dimmer);
  margin-bottom: 4px;
}

.contact-item a {
  font-size: 0.9rem;
  color: var(--white);
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--blue-bright); }

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

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dimmer);
}

.form-group input,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

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

/* =====================================================
   FOOTER
   ===================================================== */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
}

footer p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-dimmer);
  letter-spacing: 0.08em;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blue-bright);
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.7; }

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-card.featured { grid-column: span 1; flex-direction: column; }
  .project-card.featured .project-media { min-width: auto; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-right { padding-top: 0; }
}

@media (max-width: 768px) {
  #navbar { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-status { display: none; }

  section { padding: 80px 24px; }
  #hero { padding: 0 24px; }
  #about { padding: 60px 24px; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-top: 100px;
  }

  .hero-eyebrow { justify-content: center; }
  .hero-tagline { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }

  .hero-right { order: -1; }

  .profile-wrapper { width: 200px; height: 200px; }
  .profile-img { width: 160px; height: 160px; }
  .ring-1 { width: 220px; height: 220px; }
  .ring-2 { width: 265px; height: 265px; }
  .ring-3 { width: 310px; height: 310px; }

  .floating-tags { display: none; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }

  .contact-inner { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

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

  .canvas-wrapper { height: 320px; }

  .about-inner { grid-template-columns: 1fr; }
  .about-quote { font-size: 0.95rem; }
}

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