/* Custom colors */
:root {
  --soft-blue: #a3c4f3;
  --gold: #d4af37;
  --white: #ffffff;
  --primary-blue: #1e40af;
  --light-blue: #dbeafe;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: #1e293b;
  line-height: 1.6;
}

/* Enhanced fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced scroll fade animation */
.fade-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section enhancements */
.hero {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Visi Section Specific Styling */
#visi {
  background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem 2rem;
}

#visi .s3-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 6px 12px rgba(30, 64, 175, 0.4);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  line-height: 1;
}

#visi .s3-subtitle {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: #1e40af;
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  margin-top: 0;
}

/* Custom scrollbar for testimonial slider */
.testimonial-slider::-webkit-scrollbar {
  height: 6px;
}
.testimonial-slider::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 10px;
}

/* Enhanced hamburger menu */
#hamburger {
  position: relative;
  z-index: 60;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#hamburger:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: scale(1.05);
}

#hamburger svg {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

#hamburger.open svg {
  transform: rotate(180deg);
}

#hamburger .ham-icon {
  display: block;
}

#hamburger .close-icon {
  display: none;
}

#hamburger.open .ham-icon {
  display: none;
}

#hamburger.open .close-icon {
  display: block;
}

#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 6rem;
}

#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu a {
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#mobile-menu a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s ease;
}

#mobile-menu a:hover::before {
  left: 100%;
}

#mobile-menu a:hover {
  color: var(--gold);
  transform: translateX(10px);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 40;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Enhanced header */
header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }
  
  .s3-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  
  .s3-subtitle {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
  
  main {
    padding-top: 5rem;
    space-y: 3rem;
  }
  
  section {
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0.5rem;
  }
  
  main {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .testimonial {
    padding: 1.5rem !important;
  }
  
  article {
    padding: 1rem !important;
  }
}

/* Enhanced animations and hover effects */
header nav a {
  transition: all 0.3s ease;
  position: relative;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
}

header nav a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

#hamburger svg {
  transition: transform 0.3s ease;
  cursor: pointer;
}

#hamburger:hover svg {
  transform: scale(1.1);
}

#hamburger.open .ham-icon {
  display: none;
}
#hamburger.open .close-icon {
  display: block !important;
}

/* Enhanced card hover effects */
article {
  transition: all 0.3s ease;
}

article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial {
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Enhanced button styles */
.whatsapp-btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* Proteksi gambar dan video */
.protected-media {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  position: relative;
}

.protected-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 10;
}

.watermark-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 20;
}
