:root {
  --color-cloud-dancer: #F4F5F0;
  --color-deep-slate: #1A1F24;
  --color-teak-wood: #C18A53;
  --color-teak-wood-dark: #A06F3D;
  --color-white: #FFFFFF;
  
  --font-primary: 'Inter', sans-serif;
  --blur-glass: blur(16px);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-cloud-dancer);
  color: var(--color-deep-slate);
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 10%, rgba(26,31,36,0.03) 0%, transparent 80%);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.kinetic-text {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-deep-slate);
  white-space: nowrap;
}
.kinetic-text-filled {
  color: var(--color-deep-slate);
  -webkit-text-stroke: 0;
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 8rem 0;
  position: relative;
}

/* Antigravity Glassmorphism Header */
header {
  position: fixed;
  top: 1.5rem; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1200px;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-deep-slate);
  text-decoration: none;
}
.logo span {
  color: var(--color-teak-wood);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.nav-links li a {
  text-decoration: none;
  color: var(--color-deep-slate);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
}
.nav-links li a:hover, .nav-links li a.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-teak-wood-dark);
}
.header-cta {
  background: var(--color-deep-slate);
  color: var(--color-white);
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-cta:hover {
  background: var(--color-teak-wood);
  transform: scale(1.05);
}


/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  perspective: 1000px;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
}
.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-teak-wood);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.125rem;
  opacity: 0.8;
  margin-top: 1.5rem;
  max-width: 80%;
}

.hero-3d-wrapper {
  position: absolute;
  right: -5%;
  top: 15%;
  width: 60vw;
  height: 90vh;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-3d-model {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.15);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.1s ease-out;
  position: relative;
  overflow: hidden;
}

/* The gradient overlay to give it a soft focus look */
.hero-3d-model::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

/* Why Belgaum */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 4rem 0;
  background: var(--color-deep-slate);
  color: var(--color-cloud-dancer);
}
.marquee {
  display: flex;
  gap: 3rem;
}
.marquee span {
  font-size: 4rem;
  font-weight: 900;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(244, 245, 240, 0.3);
  color: transparent;
}
.marquee span.highlight {
  color: var(--color-teak-wood);
  -webkit-text-stroke: 0;
}

/* Locality Explorer (2D Professional) */
.locality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.locality-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 3rem 2rem;
  border: 1px solid rgba(26,31,36,0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.locality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border-color: rgba(193, 138, 83, 0.3);
}
.locality-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-deep-slate);
}
.locality-card p {
  opacity: 0.7;
  line-height: 1.6;
}
.card-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(193, 138, 83, 0.1);
  color: var(--color-teak-wood-dark);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* 3D Progress Bar / Tracker */
.tracker-section {
  background: var(--color-deep-slate);
  color: var(--color-cloud-dancer);
  text-align: center;
}
.tracker-container {
  margin-top: 5rem;
  perspective: 1000px;
}
.progress-3d {
  width: 100%;
  height: 60px;
  background: rgba(244, 245, 240, 0.1);
  border-radius: 10px;
  position: relative;
  transform: rotateX(20deg);
  transform-style: preserve-3d;
  box-shadow: 0 20px 30px rgba(0,0,0,0.5);
}
.progress-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--color-teak-wood);
  border-radius: 10px;
  box-shadow: 0 0 20px var(--color-teak-wood);
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: -10px; right: -5px;
  width: 10px; height: 80px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.floors-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-weight: 700;
  opacity: 0.6;
}

/* Booking Portal Focus */
.booking-form {
  background: rgba(255,255,255,0.8);
  backdrop-filter: var(--blur-glass);
  border-radius: 24px;
  padding: 4rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full {
  grid-column: 1 / -1;
}
input, select {
  padding: 1rem 1.5rem;
  border: 1px solid rgba(26,31,36,0.1);
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--color-teak-wood);
  box-shadow: 0 0 0 4px rgba(193, 138, 83, 0.1);
}
.btn {
  background: var(--color-deep-slate);
  color: var(--color-white);
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn:hover {
  background: var(--color-teak-wood);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(193, 138, 83, 0.3);
}

/* Projects Table Styles (for projects page) */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project-item {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 0.5fr;
  align-items: center;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid rgba(26,31,36,0.05);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}
.project-item:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  transform: translateY(-5px);
  border-color: var(--color-teak-wood);
}
.p-title { font-weight: 900; font-size: 1.4rem; color: var(--color-deep-slate); }
.p-loc { opacity: 0.7; font-weight: 500; }
.p-feat { font-size: 0.9rem; color: var(--color-deep-slate); opacity: 0.8; }
.p-price { font-weight: 700; color: var(--color-teak-wood); font-size: 1.2rem; }

/* 3D Floor Plan Hover Portal */
.floor-plan-hover {
  position: absolute;
  top: -200%;
  left: 50%;
  transform: translateX(-50%) rotateX(20deg) scale(0.8);
  transform-style: preserve-3d;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  pointer-events: none;
  width: 400px;
  height: 300px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 60px rgba(0,0,0,0.3);
  border: 4px solid var(--color-white);
}
.project-item:hover .floor-plan-hover {
  opacity: 1;
  visibility: visible;
  top: -150%;
  transform: translateX(-50%) rotateX(0deg) scale(1);
}

/* Image Slider Component */
.gallery-slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 1rem 8vw;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.gallery-slider-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.slider-slide {
  flex: 0 0 85%;
  max-width: 800px;
  scroll-snap-align: center;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transform: translateZ(0); /* Hardware acceleration */
}
@media (min-width: 768px) {
  .slider-slide {
    flex: 0 0 60%;
  }
}
.slider-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
@media (max-width: 768px) {
  .slider-slide img {
    height: 350px;
  }
}
.slider-slide:hover img {
  transform: scale(1.05);
}
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,31,36,0.95));
  color: var(--color-white);
  padding: 3rem 2rem 2rem 2rem;
  pointer-events: none;
}
.slide-caption h3 {
  font-size: 1.8rem;
  color: var(--color-teak-wood);
  margin-bottom: 0.5rem;
}
.slide-caption p {
  font-size: 1.05rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Timeline CSS */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 0;
}
.timeline-line-bg {
  position: absolute;
  left: 50%; top: 0; bottom: 0; width: 4px;
  background: rgba(26,31,36,0.05);
  transform: translateX(-50%);
}
.timeline-line-fill {
  position: absolute;
  left: 50%; top: 0; height: 0%; width: 4px;
  background: var(--color-teak-wood);
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--color-teak-wood);
  z-index: 1;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 4rem;
  margin-bottom: 4rem;
}
.timeline-item.right-align {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 4rem;
}
.timeline-dot {
  position: absolute;
  right: -10px; top: 40px; width: 20px; height: 20px;
  background: var(--color-white);
  border: 4px solid var(--color-teak-wood);
  border-radius: 50%; z-index: 2;
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-item.right-align .timeline-dot { left: -10px; right: auto; }
.timeline-content .year {
  font-size: 3rem; font-weight: 900; color: var(--color-deep-slate);
  opacity: 0.1; position: absolute; top: 0; right: 4rem; z-index: 0;
}
.timeline-item.right-align .year { left: 4rem; right: auto; }
.timeline-content .card {
  background: var(--color-white); padding: 3rem; border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04); position: relative; z-index: 1;
  border: 1px solid rgba(0,0,0,0.03); transition: transform 0.3s;
}
.timeline-content .card h3 { font-size: 1.5rem; color: var(--color-teak-wood); margin-bottom: 0.5rem;}
.timeline-content .card .loc { font-weight: 700; opacity: 0.6; margin-bottom: 1.5rem; }
.timeline-content .card p { margin-bottom: 1rem; line-height: 1.6; }
.timeline-content .card .status { font-weight: 700; background: rgba(193,138,83,0.1); display: inline-block; padding: 0.5rem 1rem; border-radius: 8px; color: var(--color-teak-wood-dark);}

/* Premium Founder Card */
.premium-founder-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--color-deep-slate), #2A3138);
  border-radius: 24px; padding: 4rem; color: var(--color-cloud-dancer);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15); position: relative; overflow: hidden;
}
.card-inner { position: relative; z-index: 2; }
.quote-mark { font-size: 8rem; line-height: 0; color: var(--color-teak-wood); opacity: 0.3; position: absolute; top: 2rem; left: -1rem; font-family: serif; }
.founder-quote { font-size: 1.6rem; line-height: 1.8; font-style: italic; margin-bottom: 3rem; padding-left: 3rem; position: relative; }
.founder-info { text-align: right; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.founder-name { font-size: 1.8rem; font-weight: 700; color: var(--color-white); }
.founder-title { color: var(--color-teak-wood); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; margin-top: 0.5rem;}

/* App-like Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 0.8rem 0;
  padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
}
.mobile-bottom-nav a {
  color: var(--color-deep-slate); opacity: 0.6;
  text-decoration: none; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  transition: opacity 0.3s, color 0.3s;
}
.mobile-bottom-nav a svg { stroke: currentColor; opacity: 0.8; }
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover {
  color: var(--color-teak-wood);
  opacity: 1;
}

/* WhatsApp Float Button */
.whatsapp-btn {
  position: fixed; bottom: 2rem; right: 2rem;
  background: #25D366; color: white; width: 65px; height: 65px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); z-index: 999; transition: transform 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);}

/* ================================= */
/* Mobile Premium Responsiveness     */
/* ================================= */
@media (max-width: 900px) {
  /* Timeline Mobile Fix */
  .timeline-line-bg, .timeline-line-fill { left: 20px; }
  .timeline-item, .timeline-item.right-align { width: 100%; margin-left: 0; padding-left: 60px; padding-right: 0; }
  .timeline-dot, .timeline-item.right-align .timeline-dot { left: 10px; right: auto; top: 30px;}
  .timeline-content .year, .timeline-item.right-align .year { right: 2rem; top: 2rem; left: auto; opacity: 0.05;}
  .timeline-content .card { padding: 2rem; }
  .premium-founder-card { padding: 2rem; }
  .founder-quote { font-size: 1.2rem; padding-left: 2rem; }
  
  /* Performance Fixes for Mobile */
  .timeline-content .card { box-shadow: 0 5px 15px rgba(0,0,0,0.05); will-change: transform, opacity; }
  .premium-founder-card { box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateZ(0); }
  .premium-founder-card::before { display: none; }
}

@media (max-width: 768px) {
  html, body { 
      overflow-x: hidden; 
      width: 100%; 
      max-width: 100vw; 
      position: relative; 
  }
  body { padding-bottom: 70px; } /* give space for bottom nav */
  footer { padding-bottom: 6rem; }
  header { padding: 0.8rem 0; }
  header .nav-links { display: none; }
  header .nav-container { justify-content: center; padding: 0 1rem; }
  .logo { font-size: 1.2rem; gap: 0.3rem; }
  
  .mobile-bottom-nav { display: flex; justify-content: space-around; }
  .whatsapp-btn { bottom: 6rem; right: 1.5rem; width: 55px; height: 55px; }

  .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
  .hero-content { width: 100%; margin-bottom: 3rem; }
  .hero-desc { margin: 1.5rem auto; max-width: 100%; }
  .hero-3d-wrapper { position: relative; top: 0; right: 0; width: 100%; height: 50vh; }
  
  .marquee span { font-size: 2.5rem; }
  .section-title h2 { font-size: 2.5rem; }
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  
  .booking-form { grid-template-columns: 1fr; padding: 2rem; }
  .project-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .project-body { padding: 2rem; }

  .project-item { 
      grid-template-columns: 1fr; 
      gap: 1rem; 
      text-align: center; 
      padding: 2rem 1rem; 
  }
  .project-item > div { text-align: center !important; }
  .floor-plan-hover { display: none !important; }
  
  .kinetic-text { font-size: 3rem; }
}

/* Investor Plans Section */
.investor-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}
.investor-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 3.5rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.investor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 6px;
  background: var(--color-teak-wood);
  opacity: 0.3;
}
.investor-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  background: var(--color-white);
}
.investor-card.popular {
  border: 2px solid var(--color-teak-wood);
  transform: scale(1.05);
}
.investor-card.popular:hover {
  transform: translateY(-12px) scale(1.05);
}
.investor-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-deep-slate);
}
.investor-card .invest-yield {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-teak-wood);
  margin-bottom: 0.5rem;
}
.investor-card .invest-yield span {
  font-size: 1rem;
  color: var(--color-deep-slate);
  opacity: 0.6;
  font-weight: 500;
}
.investor-card ul {
  list-style: none;
  margin: 2rem 0;
  flex-grow: 1;
}
.investor-card li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
}
.investor-card li svg {
  color: var(--color-teak-wood);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  header {
    top: 1rem;
    width: calc(100% - 2rem);
    padding: 0.5rem 1rem;
  }
  .nav-links, .header-cta {
    display: none;
  }
  .investor-plans-grid {
    grid-template-columns: 1fr;
  }
  .investor-card.popular {
    transform: none;
  }
}

