/* ===================================
   Modern Landing Page Enhancements
   =================================== */

/* Hero Section Enhancements */
.hero {
  position: relative;
  overflow: hidden;
}

/* Animated Gradient Overlay */
.hero__gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.3) 0%,
      rgba(147, 51, 234, 0.3) 50%,
      rgba(236, 72, 153, 0.3) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Floating Decorative Elements */
.hero__decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.hero__decoration--1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero__decoration--2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

.hero__decoration--3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  bottom: 20%;
  left: 20%;
  animation-delay: 6s;
}

.hero__decoration--4 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  top: 30%;
  right: 25%;
  animation-delay: 9s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}

.hero__content {
  position: relative;
  z-index: 3;
}

/* News Section Enhancements */
.news-section {
  position: relative;
  overflow: hidden;
}

.news-section__bg-decoration {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.section-title__icon {
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.section-title__badge {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
  }
}

.btn-modern {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
  width: 300px;
  height: 300px;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* News Card Enhancements */
.news-section__slide {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-section__slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.news-section__slide:hover::before {
  opacity: 1;
}

.news-section__slide:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.news-section__slide-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5);
  /* animation: wiggle 3s ease-in-out infinite; */
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

.news__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.news-section__slide:hover .news__tag {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Small News Items */
.news-section__small-news {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.news-section__small-news::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.news-section__small-news:hover::before {
  transform: scaleY(1);
}

.news-section__small-news:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.news-section__small-news-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

.news-section__small-news:hover .news-section__small-news-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Layanan Section Enhancements */
.layanan-section {
  position: relative;
  overflow: hidden;
}

.layanan-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.layanan-section__icon {
  font-size: 2.5rem;
  display: inline-block;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.layanan__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem !important;
}

.layanan__item-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.layanan__item:hover .layanan__item-glow {
  opacity: 1;
  transform: rotate(45deg);
}

.layanan__item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.layanan__item-icon {
  font-size: 2.5rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.layanan__item:hover .layanan__item-icon {
  transform: scale(1.2) rotate(10deg);
  color: #3b82f6;
}

.layanan__item-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: translate(10px, 10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.layanan__item:hover .layanan__item-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* visi misi */
.visi-misi {
  p {
    font-size: 16px !important;
  }

  ol li {
    color: white;
    font-size: 16px !important;
  }
}

/* Capaian Section Enhancements */
.capaian-section {
  position: relative;
  overflow: hidden;
}

.capaian-section__shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
}

.shape--1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  left: 5%;
  animation: morphShape 15s ease-in-out infinite;
}

.shape--2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  top: 50%;
  right: 10%;
  animation: morphShape 20s ease-in-out infinite 5s;
}

.shape--3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%;
  bottom: 15%;
  left: 15%;
  animation: morphShape 18s ease-in-out infinite 10s;
}

@keyframes morphShape {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg) scale(1);
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    transform: rotate(90deg) scale(1.1);
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: rotate(180deg) scale(0.9);
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    transform: rotate(270deg) scale(1.05);
  }
}

.capaian {
  position: relative;
  z-index: 1;
}

.capaian__icon {
  font-size: 2.5rem;
  display: inline-block;
  animation: scaleUp 2s ease-in-out infinite;
}

@keyframes scaleUp {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.capaian__number {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
}

.capaian__number::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.capaian__number.animated::before {
  transform: scaleX(1);
}

.capaian__number:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.capaian__number-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7caeff, #ffffff, #fd62af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;

  color: white;
}

.counter {
  display: inline-block;
  transition: all 0.3s ease;
}

/* Banner Section Enhancement */
.banner-section__item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-section__item:hover {
  transform: scale(1.05);
}

.banner-section__item img.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(20px) brightness(1.2);
  z-index: -1;
}

.banner-section__item:hover img.overlay {
  opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero__decoration {
    width: 150px !important;
    height: 150px !important;
  }

  .section-title__icon,
  .layanan-section__icon,
  .capaian__icon {
    font-size: 1.5rem;
  }

  .capaian__number-value {
    font-size: 1.75rem;
  }

  .shape {
    width: 150px !important;
    height: 150px !important;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Add loading animation for images */
.news-section__slide img,
.banner-section__item img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.news-section__slide:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}