﻿/* ========================================
   hero.css
   ======================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,110,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,110,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,110,247,0.10) 0%, rgba(124,58,237,0.06) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-8) var(--space-12);
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(79,110,247,0.08);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: var(--space-6);
  animation: fade-in 0.8s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  animation: blink 2s ease-in-out infinite;
}

/* Hero name */
.hero-name {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  animation: fade-in 0.9s ease 0.2s both;
}

.hero-name .line1 { display: block; }
.hero-name .line2 {
  display: block;
  background: linear-gradient(135deg, #4F6EF7 0%, #7C3AED 60%, #4F6EF7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.hero-cursor { display: none !important; 
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--accent-primary);
  margin-left: 4px;
  vertical-align: text-bottom;
  border-radius: 2px;
  animation: blink 1s step-end infinite;
}

/* Hero description */

/* Hero description with terminal cursor flickering line */
.hero-desc-wrapper {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-10);
  max-width: 620px;
  animation: fade-in 1s ease 0.4s both;
}

.hero-desc-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  animation: terminal-blink 1s step-end infinite;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}


/* Hero CTA */
.hero-cta {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
  animation: fade-in 1s ease 0.6s both;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--accent-primary);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 0 0 rgba(79,110,247,0);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-25deg);
  transition: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,110,247,0.45);
}

.btn-primary:hover::after {
  animation: shimmer 0.6s ease forwards;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: color var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
  transform: translateY(-2px);
}

/* Floating tech badges */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  animation: float var(--dur, 5s) ease-in-out infinite var(--del, 0s);
  opacity: 0.85;
}

.hero-float-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color, var(--accent-primary));
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  z-index: 2;
  animation: fade-in 1s ease 1.2s both;
}

.scroll-indicator-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.scroll-indicator-wheel {
  width: 3px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  animation: float 1.5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1279px) {
  .hero-content { padding: var(--space-8) var(--space-6); }
  .hero-float-badge { display: none; }
}

@media (max-width: 767px) {
  .hero-name { font-size: clamp(2.2rem, 10vw, 4rem); }
  .hero-description { font-size: var(--text-lg); }
}
