:root {
  --bg: #f7f5f2;
  --text: #1f2937;
  --accent: #6b8f71;
  --card: #ffffff;
}

body.dark {
  --bg: #111827;
  --text: #f9fafb;
  --card: #1f2937;
}

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

body {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

/* NAVBAR */

nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

nav h2 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.3s;
}

nav a {
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

nav a:hover {
  color: var(--accent);
}

.btn {
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* HERO */

.hero {
  height: 90vh;
  background: url("https://images.unsplash.com/photo-1505691938895-1758d7feb511")
    center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

section {
  padding: 2rem 5%;
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about img {
  width: 100%;
  border-radius: 16px;
}

/* ROOMS */

.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 30px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* GALLARY */

#galleryGrid .card img {
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* AMENITIES */

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  text-align: center;
  gap: 2rem;
}

/* TESTIMONIALS */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* CONTACT */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card);
  color: var(--text);
  border-top: 1px solid rgba(150, 150, 150, 0.2);
  margin-top: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-details {
  max-width: 500px;
  padding: 20px;
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.contact-details h2 {
  margin-bottom: 15px;
}

.contact-details p {
  margin: 0px 0;
  line-height: 1.5;
}

.dark-toggle {
  width: 28px;
  height: 28px;
  cursor: pointer;
  margin-left: 15px;
  transition: 0.3s;
}

.dark-toggle:hover {
  transform: scale(1.1);
}

.amenities-section h2 {
  margin-bottom: 1.5rem;
}

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.amenity-card {
  background: var(--card);
  padding: 1.2rem;
  border-radius: 14px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.amenity-card span {
  font-size: 0.95rem;
}

.amenity-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

body.dark .amenity-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.testimonials-section h2 {
  margin-bottom: 1rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--text);
}

.testimonial-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

body.dark .testimonial-card {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

nav ul li {
  position: relative;
}

/* hover box */

.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

/* optional smooth animation */

.nav-link {
  display: inline-block;
  transition: all 0.3s ease;
}

.platforms {
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
  color: var(--text);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.hero-content {
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 10px;
}

body {
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.card,
.amenity-card,
.testimonial-card {
  transition: all 0.3s ease;
}

/* ================= SPLASH SCREEN ================= */
#splash-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  flex-direction: column;
  animation: fadeOut 0.8s ease forwards;
  animation-delay: 2.5s;
}

.splash-content {
  text-align: center;
  animation: zoomIn 1s ease;
}

.splash-content img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.splash-content h1 {
  font-size: 1.8rem;
  color: var(--text);
  font-weight: 700;
}

/* animations */
@keyframes zoomIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }
}
