.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  isolation: isolate;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(101, 183, 222, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(88, 182, 173, 0.18),
      transparent 35%
    ),
    radial-gradient(circle at 50% 90%, rgba(48, 81, 161, 0.1), transparent 40%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 30%, #eef7ff 65%, #f7ffff 100%);
}

/* Grid Pattern */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(48, 81, 161, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 81, 161, 0.04) 1px, transparent 1px);

  background-size: 60px 60px;

  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 35%,
    transparent 100%
  );

  z-index: 0;
}

/* Noise Texture */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 0;
}

/* =====================================================
   Animated Blob
===================================================== */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: 1;
}

.blob-one {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -180px;
  background: radial-gradient(
    circle,
    rgba(101, 183, 222, 0.9),
    rgba(101, 183, 222, 0.35),
    transparent
  );
  animation: blobMove 14s ease-in-out infinite;
}

.blob-two {
  width: 460px;
  height: 460px;
  left: -180px;
  bottom: -180px;
  background: radial-gradient(
    circle,
    rgba(88, 182, 173, 0.9),
    rgba(88, 182, 173, 0.35),
    transparent
  );
  animation: blobMoveReverse 18s ease-in-out infinite;
}

.blob-three {
  width: 260px;
  height: 260px;
  top: 45%;
  right: 12%;
  background: rgba(255, 240, 0, 0.18);
  filter: blur(100px);
  animation: blobFloat 12s ease-in-out infinite;
}

/* =====================================================
   Glow
===================================================== */

.hero-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 240, 0, 0.12);
  filter: blur(120px);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation: glowMove 10s ease-in-out infinite;
  z-index: 1;
}

/* =====================================================
   Decorative Circles
===================================================== */

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(48, 81, 161, 0.08);
  animation: rotateCircle 40s linear infinite;
}

.hero-circle.circle-lg {
  width: 700px;
  height: 700px;
  top: -220px;
  right: -180px;
}

.hero-circle.circle-sm {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -120px;
  animation-direction: reverse;
}

/* =====================================================
   HERO WRAPPER
===================================================== */

.hero-wrapper {
  position: relative;
  z-index: 2;
  padding: 50px;
  border-radius: 35px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 35px 100px rgba(48, 81, 161, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: heroFloat 8s ease-in-out infinite;
}

/* Top Glow */

.hero-wrapper::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  top: -300px;
  right: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 182, 173, 0.2), transparent 70%);
  animation: rotateGlow 18s linear infinite;
  z-index: 0;
}

/* Bottom Glow */

.hero-wrapper::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  left: -180px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(101, 183, 222, 0.18),
    transparent 70%
  );
  animation: rotateGlowReverse 22s linear infinite;
  z-index: 0;
}

/* =====================================================
   Shine Effect
===================================================== */

.hero-shine {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 180px;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: rotate(25deg);
  animation: shineHero 9s linear infinite;
  z-index: 1;
  pointer-events: none;
}

/* =====================================================
   Glass Border
===================================================== */

.hero-border {
  position: absolute;
  inset: 0;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 2;
}

/* =====================================================
   Decorative Dots
===================================================== */

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(48, 81, 161, 0.08) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  opacity: 0.35;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
  z-index: 0;
}

/* =====================================================
   Content Layer
===================================================== */

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-image-area {
  position: relative;
  z-index: 5;
}

/* =====================================================
   HERO LEFT CONTENT
===================================================== */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #3051a1, #3f77b6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 35px rgba(48, 81, 161, 0.25);
  animation: badgeFloat 4s ease-in-out infinite;
}

.hero-badge i {
  font-size: 18px;
  color: #fff000;
}

/* ========================================= */

.hero-title {
  margin-top: 28px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.15;
  font-weight: 800;
  color: #3051a1;
  letter-spacing: -1px;
}

.hero-title span {
  display: block;
  margin-top: 8px;
  color: #58b6ad;
  position: relative;
}

.hero-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 120px;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fff000, #58b6ad);
}

/* ========================================= */

.hero-description {
  margin: 35px 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.9;
  color: #555;
}

/* ========================================= */

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Primary Button */

.btn-register {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border: none;
  border-radius: 60px;
  background: linear-gradient(135deg, #fff000, #ffd500);
  color: #222;
  font-weight: 700;
  transition: 0.35s;
  box-shadow: 0 18px 35px rgba(255, 240, 0, 0.35);
}

.btn-register:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(255, 240, 0, 0.45);
}

.btn-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  transform: skewX(-25deg);
  transition: 0.8s;
}

.btn-register:hover::before {
  left: 140%;
}

/* Secondary Button */

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 60px;
  border: 2px solid #3051a1;
  color: #3051a1;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  transition: 0.35s;
}

.btn-outline-hero:hover {
  background: #3051a1;
  color: #fff;
  transform: translateY(-5px);
}

/* ========================================= */

.hero-info {
  margin-top: 55px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 180px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 40px rgba(48, 81, 161, 0.08);
  transition: 0.35s;
}

.hero-info-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(48, 81, 161, 0.15);
}

.hero-info-item i {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3051a1, #58b6ad);
  color: #fff;
  font-size: 24px;
}

.hero-info-item strong {
  display: block;
  color: #3051a1;
  font-size: 18px;
  font-weight: 700;
}

.hero-info-item small {
  color: #777;
  font-size: 14px;
}

/* ========================================= */

.hero-scroll-text {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.hero-scroll-text i {
  color: #3051a1;
  animation: bounceDown 2s infinite;
}

/* =====================================================
   HERO BUTTONS
===================================================== */

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 35px;
}

/* =========================================
   Primary Button
========================================= */

.btn-register {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 16px 38px;
  border: none;
  border-radius: 60px;
  background: linear-gradient(135deg, #fff000 0%, #ffe600 45%, #ffd500 100%);
  color: #222;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(255, 240, 0, 0.35);
}

/* Shine */

.btn-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-25deg);
  transition: 1s;
}

.btn-register:hover::before {
  left: 160%;
}

/* Glow */

.btn-register::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 60px;
  background: linear-gradient(135deg, rgba(255, 240, 0, 0.35), transparent);
  z-index: -1;
  opacity: 0;
  transition: 0.4s;
}

.btn-register:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(255, 240, 0, 0.45);
}

.btn-register:hover::after {
  opacity: 1;
}

.btn-register i {
  font-size: 18px;
  transition: 0.35s;
}

.btn-register:hover i {
  transform: translateX(5px);
}

/* =========================================
   Secondary Button
========================================= */

.btn-outline-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 16px 36px;
  border-radius: 60px;
  border: 2px solid #3051a1;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  color: #3051a1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.35s ease;
}

.btn-outline-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #3051a1;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.35s;
  z-index: -1;
}

.btn-outline-hero:hover {
  color: #fff;
  border-color: #3051a1;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(48, 81, 161, 0.25);
}

.btn-outline-hero:hover::before {
  transform: scaleX(1);
}

.btn-outline-hero i {
  transition: 0.35s;
}

.btn-outline-hero:hover i {
  transform: translateX(5px);
}

/* =========================================
   Pulse Effect
========================================= */

.hero-buttons .btn {
  animation: buttonFloat 5s ease-in-out infinite;
}

.hero-buttons .btn:nth-child(2) {
  animation-delay: 0.5s;
}

/* =====================================================
   HERO SLIDER
===================================================== */

.hero-image-area {
  position: relative;
  z-index: 5;
}

.hero-slider {
  position: relative;
  width: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 35px 90px rgba(48, 81, 161, 0.18);
}

/* Glass Border */

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 10;
}

/* Overlay */

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.05),
    transparent
  );
  z-index: 2;
}

/* Swiper */

.hero-slider .swiper-wrapper {
  align-items: center;
}

.hero-slider .swiper-slide {
  overflow: hidden;
  position: relative;
}

/* Image */

.hero-slider img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
  transition: 8s ease;
}

/* Ken Burns Effect */

.hero-slider .swiper-slide-active img {
  transform: scale(1.12);
}

/* Slide Caption */

.hero-slide-caption {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 5;
  color: #fff;
}

.hero-slide-caption h3 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-slide-caption p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
}

/* =====================================================
   PAGINATION
===================================================== */

.hero-slider .swiper-pagination {
  bottom: 25px !important;
}

.hero-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.45;
  transition: 0.35s;
}

.hero-slider .swiper-pagination-bullet-active {
  width: 38px;
  border-radius: 30px;
  background: #fff000;
  opacity: 1;
}

/* =====================================================
   NAVIGATION
===================================================== */

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: 0.35s;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: #3051a1;
  transform: scale(1.08);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}

/* =====================================================
   IMAGE SHINE
===================================================== */

.hero-slider .shine {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 180px;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(25deg);
  animation: sliderShine 10s linear infinite;
  z-index: 3;
}

/* =====================================================
   IMAGE GLOW
===================================================== */

.hero-slider .image-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255, 240, 0, 0.18);
  filter: blur(90px);
  animation: glowMove 8s ease-in-out infinite;
  z-index: 1;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {
  .hero-slider {
    margin-top: 50px;
  }

  .hero-slider img {
    height: 450px;
  }

  .hero-slide-caption {
    left: 25px;
    right: 25px;
    bottom: 25px;
  }

  .hero-slide-caption h3 {
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  .hero-slider img {
    height: 340px;
  }

  .hero-slider .swiper-button-next,
  .hero-slider .swiper-button-prev {
    display: none;
  }
}

/* =====================================================
   FLOATING CARDS
===================================================== */

.floating-card {
  position: absolute;
  top: 70px;
  left: -35px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  animation: floatingCard 5s ease-in-out infinite;
}

.floating-card i {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3051a1, #58b6ad);
  color: #fff;
  font-size: 22px;
}

.floating-card strong {
  display: block;
  color: #3051a1;
  font-size: 17px;
  font-weight: 700;
}

.floating-card small {
  color: #777;
}

/* =====================================================
   SCROLL INDICATOR
===================================================== */

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  z-index: 30;
}

.scroll-indicator .mouse {
  width: 30px;
  height: 48px;
  border: 2px solid rgba(48, 81, 161, 0.4);
  border-radius: 30px;
  position: relative;
}

.scroll-indicator .mouse span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 6px;
  height: 10px;
  border-radius: 10px;
  background: #3051a1;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

.scroll-indicator p {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes floatingCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes badgeRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateGlowReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes blobMove {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(35px, -25px);
  }
}

@keyframes blobMoveReverse {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-35px, 30px);
  }
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

@keyframes glowMove {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-30px, 25px);
  }
}

@keyframes shineHero {
  from {
    left: -45%;
  }

  to {
    left: 150%;
  }
}

@keyframes sliderShine {
  from {
    left: -50%;
  }

  to {
    left: 150%;
  }
}

@keyframes scrollDown {
  0% {
    opacity: 1;

    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;

    transform: translate(-50%, 18px);
  }
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {
  .hero-title {
    font-size: 52px;
  }

  .hero-slider img {
    height: 560px;
  }
}

@media (max-width: 992px) {
  .hero {
    padding-top: 140px;
    text-align: center;
  }

  .hero-wrapper {
    padding: 35px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-info {
    justify-content: center;
  }

  .hero-slider {
    margin-top: 45px;
  }

  .hero-slider img {
    height: 460px;
  }

  .floating-card,
  .ranking-card,
  .floating-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-wrapper {
    padding: 28px;
    border-radius: 24px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-slider img {
    height: 340px;
  }

  .hero-info {
    flex-direction: column;
  }

  .hero-info-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-slider {
    border-radius: 20px;
  }

  .hero-slider img {
    height: 260px;
  }

  .hero-slider .swiper-button-next,
  .hero-slider .swiper-button-prev {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }
}
