/* ===================================
   GENERAL STYLES
   =================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Heading styles with proper font weights */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Ensure all text elements use Poppins */
p,
a,
span,
div,
button,
input,
textarea,
select {
  font-family: "Poppins", sans-serif;
}

/* ===================================
     HEADER STYLES
     =================================== */
header {
  transition: all 0.3s ease;
}

/* ===================================
     ANIMATIONS
     =================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===================================
     UTILITY CLASSES
     =================================== */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

/* ===================================
     CUSTOM SCROLLBAR
     =================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #9333ea;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* ===================================
     WHATSAPP FLOAT BUTTON
     =================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  color: white;
}

/* Tooltip for WhatsApp button */
.whatsapp-float::before {
  content: "Chat Sekarang";
  position: absolute;
  right: 70px;
  background-color: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #333;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  opacity: 1;
}

.bg-custom {
  background-color: #ffcd50;
}

/* ===================================
     RESPONSIVE STYLES
     =================================== */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-float::before,
  .whatsapp-float::after {
    display: none;
  }
}

/* ===================================
     GALLERY HOVER EFFECT
     =================================== */
#gallery img {
  transition: transform 0.3s ease;
}

#gallery .overflow-hidden {
  overflow: hidden;
}

/* ===================================
     NAVIGATION ACTIVE STATE
     =================================== */
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9333ea;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===================================
     LOADING ANIMATION
     =================================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
     FORM STYLES (if needed later)
     =================================== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* ===================================
     FOOTER SOCIAL MEDIA STYLES
     =================================== */
footer .group:hover svg {
  animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Instagram gradient on hover */
.group:hover .bg-gradient-to-br {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #f77737);
}

/* ===================================
     PRINT STYLES
     =================================== */
@media print {
  header,
  .whatsapp-float,
  footer {
    display: none;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
