/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base body styles with a dark, futuristic theme and centered text */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #111; /* Dark background */
  color: #eee; /* Light text */
  text-align: center;
}

/* Smooth opacity transition for fading */
.fade-on-scroll {
  transition: opacity 0.5s ease-out;
}

/* Header (Hero) Section */
#hero {
  position: relative;
  width: 100%;
  height: 70vh;
  background: url('assets/image1.jpg') no-repeat center/cover;
}

#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Header Text Styles */
#hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-btn {
  background-color: #ff4081;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #e73370;
}

/* Section Titles */
section h2 {
  margin: 40px 0 20px;
  font-size: 2rem;
  color: #eee;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 10px 40px;
}

/* Each gallery item maintains a consistent aspect ratio */
.gallery-item {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 ratio */
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

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

/* Property Details Section */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px 40px;
}

.detail-block {
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
}

.detail-block:hover {
  transform: translateY(-5px);
}

.detail-block i {
  font-size: 2rem;
  color: #ff4081;
  margin-bottom: 10px;
}

.detail-block h3 {
  margin-bottom: 10px;
}

/* Google Maps Section */
.map-container {
  width: 100%;
  padding: 0 20px 40px;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

/* Contact Form Section */
.form-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.form-container iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 8px;
}

/* Image Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff4081;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 2rem;
  }
  #hero p {
    font-size: 1rem;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
}
  
@media (min-width: 768px) {
  #hero h1 {
    font-size: 3rem;
  }
  #hero p {
    font-size: 1.5rem;
  }
}
