/* Modern Hero Section Styles */

.modern-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  overflow: hidden;
}

/* Hero Background Effects */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 60%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

.hero-grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

/* Typography */
.hero-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 100%;
  width: 100%;
}

.hero-content-modern {
  max-width: 100%;
  padding-right: 2rem;
}

.hero-text-static {
  display: block;
  color: var(--primary, #0f172a);
  margin-bottom: 0.5rem;
}

.hero-text-dynamic {
  display: block;
  position: relative;
  min-height: 1.4em;
  max-width: calc(100% - 2rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
  height: 1.4em;
  overflow: hidden;
}

.typing-cursor {
  color: var(--accent, #38bdf8);
  animation: blink 1s infinite;
  font-weight: normal;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  max-width: 600px;
}

/* Company Badge */
.company-badge .badge {
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

/* Hero Stats */
.hero-stats .stat-box {
  transition: transform 0.3s ease;
}

.hero-stats .stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* CTA Buttons */
.hero-cta .btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--accent, #38bdf8) 0%, #0052cc 100%);
  border: none;
  position: relative;
  overflow: hidden;
}

.hero-cta .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.hero-cta .btn-primary:hover::before {
  left: 100%;
}

.hero-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
}

.hero-cta .btn-outline-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-cta .btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Service Tags */
.service-tags .badge {
  transition: all 0.3s ease;
  opacity: 0.8;
}

.service-tags .badge:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Hero Visual */
.hero-visual {
  height: 600px;
}

.hero-image-container {
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

.hero-image-bg {
  height: 500px;
  position: relative;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

/* Floating Cards */
.floating-card {
  animation: float 6s ease-in-out infinite;
  z-index: 10;
}

.floating-card-1 {
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 60%;
  left: 5%;
  animation-delay: 2s;
}

.floating-card-3 {
  top: 35%;
  right: 50%;
  animation-delay: 4s;
}

.floating-card .card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-card .icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features Strip */
.features-strip {
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
}

.feature-highlight {
  transition: transform 0.3s ease;
  min-height: 80px;
}

.feature-highlight:hover {
  transform: translateY(-5px);
}

.feature-highlight .feature-icon {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.feature-highlight:hover .feature-icon {
  transform: scale(1.1);
}

/* Mobile adjustments for feature highlights */
@media (max-width: 768px) {
  .feature-highlight {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }
  
  .feature-highlight .text-start {
    text-align: center !important;
  }
}

/* Animations */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Viewport Height Utilities */
.min-vh-75 {
  min-height: 75vh;
}

/* Responsive Design */
@media (max-width: 992px) {
  .modern-hero {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .hero-visual {
    height: 400px;
    margin-bottom: 2rem;
  }
  
  .hero-image-bg {
    height: 400px;
  }
  
  .floating-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 1rem auto;
    animation: none;
    display: flex;
    justify-content: center;
    max-width: 250px;
  }
  
  .hero-stats .col-4 {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    text-align: center;
  }
  
  .hero-description {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
    text-align: center;
  }
  
  .service-tags {
    justify-content: center;
  }
  
  .features-strip .col-6 {
    margin-bottom: 2rem;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .hero-image-bg {
    height: 300px;
  }
  
  .hero-content-modern {
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-cta .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .service-tags .badge {
    margin-bottom: 0.5rem;
  }
  
  .features-strip .row > div {
    margin-bottom: 1.5rem;
  }
  
  .features-strip .row > div:last-child {
    margin-bottom: 0;
  }
  
  .hero-content-modern {
    padding-right: 0.5rem;
  }
}

/* Dark Mode Support */
.dark-mode .modern-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
}

.dark-mode .hero-text-static {
  color: #ffffff;
}

.dark-mode .features-strip {
  background: rgba(33, 37, 41, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .floating-card .card {
  background: rgba(33, 37, 41, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dark-mode .service-tags .badge {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .hero-particles,
  .hero-cta .btn::before {
    animation: none;
  }
  
  .floating-card,
  .stat-box,
  .feature-highlight,
  .hero-cta .btn {
    transition: none;
  }
}

/* Focus States */
.hero-cta .btn:focus,
.client-logos .badge:focus {
  outline: 2px solid var(--accent, #38bdf8);
  outline-offset: 2px;
}

/* Loading States */
.hero-content-modern {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-visual {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-visual {
  opacity: 1;
}

/* Print Styles */
@media print {
  .modern-hero {
    background: white;
    color: black;
  }
  
  .floating-card,
  .hero-particles,
  .hero-grid-overlay {
    display: none;
  }
}