/* ==================== CUSTOM CSS STYLES ==================== */
/* For The Alit Indonesia Landing Page */
/* Used alongside Tailwind CSS */

/* ==================== BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f7f4;
}

::-webkit-scrollbar-thumb {
  background: #d8741b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b85f14;
}

/* ==================== HEADER STYLES ==================== */
#header {
  transition: all 0.5s ease;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#header.scrolled .nav-link,
#header.scrolled #mobileMenuBtn {
  color: #232055;
}

#header.scrolled .nav-link:hover {
  color: #d8741b;
}

#header.scrolled nav {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Logo styling when scrolled */
#header.scrolled .absolute a span:last-child {
  color: #232055;
}

/* ==================== HERO SECTION ==================== */
.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  animation: heroZoom 8s ease-in-out forwards;
}

@keyframes heroZoom {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Hero Dots */
.hero-dot {
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white;
  transform: scale(1.3);
}

/* ==================== WELCOME SLIDER ==================== */
.welcome-slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.welcome-slide.active {
  opacity: 1;
}

.welcome-slide img {
  transition: transform 0.7s ease;
}

.welcome-slide.active img:hover {
  transform: scale(1.05);
}

.welcome-dot {
  transition: all 0.3s ease;
}

.welcome-dot.active {
  background: white;
  transform: scale(1.3);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}

/* ==================== DESTINATION TABS ==================== */
.dest-tab {
  position: relative;
  color: #666;
  transition: all 0.3s ease;
}

.dest-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #d8741b;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.dest-tab:hover,
.dest-tab.active {
  color: #d8741b;
}

.dest-tab.active::after {
  width: 100%;
}

/* Destination Cards */
.destination-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.destination-card img {
  transition: transform 0.7s ease;
}

.destination-card:hover img {
  transform: scale(1.1);
}

.destination-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.destination-card:hover .overlay {
  opacity: 1;
}

.destination-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.destination-card:hover .content {
  transform: translateY(0);
}

.destination-card .explore-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
}

.destination-card:hover .explore-link {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== MOBILE MENU ==================== */
#mobileMenu {
  transition: all 0.4s ease;
}

#mobileMenu.active {
  display: flex !important;
}

.mobile-nav-link {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

#mobileMenu.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

#mobileMenu.active .mobile-nav-link:nth-child(1) {
  transition-delay: 0.1s;
}
#mobileMenu.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.15s;
}
#mobileMenu.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.2s;
}
#mobileMenu.active .mobile-nav-link:nth-child(4) {
  transition-delay: 0.25s;
}
#mobileMenu.active .mobile-nav-link:nth-child(5) {
  transition-delay: 0.3s;
}
#mobileMenu.active .mobile-nav-link:nth-child(6) {
  transition-delay: 0.35s;
}
#mobileMenu.active .mobile-nav-link:nth-child(7) {
  transition-delay: 0.4s;
}
#mobileMenu.active .mobile-nav-link:nth-child(8) {
  transition-delay: 0.45s;
}

/* Menu icon animation */
#mobileMenuBtn .menu-icon,
#mobileMenuBtn .close-icon {
  transition: all 0.3s ease;
}

#mobileMenuBtn.active .menu-icon {
  display: none;
}

#mobileMenuBtn.active .close-icon {
  display: block;
}

/* ==================== BACK TO TOP ==================== */
#backToTop {
  transition: all 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  transform: translateY(-4px);
}

/* ==================== SECTION TRANSITIONS ==================== */
section {
  position: relative;
}

/* Decorative elements */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #d8741b, transparent);
}

/* ==================== FORM STYLES ==================== */
input[type="email"] {
  transition: all 0.3s ease;
}

input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(216, 116, 27, 0.2);
}

/* ==================== IMAGE EFFECTS ==================== */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #d8741b;
  z-index: 1;
  transform: translateX(-100%);
  animation: imgReveal 1s ease forwards;
}

@keyframes imgReveal {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ==================== LUXURY GLOW EFFECTS ==================== */
.luxury-glow {
  position: relative;
}

.luxury-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #d8741b, #c9a962, #d8741b);
  z-index: -1;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.luxury-glow:hover::after {
  opacity: 0.5;
}

/* ==================== LOADING ANIMATION ==================== */
.loading {
  position: fixed;
  inset: 0;
  background: #232055;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 1024px) {
  .hero-slide {
    background-position: center center;
  }
}

@media (max-width: 768px) {
  .font-serif {
    font-size: 90%;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  #header,
  #backToTop,
  .hero-slider {
    display: none !important;
  }

  body {
    color: #000 !important;
    background: #fff !important;
  }
}

/* EVENTS SLIDER */
.events-slide {
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.events-slide.active {
  opacity: 1;
}

.events-slide:not(.active) {
  opacity: 0.6;
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
}

.slide {
  flex: 0 0 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1024px) {
  .embla__slide {
    width: calc(55% - 1rem);
  }
}

#contact {
  background-color: #004342;
}

/* WPZOOM Instagram Feed Full Width */
#gallery .zoom-instagram.columns-4 {
  columns: unset
}