/* css/hero.css */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 10;
  position: relative;
}

/* Ambient Glow Orbs */
.hero-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.15;
  animation: pulse-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.glow-1 {
  top: -10%;
  left: -10%;
  background: #7928ca;
}

.glow-2 {
  bottom: -10%;
  right: -10%;
  background: #0070f3;
  animation-delay: -4s;
}

@keyframes pulse-glow {
  0% { transform: scale(0.8) translate(0, 0); opacity: 0.1; }
  100% { transform: scale(1.2) translate(30px, -30px); opacity: 0.25; }
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(to right, #0070f3, #7928ca, #ff0080);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 85%;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  z-index: 10;
  perspective: 1000px;
}

/* Sleek Glassmorphism Code Window */
.code-window {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  max-width: 550px;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 30px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(121, 40, 202, 0.15);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-12deg) rotateX(8deg);
  will-change: transform;
  /* Float animation handled by JS */
}

.window-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.window-body {
  padding: 24px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
}

.keyword { color: #FF7B72; }
.variable { color: #79C0FF; }
.property { color: #D2A8FF; }
.string { color: #A5D6FF; }
.method { color: #D2A8FF; }

/* Background subtle grid */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-content {
    margin-bottom: 60px;
  }
  
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    justify-content: center;
    width: 100%;
  }
  
  .code-window {
    transform: none;
  }
}
