:root {
  --c-ocean: #004e89;
  --c-aqua: #00c2c7;
  --c-white: #ffffff;
  --c-sand: #f3e5d8;
  --c-orange: #ff7e67;
  --c-dark-bg: #0f172a;
  --c-dark-surface: #1e293b;
  --c-text: #333333;
  --c-text-light: #666666;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --c-white: #0f172a;
  --c-sand: #1e293b;
  --c-text: #f1f5f9;
  --c-text-light: #cbd5e1;
  --glass-bg: rgba(30, 41, 59, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background-color: var(--c-white);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Typography Utilities */
.text-ocean { color: var(--c-ocean) !important; }
.text-aqua { color: var(--c-aqua) !important; }
.text-orange { color: var(--c-orange) !important; }
.bg-ocean { background-color: var(--c-ocean) !important; }
.bg-aqua { background-color: var(--c-aqua) !important; }
.bg-sand { background-color: var(--c-sand) !important; }

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--c-aqua), var(--c-ocean));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 78, 137, 0.3);
  color: #fff;
}

.btn-secondary-custom {
  background: var(--c-orange);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-secondary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 126, 103, 0.3);
  color: #fff;
}

/* Navbar */
.navbar {
  transition: all 0.4s ease;
  padding: 20px 0;
}
.navbar.scrolled {
  padding: 10px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}
.nav-link {
  font-weight: 500;
  color: var(--c-text) !important;
  margin: 0 10px;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--c-aqua);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--c-text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--c-dark-bg);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7; /* will be animated */
  transform: scale(1.1); /* will be animated */
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

/* Section Padding */
section {
  padding: 100px 0;
  position: relative;
}

/* Wave Divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(1px); /* Prevent sub-pixel gaps */
}
.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}
.wave-divider .shape-fill {
  fill: var(--c-sand);
}
[data-theme="dark"] .wave-divider .shape-fill {
  fill: var(--c-sand);
}

/* About Section */
.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.about-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Package Cards */
.package-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: none;
  background: var(--c-white);
}
.package-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.package-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-aqua);
}

/* Swiper Customize */
.swiper-pagination-bullet-active {
  background-color: var(--c-aqua) !important;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--c-ocean) !important;
}

/* Accommodation */
.room-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--c-white);
  border: none;
}
.room-card img {
  height: 250px;
  object-fit: cover;
}

/* Gallery Masonry */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 15px;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 78, 137, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 2rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Footer */
footer {
  background-color: var(--c-dark-bg);
  color: #fff;
  padding: 80px 0 20px 0;
}
footer h5 {
  color: var(--c-aqua);
  margin-bottom: 20px;
}
footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: var(--c-aqua);
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-right: 10px;
  transition: background 0.3s ease;
}
.social-icons a:hover {
  background: var(--c-aqua);
  color: #fff;
}

/* Floating Elements */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.3s ease;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--c-ocean);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: var(--c-aqua);
  color: white;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--c-sand);
  border-top-color: var(--c-aqua);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 
  100% { transform: rotate(360deg); } 
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .navbar.glass {
    background: var(--c-white);
  }
  [data-theme="dark"] .navbar.glass {
    background: var(--c-dark-bg);
  }
}
