/* ============================================
   NUTREON — Home Page CSS
   Hero section and home-specific styles
   ============================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-height) 2rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Gradient Orbs */
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
  top: 20%;
  right: -8%;
  animation-delay: -3s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33% { transform: translateY(-30px) translateX(15px) scale(1.05); }
  66% { transform: translateY(20px) translateX(-10px) scale(0.97); }
}

/* Particle Canvas */
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* Grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 4rem 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(241,245,249,0.7);
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
  transition-delay: 0s;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-cyan); }
  50% { box-shadow: 0 0 16px var(--accent-cyan), 0 0 30px rgba(6,182,212,0.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 2rem;
  transition-delay: 0.1s;
}

.title-line {
  display: block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  transition-delay: 0.2s;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  transition-delay: 0.25s;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.platform-chip:hover {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.25);
  color: var(--accent-blue-light);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  transition-delay: 0.3s;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition-delay: 0.4s;
}

.stat { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  animation: fadeInUp 1s ease 1.5s forwards;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent-blue-light));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

.hero-scroll-indicator span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes fadeInUp {
  to { opacity: 1; }
}

/* ── Thumbnail Gradients by Platform ── */
.thumb-windows {
  background: linear-gradient(135deg, #0f2050 0%, #1e3a8a 50%, #1d4ed8 100%);
}

.thumb-web {
  background: linear-gradient(135deg, #0c3043 0%, #0e7490 50%, #06b6d4 100%);
}

.thumb-android {
  background: linear-gradient(135deg, #1e0a3c 0%, #5b21b6 50%, #7c3aed 100%);
}

.card-thumb-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* ── Platform section overrides ── */
#projects {
  padding-top: 2rem;
}

/* ── Notification Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(7,13,26,0.95);
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  z-index: 9999;
  backdrop-filter: blur(20px);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon { font-size: 1.2rem; }
