:root {
  --primary-black: #121212;
  --secondary-black: #1e1e1e;
  --gold: #D4AF37;
  --light-gold: #f0e6d2;
  --white: #ffffff;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  background-color: var(--primary-black);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

body.modal-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
  position: fixed;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--gold);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 15px auto;
}

header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero-image.jpg');
  background-size: cover;
  background-position: center;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

nav {
  width: 100%;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  background-color: var(--primary-black);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 95px;
  width: auto;
  max-width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.hero-content {
  text-align: center;
  margin: auto;
  padding: 0 20px;
  z-index: 1;
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-black);
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--light-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.apartment-card {
  background: var(--secondary-black);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.apartment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.apartment-slider {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.apartment-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.apartment-slide:hover {
  transform: scale(1.02);
}

.apartment-slide.active {
  opacity: 1;
}

.slider-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.slider-prev,
.slider-next {
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--gold);
  color: var(--primary-black);
}

.apartment-info {
  padding: 20px;
}

.apartment-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--gold);
}

.apartment-info p {
  margin-bottom: 15px;
  color: var(--light-gold);
}

.features {
  list-style: none;
  margin-top: 20px;
}

.features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.features i {
  margin-right: 10px;
  color: var(--gold);
  width: 20px;
  text-align: center;
}

.centered-text {
  max-width: 600px;
  margin: 20px auto;
  color: var(--light-gold);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  padding: 30px;
  background: var(--secondary-black);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-button {
  margin-top: 30px;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 30px;
  font-size: 1.1rem;
}

.email-btn i {
  font-size: 1.2rem;
}

footer {
  background: var(--secondary-black);
  padding: 40px 0 20px;
  color: var(--light-gold);
  font-family: 'Arial', sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo i {
  color: var(--gold);
  font-size: 1rem;
}

.footer-logo p {
  font-size: 1rem;
  color: var(--light-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact h4 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact p {
  font-size: 1rem;
  color: var(--light-gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact i {
  color: var(--gold);
  font-size: 1rem;
}

.footer-contact a {
  color: var(--light-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gold);
  font-size: 0.9rem;
}

/* Language Selector Styles */
.language-selector {
  position: relative;
  display: inline-block;
  margin-left: 30px;
}

.language-toggle {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gold);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 30px;
  font-weight: 500;
}

.language-toggle:hover {
  background: rgba(212, 175, 55, 0.2);
}

.language-toggle i {
  margin-right: 8px;
  color: var(--gold);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--secondary-black);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  min-width: 160px;
  z-index: 1000;
  display: none;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.language-dropdown.show {
  display: block;
  animation: fadeIn 0.3s;
}

.language-option {
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  color: var(--light-gold);
}

.language-option:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.language-option img {
  width: 20px;
  height: 15px;
  margin-right: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.current-language {
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
}

.slide-controls {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.slide-prev,
.slide-next {
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.slide-prev:hover,
.slide-next:hover {
  background: var(--gold);
  color: var(--primary-black);
}

.slide-dots {
  display: flex;
  gap: 10px;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.slide-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
}

#modalImage {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
}

.modal-nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-prev,
.modal-next {
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
  background: var(--gold);
  color: var(--primary-black);
}

.image-counter {
  position: absolute;
  bottom: 30px;
  color: var(--white);
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 15px;
  border-radius: 20px;
}

.modal-close-btn {
  margin-top: 40px;
  padding: 16px 48px;
  background: linear-gradient(90deg, var(--gold) 60%, var(--light-gold) 100%);
  color: var(--primary-black);
  border: none;
  border-radius: 32px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.15), 0 1.5px 0 rgba(0, 0, 0, 0.03);
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
  letter-spacing: 1px;
  outline: none;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.modal-close-btn i {
  font-size: 1.25em;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  background: linear-gradient(90deg, var(--light-gold) 40%, var(--gold) 100%);
  color: var(--primary-black);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.23), 0 2.5px 0 rgba(0, 0, 0, 0.04);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
.nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary-black);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: left 0.3s;
    overflow-y: auto; /* Allow scrolling if content overflows */
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo h3,
  .footer-contact h4,
  .footer-logo p,
  .footer-contact p {
    justify-content: center;
  }

  .language-selector {
    margin-left: 20px;
    margin-top: 20px;
  }

  .language-toggle {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}