/* Hero Section Styles */
.hero {
  min-height: 80vh; /* Reduced from 100vh to decrease grey gap */
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start */
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding-top: var(--space-8); /* Further reduced gap above Hi */
  padding-bottom: var(--space-4); /* Added bottom padding to reduce gap */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23cbd5e1" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23f1f5f9" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23f1f5f9" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23f1f5f9" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: var(--space-10) var(--space-6) var(--space-4) var(--space-6); /* Top: +10%, Bottom: reduced gap */
  position: relative;
  z-index: 2;
}

.hero-name {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.greeting {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  line-height: 1.3;
}

.title-highlight {
  color: var(--primary-color);
}

.typing-effect {
  color: var(--accent-color);
  border-right: 2px solid var(--accent-color);
  animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
  0%, 50% { border-color: var(--accent-color); }
  51%, 100% { border-color: transparent; }
}

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-12);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  margin-bottom: var(--space-1); /* Reduced from var(--space-2) */
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Animations */
.hero-content > * {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-name {
  animation-delay: 0.2s;
}

.hero-title {
  animation-delay: 0.4s;
}

.hero-tagline {
  animation-delay: 0.6s;
}

.hero-cta {
  animation-delay: 0.8s;
}

.hero-stats {
  animation-delay: 1s;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-12) 0;
  }
  
  .hero-name {
    font-size: var(--text-3xl);
  }
  
  .hero-title {
    font-size: var(--text-xl);
  }
  
  .hero-tagline {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
  }
  
  .stat {
    padding: var(--space-4);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-base);
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 var(--space-4);
  }
  
  .hero-name {
    font-size: var(--text-2xl);
  }
  
  .hero-title {
    font-size: var(--text-lg);
  }
  
  .greeting {
    font-size: var(--text-lg);
  }
}
