/*
 * Minimal Modern Hero Section Styles
 * Clean, minimal design with focus on typography and spacing
 */

/* ===== HERO SECTION CONTAINER ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

/* Decorative background pattern */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

/* Subtle overlay for better text contrast */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  max-width: 600px;
  padding: var(--space-8) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== HERO ICON ===== */
.hero-icon {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-icon svg {
  width: 60px;
  height: 60px;
  color: var(--color-white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ===== HERO TITLE ===== */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #f8f9fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .hero-title {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
  }
}

/* ===== HERO SUBTITLE ===== */
.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  color: var(--color-white);
  opacity: 0.95;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== HERO FEATURES ===== */
.hero-features {
  display: flex;
  gap: var(--space-6);
  margin: var(--space-4) 0;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 90px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-white);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.feature-text {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* ===== HERO CTA ===== */
.hero-cta {
  margin-top: var(--space-2);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  min-width: 160px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: var(--color-white);
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(2px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet styles */
@media (max-width: 1024px) {
  .hero-section {
    min-height: 80vh;
  }

  .hero-content {
    max-width: 500px;
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
  }

  .hero-icon {
    width: 80px;
    height: 80px;
  }

  .hero-icon svg {
    width: 50px;
    height: 50px;
  }

  .hero-features {
    gap: var(--space-4);
  }

  .cta-button {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    min-width: 140px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }

  .hero-content {
    max-width: 100%;
    padding: var(--space-5) var(--space-3);
    gap: var(--space-3);
  }

  .hero-icon {
    width: 70px;
    height: 70px;
  }

  .hero-icon svg {
    width: 40px;
    height: 40px;
  }

  .hero-features {
    gap: var(--space-3);
    margin: var(--space-3) 0;
  }

  .feature-item {
    min-width: 80px;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
  }

  .feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .cta-button {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-base);
    min-width: 120px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .hero-section {
    min-height: 60vh;
  }

  .hero-content {
    padding: var(--space-4) var(--space-2);
    gap: var(--space-2);
  }

  .hero-icon {
    width: 60px;
    height: 60px;
  }

  .hero-icon svg {
    width: 35px;
    height: 35px;
  }

  .hero-features {
    gap: var(--space-2);
    margin: var(--space-2) 0;
  }

  .feature-item {
    min-width: 70px;
    gap: var(--space-1);
  }

  .feature-icon {
    width: 24px;
    height: 24px;
  }

  .feature-icon svg {
    width: 14px;
    height: 14px;
  }

  .feature-text {
    font-size: var(--font-size-xs);
  }

  .cta-button {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-width: 100px;
  }
}

/* ===== ACCESSIBILITY ===== */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-section {
    background: var(--color-primary);
  }

  .hero-section::before {
    display: none;
  }

  .hero-title,
  .hero-subtitle {
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  .cta-button {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
  }

  .cta-button:hover {
    background: var(--color-primary);
    color: var(--color-white);
  }
}

/* Focus styles for CTA button */
.cta-button:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cta-button {
    transition: none;
  }

  .cta-button:hover {
    transform: none;
  }
}



/* ===== PRINT STYLES ===== */
@media print {
  .hero-section {
    min-height: auto;
    background: var(--color-white);
    color: var(--color-black);
    padding: var(--space-4);
  }

  .hero-section::before {
    display: none;
  }

  .hero-content {
    color: var(--color-black);
  }

  .hero-title,
  .hero-subtitle {
    color: var(--color-black);
    text-shadow: none;
  }

  .hero-icon {
    display: none;
  }

  .cta-button {
    display: none;
  }
}

/* ===== FALLBACK STYLES ===== */

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .cta-button {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* Fallback for browsers without CSS custom properties */
@supports not (color: var(--color-primary)) {
  .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  .hero-title,
  .hero-subtitle {
    color: #ffffff;
  }

  .cta-button {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Preload hint for better performance */
.hero-section {
  contain: layout style paint;
}

/* GPU acceleration for smooth interactions */
.cta-button {
  will-change: transform;
  transform: translateZ(0);
}


/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }

  .hero-content {
    gap: var(--space-3);
  }

  .hero-icon {
    width: 40px;
    height: 40px;
  }

  .cta-button {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .cta-button:hover {
    transform: none;
  }

  .cta-button:active {
    transform: scale(0.95);
  }
}



