/* Premium Luxury Theme for Property Bazar Gwalior */
:root {
  --gold: #A68B5B; /* Burnished Metallic Gold */
  --gold-light: #C4B08F; /* Soft Champagne Gold (Desaturated to avoid yellow) */
  --gold-dark: #7A633F; 
  --bg-deep: #0A0A0A; 
  --bg-card: #141414; 
  --text-primary: #F0F0F0;
  --text-secondary: #9E9E9E;
  --border: #2A2A2A;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* Loader */
#page-loader {
  position: fixed; inset: 0; background: var(--bg-deep); z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  flex-direction: column; transition: opacity 0.6s ease;
}
.loader-spinner {
  width: 50px; height: 50px; border: 3px solid var(--border); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Parallax Containers */
.parallax-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 120%;
  background-size: cover; background-position: center; z-index: -1;
  will-change: transform;
}
.hero { position: relative; overflow: hidden; background: none !important; }


* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg-deep); color: var(--text-primary);
  font-family: var(--font-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; color: var(--gold-light); }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%; padding: 15px 5%;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
  z-index: 1000; border-bottom: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-container img { height: 125px; object-fit: contain; transition: height 0.3s; mix-blend-mode: screen; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-primary); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; font-size: 28px; cursor: pointer; color: var(--text-primary); }

@media (max-width: 768px) {
  .logo-container img { height: 80px; } /* slightly smaller on very small screens to avoid overflow */
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; width: 100%; 
    background: rgba(15, 15, 15, 0.98); flex-direction: column; 
    padding: 20px 0; border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  .nav-links.nav-open { display: flex; }
}

/* Hero Section */
.hero {
  height: 100vh; display: flex; align-items: center; justify-content: flex-start; text-align: left;
  position: relative; overflow: hidden;
  width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  background: linear-gradient(to right, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0) 50%, rgba(10,10,10,0.8) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 50px 10%; max-width: 900px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.hero-content h1 { font-size: 72px; margin-bottom: 20px; color: var(--text-primary); line-height: 1.1; font-weight: 500; text-transform: none; font-family: var(--font-display); }
@media (max-width: 768px) {
  .hero-content h1 { font-size: 42px; }
  .hero-content p { font-size: 16px; }
}
.hero-content p { font-size: 20px; color: var(--text-primary); margin-bottom: 40px; font-weight: 300; max-width: 600px; opacity: 0.9; }

/* Buttons */
.btn {
  display: inline-block; padding: 16px 45px; font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
  cursor: pointer; transition: all 0.4s ease; text-align: center; border-radius: 2px;
}
.btn-primary { 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #000; font-weight: 600; border: none;
}
.btn:hover { background: rgba(180, 151, 90, 0.1); color: var(--gold-light); }
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #000; box-shadow: 0 0 25px rgba(180, 151, 90, 0.4); }

/* Section Common */
.section { 
  padding: 100px 5%; 
  width: 100vw; 
  position: relative; 
  left: 50%; 
  right: 50%; 
  margin-left: -50vw; 
  margin-right: -50vw; 
  overflow-x: hidden;
}
.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .grid-responsive { grid-template-columns: 1fr; }
}
.section-alt { 
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border); 
  overflow: hidden;
}
.section-alt::before, .section-alt::after, .footer::before, .footer::after {
  content: '';
  position: absolute;
  top: 0; width: 25vw; height: 100%;
  background-image: url('assets/pattern_fade.png');
  background-position: left top;
  background-repeat: repeat-y;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.section-alt::before, .footer::before { left: 0; }
.section-alt::after, .footer::after { right: 0; transform: scaleX(-1); }
.section-alt > div, .footer > div { position: relative; z-index: 2; }
.relative-z { position: relative; z-index: 2; }
.section-title { text-align: center; font-size: 48px; margin-bottom: 20px; line-height: 1.2; text-transform: none; letter-spacing: 0px; font-family: var(--font-display); color: var(--text-primary); font-weight: 500; }
.section-subtitle { text-align: center; font-size: 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; }
.section-desc { text-align: center; font-size: 18px; color: var(--text-secondary); max-width: 700px; margin: 0 auto 70px; font-weight: 300; }

/* Auto-Scrolling Marquee */
.marquee-container {
  overflow: hidden; white-space: nowrap; width: 100%; position: relative;
  padding: 20px 0;
}
.marquee-content {
  display: inline-flex; align-items: stretch; gap: 30px; animation: scrollRight 40s linear infinite;
  padding-left: 30px;
}
.marquee-container:hover .marquee-content { animation-play-state: paused; }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* Project Card (Agenvo Style) */
.project-card {
  background: transparent; border: none; border-radius: 0; overflow: hidden;
  transition: transform 0.4s ease; display: inline-flex; flex-direction: column; white-space: normal;
}
@media (max-width: 768px) {
  .project-card { min-width: 100%; }
}
.project-card:hover { transform: translateY(-5px); box-shadow: none; }
.project-card:hover .project-info h3 { color: var(--gold); }
.project-img { height: 260px; background-size: cover; background-position: center; border: none; transition: transform 0.5s ease; border-radius: 0; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-info { padding: 30px 0; display: flex; flex-direction: column; flex-grow: 1; z-index: 2; background: transparent; transition: 0.3s; }
.project-info h3 { font-size: 24px; margin-bottom: 10px; transition: color 0.3s; }
.project-info p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; flex-grow: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }

/* Detailed Page Elements */
.header-banner {
    padding: 180px 5% 100px; text-align: center; 
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920') center/cover;
    border-bottom: 1px solid var(--border); position: relative;
}
.header-banner h1 { font-size: 56px; margin-bottom: 15px; }

.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.amenity-item { padding: 20px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 8px; transition: 0.3s; }
.amenity-item:hover { border-color: var(--gold); color: var(--gold); }
.amenity-icon { font-size: 32px; margin-bottom: 10px; color: var(--gold); }

/* Features/Values from Imagen */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; max-width: 1200px; margin: 0 auto; }
.feature-item { padding: 40px; }
.feature-icon { 
  font-size: 48px; 
  color: var(--gold); 
  margin-bottom: 20px; 
  opacity: 0.9;
  filter: drop-shadow(0 0 5px rgba(166, 139, 91, 0.4));
}
.feature-item h3 { font-size: 22px; margin-bottom: 15px; color: var(--text-primary); font-family: var(--font-display); font-weight: 500; text-transform: none; }
.feature-item p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* Process / How it works */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; text-align: center; background: var(--border); border: 1px solid var(--border); }
.step { padding: 40px 30px; background: var(--bg-card); position: relative; }
.step-number { font-family: var(--font-display); font-size: 60px; color: rgba(196, 155, 94, 0.08); position: absolute; top: -5px; left: 20px; }
.step h3 { font-size: 20px; margin-bottom: 15px; position: relative; z-index: 2; color: var(--gold); }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-steps { grid-template-columns: 1fr; } }

/* FAQ Section */
.faq-box { margin-bottom: 15px; background: var(--bg-card); border: 1px solid var(--border); transition: all 0.3s; }
.faq-box:hover { border-color: rgba(196, 155, 94, 0.3); }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 400; color: var(--text-primary); letter-spacing: 1px; }
.faq-question:hover { color: var(--gold); }
.faq-answer { padding: 0 20px; display: none; margin-bottom: 20px; color: var(--text-secondary); line-height: 1.8; font-size: 14px; }
.faq-box.active .faq-answer { display: block; }
.faq-box.active .faq-toggle { transform: rotate(45deg); display: inline-block; transition: 0.3s; color: var(--gold); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { padding: 40px; background: rgba(20,20,20,0.8); border: 1px solid var(--border); border-top: 3px solid var(--gold); text-align: center; }
.quote-icon { font-size: 40px; color: var(--gold); opacity: 0.2; line-height: 1; margin-bottom: 15px; }

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; background: var(--bg-card); padding: 50px; border: 1px solid var(--border); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; color: var(--text-secondary); }
.form-input { width: 100%; padding: 15px 0; background: transparent; border: none; border-bottom: 1px solid var(--border); color: var(--text-primary); font-family: var(--font-body); transition: border-color 0.3s; }
.form-input:focus { outline: none; border-color: var(--gold); }

/* Footer */
.footer { 
  padding: 80px 5% 40px; 
  background-color: #050505;
  border-top: 1px solid var(--border); 
  width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-logo { font-family: var(--font-display); font-size: 28px; color: var(--gold); margin-bottom: 20px; }
.footer-links h4 { color: var(--text-primary); margin-bottom: 20px; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; font-family: var(--font-display); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); transition: 0.3s; font-size: 14px; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-deep); border: 1px solid var(--gold); padding: 50px; width: 90%; max-width: 500px; position: relative; }
.close-modal { position: absolute; top: 20px; right: 20px; color: var(--gold); cursor: pointer; font-size: 24px; }

/* Map/Inventory grid */
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.inventory-card { padding: 20px; border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.inv-status { padding: 4px 10px; border-radius: 4px; font-size: 11px; text-transform: uppercase; font-weight: bold; }
.inv-status.Available { background: rgba(62, 207, 142, 0.2); color: #3ecf8e; border: 1px solid rgba(62, 207, 142, 0.5); }
.inv-status.Booked { background: rgba(212, 168, 49, 0.2); color: var(--gold); border: 1px solid rgba(212, 168, 49, 0.5); }
.inv-status.Sold { background: rgba(255, 87, 87, 0.2); color: #ff5757; border: 1px solid rgba(255, 87, 87, 0.5); }

/* Utils */
.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }
.gold-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.gold-glow { text-shadow: 0 0 15px rgba(180, 151, 90, 0.3); }
