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

:root {
  --bg:  #080c0b;
  --bg2: #0b110e;
  --bg3: #101814;
  --bg4: #151e1b;
  --border:      rgba(255,255,255,0.06);
  --border-glow: rgba(45,212,191,0.3);

  --teal:  #2dd4bf;
  --teal2: #5eead4;
  --green: #34d399;
  --green2: #6ee7b7;
  --lime:  #a3e635;
  --orange: #fb923c;
  --red:    #f87171;
  --blue:   #60a5fa;
  --yellow: #fbbf24;

  --text:  #f0fafa;
  --text2: #94a3b8;
  --text3: #64748b;

  --grad: linear-gradient(135deg, var(--teal), var(--green));
  --grad-text: linear-gradient(135deg, #5eead4 0%, #34d399 55%, #a3e635 100%);

  --radius:  12px;
  --radius2: 20px;
  --shadow2: 0 20px 60px rgba(0,0,0,0.5);
  --nav-h:   72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ===== CANVAS ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s;
}

#navbar.scrolled {
  background: rgba(8,12,11,0.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(45,212,191,0.4);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--bg4); }

.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(8,12,11,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 0.3s;
}

.mobile-menu.open { transform: translateY(0); display: block; }
.mobile-menu ul { list-style: none; padding: 16px; }

.mobile-menu li a {
  display: block;
  padding: 14px 16px;
  color: var(--text2);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: 0.2s;
}

.mobile-menu li a:hover { color: var(--text); background: var(--bg4); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 30px rgba(45,212,191,0.3);
}

.btn-primary:hover { box-shadow: 0 0 45px rgba(45,212,191,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(45,212,191,0.06);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.full-width { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.section-title.centered { text-align: center; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 60px;
}

.section-sub.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeDown 0.6s ease forwards;
}

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

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.title-line { display: block; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

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

.stat { text-align: center; padding: 0 28px; }
.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal2);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 2px;
  font-weight: 500;
}

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

/* ===== HERO VISUAL / AVATAR ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(45,212,191,0.2) 0%, transparent 70%);
  top: -80px; right: -60px;
  animation: float1 6s ease-in-out infinite;
}

.orb-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(52,211,153,0.18) 0%, transparent 70%);
  bottom: -60px; left: -40px;
  animation: float2 8s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0,0); }
  50%       { transform: translate(-20px, 20px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0,0); }
  50%       { transform: translate(15px, -15px); }
}

.avatar-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: floatCard 7s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.avatar-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(45,212,191,0.2);
  animation: ring-pulse 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.4; }
  50%       { transform: translate(-50%,-50%) scale(1.06); opacity: 1; }
}

.hero-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(45,212,191,0.45);
  box-shadow:
    0 0 50px rgba(45,212,191,0.2),
    0 0 100px rgba(52,211,153,0.1),
    var(--shadow2);
  display: block;
}

.avatar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.25);
  padding: 8px 18px;
  border-radius: 100px;
}

/* ===== ABOUT ===== */
#about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }

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

.about-text {
  font-size: 1.02rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal2);
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.18);
  padding: 5px 14px;
  border-radius: 100px;
  transition: 0.2s;
}

.tag:hover { background: rgba(45,212,191,0.14); border-color: var(--teal); }

.about-card-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s;
}

.about-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.ac-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--teal2);
}

.ac-icon svg { width: 22px; height: 22px; }

.about-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.about-card p {
  font-size: 0.83rem;
  color: var(--text3);
  line-height: 1.6;
}

/* ===== SKILLS ===== */
#skills { background: var(--bg); }

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

.skill-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,212,191,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.skill-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(45,212,191,0.06);
}

.skill-card.featured {
  border-color: rgba(45,212,191,0.18);
}

.skill-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.skill-icon svg { width: 26px; height: 26px; }

.neon-teal   { background: rgba(45,212,191,0.1);  border: 1px solid rgba(45,212,191,0.25); color: var(--teal2); }
.neon-green  { background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.25); color: var(--green2); }
.neon-lime   { background: rgba(163,230,53,0.08); border: 1px solid rgba(163,230,53,0.22); color: var(--lime); }
.neon-orange { background: rgba(251,146,60,0.1);  border: 1px solid rgba(251,146,60,0.25); color: var(--orange); }
.neon-blue   { background: rgba(96,165,250,0.1);  border: 1px solid rgba(96,165,250,0.25); color: var(--blue); }
.neon-red    { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); color: var(--red); }

.skill-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.84rem;
  color: var(--text3);
  line-height: 1.65;
  margin-bottom: 20px;
}

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

.skill-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal2);
}

/* ===== PROJECTS ===== */
#projects { background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); }

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

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card.big { grid-column: span 2; }

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 40px rgba(45,212,191,0.07);
}

.project-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(45,212,191,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.project-header {
  margin-bottom: 16px;
}

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

.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-tag.viral    { background: rgba(251,146,60,0.12); color: var(--orange); border: 1px solid rgba(251,146,60,0.25); }
.project-tag.monetized{ background: rgba(52,211,153,0.1);  color: var(--green2); border: 1px solid rgba(52,211,153,0.25); }
.project-tag.system   { background: rgba(96,165,250,0.1);  color: var(--blue);   border: 1px solid rgba(96,165,250,0.25); }
.project-tag.ui       { background: rgba(45,212,191,0.1);  color: var(--teal2);  border: 1px solid rgba(45,212,191,0.25); }

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.project-tech span {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(45,212,191,0.07);
  border: 1px solid rgba(45,212,191,0.14);
  padding: 4px 10px;
  border-radius: 6px;
}

.project-metrics {
  display: flex;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.metric { flex: 1; text-align: center; }
.metric + .metric { border-left: 1px solid var(--border); }

.metric-val {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-key {
  display: block;
  font-size: 0.73rem;
  color: var(--text3);
  margin-top: 3px;
}

/* ===== CONTACT ===== */
#contact {
  background: var(--bg);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,212,191,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.discord-tag {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
}

.discord-id {
  font-size: 0.8rem;
  color: var(--text3);
  font-weight: 400;
  margin-left: 8px;
  font-family: monospace;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy { font-size: 0.84rem; color: var(--text3); }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.84rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-group.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-group.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-group.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-group.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.reveal-group.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.reveal-group.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }
.reveal-group.visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.6s; }
.reveal-group.visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.7s; }

/* ===== ACTIVE NAV ===== */
.nav-links a.active {
  color: var(--teal2);
  background: rgba(45,212,191,0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.big { grid-column: span 1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section-inner { padding: 72px 20px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .stat { padding: 0 16px; }
  .stat-num { font-size: 1.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .about-card-wrap { grid-template-columns: 1fr; }
}
