@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-primary: #0a1128; /* Deep Navy */
  --color-secondary: #1c2541; /* Dark Slate */
  --color-accent: #d4af37; /* Champagne Gold */
  --color-accent-hover: #b5952f;
  --color-text: #f0f4f8; /* Soft White */
  --color-text-muted: #a0abbc;
  --color-bg: #050814; /* Very Dark Navy */
  --color-glass: rgba(255, 255, 255, 0.05);
  --color-glass-border: rgba(255, 255, 255, 0.1);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
}

a {
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition-smooth);
}

/* Typography */
.text-accent {
  color: var(--color-accent);
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 0.9rem;
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  background: rgba(10, 17, 40, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--color-glass-border);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.logo span {
  color: var(--color-accent);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--color-accent);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,8,20,0.3) 0%, rgba(5,8,20,0.8) 100%);
  z-index: -1;
}
.hero-content {
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.5s;
}
.hero-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  display: block;
  transition: var(--transition-smooth);
}
.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 50px rgba(5,8,20,0.5);
  pointer-events: none;
}
.about-image:hover img {
  transform: scale(1.03);
}
.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Services */
.services {
  background-color: var(--color-secondary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Featured Properties */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.property-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}
.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.property-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.property-card:hover .property-img {
  transform: scale(1.05);
}
.property-img-wrapper {
  overflow: hidden;
  position: relative;
}
.property-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
}
.property-info {
  padding: 1.5rem;
}
.property-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.property-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.property-meta {
  display: flex;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-glass-border);
  padding-top: 1rem;
  margin-top: 1rem;
}
.property-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Funnel & Contact Forms */
.form-section {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-secondary);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}
.form-status {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  display: none;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}
.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}
.form-status.loading {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-glass-border);
  color: var(--color-text-muted);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-glass-border);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Footer */
footer {
  background: #03050a;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-glass-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Page Header (for subpages) */
.page-header {
  padding: 10rem 0 5rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-secondary), var(--color-bg));
  border-bottom: 1px solid var(--color-glass-border);
}

/* Legal text */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-muted);
}
.legal-content h2 {
  margin: 2rem 0 1rem;
  color: #fff;
}
.legal-content p {
  margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

/* Progressive enhancement: hide only if JS is enabled */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.js-enabled .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--color-secondary);
    flex-direction: column;
    padding: 2rem;
    transition: 0.3s ease;
    border-left: 1px solid var(--color-glass-border);
  }
  .nav-links.active {
    right: 0;
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.4);
}
