/* ===== MODERN HERO SECTION ===== */

/* Override existing hero_area styles for the new hero */
.hero_area {
  position: relative;
  min-height: 100vh !important;
  display: flex;
  flex-direction: column;
  background: none !important;
}

.hero_area::before {
  display: none !important;
}

.hero_area .hero_bg_box {
  display: none !important;
}

/* Fix stats section styling for homepage */
.stats_section .stat_item {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 187, 240, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.stats_section .stat_item:nth-child(1) { animation-delay: 0.1s; }
.stats_section .stat_item:nth-child(2) { animation-delay: 0.2s; }
.stats_section .stat_item:nth-child(3) { animation-delay: 0.3s; }
.stats_section .stat_item:nth-child(4) { animation-delay: 0.4s; }

.stats_section .stat_item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 187, 240, 0.2);
}

.stats_section .stat_number {
  font-size: 3rem;
  font-weight: 800;
  color: #00bbf0;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 187, 240, 0.3);
}

.stats_section .stat_label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a5568;
  letter-spacing: 0.5px;
}

/* Fix why section styling for homepage (without sub_page class) */
.why_section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

.why_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 187, 240, 0.05) 0%, transparent 50%);
  z-index: 1;
}

/* Fix contact section styling for homepage (without sub_page class) */
.contact_section {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: 
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-grain" width="100" height="100" patternUnits="userSpaceOnUse"><filter id="contactNoiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23contactNoiseFilter)" opacity="0.02"/></pattern></defs><rect width="100%" height="100%" fill="url(%23contact-grain)"/></svg>');
  position: relative;
  overflow: hidden;
}

.contact_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 187, 240, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Performance optimizations - Scoped to hero section only */
.hero_section,
.hero_section * {
  box-sizing: border-box;
}

.hero_section * {
  will-change: auto;
}

.hero_section .floating_element,
.hero_section .orbit_ring,
.hero_section .animation_particle {
  will-change: transform, opacity;
}

.hero_section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #00204a 0%, #001a38 20%, #00366b 60%, #005a96 80%, #00bbf0 100%);
  overflow: hidden;
  z-index: 1;
}

.hero_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="10" cy="30" r="0.5" fill="rgba(0,187,240,0.1)"/><circle cx="30" cy="10" r="0.5" fill="rgba(0,187,240,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
  pointer-events: none;
  z-index: -1;
}

.hero_content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
}

.min-vh-80 {
  min-height: 80vh;
}

/* Hero Text Content */
.hero_text_content {
  animation: slideInLeft 1s ease-out;
}

.hero_badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 187, 240, 0.1);
  border: 1px solid rgba(0, 187, 240, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 1s ease-out 0.2s both;
}

.badge_icon {
  font-size: 16px;
  margin-right: 8px;
  color: #00bbf0;
}

.badge_text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero_title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInLeft 1s ease-out 0.4s both;
}

.text_gradient {
  background: linear-gradient(135deg, #00bbf0 0%, #00d4ff 50%, #0099cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.text_gradient::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #00bbf0 50%, transparent 100%);
  animation: shimmer 2s ease-in-out infinite;
}

.hero_description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  max-width: 500px;
  font-weight: 400;
  animation: slideInLeft 1s ease-out 0.6s both;
}

/* Hero Stats */
.hero_stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  animation: slideInUp 1s ease-out 0.8s both;
}

.hero_stats .stat_item {
  text-align: center;
}

.hero_stats .stat_number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #00bbf0;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 187, 240, 0.5);
}

.hero_stats .stat_label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  font-weight: 500;
}

/* Hero Actions */
.hero_actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 1s both;
}

.btn_primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00bbf0 0%, #0099cc 100%);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 187, 240, 0.4);
  position: relative;
  overflow: hidden;
}

.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;
}

.btn_primary:hover::before {
  left: 100%;
}

.btn_primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 187, 240, 0.6);
  color: #ffffff;
  text-decoration: none;
}

.btn_primary i {
  transition: transform 0.3s ease;
}

.btn_primary:hover i {
  transform: translateX(5px);
}

.btn_secondary {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 16px 32px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.btn_secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Hero Visual */
.hero_visual {
  position: relative;
  height: 600px;
  animation: slideInRight 1s ease-out 0.6s both;
}

.hero_image_container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Elements */
.floating_element {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating_element:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 187, 240, 0.3);
}

.floating_element img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
}

.element_label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-align: center;
}

.element_1 {
  top: 10%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.element_2 {
  top: 20%;
  right: 5%;
  animation: float 6s ease-in-out infinite 2s;
}

.element_3 {
  bottom: 15%;
  left: 5%;
  animation: float 6s ease-in-out infinite 4s;
}

/* Central Visual */
.central_visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tech_orbit {
  position: relative;
  width: 300px;
  height: 300px;
}

.orbit_ring {
  position: absolute;
  border: 1px solid rgba(0, 187, 240, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring_1 {
  width: 300px;
  height: 300px;
  animation: rotate 20s linear infinite;
}

.ring_2 {
  width: 220px;
  height: 220px;
  animation: rotate 15s linear infinite reverse;
  border-color: rgba(0, 187, 240, 0.2);
}

.ring_3 {
  width: 140px;
  height: 140px;
  animation: rotate 10s linear infinite;
  border-color: rgba(0, 187, 240, 0.1);
}

.center_icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: #024a82;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 187, 240, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.center_icon img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Background Animation */
.hero_bg_animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.animation_particle {
  position: absolute;
  background: rgba(0, 187, 240, 0.1);
  border-radius: 50%;
  animation: particleFloat 15s linear infinite;
}

.particle_1 {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle_2 {
  width: 6px;
  height: 6px;
  top: 60%;
  left: 80%;
  animation-delay: 3s;
}

.particle_3 {
  width: 3px;
  height: 3px;
  top: 80%;
  left: 20%;
  animation-delay: 6s;
}

.particle_4 {
  width: 5px;
  height: 5px;
  top: 30%;
  left: 70%;
  animation-delay: 9s;
}

.particle_5 {
  width: 4px;
  height: 4px;
  top: 50%;
  left: 40%;
  animation-delay: 12s;
}

/* Scroll Indicator */
.scroll_indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll_arrow {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}

.scroll_text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes shimmer {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 20px rgba(0, 187, 240, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 187, 240, 0.8);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero_content {
    padding: 80px 0 60px;
  }
  
  .hero_visual {
    height: 400px;
    margin-top: 50px;
  }
  
  .hero_stats {
    gap: 30px;
    justify-content: center;
  }
  
  .hero_actions {
    justify-content: center;
  }
  
  .tech_orbit {
    width: 250px;
    height: 250px;
  }
  
  .ring_1 {
    width: 250px;
    height: 250px;
  }
  
  .ring_2 {
    width: 180px;
    height: 180px;
  }
  
  .ring_3 {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 767.98px) {
  .hero_section {
    min-height: auto;
  }
  
  .hero_content {
    padding: 60px 0 40px;
  }
  
  .hero_title {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .hero_description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero_stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .hero_actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn_primary,
  .btn_secondary {
    justify-content: center;
    width: 100%;
  }
  
  .hero_visual {
    height: 300px;
    margin-top: 30px;
  }
  
  .tech_orbit {
    width: 200px;
    height: 200px;
  }
  
  .ring_1 {
    width: 200px;
    height: 200px;
  }
  
  .ring_2 {
    width: 150px;
    height: 150px;
  }
  
  .ring_3 {
    width: 100px;
    height: 100px;
  }
  
  .floating_element {
    padding: 10px;
    font-size: 10px;
  }
  
  .floating_element img {
    width: 30px;
    height: 30px;
  }
  
  .element_label {
    font-size: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero_stats {
    gap: 15px;
  }
  
  .hero_stats .stat_number {
    font-size: 2rem;
  }
  
  .hero_stats .stat_label {
    font-size: 0.8rem;
  }
  
  .tech_orbit {
    width: 180px;
    height: 180px;
  }
  
  .ring_1 {
    width: 180px;
    height: 180px;
  }
  
  .ring_2 {
    width: 130px;
    height: 130px;
  }
  
  .ring_3 {
    width: 80px;
    height: 80px;
  }
  
  .center_icon {
    width: 60px;
    height: 60px;
  }
  
  .center_icon img {
    width: 35px;
    height: 35px;
  }
}