* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-container.small {
  gap: 0.5rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.logo-sub {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-container.small .logo-main {
  font-size: 1rem;
}

.logo-container.small .logo-sub {
  font-size: 0.75rem;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-shrink: 1;
  overflow: hidden;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #2563eb;
  background: transparent;
  color: #2563eb;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.lang-btn.active,
.lang-btn:hover {
  background: #2563eb;
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around; /* Adjusted for better line spacing */
  width: 25px;
  height: 20px; /* Slightly adjusted height */
  cursor: pointer;
  position: relative; /* For absolute positioning of spans if needed, but not used here */
}

.hamburger span {
  display: block;
  width: 100%; /* Make spans take full width of hamburger */
  height: 3px;
  background: #333;
  transition: all 0.3s ease-in-out; /* Smoother transition */
  border-radius: 1px; /* Slightly rounded ends for lines */
}

/* Active state for X icon */
.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg); /* Adjusted Y translation */
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg); /* Adjusted Y translation */
}

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 100px 2rem 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  border: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.hero-image {
  flex: 1;
  text-align: center;
  animation: slideInRight 1s ease-out;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.apartments {
  padding: 5rem 2rem;
  background: #f8fafc;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 3rem;
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.apartment-card {
  display: flex;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.apartment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.apartment-card:nth-child(even) {
  flex-direction: row-reverse;
}

.apartment-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.apartment-card:hover .apartment-image img {
  transform: scale(1.05);
}

.apartment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.apartment-image:hover .apartment-overlay {
  opacity: 1;
}

.view-gallery {
  padding: 1rem 2rem;
  background: white;
  color: #2563eb;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-gallery:hover {
  transform: scale(1.05);
}

.apartment-info {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.apartment-title {
  font-size: 1.8rem;
  color: #2563eb;
  margin-bottom: 1rem;
  font-weight: 600;
}

.apartment-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-weight: 500;
}

.feature-icon {
  font-size: 1.2rem;
}

.apartment-description {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.apartment-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.amenity {
  padding: 0.3rem 0.8rem;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.apartment-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
}

.price-period {
  color: #64748b;
  font-weight: 500;
}

.book-btn {
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.contact {
  padding: 5rem 2rem;
  background: white;
}

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

.contact-info h3 {
  color: #2563eb;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #64748b;
}

.contact-icon {
  font-size: 1.2rem;
}

.contact-form {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 15px;
}

.contact-form h3 {
  color: #2563eb;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.contact-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.contact-form input[type="date"] {
  position: relative;
  min-height: calc(1rem * 2 + 2px * 2 + 1.5em);
}

.date-inputs {
  display: flex;
  gap: 1rem;
}

.date-inputs input[type="date"] {
  flex: 1;
  min-width: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.footer {
  background: #2563eb;
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a,
.footer-section .nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-section a:hover,
.footer-section .nav-link:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  color: #2563eb;
  margin-bottom: 1rem;
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #64748b;
}

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.gallery-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-main-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}

.gallery-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

.gallery-counter {
  color: white;
  margin: 1rem 0;
  font-size: 1.1rem;
}

.gallery-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-nav-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gallery-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
}

.gallery-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  opacity: 1;
  border-color: white;
}

.map-container {
  margin-top: 2rem;
}

.map-wrapper {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 450px;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px; /* Adjust based on actual header height */
    flex-direction: column;
    /* background-color: white; Old solid background */
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); /* New gradient background */
    width: 100%;
    height: calc(100vh - 70px); /* Full height minus header */
    text-align: center;
    transition: left 0.3s ease-in-out; /* Changed transition property */
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 999;
    overflow-y: auto; /* Allow scrolling if content overflows */
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-controls {
    gap: 0.75rem;
  }

  .hamburger {
    display: flex;
  }

  /* .hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  } */
  /* The X animation is now defined globally */

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 1rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .apartment-card {
    flex-direction: column !important;
  }

  .apartment-card:nth-child(even) {
    flex-direction: column !important;
  }

  .apartment-info {
    text-align: center;
  }
  .apartment-features {
    justify-content: center;
  }
  .book-btn {
    align-self: center;
  }

  .apartment-image {
    min-height: 250px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .date-inputs {
    flex-direction: column;
  }
  .date-inputs input[type="date"] {
    width: 100%;
  }

  .gallery-thumbnails {
    max-width: calc(100vw - 40px);
  }
  .map-wrapper {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }
  .logo-main {
    font-size: 1rem;
  }
  .logo-sub {
    font-size: 0.75rem;
  }
  .lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  .nav-controls {
    gap: 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .apartment-info {
    padding: 1.5rem;
  }

  .apartment-image {
    min-height: 200px;
  }
  .map-wrapper {
    height: 300px;
  }
}
