* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Hero Background with Image */
.doodle-bg {
  position: relative;
  overflow: hidden;
}

/* Background Image Styling */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

/* Overlay Gradient */
.doodle-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(45, 90, 160, 0.8), rgba(26, 54, 93, 0.8));
  z-index: -2;
}

/* Pattern Overlay */
.doodle-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='80' cy='20' r='2'/%3E%3Ccircle cx='20' cy='80' r='2'/%3E%3Ccircle cx='80' cy='80' r='2'/%3E%3Ccircle cx='50' cy='50' r='2'/%3E%3C/g%3E%3C/svg%3E");
  animation: subtle-float 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes subtle-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* Loading Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    top: -100px;
  }
  to {
    opacity: 1;
    top: 0;
  }
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) !important;
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 1.2s ease;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0) !important;
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 1.2s ease;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0) !important;
}

/* Page Load Animations */
.navbar {
  animation: slideDown 1s ease-out;
}

.hero-logo {
  animation: zoomIn 1.2s ease-out 0.3s both;
}

.hero h1 {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero p {
  animation: fadeInUp 1s ease-out 0.9s both;
}

.btn-more {
  animation: fadeInUp 1s ease-out 1.2s both;
}

/* Enhanced Card Hover Effects */
.card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.2) rotate(15deg);
  color: #1a365d;
  animation: magneticPull 0.6s ease-in-out;
}

.card:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: glow 1s ease-in-out;
}

/* Interactive Magnetic Effect */
.magnetic {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic:hover {
  animation: magneticPull 0.8s ease-in-out infinite;
}

/* Floating Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float-particles 8s infinite linear;
  pointer-events: none;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 20%;
  animation-delay: 2s;
}
.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 30%;
  animation-delay: 4s;
}
.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 40%;
  animation-delay: 1s;
}
.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  left: 50%;
  animation-delay: 3s;
}
.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 60%;
  animation-delay: 5s;
}
.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 70%;
  animation-delay: 2.5s;
}
.particle:nth-child(8) {
  width: 5px;
  height: 5px;
  left: 80%;
  animation-delay: 4.5s;
}
.particle:nth-child(9) {
  width: 4px;
  height: 4px;
  left: 90%;
  animation-delay: 1.5s;
}

/* Tilt Effect */
.tilt {
  transition: all 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.tilt:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(10deg)
    scale3d(1.05, 1.05, 1.05);
}

/* Floating Animation for Hero */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-logo {
  animation: zoomIn 1.2s ease-out 0.3s both, float 6s ease-in-out infinite 2s;
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Stagger Animation Classes */
.stagger-1 {
  animation-delay: 0.3s;
}
.stagger-2 {
  animation-delay: 0.6s;
}
.stagger-3 {
  animation-delay: 0.9s;
}
.stagger-4 {
  animation-delay: 1.2s;
}

/* Pulse Effect for Important Elements */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 90, 160, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(45, 90, 160, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 90, 160, 0);
  }
}

@keyframes popUp {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(100px);
  }
  40% {
    opacity: 1;
    transform: scale(1.1) translateY(-20px);
  }
  70% {
    transform: scale(0.9) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flipIn {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateY(-90deg);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
  }
}

@keyframes elasticIn {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  75% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes float-particles {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(45, 90, 160, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(45, 90, 160, 0.8), 0 0 80px rgba(45, 90, 160, 0.4);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes magneticPull {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  z-index: 10;
  max-width: 800px;
  padding: 0 2rem;
  margin-top: 100px;
}

.hero-logo {
  width: 180px; /* Sesuaikan ukuran */
  height: 180px;
  background-image: url("../images/logo/logo.webp");
  background-size: contain; /* Pastikan logo tidak terpotong */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #2d5aa0;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgba(255, 255, 255, 0.75);
  width: 0;
  animation: typewriter 3s steps(40, end) 1.5s forwards, blink 1s infinite 1.5s;
}

.hero h1.typing-done {
  overflow: visible;
  white-space: normal;
  border-right: none;
  width: auto;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease-out 4.5s forwards;
}

.btn-more {
  background: linear-gradient(45deg, #e53e3e, #ff6b6b);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 1s ease-out 5.5s forwards, glow 3s ease-in-out infinite 6s;
}

.btn-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.4)
  );
  transition: left 0.5s;
}

.btn-more:hover::before {
  left: 100%;
}

.btn-more:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 20px 40px rgba(229, 62, 62, 0.5),
    0 0 30px rgba(229, 62, 62, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.2);
  background: linear-gradient(45deg, #ff4757, #ff6b6b);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-more:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(229, 62, 62, 0.6), 0 0 40px rgba(229, 62, 62, 1),
    inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* More button proximity effect */
.btn-more.nearby {
  box-shadow: 0 10px 25px rgba(229, 62, 62, 0.3),
    0 0 20px rgba(229, 62, 62, 0.5);
  transform: translateY(-2px) scale(1.02);
}

/* Content Sections */
.section {
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section h2 {
  font-size: 2.5rem;
  margin-top: 60px;
  text-align: center;
  margin-bottom: 3rem;
  color: #1a365d;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: #2d3748;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

.card-icon {
  font-size: 3rem;
  color: #2d5aa0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.card-icon i {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
}

.card h3 {
  color: #2d5aa0;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a365d 0%, #2d5aa0 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
  opacity: 0; /* ⬅️ TAMBAHIN */
  transform: translateY(30px); /* ⬅️ TAMBAHIN */
  transition: all 0.8s ease-out; /* ⬅️ TAMBAHIN */
}

.footer.revealed {
  /* ⬅️ TAMBAHIN CLASS INI */
  opacity: 1;
  transform: translateY(0);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: white;
  padding-left: 5px;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Specific hover colors for each social platform */
.social-links a[href*="facebook"]:hover {
  background: #1877f2;
  color: white;
}

.social-links a[href*="instagram"]:hover {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d,
    #f56040,
    #f77737,
    #fcaf45,
    #ffdc80
  );
  color: white;
}

.social-links a[href*="youtube"]:hover {
  background: #ff0000;
  color: white;
}

.social-links a[href*="wa.me"]:hover {
  background: #25d366;
  color: white;
}

/* Footer Map Styling */ /* ⬅️ TAMBAHIN INI JUGA (dari mozaik) */
.footer-map {
  margin-top: 1.5rem;
}

.footer-map iframe {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-map iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer Map Styling */
.footer-map {
  margin-top: 1.5rem;
}

.footer-map iframe {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-map iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Float Button */
.float-btn {
  position: fixed;
  bottom: 30px;
  right: 10px;
  width: 55px;
  height: 55px;
  background: #1a365d;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.float-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.float-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.icon-arrow,
.icon-wa {
  position: absolute;
  font-size: 24px;
  transition: all 0.3s ease;
}

.icon-wa {
  opacity: 0;
  transform: scale(0.5);
}

.float-btn.whatsapp {
  background: #25d366;
}

.float-btn.whatsapp .icon-arrow {
  opacity: 0;
  transform: scale(0.5);
}

.float-btn.whatsapp .icon-wa {
  opacity: 1;
  transform: scale(1);
}

.float-btn.arrow .icon-arrow {
  opacity: 1;
  transform: scale(1);
}

.float-btn.arrow .icon-wa {
  opacity: 0;
  transform: scale(0.5);
}

/* Responsive untuk 2K Resolution */
@media (min-width: 1920px) and (min-height: 1080px) {
  .section {
    padding: 2.5rem 0;
  }

  .section h2 {
    margin-bottom: 2rem;
  }

  .hero-content {
    margin-top: 80px;
  }
}

/* 👇 TAMBAHIN INI - Landscape Mode (Mobile Horizontal) */
@media (max-width: 1090px) and (orientation: landscape) {
  .hero {
    height: auto; /* Ganti dari 100vh */
    min-height: 100vh;
    padding: 6rem 0 3rem; /* Kasih padding top buat navbar */
  }

  .hero-content {
    margin-top: 2rem; /* Kurangin margin */
    padding: 0 1.5rem;
  }

  .hero-logo {
    width: 100px; /* Logo lebih kecil */
    height: 100px;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem; /* Text lebih kecil */
    margin-bottom: 0.5rem;
    white-space: normal; /* Biar bisa wrap */
    overflow: visible;
    border-right: none;
    animation: fadeInUp 1s ease-out 0.6s both; /* Ganti ke fadeInUp */
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .btn-more {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .particles {
    display: none; /* Hide particles biar lebih clean */
  }

  .section {
    padding: 1.5rem 0;
  }

  .section h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di landscape */
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* 👇 Mobile Portrait (Existing Code) */
@media (max-width: 1090px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .social-links {
    justify-content: left;
  }

  .footer-map iframe {
    height: 180px;
  }
}

/* 👇 TAMBAHIN INI - Extra Small Landscape (HP Kecil) */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 5rem 0 2rem;
  }

  .hero-content {
    margin-top: 1rem;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 0.8rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .btn-more {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 1rem 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .card-icon {
    font-size: 2rem;
    min-height: 3rem;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.85rem;
  }
}

/* 👇 TAMBAHIN INI - Very Small Landscape (Super Kecil) */
@media (max-width: 640px) and (orientation: landscape) and (max-height: 400px) {
  .hero {
    padding: 4rem 0 1.5rem;
  }

  .hero-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
  }

  .hero h1 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .hero p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .btn-more {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }

  .section h2 {
    font-size: 1.3rem;
    margin-top: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}