/* Custom Hero Section Styles */

/* Hero Section - Modern Light Grid & Collage styles */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 30px 0 50px 0;
  background: var(--hero-bg-gradient);
  overflow: hidden;
  z-index: 1;
}

/* Subtle dot grid pattern */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 45, 98, 0.05) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Hero text animations / transitions */
.hero-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary) !important;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/*==================================
Circular Slideshow Styles
===================================*/
.hero-double-circles {
  position: relative;
  width: 100%;
  height: 440px;
  margin-top: 1rem;
}

.hero-circle-frame {
  position: relative;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.hero-circle-frame.frame-large {
  width: clamp(230px, 28vw, 300px);
  height: clamp(230px, 28vw, 300px);
  position: absolute;
  top: 15px;
  left: 25px;
  z-index: 2;
}

.hero-circle-frame.frame-small {
  width: clamp(180px, 22vw, 230px);
  height: clamp(180px, 22vw, 230px);
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 3;
}

.hero-circle-slides {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #ffffff;
  box-shadow: 0 15px 35px rgba(0, 45, 98, 0.12);
  z-index: 2;
}

.hero-slide-1, .hero-slide-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.08);
}

.hero-slide-1.active, .hero-slide-2.active {
  opacity: 1;
  transform: scale(1);
}

.glow-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 104, 55, 0.15) 0%, transparent 75%);
  z-index: 1;
  filter: blur(6px);
}

.circle-border-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 153, 51, 0.35);
  z-index: 1;
  animation: rotateRing 25s linear infinite;
}

.hero-circle-badge {
  position: absolute;
  top: 170px;
  left: calc(50% - 65px);
  z-index: 4;
  background: var(--secondary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 45, 98, 0.15);
  border: 2px solid #ffffff;
}

.badge-inner {
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-num {
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-heading);
}

.badge-txt {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-align: left;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.hero-section .btn-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(4, 120, 87, 0.25);
  color: #ffffff;
}

.hero-section .btn-outline-premium {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition-smooth);
}

.hero-section .btn-outline-premium:hover {
  border-color: var(--primary);
  background: rgba(180, 83, 9, 0.05);
  color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.08);
}

/* Apple-style Staggered Entrance Animations */
.hero-animate-left {
  opacity: 0;
  transform: translate3d(-60px, 0, 0);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-animate-right {
  opacity: 0;
  transform: translate3d(120px, 0, 0) scale(0.92) rotate(4deg);
  transition: opacity 1.8s cubic-bezier(0.15, 0.85, 0.35, 1),
    transform 1.8s cubic-bezier(0.15, 0.85, 0.35, 1);
  will-change: transform, opacity;
}

/* Triggered State */
.hero-section.loaded .hero-animate-left {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-section.loaded .hero-animate-right {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

/* Staggered Delay Intervals */
.hero-section.loaded .delay-1 {
  transition-delay: 0.1s;
}

.hero-section.loaded .delay-2 {
  transition-delay: 0.25s;
}

.hero-section.loaded .delay-3 {
  transition-delay: 0.4s;
}

.hero-section.loaded .delay-4 {
  transition-delay: 0.55s;
}

/* Hero Responsive */
@media (max-width: 991px) {
  .hero-section {
    padding: 15px 0 25px 0;
    background: #ffffff;
  }

  .globe-wrapper {
    height: 380px;
    margin-top: 2rem;
  }

  /* Hide floating bubbles on smaller mobile screens for clean layout */
  .floating-bubble {
    display: none !important;
  }

  .globe-wrapper::before {
    width: 75%;
    height: 75%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(245, 158, 11, 0.05) 45%, rgba(16, 185, 129, 0.02) 70%, transparent 100%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
  }
}