/* ============================================
   HOMEPAGE STYLES - TERMINAL TIDAR MAGELANG
   ============================================ */

:root {
  --primary-blue: #0f3460;
  --secondary-blue: #16213e;
  --accent-blue: #4a90e2;
  --light-blue: #e8f4fd;
  --purple: #6c63ff;
  --light-purple: #f0efff;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-800: #343a40;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  overflow-x: hidden;
}

.homepage {
  padding-bottom: 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.home-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-slide {
  position: relative;
  height: 85vh;
  min-height: 600px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 52, 96, 0.8) 0%,
    rgba(108, 99, 255, 0.6) 100%
  );
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  z-index: 10;
  color: var(--white);
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
}

.hero-content .btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--purple));
  border: none;
}

.hero-content .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.home-about {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.home-about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.home-about .container {
  position: relative;
  z-index: 2;
}

.home-about img {
  border-radius: 20px;
  transition: transform 0.5s ease;
  box-shadow: var(--shadow-lg);
}

.home-about img:hover {
  transform: scale(1.05);
}

.home-about h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.home-about h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--purple));
  border-radius: 2px;
}

.home-about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
  text-align: justify;
}

.home-about .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-blue);
}

.home-about .btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(15, 52, 96, 0.3);
}

/* ============================================
   WASATPEL SECTION
   ============================================ */
.home-wasatpel {
  padding: 5rem 0;
  background: var(--white);
  position: relative;
}

.home-wasatpel .display-6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.home-wasatpel .display-6::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--purple));
  border-radius: 2px;
}

.home-wasatpel img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.home-wasatpel img:hover {
  transform: scale(1.03);
}

.home-wasatpel .text-justify {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
  text-align: justify;
}

.home-wasatpel strong {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

/* ============================================
   DATA PRODUKSI SECTION
   ============================================ */
.home-data {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--light-purple) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.home-data::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.home-data .container {
  position: relative;
  z-index: 2;
}

.home-data .display-6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.home-data .lead {
  color: #666;
  font-size: 1.1rem;
}

.home-data .lead strong {
  color: var(--purple);
}

.home-data .card {
  border: none;
  border-radius: 20px;
  background: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.home-data .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--purple));
}

.home-data .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.home-data .card h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.home-data .card p {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* ============================================
   FASILITAS SECTION
   ============================================ */
.home-fasilitas {
  padding: 5rem 0;
  background: var(--white);
}

.home-fasilitas h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 3rem;
  position: relative;
  display: block;
  width: 100%;
}

.home-fasilitas h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--purple));
  border-radius: 2px;
}

.facility-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.facility-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card:hover img {
  transform: scale(1.1);
}

.facility-card h5 {
  padding: 1.5rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-align: center;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
  margin: 0;
}

/* ============================================
   BERITA SECTION
   ============================================ */
.home-berita {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.home-berita h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 3rem;
  position: relative;
  display: block;
  width: 100%;
}

.home-berita h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--purple));
  border-radius: 2px;
}

.home-berita .card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-berita .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.home-berita .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-berita .card:hover img {
  transform: scale(1.1);
}

.home-berita .card h5 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 1.5rem 1.5rem 1rem;
  margin: 0;
}

.home-berita .card p {
  padding: 0 1.5rem 1.5rem;
  color: #666;
  line-height: 1.7;
  flex-grow: 1;
}

/* ============================================
   TESTIMONI SECTION
   ============================================ */
.home-testi {
  padding: 5rem 0 7rem;
  background: linear-gradient(135deg, var(--light-purple) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.home-testi::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.home-testi h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 3rem;
  position: relative;
  display: block;
  width: 100%;
  z-index: 2;
}

.home-testi h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--purple));
  border-radius: 2px;
}

.home-testi .card {
  border: none;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  padding: 2.5rem 2rem;
  height: 100%;
  position: relative;
  z-index: 2;
}

.home-testi .card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(108, 99, 255, 0.1);
  line-height: 1;
}

.home-testi .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.home-testi .card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.home-testi .card strong {
  display: block;
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: normal;
  text-align: right;
  border-top: 2px solid var(--gray-200);
  padding-top: 1rem;
}

/* ============================================
   SPLIDE CUSTOMIZATION
   ============================================ */
.splide__arrow {
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.splide__arrow:hover {
  background: var(--accent-blue);
  transform: scale(1.1);
}

.splide__arrow svg {
  fill: var(--primary-blue);
  transition: all 0.3s ease;
}

.splide__arrow:hover svg {
  fill: var(--white);
}

.splide__pagination__page {
  background: rgba(255, 255, 255, 0.5);
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
  background: var(--accent-blue);
  transform: scale(1.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .home-about,
  .home-wasatpel,
  .home-data,
  .home-fasilitas,
  .home-berita,
  .home-testi {
    padding: 3rem 0;
  }

  .home-about h2,
  .home-wasatpel .display-6,
  .home-data .display-6,
  .home-fasilitas h2,
  .home-berita h2,
  .home-testi h2 {
    font-size: 2rem;
  }

  .home-about .col-lg-6:first-child {
    margin-bottom: 2rem;
  }

  .home-wasatpel .col-lg-4 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .home-hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-slide {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .home-data .card h3 {
    font-size: 2rem;
  }

  .facility-card img,
  .home-berita .card img {
    height: 200px;
  }

  .home-testi .card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-content .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .home-about h2,
  .home-wasatpel .display-6,
  .home-data .display-6,
  .home-fasilitas h2,
  .home-berita h2,
  .home-testi h2 {
    font-size: 1.75rem;
  }

  .home-data .card h3 {
    font-size: 1.75rem;
  }

  .splide__arrow {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 1000px 100%;
}