@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #f59e0b;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark) !important;
  background: var(--dark) !important;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  color: var(--light);
  overflow-x: hidden;
  padding-top: 100px;
}

/* ==========================================
   FIX: AOS HIDDEN BUG (halaman blank di mobile)
   ========================================== */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Di desktop tetap pakai animasi AOS */
@media (min-width: 769px) {
  [data-aos]:not(.aos-animate) {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  [data-aos].aos-animate {
    opacity: 1;
  }
}

/* ==========================================
   NAVBAR — MODERN GLASSMORPHISM
   ========================================== */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1200px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.navbar.scrolled {
  top: 8px;
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 
    0 12px 40px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: transform 0.3s ease;
  letter-spacing: -0.02em;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-logo::before {
  content: '◆';
  font-size: 0.9rem;
  background: linear-gradient(135deg, #818cf8, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rotate 6s linear infinite;
}

/* Menu Desktop */
.navbar-menu {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-menu .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar-menu .nav-link:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
}

.navbar-menu .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.navbar-menu .nav-link.active::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ==========================================
   HAMBURGER BUTTON (Mobile)
   ========================================== */
.hamburger-btn {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.hamburger-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(245, 158, 11, 0.3));
  transform: scale(1.05);
}

.hamburger-btn .line {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.hamburger-btn .line:nth-child(1) { top: 15px; }
.hamburger-btn .line:nth-child(2) { top: 21px; }
.hamburger-btn .line:nth-child(3) { top: 27px; }

.hamburger-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.hamburger-btn.active .line:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger-btn.active .line:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.hamburger-btn.active .line:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 1024px) {
  .navbar-menu { display: none; }
  .hamburger-btn { display: flex; }
}

/* ==========================================
   MOBILE MENU — MODERN FULLSCREEN
   ========================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 27, 75, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 998;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
  padding: 2rem;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu .mobile-link {
  color: #cbd5e1;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.9rem 2.5rem;
  border-radius: 14px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 250px;
  justify-content: flex-start;
  border: 1px solid transparent;
}

.mobile-menu .mobile-link::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-menu .mobile-link:hover,
.mobile-menu .mobile-link:active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(8px);
}

.mobile-menu .mobile-link:hover::before,
.mobile-menu .mobile-link:active::before {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  transform: scale(1.3);
}

/* ==========================================
   BACKGROUND ANIMATION
   ========================================== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: float 15s infinite ease-in-out;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -150px;
  right: -100px;
  animation-delay: 2s;
}

.circle-3 {
  width: 300px;
  height: 300px;
  background: #ec4899;
  top: 50%;
  left: 30%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(50px, 50px); }
  50% { transform: translate(0, 100px); }
  75% { transform: translate(-50px, 50px); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content { z-index: 2; }

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
}

/* Logo Animation */
.logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

.logo-container:hover {
  transform: scale(1.05) rotate(5deg);
}

.logo-container::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  z-index: -1;
  border-radius: 50%;
  animation: rotate 4s linear infinite;
}

.logo-container::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--dark);
  border-radius: 50%;
  z-index: -1;
}

/* ==========================================
   PAGE CONTENT (untuk halaman selain Home)
   ========================================== */
.page-content {
  min-height: calc(100vh - 200px);
  padding: 4rem 1.5rem;
}

/* ==========================================
   FEATURE CARDS
   ========================================== */
.feature-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

/* FIX: feature-icon kotak 60x60 */
.feature-icon {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.feature-card.text-center .feature-icon {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   PRICING CARDS
   ========================================== */
.pricing-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
}

/* Testimonial Avatar — Enhanced dengan ring gradient */
.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 
    0 0 0 3px rgba(15, 23, 42, 0.8),
    0 0 0 5px rgba(99, 102, 241, 0.3),
    0 8px 20px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.05);
  box-shadow: 
    0 0 0 3px rgba(15, 23, 42, 0.8),
    0 0 0 5px rgba(99, 102, 241, 0.6),
    0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ==========================================
   BUTTON STYLES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* ==========================================
   NOTIFICATION
   ========================================== */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  transform: translateX(150%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  max-width: calc(100vw - 60px);
}

.notification.show { transform: translateX(0); }

.notification-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.notification-close {
  margin-left: 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover { opacity: 1; }

/* ==========================================
   MODAL
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-content {
  background: var(--dark);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal-content { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   SECTION TITLE
   ========================================== */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

/* ==========================================
   GRADIENT TEXT
   ========================================== */
.gradient-text {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.1s ease;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }

  .hero {
    text-align: center;
    padding-top: 2rem;
  }

  .hero-content {
    flex-direction: column;
  }

  .logo-container {
    margin-bottom: 2rem;
    width: 160px;
    height: 160px;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .page-content {
    padding: 3rem 1.25rem;
  }

  .navbar {
    top: 8px;
    width: calc(100% - 16px);
    border-radius: 16px;
  }

  .navbar-inner {
    padding: 0.7rem 1rem;
  }

  .navbar-logo {
    font-size: 1.2rem;
  }

  .testimonial-avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .notification {
    right: 15px;
    left: 15px;
    max-width: none;
  }
}