/* Hero Premium Stylesheet - Apple & Vercel Inspired */

:root {
  --color-primary: #2563eb;
  --color-secondary: #60a5fa;
  --color-accent: #38bdf8;
  --color-bg: #030712;
  --color-surface: #111827;
  --color-text-muted: #9ca3af;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
}

/* Hero Section Base */
#hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem 1.5rem;
}

/* Background Aurora Blobs */
.aurora-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: float-aurora-1 20s infinite alternate ease-in-out;
}

.aurora-blob-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation: float-aurora-2 25s infinite alternate ease-in-out;
}

.aurora-blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 35%;
  left: 45%;
  animation: float-aurora-3 22s infinite alternate ease-in-out;
}

@keyframes float-aurora-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes float-aurora-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -40px) scale(0.9); }
  100% { transform: translate(30px, -60px) scale(1.05); }
}

@keyframes float-aurora-3 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(30px, -30px) rotate(180deg) scale(1.1); }
  100% { transform: translate(-30px, 30px) rotate(360deg) scale(0.95); }
}

/* Floating Blur Circle (Interactive / Ambient) */
.floating-blur-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-circle-1 {
  top: 20%;
  right: 15%;
}

.floating-circle-2 {
  bottom: 25%;
  left: 10%;
}

/* Thin Grid Overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Noise Texture Overlay */
.hero-noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Cursor Glow Tracking */
#cursor-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Layout container */
.hero-content-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-w: 80rem;
  margin: 0 auto;
}

/* Loader Screen Styles */
#hero-loader {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  pointer-events: all;
}

#hero-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-glow {
  position: absolute;
  width: 12rem;
  height: 12rem;
  background-color: rgba(37, 99, 235, 0.15);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Staggered Entrance Animations */
.hero-reveal-el {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-canvas-wrapper {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-loaded .hero-reveal-el {
  opacity: 1;
  transform: translateY(0);
}

.hero-loaded .hero-canvas-wrapper {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Delay configurations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Interactive Cursor Typewriter Line */
.typewriter-cursor-blink::after {
  content: '|';
  color: var(--color-accent);
  animation: blink-cursor 0.8s infinite steps(2);
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Canvas layout styles */
.canvas-container-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.canvas-container-box canvas {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 5;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

/* Premium Buttons & Links */
.hero-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4), 0 0 15px rgba(56, 189, 248, 0.25);
}

.hero-btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
}

.hero-social-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-social-icon:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

/* Responsive Overrides */
@media (min-width: 1024px) {
  .canvas-container-box {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  #hero-section {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
  .canvas-container-box {
    aspect-ratio: 4 / 3;
    max-width: 480px;
    margin: 0 auto;
  }
}
