/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a1a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,58,237,0.2);
}
.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #7c3aed;
  letter-spacing: 2px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #7c3aed; }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-burger span {
  width: 26px; height: 2px; background: #e2e8f0; transition: 0.3s;
}
@media (max-width: 700px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 0;
    background: rgba(10,10,26,0.95); backdrop-filter: blur(16px);
    padding: 24px 0; transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; font-size: 16px; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 60px; position: relative; overflow: hidden;
}
.hero-greeting {
  font-size: 18px; color: #a78bfa; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px;
}
.hero-name {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(32px, 7vw, 72px);
  background: linear-gradient(135deg, #7c3aed, #ec4899, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: nameFloat 3s ease-in-out infinite;
}
@keyframes nameFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-tagline {
  font-size: 22px; color: #cbd5e1; margin-bottom: 12px;
}
.typed-text { color: #ec4899; font-weight: 700; }
.cursor {
  color: #ec4899; animation: blink 0.8s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0; }
}
.hero-desc {
  max-width: 520px; color: #94a3b8; font-size: 16px; margin-bottom: 32px;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block; padding: 14px 32px; border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(124,58,237,0.55);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: absolute; bottom: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #64748b; font-size: 12px;
}
.mouse {
  width: 24px; height: 38px; border: 2px solid #64748b;
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.wheel {
  width: 3px; height: 8px; background: #7c3aed; border-radius: 2px;
  animation: scrollWh 1.5s infinite;
}
@keyframes scrollWh {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ===== Particles ===== */
.hero-bg-particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.particle {
  position: absolute; bottom: -10px;
  border-radius: 50%; opacity: 0.6;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-dark { background: rgba(124,58,237,0.04); }
.section-title {
  text-align: center; font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 3vw, 24px); margin-bottom: 56px;
  color: #e2e8f0;
}

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
}
.about-avatar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.avatar-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: 50%; opacity: 0.3; filter: blur(24px);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes glowPulse {
  0%,100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.08); }
}
.avatar-placeholder {
  position: relative; z-index: 1;
  width: 200px; height: 200px;
  background: rgba(124,58,237,0.15);
  border: 2px solid rgba(124,58,237,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-img {
  display: none;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-img.active { display: block; }
.avatar-emoji.hidden { display: none; }
.avatar-upload-btn {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 16px; padding: 10px 20px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 10px;
  color: #a78bfa; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  pointer-events: auto;
}
.avatar-upload-btn:hover {
  background: rgba(124,58,237,0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.avatar-upload-btn:active {
  transform: scale(0.97);
}
.about-text p { margin-bottom: 14px; color: #cbd5e1; }
.about-text strong { color: #a78bfa; }

.about-stats {
  display: flex; gap: 32px; margin-top: 28px;
}
@media (max-width: 700px) { .about-stats { justify-content: center; } }
.stat { text-align: center; }
.stat-number {
  display: block; font-family: 'Press Start 2P', monospace;
  font-size: 28px; color: #7c3aed;
}
.stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

/* ===== Skills ===== */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.skill-card {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px; padding: 28px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s, box-shadow 0.3s;
}
.skill-card.visible {
  opacity: 1; transform: translateY(0);
}
.skill-card:hover {
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
}
.skill-icon { font-size: 36px; margin-bottom: 12px; }
.skill-card h3 { font-size: 17px; margin-bottom: 6px; color: #e2e8f0; }
.skill-card p { font-size: 14px; color: #94a3b8; margin-bottom: 14px; }
.skill-bar {
  height: 6px; background: rgba(124,58,237,0.15);
  border-radius: 3px; overflow: hidden;
}
.skill-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  border-radius: 3px;
  transition: width 1.2s ease;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.project-card {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 16px; overflow: hidden;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s, box-shadow 0.3s;
}
.project-card.visible {
  opacity: 1; transform: translateY(0);
}
.project-card:hover {
  box-shadow: 0 0 32px rgba(124,58,237,0.2);
  transform: translateY(-4px) !important;
}
.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-link:hover {
  opacity: 1;
}
.play-badge {
  display: inline-block;
  background: rgba(16,185,129,0.25);
  color: #10b981;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}
.project-image {
  height: 180px; display: flex; align-items: center; justify-content: center;
}
.project-emoji { font-size: 64px; }
.project-info { padding: 24px; }
.project-info h3 { font-size: 18px; margin-bottom: 8px; color: #e2e8f0; }
.project-info p { font-size: 14px; color: #94a3b8; margin-bottom: 14px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: rgba(124,58,237,0.15); color: #a78bfa;
}

/* ===== Contact ===== */
.contact-subtitle {
  text-align: center; color: #94a3b8; font-size: 17px; margin-bottom: 40px;
}
.contact-links {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 36px; border-radius: 16px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  color: #e2e8f0; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(124,58,237,0.25);
  border-color: #7c3aed;
}
.contact-icon { font-size: 32px; }

/* ===== Footer ===== */
.footer {
  text-align: center; padding: 28px;
  border-top: 1px solid rgba(124,58,237,0.15);
  color: #475569; font-size: 13px;
}
