:root {
  --primary-color: #4FC3F7;
  --primary-dark: #0288D1;
  --primary-light: #B3E5FC;
  --secondary-color: #29B6F6;
  --accent-color: #03A9F4;
  --success-color: #25D366;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  --white: #FFFFFF;
  --shadow: rgba(15, 23, 42, 0.08);
  --shadow-hover: rgba(15, 23, 42, 0.12);
  --card-bg: #FFFFFF;
  --card-border: #e2e8f0;
  --gradient-primary: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(79, 195, 247, 0.05) 0%, rgba(2, 136, 209, 0.05) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  overflow-x: hidden;
  background: var(--bg-gradient);
  color: var(--text-dark);
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(79, 195, 247, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(2, 136, 209, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Simple Clean Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Modern Trust Cards */
.trust-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--shadow-hover), 0 4px 10px rgba(0,0,0,0.08);
  border-color: var(--primary-light);
}

.trust-card:hover::before {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .trust-card {
    padding: 1.5rem 1.25rem;
  }
}

.trust-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.trust-card:hover .trust-icon {
  transform: scale(1.1) rotate(5deg);
}

.trust-icon span {
  color: var(--white) !important;
  font-size: 2rem !important;
}

/* Modern Package Cards */
.package-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px var(--shadow-hover), 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--primary-light);
}

.package-card:hover::before {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .package-card {
    padding: 1.75rem 1.5rem;
  }
}

.premium-pill {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(79, 195, 247, 0.25);
  transition: all 0.3s ease;
}

.premium-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 195, 247, 0.3);
}

.package-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--primary-light);
  transition: all 0.3s ease;
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features li:hover {
  padding-left: 0.5rem;
}

.package-features li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1rem;
}

/* Modern Value Cards */
.value-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--shadow-hover), 0 4px 10px rgba(0,0,0,0.08);
  border-color: var(--primary-light);
}

.value-card:hover::before {
  transform: scaleY(1);
}

@media (max-width: 768px) {
  .value-card {
    padding: 1.75rem 1.5rem;
  }
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon span {
  color: var(--white) !important;
  font-size: 2rem !important;
}

/* Modern Info Card */
.info-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.info-card h2 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.info-card .lead {
  color: var(--text-dark);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .info-card {
    padding: 2rem 1.5rem;
  }
}

/* Modern Location Badge */
.location-badge {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.5rem 1.125rem;
  border-radius: 8px;
  display: inline-block;
  margin: 0.375rem 0.5rem 0.375rem 0;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px var(--shadow);
}

.location-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-hover);
}

/* Modern Testimonial Cards */
.testi-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-size: 3.5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.2;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--shadow-hover), 0 4px 10px rgba(0,0,0,0.08);
  border-left-width: 5px;
}

.testi-card p {
  color: var(--text-dark);
  line-height: 1.7;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testi-card strong {
  color: var(--primary-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .testi-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Modern Guarantee Section */
.guarantee-section {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.guarantee-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

@media (max-width: 768px) {
  .guarantee-section {
    padding: 2rem 1.5rem;
  }
}

.guarantee-section h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.guarantee-section ul {
  list-style: none;
  padding-left: 0;
}

.guarantee-section ul li {
  padding: 0.5rem 0;
  color: var(--text-dark);
}

.guarantee-badge {
  background: linear-gradient(135deg, var(--success-color), #128C7E);
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.guarantee-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* Clean Carousel */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.carousel-item.loading .loading-overlay {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.carousel-item {
  position: relative;
}

.carousel-inner {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow), 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid var(--card-border);
}

.carousel-item img,
.carousel-item video {
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.carousel-item:hover img,
.carousel-item:hover video {
  transform: scale(1.02);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  background: var(--primary-dark);
  box-shadow: 0 6px 15px var(--shadow-hover);
}

.carousel-indicators {
  margin-bottom: 1rem;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
  background: var(--primary-dark);
}

/* Modern Buttons */
.wa-btn {
  background: linear-gradient(135deg, var(--success-color), #128C7E) !important;
  border: none !important;
  padding: 0.75rem 1.75rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 0.9375rem;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white !important;
  text-decoration: none;
}

.wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-gradient {
  background: var(--gradient-primary) !important;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
  opacity: 0.95;
}

@media (max-width: 768px) {
  .wa-btn,
  .btn-gradient {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Modern Map */
.map-responsive {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
  background: var(--white);
  height: 450px;
  position: relative;
}

.map-responsive:hover {
  box-shadow: 0 4px 12px var(--shadow-hover), 0 2px 6px rgba(0,0,0,0.08);
}

.map-responsive iframe {
  border-radius: 15px;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Fix for contact section layout */
#lokasi .row {
  align-items: stretch;
}

#lokasi .col-md-6 {
  display: flex;
  flex-direction: column;
}

#lokasi .info-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

#lokasi .map-responsive {
  flex: 1;
  height: 450px;
}

@media (max-width: 768px) {
  #lokasi .map-responsive,
  #lokasi .info-card {
    min-height: 350px;
    height: 350px;
  }
  
  #lokasi .map-responsive iframe {
    height: 350px;
  }
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  color: var(--primary-dark);
  font-size: 2rem;
}

h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.75rem;
  }
  
  h1 {
    font-size: 2rem !important;
  }
}

/* Modern Hero Section */
.hero-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Modern Hero Badge */
.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
}

/* Highlight Pill */
.highlight-pill {
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Modern Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

.scroll-to-top.show {
  display: flex;
  animation: fadeInUp 0.3s ease-out;
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
}

/* Page load */
body.loaded {
  opacity: 1;
}

/* Section spacing */
section {
  margin-bottom: 4rem;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Grid improvements */
.row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Spacing utilities */
.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 3rem;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Modern Badge styles */
.section-badge {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  box-shadow: 0 2px 6px var(--shadow);
  transition: all 0.3s ease;
}

.section-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-hover);
}

/* Footer link hover effects */
footer a {
  transition: all 0.3s ease !important;
}

footer a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.3) !important;
}

footer a[href*="wa.me"]:hover {
  background: rgba(37, 211, 102, 0.5) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .trust-icon {
    width: 60px;
    height: 60px;
  }
  
  .trust-icon span {
    font-size: 1.75rem !important;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  .service-icon span {
    font-size: 1.75rem !important;
  }
  
  .package-card:hover,
  .trust-card:hover,
  .value-card:hover,
  .testi-card:hover {
    transform: translateY(-2px) !important;
  }
  
  .row.g-4 {
    --bs-gutter-y: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 2.5rem 0;
  }
  
  .info-card,
  .guarantee-section {
    padding: 1.5rem 1.25rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}
