/* ============================================
   CUSTOM CSS UNTUK HALAMAN WELCOME/LANDING
   ============================================ */

/* 1. ROOT & BASE STYLES */
:root {
  --primary-blue: #3bb8f6;
  --secondary-blue: #1d8ad8;
  --scrollbar-width: 8px;
}

html {
  scroll-behavior: smooth;
}

/* 2. STICKY NAVIGATION */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* 3. SECTION SPACING & SCROLL MARGIN */
section {
  scroll-margin-top: 80px;
}

/* 4. ANIMATIONS */
/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bounce animation */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 4s infinite ease-in-out;
}

/* 5. COMPONENT STYLES */
/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-blue);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 6. UTILITY CLASSES */
.transition-all {
  transition-property: all;
}

/* 7. ELEMENT STYLES */
/* Image fixes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 8. RESPONSIVE STYLES */
@media (max-width: 768px) {
  .sticky-nav {
    backdrop-filter: blur(5px);
  }
  
  section {
    scroll-margin-top: 60px;
  }
}

@media (max-width: 480px) {
  section {
    scroll-margin-top: 50px;
  }
}

/* 9. PRINT STYLES */
@media print {
  .no-print {
    display: none !important;
  }
  
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
  
  /* Hide decorative elements */
  .sticky-nav,
  .animate-bounce-slow,
  .glass-effect {
    display: none !important;
  }
}

/* 10. PERFORMANCE OPTIMIZATIONS */
/* Hardware acceleration for animations */
.fade-in,
.card-hover,
.animate-bounce-slow {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Smooth transitions for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .fade-in,
  .card-hover,
  .animate-bounce-slow,
  .transition-all {
    transition: none !important;
    animation: none !important;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}