/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 128, 0.3),
    rgba(218, 165, 32, 0.3)
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-family: "Lora", serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

.cta-section a {
  color: white;
  text-decoration: none;
}

/* Overview Section */
.overview-section {
  padding: 60px 20px;
  background-color: #f0f4f8;
  text-align: center;
}

.overview-container {
  max-width: 800px;
  margin: 0 auto;
}

.overview-divider {
  width: 100px;
  height: 2px;
  background: var(--accent-color);
  margin: 20px auto;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.overview-divider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: rotate 3s infinite linear;
}

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

.overview-container p[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.overview-container p[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Apartments Section */
.rooms-section {
  padding: 80px 20px;
  text-align: center;
}

.rooms-filter {
  max-width: 900px;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--primary-color);
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.rooms-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.room-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  padding: 25px;
  transition: all 0.4s ease;
}

.room-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-dark);
}

.room-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.room-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.room-features {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px;
  text-align: left;
  font-family: 'Lora', serif;
}

.room-features li {
  padding: 4px 0;
  position: relative;
  padding-left: 22px;
}

.room-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.details-btn {
  padding: 12px 28px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
}

.details-btn:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active { display: flex; }

.modal-content {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

/* CTA Section */
.cta-section {
  padding: 40px 20px;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-container h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-container p {
  font-family: "Lora", serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-container .btn-primary {
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.cta-container .btn-primary:hover {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}