/* === FONT & COLOR VARIABLES === */
:root {
  --color-accent: #d4af37; /* The "premium gold" */
  --color-accent-dark: #b89a30; /* Darker gold for hover */
  --color-primary: #1e1e2e; /* Dark blue/purple */
  --color-secondary: #10101a; /* Darker background */
  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
}

body {
  font-family: var(--font-sans);
  background-color: #0d0d17;
  color: white;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
}

/* Gradient text for the logo */
.gradient-text {
  background: linear-gradient(
    45deg,
    var(--color-accent),
    #ffffff,
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-flow 5s ease-in-out infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* === HEADER & NAVIGATION === */

/* Glass effect for the header */
.glass-effect {
  height: 100%;
  background: rgba(10, 10, 20, 0.7); /* Start semi-transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scrolled state for the header */
.glass-effect.scrolled {
  background: rgba(10, 10, 20, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Desktop nav link style */
.nav-link {
  position: relative;
  color: #eee;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: white;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* === MOBILE MENU === */
.mobile-menu {
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  transform: translateX(100%); /* Start off-screen */
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active {
  transform: translateX(0); /* Slide in */
}

.mobile-nav-link {
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    color 0.2s ease;
}
.mobile-nav-link:hover {
  color: var(--color-accent);
}

/* Staggered animation for links when menu opens */
.mobile-menu.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.1s;
}
.mobile-menu.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.15s;
}
.mobile-menu.active .mobile-nav-link:nth-child(4) {
  transition-delay: 0.2s;
}
.mobile-menu.active .mobile-nav-link:nth-child(5) {
  transition-delay: 0.25s;
}
.mobile-menu.active .mobile-nav-link:nth-child(6) {
  transition-delay: 0.3s;
}
.mobile-menu.active .mobile-nav-link:nth-child(7) {
  transition-delay: 0.35s;
}

/* === "WOW" SCROLL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === PROJECT GALLERY === */
.project-gallery-swiper {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-gallery-swiper .swiper-slide img:hover {
  transform: scale(1.03);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-accent);
  transition: opacity 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 0.8;
}

.swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.4);
}
.swiper-pagination-bullet-active {
  background-color: var(--color-accent);
}

/* === STAT BOXES === */
.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  padding: 24px;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-box-value {
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 700;
}

/* === FLOOR PLAN TABS === */
.floor-tab-container {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  overflow-x: auto; /* Allow horizontal scroll on mobile */
  justify-content: center;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
  padding-bottom: 12px; /* Space for scrollbar */
}
.floor-tab-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.tab-button {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 10px 24px;
  color: white;
  font-weight: 500;
  margin-right: 8px;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent line breaks */
  flex-shrink: 0; /* Prevent shrinking */
}

.tab-button.active {
  background: var(--color-accent);
  color: #111;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.floor-plan-wrapper {
  position: relative;
}

/* Smooth fade/slide transition */
.floor-plan-grid {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.5s ease-in-out,
    max-height 0.5s ease-in-out;
  visibility: hidden;
}

.floor-plan-grid.active {
  opacity: 1;
  max-height: 1000px; /* Large enough for any image */
  visibility: visible;
}

.floor-plan-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
}

/* === AMENITIES === */
.amenity-category-title {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 600;
  border-left: 3px solid var(--color-accent);
  padding-left: 12px;
}

/* Replaced ::before with a real flex-based icon */
.amenities-list li {
  display: flex;
  align-items: flex-start;
  color: #d1d5db; /* Lighter gray than text-gray-300 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 15px;
}
/* The checkmark icon */
.amenities-list li::before {
  content: "✓";
  color: var(--color-accent);
  margin-right: 12px;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px; /* Align with text */
}

/* === FOOTER STYLES === */
.footer-title {
  font-family: var(--font-serif);
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  color: white;
  margin-bottom: 1rem; /* 16px */
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
}

.footer-link {
  color: #a0aec0; /* Lighter gray */
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
}
.footer-link:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  width: 100%;
  transition: all 0.3s ease;
}
.footer-input::placeholder {
  color: #718096;
}
.footer-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-accent-dark);
}