/* CloakIP Standardized Hero Section Styles */

:root {
  --primary-bg: #0f0f23;
  --secondary-bg: #1a1a2e;
  --accent-bg: #16213e;
  --primary-text: #ffffff;
  --secondary-text: #a0a0a0;
  --accent-text: #e0e0e0;
  --neon-blue: #00d4ff;
  --neon-purple: #8b5cf6;
  --neon-green: #10b981;
}

/* Universal Hero Section Base */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  display: grid;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding-top: clamp(100px, 15vh, 120px);
  padding-bottom: 2rem;
  background: 
    radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--accent-bg) 100%);
  overflow: hidden;
  scroll-margin-top: 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.hero .subtitle {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: #e0e0e0;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Alternative: For pages where hero is not full viewport */
.hero.compact {
  position: relative;
  min-height: 70vh;
  margin-top: clamp(80px, 12vw, 100px);
}

/* Button Styles */
.btn {
  padding: 0.9375rem 1.875rem;
  border-radius: 0.625rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  border: 2px solid rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  border-color: rgba(0, 212, 255, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-text);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: #00d4ff;
  color: #00d4ff;
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

/* Grid utility classes */
.grid { display: grid; }
.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Flexbox layouts */
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }

/* Enhanced Mobile Responsiveness */
@media (max-width:768px) {
  .hero{min-height:90vh;
    padding-top: clamp(80px, 20vh, 100px);
  }
  
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 1.5rem;
  }
  
  .hero .subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .grid-3-col { grid-template-columns: 1fr; }
  .grid-2-col { grid-template-columns: 1fr; }
}

@media (max-width:480px) {
  .hero {
    min-height: 85vh;
    padding-top: 100px;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
}

/* Cross-browser compatibility with webkit prefixes */
.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  background: -webkit-linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  border: 2px solid rgba(0, 212, 255, 0.3);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Accessibility improvements */
@media (prefers-reduced-motion:reduce) {
  .hero {
    animation: none;
  }
  
  .hero::before {
    animation: none;
  }
}

@media (prefers-contrast:high) {
  .hero {
    background: #000;
  }
  
  .hero h1,
  .hero .subtitle {
    color: #fff;
    text-shadow: none;
  }
}

/* Focus management for better keyboard navigation */
.hero {
  scroll-margin-top: 100px;
}

.btn:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}