/*
 * portfolio/css/style.css
 * ─────────────────────────────────────────
 * Global Design System — Reset, Variables, Nav, Footer,
 * Layout, Buttons, Cards, Cursor, Canvas, Side-nav, Typography
 * ─────────────────────────────────────────
 */

/* ══════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
══════════════════════════════════════════ */
:root {
  /* Colors */
  --bg:           #020818;
  --bg2:          #050d1a;
  --bg3:          #0a1628;
  --teal:         #00f5c4;
  --teal-dim:     rgba(0, 245, 196, 0.12);
  --teal-glow:    rgba(0, 245, 196, 0.40);
  --teal-soft:    rgba(0, 245, 196, 0.06);
  --purple:       #7b5ea7;
  --purple-dim:   rgba(123, 94, 167, 0.15);
  --purple-glow:  rgba(123, 94, 167, 0.50);
  --blue:         #4d9ef7;
  --text:         #e2e8f4;
  --text-dim:     #8899b8;
  --text-faint:   rgba(136, 153, 184, 0.4);
  --border:       rgba(0, 245, 196, 0.15);
  --border-dim:   rgba(255, 255, 255, 0.06);
  --glass:        rgba(5, 13, 30, 0.75);
  --glass-light:  rgba(5, 13, 30, 0.50);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Layout */
  --nav-h:    70px;
  --radius:   8px;
  --radius-sm: 4px;

  /* Motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  0.35s var(--ease-spring);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  cursor: none;
  overflow-x: hidden;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-mono); }

/* ══════════════════════════════════════════
   3. SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ══════════════════════════════════════════
   4. SCANLINE OVERLAY
══════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 9000;
  animation: scanMove 10s linear infinite;
}

/* ══════════════════════════════════════════
   5. CANVASES
══════════════════════════════════════════ */
#star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   6. CUSTOM CURSOR
══════════════════════════════════════════ */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 10px var(--teal), 0 0 22px var(--teal-glow);
  will-change: left, top;
}

#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.2s ease;
  will-change: left, top;
}

body.cursor-hover #cursor-dot {
  width: 14px; height: 14px;
  background: var(--purple);
  box-shadow: 0 0 18px var(--purple), 0 0 40px var(--purple-glow);
}
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--purple);
  opacity: 0.8;
}

/* ══════════════════════════════════════════
   7. NAVIGATION
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: border-color 0.3s;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--teal);
  text-decoration: none;
  text-shadow: 0 0 18px var(--teal-glow);
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.nav-logo span {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width var(--transition);
  box-shadow: 0 0 6px var(--teal);
}
.nav-links a:hover  { color: var(--teal); }
.nav-links a.active { color: var(--teal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.35s, opacity 0.35s;
  box-shadow: 0 0 6px var(--teal-glow);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); right: 0;
  width: min(280px, 85vw);
  height: calc(100vh - var(--nav-h));
  background: var(--glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(110%);
  transition: transform 0.4s var(--ease-spring);
  z-index: 999;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-dim);
  transition: color var(--transition), padding-left var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--teal); padding-left: 8px; }

/* ══════════════════════════════════════════
   8. SIDE NAV DOTS
══════════════════════════════════════════ */
#side-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 500;
}

.side-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 245, 196, 0.35);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  cursor: pointer;
  position: relative;
}
.side-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.66rem;
  color: var(--teal);
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.side-dot:hover::before { opacity: 1; }
.side-dot.active {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 12px var(--teal-glow);
  transform: scale(1.4);
}

/* ══════════════════════════════════════════
   9. LAYOUT UTILITIES
══════════════════════════════════════════ */
.page-wrapper {
  position: relative;
  z-index: 10;
  padding-top: var(--nav-h);
}

.section {
  padding: 100px 8% 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8%;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ══════════════════════════════════════════
   10. SECTION HEADERS
══════════════════════════════════════════ */
.section-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}
.section-label::before { content: '[ '; opacity: 0.45; }
.section-label::after  { content: ' ]'; opacity: 0.45; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.1;
}

.section-line {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  margin: 1rem 0 3rem;
  box-shadow: 0 0 10px var(--teal-glow);
}

/* ══════════════════════════════════════════
   11. BUTTONS
══════════════════════════════════════════ */
.btn {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--bg);
  font-weight: 700;
  border-color: var(--teal);
  box-shadow: 0 0 20px var(--teal-glow), inset 0 0 20px rgba(0,245,196,0.08);
}
.btn-primary:hover {
  box-shadow: 0 0 42px var(--teal-glow), 0 0 80px var(--teal-dim);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--teal-dim);
}

/* ══════════════════════════════════════════
   12. GLASS CARD
══════════════════════════════════════════ */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover {
  box-shadow: 0 0 32px var(--teal-dim), 0 14px 44px rgba(0,0,0,0.5);
  transform: translateY(-5px);
  border-color: rgba(0, 245, 196, 0.3);
}

/* ══════════════════════════════════════════
   13. STAT CARD
══════════════════════════════════════════ */
.stat-card {
  background: var(--glass);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:nth-child(even) { border-left-color: var(--purple); }
.stat-card:hover {
  box-shadow: 0 0 28px var(--teal-dim), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.stat-card:nth-child(even):hover {
  box-shadow: 0 0 28px var(--purple-dim), 0 8px 32px rgba(0,0,0,0.4);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--teal);
  line-height: 1;
  text-shadow: 0 0 18px var(--teal-glow);
}
.stat-card:nth-child(even) .stat-number {
  color: var(--purple);
  text-shadow: 0 0 18px var(--purple-glow);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

/* ══════════════════════════════════════════
   14. TAGS
══════════════════════════════════════════ */
.tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--teal-soft);
  transition: all 0.22s;
  letter-spacing: 0.05em;
  display: inline-block;
  cursor: default;
}
.tag:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
  box-shadow: 0 0 10px var(--teal-dim);
  transform: scale(1.06);
}
.tag-teal {
  border-color: rgba(0,245,196,0.35);
  color: var(--teal);
  background: rgba(0,245,196,0.07);
}
.tag-purple {
  border-color: rgba(123,94,167,0.35);
  color: var(--purple);
  background: rgba(123,94,167,0.07);
}

/* ══════════════════════════════════════════
   15. FLOAT BADGE
══════════════════════════════════════════ */
.float-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 245, 196, 0.28);
  background: rgba(0, 245, 196, 0.06);
  color: var(--teal);
  letter-spacing: 0.1em;
  animation: floatBadge 3s ease-in-out infinite;
}
.float-badge-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   16. HERO SECTION
══════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 8% 80px;
}

/* Orbit System */
.orbit-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 620px; height: 620px;
  pointer-events: none;
  z-index: 0;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-ring-1 {
  width: 260px; height: 260px;
  border-color: rgba(0, 245, 196, 0.28);
  animation: spin 14s linear infinite;
  box-shadow: 0 0 22px rgba(0,245,196,0.07);
}
.orbit-ring-2 {
  width: 400px; height: 400px;
  border-color: rgba(123, 94, 167, 0.22);
  animation: spin 23s linear infinite reverse;
  box-shadow: 0 0 30px rgba(123,94,167,0.05);
}
.orbit-ring-3 {
  width: 560px; height: 560px;
  border-color: rgba(0, 245, 196, 0.1);
  animation: spin 38s linear infinite;
  box-shadow: 0 0 42px rgba(0,245,196,0.03);
}
.orbit-dot {
  position: absolute;
  border-radius: 50%;
}
.orbit-dot-teal {
  width: 8px; height: 8px;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal), 0 0 28px var(--teal-glow);
}
.orbit-dot-purple {
  width: 6px; height: 6px;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple), 0 0 24px var(--purple-glow);
}
.orbit-dot-white {
  width: 5px; height: 5px;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 22px rgba(255,255,255,0.4);
}

/* Hero content wrapper */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.hero-tag::before { content: '// '; opacity: 0.45; }

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 0.6rem;
}
.hero-name .glitch {
  background: linear-gradient(135deg, #ffffff 25%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.7rem);
  color: var(--purple);
  letter-spacing: 2px;
  text-shadow: 0 0 18px var(--purple-glow);
  margin-bottom: 1.4rem;
}

.hero-desc {
  max-width: 540px;
  color: var(--text-dim);
  font-size: 0.87rem;
  line-height: 2;
  margin-bottom: 2.4rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Quick stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4rem;
  padding: 1.4rem 2.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 2.2rem;
}
.hero-stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--teal);
  text-shadow: 0 0 14px var(--teal-glow);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  z-index: 2;
  animation: floatBadge 2s ease-in-out infinite;
}
.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}
.scroll-chevron {
  animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ══════════════════════════════════════════
   17. ABOUT PAGE
══════════════════════════════════════════ */
.bio-text p {
  color: var(--text-dim);
  font-size: 0.87rem;
  margin-bottom: 1.3rem;
  line-height: 2;
}
.bio-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Profile image */
.profile-img-wrapper {
  position: relative;
  width: 300px; height: 300px;
  margin: 0 auto;
}
.profile-img {
  width: 100%; height: 100%;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  object-fit: cover;
  display: block;
  background: var(--bg3);
}
.profile-frame {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(0, 245, 196, 0.2);
  border-radius: calc(var(--radius) + 14px);
  animation: spin 22s linear infinite;
  pointer-events: none;
}
.profile-info {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.profile-info-row {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 12px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  background: var(--glass-light);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(0, 245, 196, 0.2);
}
.timeline-item {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -26px; top: 4px;
  width: 12px; height: 12px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--teal-glow);
  flex-shrink: 0;
}
.timeline-content { flex: 1; }
.timeline-year {
  font-size: 0.68rem;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.timeline-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   18. SKILLS PAGE
══════════════════════════════════════════ */
.skill-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover {
  box-shadow: 0 0 32px var(--teal-dim), 0 14px 44px rgba(0,0,0,0.5);
  transform: translateY(-6px);
  border-color: rgba(0,245,196,0.28);
}

.skill-icon { font-size: 1.8rem; margin-bottom: 0.75rem; line-height: 1; }
.skill-cat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* Progress bars */
.skill-progress { margin-top: 1.1rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 5px;
  letter-spacing: 0.06em;
}
.progress-bar {
  width: 100%; height: 3px;
  background: var(--border-dim);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  width: 0;
  transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════════
   19. PROJECTS PAGE
══════════════════════════════════════════ */
.projects-list { display: flex; flex-direction: column; }

.project-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 1.8rem;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
}
.project-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal-dim), var(--purple-dim));
  transform: translateX(-101%);
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.project-row:hover::before { transform: translateX(0); }
.project-row:hover .proj-name { color: var(--teal); text-shadow: 0 0 14px var(--teal-glow); }
.project-row:hover .proj-num  { color: var(--teal); }
.project-row:hover .proj-arrow { transform: rotate(90deg); color: var(--teal); }
.project-row.expanded .proj-arrow { transform: rotate(90deg); color: var(--teal); }

.proj-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: rgba(255,255,255,0.05);
  min-width: 70px;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
  flex-shrink: 0;
}
.proj-content { flex: 1; position: relative; z-index: 1; }
.proj-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
  transition: color 0.3s, text-shadow 0.3s;
  margin-bottom: 0.3rem;
}
.proj-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.75; }
.proj-stack { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.65rem; position: relative; z-index: 1; }
.proj-tag {
  font-size: 0.67rem;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid rgba(0,245,196,0.22);
  color: var(--teal);
  background: rgba(0,245,196,0.06);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.proj-arrow {
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.35s, color 0.3s;
  position: relative; z-index: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.proj-expand {
  position: relative;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-spring), padding 0.3s;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.85;
}
.proj-expand.open { max-height: 400px; padding-top: 1rem; }

/* Hide "click to expand" hint once the row is expanded */
.project-row.expanded .proj-arrow span:first-child { display: none; }

/* Featured project cards */
.proj-featured-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.proj-featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
}
.proj-featured-card:hover::before { opacity: 1; }
.proj-featured-card:hover {
  box-shadow: 0 0 30px var(--teal-dim), 0 14px 44px rgba(0,0,0,0.5);
  transform: translateY(-5px);
  border-color: rgba(0,245,196,0.3);
}
.proj-feat-icon { font-size: 2rem; margin-bottom: 1rem; }
.proj-feat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.proj-feat-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 1.2rem; }
.proj-feat-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem; }
.proj-feat-actions { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }

/* ══════════════════════════════════════════
   20. CONTACT PAGE
══════════════════════════════════════════ */
.contact-email {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -1px;
  text-shadow: 0 0 30px var(--teal-glow);
  transition: text-shadow 0.3s, letter-spacing 0.3s;
  display: inline-block;
}
.contact-email:hover {
  text-shadow: 0 0 60px var(--teal-glow), 0 0 120px var(--teal-dim);
  letter-spacing: -0.5px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
  box-shadow: 0 0 18px var(--teal-dim);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════
   21. FOOTER
══════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-dim);
  padding: 2.2rem 8%;
  text-align: center;
  background: var(--bg2);
}
footer p {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.14em;
}

/* ══════════════════════════════════════════
   22. RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .orbit-container { width: 400px; height: 400px; }
  .orbit-ring-1 { width: 180px; height: 180px; }
  .orbit-ring-2 { width: 270px; height: 270px; }
  .orbit-ring-3 { width: 380px; height: 380px; }
  .profile-img-wrapper { width: 240px; height: 240px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  #side-nav   { display: none; }
  .section    { padding: 80px 5% 60px; }
  .hero-stats { gap: 0; padding: 1rem 1.5rem; }
  .hero-stat-item { padding: 0 1rem; }
  .hero-stat-divider { height: 28px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section    { padding: 70px 4% 50px; }
  .hero-stats { flex-wrap: wrap; gap: 0.5rem; }
  .hero-stat-divider { display: none; }
  .hero-stat-item { padding: 0.5rem 1rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-name  { letter-spacing: -2px; }
}


/* ══════════════════════════════════════════
   INNER PAGES — Increased Font Sizes
   (applies to all pages except index.html)
══════════════════════════════════════════ */
body.inner-page {
  font-size: 1.08rem;
}

/* Section labels & titles */
body.inner-page .section-label {
  font-size: 0.82rem;
}
body.inner-page .section-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
}

/* Body/paragraph text */
body.inner-page p,
body.inner-page li {
  font-size: 1rem;
}

/* Tags */
body.inner-page .tag {
  font-size: 0.75rem;
}

/* Skill cards */
body.inner-page .skill-cat {
  font-size: 1.08rem;
}
body.inner-page .progress-label {
  font-size: 0.78rem;
}

/* Nav links */
body.inner-page .nav-links a {
  font-size: 0.82rem;
}

/* Buttons */
body.inner-page .btn {
  font-size: 0.85rem;
}

/* About page text */
body.inner-page .about-text,
body.inner-page .about-desc {
  font-size: 1rem;
  line-height: 1.9;
}

/* Project cards */
body.inner-page .proj-title {
  font-size: 1.4rem;
}
body.inner-page .proj-desc {
  font-size: 0.9rem;
}
body.inner-page .proj-tag {
  font-size: 0.72rem;
}
body.inner-page .proj-feat-title {
  font-size: 1.2rem;
}
body.inner-page .proj-feat-desc {
  font-size: 0.88rem;
}

/* Contact page */
body.inner-page label,
body.inner-page input,
body.inner-page textarea {
  font-size: 0.9rem;
}

/* Footer */
body.inner-page footer p {
  font-size: 0.82rem;
}

/* Glass cards tool section */
body.inner-page .glass-card > div[style*="font-weight:700"] {
  font-size: 1.2rem;
}


/* ------------------------------------------
   FEATURED PROJECT CARDS � Compact Hover
------------------------------------------ */
.proj-feat-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.proj-feat-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 28px var(--teal-glow);
  transform: translateY(-4px);
}

.proj-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-feat-emoji {
  font-size: 2rem;
  line-height: 1;
}

.proj-feat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}


/* Responsive */
@media (max-width: 900px) {
  .proj-feat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 540px) {
  .proj-feat-grid { grid-template-columns: 1fr !important; }
}
