@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --black: #0A0A0A;
  --emerald-primary: #10B981;
  --emerald-dark: #059669;
  --emerald-light: #34D399;
  --white: #FFFFFF;
  --grey-100: #F7F7F7;
  --grey-200: #E5E5E5;
  --grey-300: #D4D4D4;
  --grey-600: #525252;
  --grey-800: #1F1F1F;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-padding: clamp(1rem, 4vw, 2rem);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--black);
  overflow-x: hidden;
}

::selection {
  background-color: var(--emerald-primary);
  color: var(--white);
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-light));
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: all 0.2s ease;
}

.cursor.hover {
  transform: scale(2);
  opacity: 0.7;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--black);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoFloat 2s ease-in-out infinite alternate;
}

.loading-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--grey-300);
  opacity: 0.7;
}

@keyframes logoFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9998;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-primary), var(--emerald-light));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.gradient-text {
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.large-text {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.8;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center {
  text-align: center;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  z-index: 9000;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-padding);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-logo:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 9002;
  position: relative;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-smooth);
}

/* Mobile Navigation */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--black);
  z-index: 9001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-menu {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  list-style: none;
  padding: 0;
}

.mobile-menu .nav-link {
  font-size: 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1602391833977-358a52198938?w=1920&h=1080&fit=crop&q=80') center/cover;
  z-index: -2;
  animation: parallaxMove 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.4), rgba(16, 185, 129, 0.05));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  letter-spacing: 0.1em;
  color: var(--emerald-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUp 1s ease 0.5s forwards;
}

.hero-title {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp 1s ease 0.7s forwards;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  opacity: 0;
  animation: slideUp 1s ease 0.9s forwards;
}

@keyframes parallaxMove {
  0% { transform: scale(1) translateY(0px); }
  100% { transform: scale(1.1) translateY(-20px); }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--emerald-primary);
  border: 2px solid var(--emerald-primary);
}

.btn-outline:hover {
  background: var(--emerald-primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== PROPERTY CARDS ===== */
.property-card {
  background: var(--grey-800);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-primary);
}

.property-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.property-card:hover .property-image {
  transform: scale(1.1);
}

.property-content {
  padding: 1.5rem;
}

.property-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-primary);
  margin-bottom: 0.5rem;
}

.property-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.property-location {
  color: var(--grey-300);
  margin-bottom: 1rem;
}

.property-details {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--grey-300);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--grey-300);
  border: 2px solid var(--grey-600);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
  font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== STATS COUNTER ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--emerald-primary);
  display: block;
  line-height: 1;
}

.stat-label {
  color: var(--grey-300);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--grey-800);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.1);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: var(--emerald-primary);
  transform: translateY(-5px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--emerald-primary);
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--grey-300);
}

/* ===== AREA CARDS ===== */
.area-card {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.area-card:hover {
  transform: translateY(-10px);
}

.area-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.area-card:hover .area-image {
  transform: scale(1.1);
}

.area-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.area-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.area-price {
  color: var(--emerald-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.area-description {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== TEAM CARDS ===== */
.team-card {
  text-align: center;
  background: var(--grey-800);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.1);
  transition: var(--transition-smooth);
}

.team-card:hover {
  border-color: var(--emerald-primary);
  transform: translateY(-10px);
}

.team-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--emerald-primary);
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--emerald-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--grey-200);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--grey-800);
  border: 2px solid var(--grey-600);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.05);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--grey-800);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--emerald-primary);
}

.footer-section p,
.footer-section a {
  color: var(--grey-300);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--emerald-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-600);
  color: var(--grey-300);
}

.footer-credit {
  color: var(--emerald-primary);
  text-decoration: none;
}

.footer-credit:hover {
  text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-tabs {
    gap: 0.5rem;
  }
  
  .filter-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .area-card {
    height: 300px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .property-content {
    padding: 1rem;
  }
  
  .property-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}