/* ── Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Nunito:wght@400;600;700&display=swap');

/* ── Variables ────────────────────────────────────── */
:root {
  --bg: #0F0F1A;
  --bg-alt: #1A1A2E;
  --surface: #16213E;
  --primary: #FF6B6B;
  --secondary: #4ECDC4;
  --accent: #FFE66D;
  --text: #F0F0F0;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B80;
  --glass-bg: rgba(22, 33, 62, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;
  --radius: 20px;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fredoka', sans-serif; }
a { color: inherit; text-decoration: none; }

/* ── Particles ────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: float-up linear infinite;
}

.particle:nth-child(1)  { left: 5%;  width: 4px; height: 4px; background: var(--secondary); animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2)  { left: 15%; width: 6px; height: 6px; background: var(--primary);   animation-duration: 14s; animation-delay: 2s; }
.particle:nth-child(3)  { left: 25%; width: 3px; height: 3px; background: var(--accent);    animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4)  { left: 35%; width: 5px; height: 5px; background: var(--secondary); animation-duration: 16s; animation-delay: 1s; }
.particle:nth-child(5)  { left: 45%; width: 4px; height: 4px; background: var(--primary);   animation-duration: 11s; animation-delay: 3s; }
.particle:nth-child(6)  { left: 55%; width: 7px; height: 7px; background: var(--accent);    animation-duration: 13s; animation-delay: 5s; }
.particle:nth-child(7)  { left: 65%; width: 3px; height: 3px; background: var(--secondary); animation-duration: 15s; animation-delay: 0.5s; }
.particle:nth-child(8)  { left: 75%; width: 5px; height: 5px; background: var(--primary);   animation-duration: 12s; animation-delay: 2.5s; }
.particle:nth-child(9)  { left: 85%; width: 4px; height: 4px; background: var(--accent);    animation-duration: 14s; animation-delay: 4.5s; }
.particle:nth-child(10) { left: 92%; width: 6px; height: 6px; background: var(--secondary); animation-duration: 10s; animation-delay: 1.5s; }
.particle:nth-child(11) { left: 10%; width: 5px; height: 5px; background: var(--primary);   animation-duration: 13s; animation-delay: 6s; }
.particle:nth-child(12) { left: 30%; width: 4px; height: 4px; background: var(--accent);    animation-duration: 11s; animation-delay: 7s; }
.particle:nth-child(13) { left: 50%; width: 3px; height: 3px; background: var(--secondary); animation-duration: 15s; animation-delay: 3.5s; }
.particle:nth-child(14) { left: 70%; width: 6px; height: 6px; background: var(--primary);   animation-duration: 12s; animation-delay: 5.5s; }
.particle:nth-child(15) { left: 88%; width: 4px; height: 4px; background: var(--accent);    animation-duration: 14s; animation-delay: 8s; }

@keyframes float-up {
  0%   { bottom: -10%; opacity: 0; transform: translateX(0) scale(1); }
  10%  { opacity: 0.6; }
  50%  { opacity: 0.3; transform: translateX(30px) scale(1.2); }
  90%  { opacity: 0.1; }
  100% { bottom: 110%; opacity: 0; transform: translateX(-20px) scale(0.8); }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 120px;
}

.hero-content {
  animation: fade-in-up 1s ease-out;
}

.hero-greeting {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: fade-in-up 0.8s ease-out;
}

.hero-name {
  font-size: 72px;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-in-up 1s ease-out 0.2s both;
}

.hero-tagline {
  font-size: 22px;
  color: var(--text-secondary);
  margin-top: 16px;
  font-weight: 600;
  animation: fade-in-up 1s ease-out 0.4s both;
}

.hero-roles {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  animation: fade-in-up 1s ease-out 0.6s both;
}

.role-tag {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scroll-arrow {
  font-size: 24px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* ── Section Title ────────────────────────────────── */
.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ── Glass Card ───────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(78, 205, 196, 0.05);
}

/* ── Apps Section ─────────────────────────────────── */
.apps {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.app-card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  display: block;
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(78, 205, 196, 0.06), transparent 50%);
  pointer-events: none;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-meta h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.app-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-live {
  background: rgba(78, 205, 196, 0.15);
  color: var(--secondary);
}

.badge-soon {
  background: rgba(255, 230, 109, 0.12);
  color: var(--accent);
}

.app-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-features span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 107, 107, 0.08);
  color: var(--primary);
  border: 1px solid rgba(255, 107, 107, 0.12);
}

.app-card--soon {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Tech Stack Section ───────────────────────────── */
.stack {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stack-group {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
}

.stack-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, color 0.2s;
}

.stack-tag:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ── Connect Section ──────────────────────────────── */
.connect {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.connect-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.connect-link:hover {
  color: var(--text);
}

.connect-icon {
  font-size: 20px;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .hero-name { font-size: 48px; }
  .hero-tagline { font-size: 18px; }
  .hero-greeting { font-size: 14px; }
  .section-title { font-size: 28px; }
  .app-card { padding: 24px; }
  .app-icon { width: 40px; height: 40px; }
  .app-meta h3 { font-size: 20px; }
  .connect-links { flex-direction: column; align-items: center; }
  .role-tag { font-size: 12px; padding: 5px 12px; }
  .stack-grid { grid-template-columns: 1fr; }
}
