/* ==========================================================================
   Hero Section Styling - Fully Responsive & Zero-Overflow
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: calc(90vh - var(--header-height));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 75, 82, 0.04) 0%, rgba(245, 158, 11, 0.04) 100%), var(--bg-primary);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0 3.5rem;
    min-height: auto;
  }
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(217, 119, 6, 0.05) 100%), var(--bg-primary);
}

/* Background Ambient Glows */
.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-glow-1, .hero-glow-2 {
    display: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}

/* Hero Content (Left) */
.hero-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .hero-content {
    align-items: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(14, 75, 82, 0.08);
  border: 1px solid rgba(14, 75, 82, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 1.25rem;
  max-width: 100%;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.725rem;
    padding: 0.35rem 0.75rem;
    text-align: center;
  }
}

[data-theme="dark"] .hero-badge {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.3);
  color: var(--primary-300);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(1.85rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
  word-break: break-word;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 50%, var(--accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-300) 0%, var(--primary-400) 50%, var(--accent-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.95rem;
  }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-cta-group {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    gap: 0.6rem;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}

/* Key Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1.25rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 1.5rem;
  }
}

[data-theme="dark"] .stat-number {
  color: var(--primary-400);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
}

/* Hero Visual / Carousel (Right) */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid #ffffff;
  background: #000;
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 100%;
}

[data-theme="dark"] .hero-image-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 13, 20, 0.85) 0%, rgba(7, 13, 20, 0.2) 40%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.hero-slide-caption {
  color: #ffffff;
  text-align: left;
}

.hero-slide-caption h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.hero-slide-caption p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

/* Slide Indicator Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 20px;
  border-radius: 6px;
  background: var(--accent-400);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 6;
  animation: floatAnim 4s ease-in-out infinite;
}

.floating-badge-top {
  top: -1rem;
  right: -1rem;
}

.floating-badge-bottom {
  bottom: -1rem;
  left: -1rem;
  animation-delay: 2s;
}

@media (max-width: 768px) {
  .floating-badge {
    display: none;
  }
}

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

.floating-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  color: var(--primary-700);
  flex-shrink: 0;
}

[data-theme="dark"] .floating-icon {
  background: rgba(13, 148, 136, 0.25);
  color: var(--primary-300);
}

.floating-icon.gold {
  background: var(--accent-100);
  color: var(--accent-700);
}

[data-theme="dark"] .floating-icon.gold {
  background: rgba(245, 158, 11, 0.25);
  color: var(--accent-300);
}

.floating-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.floating-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Notice Marquee Ticker */
.notice-marquee-wrap {
  background: var(--primary-50);
  border-top: 1px solid var(--primary-100);
  border-bottom: 1px solid var(--primary-100);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

[data-theme="dark"] .notice-marquee-wrap {
  background: #09121c;
  border-color: rgba(255, 255, 255, 0.05);
}

.marquee-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-500);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 1rem;
  flex-shrink: 0;
  z-index: 2;
}

@media (max-width: 480px) {
  .marquee-label {
    margin-left: 0.5rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
  }
}

.marquee-content-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-content-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 1.5rem;
}

.marquee-item a {
  color: var(--primary-700);
  font-weight: 600;
}

[data-theme="dark"] .marquee-item a {
  color: var(--primary-300);
}
