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

:root {
  --primary: #4caf50; /* Leaf Green */
  --primary-hover: #388e3c;
  --bg-dark: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-light: #333333; /* Gray */
  --text-muted: #666666; /* Light gray */
  --border: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-blur: blur(10px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text-light);
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* Navbar - Glassmorphism */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--primary-hover);
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Main Content Area */
main {
  min-height: 100vh;
}

section {
  padding: 8rem 5% 4rem;
  display: none;
  animation: fadeIn 0.5s ease;
}
section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section (Home) */
#home {
  padding: 0;
  height: 100vh;
  display: flex !important; /* Override section none initially, JS will handle */
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
#home::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 5s ease-in-out;
  transform: scale(1);
}

.hero-bg.active {
  opacity: 1;
  transform: scale(1.05);
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 3%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.slider-btn {
  background: rgba(10, 10, 10, 0.4);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.slider-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: #f4f4f4;
}

/* Grid Layout for Cards */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Force 4 cards per row on Kamar, Meeting, Fasilitas, and Activity page for desktop */
@media (min-width: 1024px) {
  #roomsContainer, #meetingRoomsContainer, #facilitiesContainer, #activitiesContainer {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards (Rooms, Meeting, Facilities, Activity) */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 1));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 16px;
  padding: 2px; 
  background: linear-gradient(135deg, var(--primary) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 3;
}

/* Gradient effect removed from card images */
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 30px rgba(0, 123, 255, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 0;
  display: block;
}

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

.card-content {
  padding: 1.2rem;
  position: relative;
  z-index: 2;
  background: transparent;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content .btn {
  margin-top: auto;
}

.card-content h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.card-content p {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.price {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* Contact Section */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}
.contact-item {
  margin-bottom: 1.5rem;
}
.contact-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  nav ul.show {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  section {
    padding-top: 6rem;
  }
}

/* Loading Overlay */
#loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: var(--primary);
  font-size: 2rem;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
