﻿/* ===== CSS RESET & ROOT VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: #0d0d0d;
  color: #e8e8e8;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.4s, color 0.4s;
}
body.light-theme {
  background: #f5f5f5;
  color: #111;
}
:root {
  --bg: #0d0d0d;
  --bg2: #111;
  --bg3: #161616;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #e8e8e8;
  --text2: #aaa;
  --red: #ff0000;
  --gold: #ffd700;
  --accent: #ff4444;
  --nav-h: 64px;
  --radius: 16px;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.1);
}
body.light-theme {
  --bg: #f5f5f5;
  --bg2: #ebebeb;
  --bg3: #e0e0e0;
  --card: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.1);
  --text: #111;
  --text2: #555;
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(0,0,0,0.1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(#ff0000, #ffd700); border-radius: 3px; }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.08);opacity:.8} }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes glow { 0%,100%{box-shadow:0 0 8px #ff0000,0 0 20px #ff000044} 50%{box-shadow:0 0 20px #ffd700,0 0 40px #ffd70066} }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes burn-flicker { 0%,100%{opacity:1;text-shadow:0 0 8px #ff0000,0 0 20px #ffd700} 50%{opacity:.85;text-shadow:0 0 16px #ff4400,0 0 32px #ff000088} }
@keyframes wave { 0%,100%{transform:scaleY(0.4)} 50%{transform:scaleY(1)} }
@keyframes eq-bars { 0%,100%{height:4px} 50%{height:18px} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes ringRotate { to{transform:rotate(360deg)} }
@keyframes snakePulse { 0%,100%{opacity:.9} 50%{opacity:.5} }
@keyframes dragonWave { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(1.3)} }
@keyframes shimmer { 0%{background-position:-200% center} 100%{background-position:200% center} }
@keyframes borderGlow { 0%,100%{border-color:rgba(255,0,0,.4)} 50%{border-color:rgba(255,215,0,.6)} }
@keyframes loadSpin { to{transform:rotate(360deg)} }
@keyframes loadPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.2);opacity:.6} }
@keyframes loadBar { 0%{width:0} 100%{width:100%} }
@keyframes loadDots { 0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)} }
@keyframes cursorPulse { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.4)} }

/* ===== GRADIENT TEXT ===== */
.red-gold-gradient {
  background: linear-gradient(90deg, #ff0000, #ff6600, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* ===== GLASS ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: linear-gradient(135deg, #ff0000, #ffd700);
  color: #000;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,0,0,.4); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  cursor: none;
  transition: transform .2s, border-color .2s, background .2s;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: #ff0000; background: rgba(255,0,0,.08); }


/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg, #0a0c14);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .5s;
}
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.loader-text {
  font-family: 'Fira Code', monospace;
  font-size: .8rem; letter-spacing: .25em;
  color: var(--accent, #3b82f6);
  animation: burn-flicker 1.5s ease-in-out infinite;
}
#loader-container { display: flex; align-items: center; justify-content: center; min-height: 100px; }

/* Midnight — ring */
.loader-ring {
  width: 64px; height: 64px;
  border: 3px solid rgba(59,130,246,.2);
  border-top-color: var(--accent, #3b82f6);
  border-radius: 50%;
  animation: loadSpin .8s linear infinite;
}
/* Default — dots */
.loader-dots { display: flex; gap: .6rem; }
.loader-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent, #3b82f6);
  animation: loadDots 1.4s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: .16s; }
.loader-dot:nth-child(3) { animation-delay: .32s; }
/* Cyberpunk */
.loader-cyber { position:relative;width:200px;height:80px;display:flex;flex-direction:column;justify-content:center;gap:6px; }
.cyber-line { height:2px;background:linear-gradient(90deg,transparent,#facc15,transparent);animation:cyberScan 1.2s ease-in-out infinite; }
.cyber-line:nth-child(2){animation-delay:.3s;width:70%}
.cyber-line:nth-child(3){animation-delay:.6s;width:50%}
.cyber-glitch { font-family:'Oxanium',monospace;font-size:1.8rem;font-weight:900;color:#facc15;letter-spacing:.3em;text-shadow:2px 0 #f43f5e,-2px 0 #a855f7;animation:glitchText 2s infinite;text-align:center; }
@keyframes cyberScan{0%,100%{transform:scaleX(0);opacity:0}50%{transform:scaleX(1);opacity:1}}
@keyframes glitchText{0%,90%,100%{text-shadow:2px 0 #f43f5e,-2px 0 #a855f7}92%{text-shadow:-4px 0 #f43f5e,4px 0 #a855f7;transform:translateX(2px)}94%{text-shadow:4px 0 #f43f5e,-4px 0 #a855f7;transform:translateX(-2px)}96%{text-shadow:none;transform:none}}
/* Matrix */
#matrix-canvas { border-radius:8px; }
/* Galaxy */
.loader-galaxy { position:relative;width:100px;height:100px;display:flex;align-items:center;justify-content:center; }
.galaxy-ring { position:absolute;border-radius:50%;border:2px solid transparent;animation:loadSpin linear infinite; }
.galaxy-ring.r1{width:90px;height:90px;border-top-color:#a855f7;animation-duration:1.2s}
.galaxy-ring.r2{width:65px;height:65px;border-right-color:#ec4899;animation-duration:1.8s;animation-direction:reverse}
.galaxy-ring.r3{width:40px;height:40px;border-bottom-color:#6366f1;animation-duration:2.4s}
.galaxy-core{width:16px;height:16px;border-radius:50%;background:radial-gradient(circle,#fff,#a855f7);box-shadow:0 0 20px #a855f7,0 0 40px #ec489966;animation:loadPulse 1s ease-in-out infinite}
/* Sakura */
.loader-sakura { position:relative;width:100px;height:100px; }
.petal { position:absolute;font-size:1.4rem;top:50%;left:50%;transform-origin:0 0;animation:petalOrbit 2s linear infinite;animation-delay:calc(var(--i) * -0.33s); }
@keyframes petalOrbit{from{transform:rotate(calc(var(--i)*60deg)) translateX(38px) rotate(0deg)}to{transform:rotate(calc(var(--i)*60deg + 360deg)) translateX(38px) rotate(360deg)}}
/* Amber */
.loader-fire { position:relative;width:80px;height:80px;display:flex;align-items:flex-end;justify-content:center;gap:4px; }
.flame { width:18px;border-radius:50% 50% 20% 20%;animation:flameRise 1s ease-in-out infinite alternate;transform-origin:bottom; }
.flame.f1{height:50px;background:linear-gradient(to top,#f59e0b,#ef4444);animation-delay:0s}
.flame.f2{height:70px;background:linear-gradient(to top,#fbbf24,#f97316);animation-delay:.15s}
.flame.f3{height:45px;background:linear-gradient(to top,#f59e0b,#dc2626);animation-delay:.3s}
@keyframes flameRise{from{transform:scaleY(1) skewX(0)}to{transform:scaleY(1.3) skewX(8deg)}}
/* Mint */
.loader-wave-wrap { display:flex;align-items:center;gap:5px;height:60px; }
.wave-bar { width:8px;border-radius:4px;background:linear-gradient(to top,#10b981,#06b6d4);animation:waveBar 1s ease-in-out infinite alternate;animation-delay:calc(var(--i)*.15s); }
@keyframes waveBar{from{height:12px;opacity:.5}to{height:52px;opacity:1}}
@keyframes loadSpin{to{transform:rotate(360deg)}}
@keyframes loadPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:.7}}
@keyframes loadDots{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}

/* ===== DOT CURSOR ===== */
#dot-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform .1s;
  line-height: 1;
  user-select: none;
  mix-blend-mode: normal;
}
#dot-cursor.cursor-hover {
  transform: translate(-50%, -50%) scale(1.6);
  filter: brightness(1.5);
}

/* ===== NAVIGATION ===== */
nav#main-nav {
  position: fixed; top: 1.2rem; left: 0; right: 0;
  z-index: 1000;
  display: flex; justify-content: center; align-items: flex-start;
  pointer-events: none;
  /* NO hide on scroll — always visible */
}

/* Pill container */
.pill-nav {
  pointer-events: all;
  display: flex; align-items: center; gap: .25rem;
  background: rgba(10, 12, 20, 0.82);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .35rem .5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
}

/* Generic pill item */
.pill-item {
  display: flex; align-items: center; gap: .4rem;
  padding: .42rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.55);
  background: none;
  border: none;
  cursor: none;
  text-decoration: none;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.pill-item:hover { color: #fff; background: rgba(255,255,255,.07); }

/* Active nav link */
.pill-link.active {
  background: var(--accent, #2563eb);
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(37,99,235,.4);
}

/* Theme button wrapper */
.pill-theme-wrap { position: relative; }
.pill-theme { gap: .45rem; color: rgba(255,255,255,.75); }
.pill-theme-label { font-size: .78rem; font-weight: 600; }
.pill-chevron { opacity: .5; transition: transform .2s; }
.pill-theme-wrap.open .pill-chevron { transform: rotate(180deg); }

/* Theme dropdown */
.theme-dropdown {
  position: absolute;
  top: calc(100% + .75rem);
  left: 0;
  width: 260px;
  background: rgba(12,14,22,.96);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  z-index: 100;
  transition: opacity .2s, transform .2s;
}
.theme-dropdown.hidden { display: none; }
.theme-dropdown-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .85rem;
  color: rgba(255,255,255,.8);
  font-size: .82rem; font-weight: 700;
}
.theme-dropdown-header small {
  color: rgba(255,255,255,.35);
  font-size: .7rem; font-weight: 400;
  margin-left: auto;
}
.theme-close {
  background: none; border: none;
  color: rgba(255,255,255,.4);
  cursor: none; font-size: .8rem;
  padding: .1rem .3rem;
  border-radius: 4px;
  transition: color .2s;
}
.theme-close:hover { color: #fff; }
.theme-group-label {
  font-size: .65rem; letter-spacing: .15em;
  color: rgba(255,255,255,.3);
  margin: .5rem 0 .4rem;
  font-family: 'Fira Code', monospace;
}
.theme-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .4rem; margin-bottom: .25rem;
}
.theme-opt {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  font-size: .78rem; font-weight: 600;
  cursor: none;
  transition: background .2s, border-color .2s, color .2s;
}
.theme-opt:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.theme-opt.active { border-color: var(--accent, #3b82f6); color: #fff; background: rgba(59,130,246,.15); }
.theme-dots { display: flex; gap: 3px; }
.theme-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }

/* Music button */
.pill-music { color: rgba(255,255,255,.7); gap: .4rem; }
.pill-chevron { opacity: .5; }

/* Divider */
.pill-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.12);
  margin: 0 .15rem; flex-shrink: 0;
}

/* Mobile hamburger — hidden on desktop */
.hamburger { display: none; }

/* Mobile menu */
#mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,12,20,.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 4.5rem 1.5rem 1.5rem;
  gap: .25rem; z-index: 999;
}
#mobile-menu.open { display: flex; }
.mobile-link {
  padding: .75rem 1rem;
  font-size: .95rem; font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none; border-radius: 10px;
  transition: color .2s, background .2s; cursor: none;
}
.mobile-link:hover { color: #fff; background: rgba(255,255,255,.06); }

/* ===== 8 THEMES ===== */
/* Dark themes */
body { --accent:#3b82f6; --accent2:#6366f1; --bg:#0a0c14; --bg2:#0f1120; --text:#e8eaf6; --text2:#8892b0; }

body[data-theme="midnight"] { --accent:#3b82f6; --accent2:#6366f1; --bg:#080c18; --bg2:#0d1224; --text:#e2e8f0; --text2:#94a3b8; }
body[data-theme="cyberpunk"] { --accent:#facc15; --accent2:#f43f5e; --bg:#0a0010; --bg2:#100018; --text:#fef9c3; --text2:#a78bfa; }
body[data-theme="matrix"] { --accent:#22c55e; --accent2:#16a34a; --bg:#000a00; --bg2:#001200; --text:#bbf7d0; --text2:#4ade80; }
body[data-theme="galaxy"] { --accent:#a855f7; --accent2:#ec4899; --bg:#06000f; --bg2:#0d0020; --text:#f3e8ff; --text2:#c084fc; }

/* Light themes */
body[data-theme="default"] { --accent:#3b82f6; --accent2:#6366f1; --bg:#f0f4ff; --bg2:#e8eeff; --text:#1e293b; --text2:#64748b; }
body[data-theme="sakura"] { --accent:#f43f5e; --accent2:#ec4899; --bg:#fff0f5; --bg2:#ffe4ef; --text:#1e0a14; --text2:#9d4e6e; }
body[data-theme="amber"] { --accent:#f59e0b; --accent2:#ef4444; --bg:#fffbeb; --bg2:#fef3c7; --text:#1c1400; --text2:#92400e; }
body[data-theme="mint"] { --accent:#10b981; --accent2:#06b6d4; --bg:#f0fdf9; --bg2:#e0faf4; --text:#022c22; --text2:#065f46; }

/* Apply theme vars globally */
body { background: var(--bg); color: var(--text); }
.pill-nav { background: color-mix(in srgb, var(--bg) 80%, transparent); }
.pill-link.active { background: var(--accent); box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 50%, transparent); }
.red-gold-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.skill-bar-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.music-play-btn { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.music-progress-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.music-float-btn { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.avatar-img { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.loader-text { color: var(--accent); }
.section-label { color: var(--accent); }
.detail-label { color: var(--accent); }
.project-link { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.contact-handle { color: var(--accent); }
.footer-links a:hover { color: var(--accent); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--accent2)); }

/* Light theme text fixes */
body[data-theme="default"], body[data-theme="sakura"], body[data-theme="amber"], body[data-theme="mint"] {
  --glass-bg: rgba(255,255,255,.6);
  --glass-border: rgba(0,0,0,.1);
}
body[data-theme="default"] .pill-nav,
body[data-theme="sakura"] .pill-nav,
body[data-theme="amber"] .pill-nav,
body[data-theme="mint"] .pill-nav {
  background: rgba(255,255,255,.85);
  border-color: rgba(0,0,0,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
body[data-theme="default"] .pill-item,
body[data-theme="sakura"] .pill-item,
body[data-theme="amber"] .pill-item,
body[data-theme="mint"] .pill-item { color: rgba(0,0,0,.55); }
body[data-theme="default"] .pill-item:hover,
body[data-theme="sakura"] .pill-item:hover,
body[data-theme="amber"] .pill-item:hover,
body[data-theme="mint"] .pill-item:hover { color: #000; background: rgba(0,0,0,.06); }
body[data-theme="default"] .pill-divider,
body[data-theme="sakura"] .pill-divider,
body[data-theme="amber"] .pill-divider,
body[data-theme="mint"] .pill-divider { background: rgba(0,0,0,.12); }
body[data-theme="default"] .theme-dropdown,
body[data-theme="sakura"] .theme-dropdown,
body[data-theme="amber"] .theme-dropdown,
body[data-theme="mint"] .theme-dropdown {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.1);
  color: #111;
}
body[data-theme="default"] .theme-opt,
body[data-theme="sakura"] .theme-opt,
body[data-theme="amber"] .theme-opt,
body[data-theme="mint"] .theme-opt {
  background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); color: rgba(0,0,0,.65);
}
body[data-theme="default"] .theme-group-label,
body[data-theme="sakura"] .theme-group-label,
body[data-theme="amber"] .theme-group-label,
body[data-theme="mint"] .theme-group-label { color: rgba(0,0,0,.35); }
body[data-theme="default"] .theme-dropdown-header,
body[data-theme="sakura"] .theme-dropdown-header,
body[data-theme="amber"] .theme-dropdown-header,
body[data-theme="mint"] .theme-dropdown-header { color: rgba(0,0,0,.8); }
body[data-theme="default"] #mobile-menu,
body[data-theme="sakura"] #mobile-menu,
body[data-theme="amber"] #mobile-menu,
body[data-theme="mint"] #mobile-menu { background: rgba(255,255,255,.97); }
body[data-theme="default"] .mobile-link,
body[data-theme="sakura"] .mobile-link,
body[data-theme="amber"] .mobile-link,
body[data-theme="mint"] .mobile-link { color: rgba(0,0,0,.6); }

/* ===== SOCIAL ICONS — fix on light themes ===== */
.social-icon-btn svg { fill: #ffffff; }
body[data-theme="default"] .social-icon-btn,
body[data-theme="sakura"] .social-icon-btn,
body[data-theme="amber"] .social-icon-btn,
body[data-theme="mint"] .social-icon-btn {
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.15);
}
body[data-theme="default"] .social-icon-btn svg,
body[data-theme="sakura"] .social-icon-btn svg,
body[data-theme="amber"] .social-icon-btn svg,
body[data-theme="mint"] .social-icon-btn svg { fill: #111111; }

/* ===== PER-THEME BACKGROUND ANIMATIONS ===== */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .6s;
}

/* Cyberpunk — scanlines */
body[data-theme="cyberpunk"]::before {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(250,204,21,.03) 2px, rgba(250,204,21,.03) 4px);
  opacity: 1;
  animation: scanlines 8s linear infinite;
}
@keyframes scanlines { from{background-position:0 0} to{background-position:0 100px} }

/* Galaxy — nebula glow */
body[data-theme="galaxy"]::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(168,85,247,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(236,72,153,.1) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 80%, rgba(99,102,241,.08) 0%, transparent 50%);
  opacity: 1;
  animation: nebulaPulse 6s ease-in-out infinite alternate;
}
@keyframes nebulaPulse { from{opacity:.6} to{opacity:1} }

/* Sakura — floating petals bg */
body[data-theme="sakura"]::before {
  background: radial-gradient(ellipse at 30% 30%, rgba(244,63,94,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(236,72,153,.06) 0%, transparent 50%);
  opacity: 1;
}

/* Amber — warm glow */
body[data-theme="amber"]::before {
  background: radial-gradient(ellipse at 50% 100%, rgba(245,158,11,.12) 0%, transparent 60%);
  opacity: 1;
  animation: amberGlow 4s ease-in-out infinite alternate;
}
@keyframes amberGlow { from{opacity:.5} to{opacity:1} }

/* Mint — cool radial */
body[data-theme="mint"]::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,.1) 0%, transparent 60%);
  opacity: 1;
}

/* Matrix — handled by canvas in loader, subtle green tint */
body[data-theme="matrix"]::before {
  background: radial-gradient(ellipse at 50% 50%, rgba(34,197,94,.04) 0%, transparent 70%);
  opacity: 1;
}

/* Responsive */
@media (max-width: 640px) {
  .pill-nav { display: none; }
  .hamburger {
    display: flex;
    position: fixed; top: 1rem; right: 1rem;
    z-index: 1001;
    flex-direction: column; gap: 5px;
    background: rgba(10,12,20,.85);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .6rem;
    pointer-events: all; cursor: none;
  }
  .hamburger span {
    display: block; width: 20px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
}


/* ===== SECTION COMMON ===== */
.section-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-label {
  font-family: 'Fira Code', monospace;
  font-size: .72rem;
  letter-spacing: .25em;
  color: #ff0000;
  margin-bottom: .75rem;
  opacity: .8;
}
.section-title {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}
.section-sub {
  font-size: 1rem;
  color: var(--text2);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.section-theme { position: relative; z-index: 1; }

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: 5rem;
  padding-bottom: 2rem;
}
.hero-inner {
  max-width: 1200px; width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-left { flex-shrink: 0; }
.hero-right { flex: 1; }
.avatar-wrap {
  position: relative;
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.avatar-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  position: relative; z-index: 2;
  border: 3px solid rgba(255,0,0,.4);
  animation: glow 3s ease-in-out infinite;
}
.avatar-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #ff0000;
  border-right-color: #ffd700;
  animation: ringRotate 3s linear infinite;
}
.snake-container {
  position: absolute; inset: 0;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}
.snake-body {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0000, #ffd700);
  transform: translate(-50%, -50%);
  animation: snakePulse 1.5s ease-in-out infinite;
}
.hero-badge {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: .7rem;
  letter-spacing: .2em;
  color: #ffd700;
  border: 1px solid rgba(255,215,0,.3);
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: rgba(255,215,0,.06);
  animation: pulse 2s ease-in-out infinite;
}
.hero-name {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}
.hero-tagline {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1rem;
}
.hero-typing {
  font-size: .95rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
  font-family: 'Fira Code', monospace;
}
#typing-skill::after {
  content: '|';
  animation: pulse .7s step-end infinite;
  color: #ff0000;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.social-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s;
  cursor: none;
}
.social-icon-btn:hover { transform: translateY(-3px); border-color: #ff0000; background: rgba(255,0,0,.1); }
.hero-quote {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-style: italic;
  color: var(--text2);
  font-size: .9rem;
  opacity: .7;
}
.quote-mark { color: #ff0000; font-size: 1.4rem; font-style: normal; }


/* ===== ABOUT ===== */
.about-section { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-img-col { display: flex; flex-direction: column; gap: 1.5rem; }
.about-img {
  width: 100%; border-radius: var(--radius);
  object-fit: cover; aspect-ratio: 1;
  border: 1px solid var(--glass-border);
  animation: glow 4s ease-in-out infinite;
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem;
  padding: .75rem .5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-align: center;
}
.stat-num {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}
.stat-label {
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--text2);
  text-transform: uppercase;
}
.about-text-col { display: flex; flex-direction: column; gap: 1.5rem; }
.about-bio {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.8;
}
.about-details { display: flex; flex-direction: column; gap: .5rem; }
.detail-row {
  display: flex; gap: 1rem; align-items: baseline;
  padding: .6rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.detail-label {
  font-family: 'Fira Code', monospace;
  font-size: .7rem;
  letter-spacing: .15em;
  color: #ff0000;
  min-width: 100px;
  flex-shrink: 0;
}
.detail-val { font-size: .9rem; color: var(--text); }
.detail-link {
  font-size: .9rem;
  color: #ffd700;
  text-decoration: none;
  transition: color .2s;
  cursor: none;
}
.detail-link:hover { color: #ff0000; }
.about-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SKILLS ===== */
.skills-section { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: borderGlow 4s ease-in-out infinite;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,0,0,.4);
  box-shadow: 0 8px 32px rgba(255,0,0,.15);
}
.skill-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.skill-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  display: flex; align-items: center; gap: .5rem;
}
.skill-level {
  font-family: 'Fira Code', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: rgba(255,0,0,.1);
  color: #ff6666;
  border: 1px solid rgba(255,0,0,.2);
}
.skill-level.advanced { color: #ffd700; background: rgba(255,215,0,.1); border-color: rgba(255,215,0,.2); }
.skill-bar-wrap {
  display: flex; align-items: center; gap: .75rem;
}
.skill-bar {
  flex: 1; height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0000, #ffd700);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.skill-pct {
  font-family: 'Fira Code', monospace;
  font-size: .75rem;
  color: var(--text2);
  min-width: 36px;
  text-align: right;
}


/* ===== PROJECTS ===== */
.projects-section { background: var(--bg2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid #ff0000;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .2s, box-shadow .2s, border-left-color .2s;
  backdrop-filter: blur(12px);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,0,0,.15);
  border-left-color: #ffd700;
}
.project-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.project-name {
  font-family: 'Oxanium', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}
.project-stars {
  display: flex; align-items: center; gap: .25rem;
  font-size: .75rem;
  color: #ffd700;
  flex-shrink: 0;
}
.project-desc {
  font-size: .85rem;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.project-lang {
  font-family: 'Fira Code', monospace;
  font-size: .72rem;
  color: var(--text2);
  background: rgba(255,255,255,.06);
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
}
.project-links { display: flex; gap: .5rem; }
.project-link {
  font-size: .75rem;
  font-weight: 600;
  color: #ff0000;
  text-decoration: none;
  padding: .25rem .6rem;
  border: 1px solid rgba(255,0,0,.3);
  border-radius: 999px;
  transition: background .2s, color .2s;
  cursor: none;
}
.project-link:hover { background: rgba(255,0,0,.15); color: #ffd700; }
.projects-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: var(--text2);
  font-family: 'Fira Code', monospace;
  font-size: .85rem;
}

/* ===== CONTACT ===== */
.contact-section { background: var(--bg); }
.contact-card {
  max-width: 520px; margin: 0 auto;
  padding: 2.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem;
  text-align: center;
}
.contact-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,0,0,.4);
  animation: glow 3s ease-in-out infinite;
}
.contact-name {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.contact-handle {
  font-family: 'Fira Code', monospace;
  font-size: .8rem;
  color: #ff0000;
}
.contact-tags { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.tag {
  font-size: .72rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: rgba(255,0,0,.08);
  border: 1px solid rgba(255,0,0,.2);
  color: var(--text2);
}
.contact-links { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.contact-note {
  font-size: .8rem;
  color: var(--text2);
  opacity: .6;
  font-family: 'Fira Code', monospace;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .15em;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: .8rem;
  color: var(--text2);
  text-decoration: none;
  transition: color .2s;
  cursor: none;
}
.footer-links a:hover { color: #ff0000; }
.footer-copy {
  font-family: 'Fira Code', monospace;
  font-size: .7rem;
  color: var(--text2);
  opacity: .5;
  letter-spacing: .1em;
}


/* ===== MUSIC WIDGET ===== */
.music-float-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0000, #ffd700);
  border: none;
  cursor: none;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255,0,0,.4);
  transition: transform .2s;
}
.music-float-btn:hover { transform: scale(1.1); }
.music-icon { width: 22px; height: 22px; color: #000; }
.music-pulse-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,0,0,.4);
  animation: pulse 2s ease-in-out infinite;
}
.music-widget {
  position: fixed;
  bottom: 5.5rem; right: 2rem;
  width: 300px;
  background: rgba(13,13,13,.95);
  border: 1px solid rgba(255,0,0,.3);
  border-radius: 20px;
  padding: 1.25rem;
  z-index: 900;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(255,0,0,.1);
  transition: opacity .3s, transform .3s;
}
.music-widget.hidden { opacity: 0; pointer-events: none; transform: translateY(10px) scale(.97); }
.music-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.music-widget-title {
  font-family: 'Fira Code', monospace;
  font-size: .65rem;
  letter-spacing: .2em;
  color: #ff0000;
}
.music-close-btn {
  background: none; border: none;
  color: var(--text2); font-size: .9rem;
  cursor: none; transition: color .2s;
}
.music-close-btn:hover { color: #ff0000; }
.music-disc-container {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 1rem;
}
.music-disc {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff0000, #ff6600, #ffd700, #ff0000);
  animation: spin 4s linear infinite paused;
  display: flex; align-items: center; justify-content: center;
}
.music-disc.playing { animation-play-state: running; }
.music-disc-inner {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #0d0d0d;
  display: flex; align-items: center; justify-content: center;
}
.music-disc-icon { width: 22px; height: 22px; color: #ff0000; }
.music-disc-shine {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 60%);
  pointer-events: none;
}
.music-track-info { text-align: center; margin-bottom: .75rem; }
.music-track-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-track-time {
  font-family: 'Fira Code', monospace;
  font-size: .7rem;
  color: var(--text2);
  display: flex; align-items: center; justify-content: center; gap: .25rem;
}
.music-time-sep { opacity: .4; }
.music-remaining { color: #ff0000; margin-left: .25rem; }
.music-progress-container { margin-bottom: .75rem; }
.music-progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: visible;
}
.music-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0000, #ffd700);
  border-radius: 2px;
  width: 0;
  transition: width .1s;
}
.music-progress-slider {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: none;
}
.music-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: .75rem;
}
.music-control-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: background .2s, border-color .2s;
}
.music-control-btn svg { width: 16px; height: 16px; }
.music-control-btn:hover { background: rgba(255,0,0,.15); border-color: #ff0000; }
.music-play-btn {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #ff0000, #ffd700);
  border: none;
  color: #000;
}
.music-play-btn:hover { transform: scale(1.05); background: linear-gradient(135deg, #ffd700, #ff0000); }
.music-extra-controls { display: flex; align-items: center; justify-content: space-between; }
.music-volume-container { display: flex; align-items: center; gap: .5rem; }
.music-volume-btn {
  background: none; border: none;
  color: var(--text2); cursor: none;
  display: flex; align-items: center;
}
.music-volume-btn svg { width: 16px; height: 16px; }
.music-volume-slider-container { display: flex; align-items: center; gap: .4rem; }
.music-volume-slider {
  width: 70px; height: 3px;
  accent-color: #ff0000;
  cursor: none;
}
.music-volume-value {
  font-family: 'Fira Code', monospace;
  font-size: .65rem;
  color: var(--text2);
  min-width: 30px;
}
.music-equalizer { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.eq-bar {
  width: 3px; height: 4px;
  background: linear-gradient(to top, #ff0000, #ffd700);
  border-radius: 2px;
  animation: eq-bars .8s ease-in-out infinite;
}
.eq-bar:nth-child(2) { animation-delay: .1s; }
.eq-bar:nth-child(3) { animation-delay: .2s; }
.eq-bar:nth-child(4) { animation-delay: .3s; }
.eq-bar:nth-child(5) { animation-delay: .4s; }
.music-equalizer.paused .eq-bar { animation-play-state: paused; height: 4px; }


/* ===== CSS DRAGON ===== */
#css-dragon {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9990;
}
.dragon-segment {
  position: fixed;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0000, #ffd700);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .85;
  transition: opacity .2s;
}
.dragon-head-segment {
  width: 18px; height: 18px;
  background: radial-gradient(circle, #ffd700, #ff0000);
  box-shadow: 0 0 12px #ff0000, 0 0 24px #ffd70066;
  z-index: 9991;
}
.dragon-wing {
  position: absolute;
  width: 8px; height: 8px;
  background: rgba(255,100,0,.6);
  border-radius: 50% 0;
  top: -4px;
}
.dragon-wing.left { left: -6px; transform: rotate(-45deg); }
.dragon-wing.right { right: -6px; transform: rotate(45deg); }
.dragon-branch {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,215,0,.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== SNAKE CONTAINER ===== */
.snake-container { overflow: visible; }

/* ===== PARTICLE CANVAS ===== */
#particle-canvas { opacity: .6; }

/* ===== TOAST ===== */
#toast.show { opacity: 1 !important; transform: translate(-50%, 0) !important; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 1.5rem;
  }
  .hero-right { display: flex; flex-direction: column; align-items: center; }
  .hero-btns { justify-content: center; }
  .social-row { justify-content: center; }
  .hero-tagline { text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-col { align-items: center; }
  .about-img { max-width: 240px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .music-widget { right: 1rem; left: 1rem; width: auto; bottom: 5rem; }
  .music-float-btn { bottom: 1.5rem; right: 1.5rem; }
  .section-inner { padding: 3.5rem 1rem; }
  .contact-card { padding: 1.5rem 1rem; }
  .avatar-wrap { width: 160px; height: 160px; }
  .avatar-img { width: 130px; height: 130px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.8rem; }
  .section-title { font-size: 1.8rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .stat-num { font-size: 1.1rem; }
}

/* ===== LIGHT THEME OVERRIDES ===== */
body.light-theme .project-card { background: rgba(0,0,0,.03); }
body.light-theme .skill-card { background: rgba(0,0,0,.03); }
body.light-theme nav#main-nav { background: rgba(245,245,245,.9); }
body.light-theme #mobile-menu { background: rgba(245,245,245,.97); }
body.light-theme .music-widget { background: rgba(245,245,245,.97); }
body.light-theme .music-disc-inner { background: #f5f5f5; }
body.light-theme .social-icon-btn img { filter: invert(1); }

/* ===== SECTION THEME TRANSITIONS ===== */
.section-theme { transition: background .5s; }


/* ===== ROAST BUTTON ===== */
@keyframes roastPulse {
  0%,100% { transform: scale(1); box-shadow: 0 4px 20px rgba(239,68,68,.5); }
  50% { transform: scale(1.1); box-shadow: 0 4px 32px rgba(249,115,22,.8); }
}

/* ===== SUPPORT / COFFEE SECTION ===== */
.support-section { background: var(--bg2); }

.coffee-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: linear-gradient(135deg, rgba(245,158,11,.08) 0%, rgba(10,12,20,.6) 60%);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.coffee-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(245,158,11,.12) 0%, transparent 60%);
  pointer-events: none;
}
.coffee-left { flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.coffee-emoji { font-size: 2.5rem; }
.coffee-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'Fira Code', monospace;
  font-size: .7rem; letter-spacing: .15em;
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,.35);
  padding: .3rem .8rem; border-radius: 999px;
  background: rgba(245,158,11,.08);
  width: fit-content;
}
.coffee-title {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.coffee-desc { font-size: .9rem; color: var(--text2); line-height: 1.7; max-width: 420px; }
.coffee-quote { font-style: italic; color: #f59e0b; font-size: .85rem; opacity: .85; }

.coffee-right { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.coffee-stats { display: flex; gap: 2rem; }
.coffee-stat { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.coffee-num {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.8rem; font-weight: 900;
  color: #f59e0b;
}
.coffee-label {
  font-family: 'Fira Code', monospace;
  font-size: .65rem; letter-spacing: .15em;
  color: var(--text2);
}
.coffee-btn {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 2rem;
  background: #f59e0b;
  color: #000;
  font-weight: 800; font-size: .95rem;
  border: none; border-radius: 12px;
  cursor: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(245,158,11,.4);
  white-space: nowrap;
}
.coffee-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,158,11,.6); }

/* Support Modal */
.support-modal {
  margin-top: 2rem;
  background: var(--glass-bg);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all .3s;
}
.support-modal.hidden { display: none; }
.support-modal-inner { padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.support-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.08); border: none;
  color: var(--text2); width: 28px; height: 28px;
  border-radius: 50%; cursor: none; font-size: .85rem;
  transition: background .2s, color .2s;
}
.support-modal-close:hover { background: rgba(255,0,0,.2); color: #fff; }

.support-block { display: flex; flex-direction: column; gap: .75rem; }
.support-block-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
}
.support-block-sub { font-size: .88rem; color: var(--text2); line-height: 1.6; }
.support-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem 0; }

/* bKash */
.bkash-wrap { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.bkash-qr {
  width: 200px; height: 200px;
  border-radius: 12px;
  border: 3px solid #E2136E;
  box-shadow: 0 0 20px rgba(226,19,110,.3);
  object-fit: contain;
  background: #fff;
}
.bkash-num {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; color: var(--text2);
  flex-wrap: wrap; justify-content: center;
}
.bkash-num code {
  background: rgba(226,19,110,.1);
  border: 1px solid rgba(226,19,110,.3);
  color: #f9a8d4; padding: .2rem .6rem;
  border-radius: 6px; font-family: 'Fira Code', monospace;
  font-size: .82rem;
}
.bkash-hint { font-size: .78rem; color: var(--text2); opacity: .7; text-align: center; font-style: italic; }

/* Crypto table */
.crypto-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); }
.crypto-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.crypto-table th {
  background: rgba(255,255,255,.05);
  padding: .6rem 1rem;
  text-align: left;
  font-family: 'Fira Code', monospace;
  font-size: .68rem; letter-spacing: .1em;
  color: var(--text2);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.crypto-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text2);
  vertical-align: middle;
}
.crypto-table tr:last-child td { border-bottom: none; }
.crypto-table tr:hover td { background: rgba(245,158,11,.04); }
.crypto-table code {
  font-family: 'Fira Code', monospace;
  font-size: .72rem;
  color: #fbbf24;
  word-break: break-all;
}
.copy-btn {
  padding: .2rem .6rem;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 6px;
  color: #f59e0b;
  font-size: .7rem;
  cursor: none;
  white-space: nowrap;
  transition: background .2s;
  font-family: 'Fira Code', monospace;
}
.copy-btn:hover { background: rgba(245,158,11,.2); }
.crypto-warning {
  font-size: .75rem;
  color: #f59e0b;
  opacity: .7;
  padding: .6rem .8rem;
  background: rgba(245,158,11,.06);
  border-left: 3px solid rgba(245,158,11,.4);
  border-radius: 0 6px 6px 0;
  font-family: 'Fira Code', monospace;
}

@media (max-width: 768px) {
  .coffee-card { flex-direction: column; padding: 1.5rem; gap: 1.5rem; }
  .coffee-right { width: 100%; }
  .coffee-stats { justify-content: center; }
  .coffee-btn { width: 100%; justify-content: center; }
  .crypto-table td:nth-child(3) { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
}
