/* CSS Variables - Design System */
:root {
  --mediterranean: #0c8ce9;
  --sand: #d8a635;
  --ocean: #268bd2;
  --sunset: #d8a635;
  --gold: #d8a635;
  --primary: var(--mediterranean);
  --foreground: #09090b;
  --background: #fff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #09090b;
}

.dark {
  --foreground: #f8fafc;
  --background: #09090b;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --border: #27272a;
  --input: #27272a;
  --ring: #d4d4d8;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

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

/* Header Styles */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .logo {
    height: 3rem;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  color: var(--sand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--sand);
  color: black;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--gold);
}

.btn-secondary {
  background-color: var(--mediterranean);
  color: white;
}

.btn-secondary:hover {
  background-color: #0a7bda;
}

.btn-white {
  background-color: white;
  color: var(--mediterranean);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline {
  border: 1px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background-color: white;
  color: var(--mediterranean);
}

.btn-full {
  width: 100%;
}
.btn-lg {
  padding: .5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: .3rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
          to right,
          rgba(12, 140, 233, 0.8),
          rgba(38, 139, 210, 0.6)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 0 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Apartments Section */
.apartments {
  padding: 5rem 0;
  background-color: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 45rem;
  margin: 0 auto;
}

.apartments-description {
  font-size: 1rem;
  color: var(--foreground);
  max-width: 56rem;
  margin: 5rem auto;
  text-align: justify;
}

.apartments-description p {
  margin: 1rem 0;
}

.apartments-description .tip {
  background: #f0f0f0;
  color: #333;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.apartments-grid {
  display: grid;
  gap: 2rem;
  max-width: 96rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .apartments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Apartment Card */

.apartment-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.card-image {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

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

.capacity-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-content {
  padding: 1.5rem;
}

#apartments .card-content .btn {
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.card-title a{
  color:#000; text-decoration: none;
}

.card-location {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.detail-icon {
  font-size: 1rem;
}

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

.feature {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

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

/* Contact Section */

.contact {
  background: linear-gradient(135deg, #0c8ce9, #268bd2);
  padding: 5rem 0;
  color: white;
}

.contact-content {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.contact-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.contact-details a {
  color: #fff;
}

.contact-item {
  flex: 1 1 100%;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
}
.contact-item-header {
  display: flex;
  align-items: center;
  justify-content: left;
  margin-bottom: 0.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  margin-right:1rem;
}

.contact-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-item p {
  opacity: 0.9;
  text-align: center;
}

@media (min-width: 640px) {
  .contact-details {
    flex-direction: row;
  }
  .contact-item {
    flex:1 1 calc(50% - 1.5rem);
  }
}
@media (min-width: 1200px) {
  .contact-details {
    flex-direction: row;
  }
  .contact-item {
    flex:1 1 calc(25% - 1.5rem);
  }
}


/* Contact Form */

.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--sand);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .btn {
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 767px) {
  .nav {
    display: none;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .contact-title {
    font-size: 1.75rem;
  }
}


/* Apartment Carousel */

.apartment-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.dot.active {
  background: white;
  transform: scale(1.2);
}


/* Smooth Scrolling */

html {
  scroll-behavior: smooth;
}
