* {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}
body {
  background: #fafafa;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}
.spinner {
  width: 60px; height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid #0055aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Navbar */
header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8%;
}
.logo img { max-height: 80px; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover { color: #0055aa; }

/* Hero Video */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex; justify-content: center; align-items: center;
  text-align: center; color: white;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content { z-index: 2; padding: 0 15px; }
.hero h2 { font-size: 2.5em; margin-bottom: 15px; }

.btn {
  background: #0055aa;
  color: white; padding: 12px 28px;
  border-radius: 6px; text-decoration: none;
  transition: background 0.3s;
}
.btn:hover { background: #007bff; }
.btn-sm {
  background: #0055aa;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.3s;
}
.btn-sm:hover { background: #007bff; }

/* Properties */
.section { padding: 80px 10%; text-align: center; }
.property-grid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.property-card:hover { transform: translateY(-8px); }
.property-card img { width: 100%; height: 200px; object-fit: cover; }

/* About */
.about {
  display: flex; justify-content: space-between;
  align-items: center; gap: 40px; flex-wrap: wrap;
}
.about-img img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact */
.contact-wrapper {
  display: flex; flex-wrap: wrap;
  gap: 40px; justify-content: center;
}
.contact-form {
  flex: 1; min-width: 280px; max-width: 400px;
  display: flex; flex-direction: column; gap: 15px;
}
.contact-form input, .contact-form textarea {
  padding: 12px; border: 1px solid #ccc; border-radius: 6px;
}
.map iframe { width: 100%; height: 300px; border-radius: 10px; }

/* Footer */
footer {
  background: #222; color: #ddd;
  text-align: center; padding: 25px 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; background: white; width: 100%; text-align: center; }
  .nav-links.active { display: flex; }
  .about { flex-direction: column; text-align: center; }
}

.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}