/* =========================================================================
   Aiswaaryaw Developers - Premium Luxury Design System CSS
   Aesthetics: Ultra Premium UI, Glassmorphism, Apple-quality transitions
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary: #2f1c6a;       /* Deep Royal Indigo */
  --color-primary-rgb: 47, 28, 106;
  --color-accent: #db620b;        /* Sunset Orange */
  --color-accent-hover: #b84f07;
  --color-bg-dark: #0d141a;       /* Deep Luxury Charcoal/Blue-Black */
  --color-bg-light: #f8fafc;
  --color-text-dark: #0f172a;
  --color-text-light: #f8fafc;
  --color-glass-bg: rgba(255, 255, 255, 0.7);
  --color-glass-border: rgba(255, 255, 255, 0.3);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-premium: 16px;
  --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

/* Dark Mode Variables Override */
body.dark-mode {
  --color-bg-light: #0d141a;
  --color-text-dark: #f8fafc;
  --color-glass-bg: rgba(13, 20, 26, 0.7);
  --color-glass-border: rgba(255, 255, 255, 0.1);
  --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Global Reset & Scroll Behavior */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  transition: var(--transition-smooth);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Premium Typography Patterns */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

@supports not (background-clip: text) {
  .section-title {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--color-primary);
  }
}

.section-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  font-weight: 600;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-premium);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Premium Header */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1050;
  background: rgba(13, 20, 26, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

header.site-header.scrolled {
  height: 70px;
  background: var(--color-bg-light) !important;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-glass-border);
}

header.site-header .navbar {
  padding-top: 0;
  padding-bottom: 0;
}

header.site-header .site-logo {
  max-height: 50px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

header.site-header .brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

header.site-header .brand-text .brand-accent {
  color: var(--color-accent);
}

header.site-header.scrolled .brand-text {
  color: var(--color-primary);
}

header.site-header .navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95) !important;
  background: transparent !important;
  margin: 0 2px;
  padding: 8px 12px !important;
  position: relative;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

header.site-header.scrolled .navbar-nav .nav-link {
  color: var(--color-text-dark) !important;
}

header.site-header .navbar-nav .nav-link:hover,
header.site-header .navbar-nav .nav-link:focus {
  color: var(--color-accent) !important;
}

header.site-header .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  width: auto;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

header.site-header .navbar-nav .nav-link:hover::after,
header.site-header .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

header.site-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
  padding: 0.4rem 0.55rem;
}

header.site-header.scrolled .navbar-toggler {
  border-color: rgba(15, 23, 42, 0.25);
}

header.site-header .dark-mode-toggle {
  cursor: pointer;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  transition: var(--transition-smooth);
  padding: 8px 10px;
}

header.site-header.scrolled .dark-mode-toggle {
  color: var(--color-text-dark);
}

header.site-header .dark-mode-toggle:hover {
  color: var(--color-accent);
}

@media (min-width: 992px) {
  header.site-header .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  header.site-header .navbar-nav {
    flex-wrap: nowrap;
    gap: 0.15rem;
  }
}

/* Home Hero Slider Section */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 20, 26, 0.7) 0%, rgba(13, 20, 26, 0.4) 50%, rgba(13, 20, 26, 0.8) 100%);
  z-index: 3;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  color: #fff;
  text-align: center;
  z-index: 4;
}

.hero-content .hero-title,
.hero-content .hero-desc,
.hero-content .section-subtitle {
  background: none !important;
  -webkit-text-fill-color: initial;
  color: #fff;
}

.hero-content .section-subtitle.text-warning {
  color: var(--color-accent) !important;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s forwards 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s forwards 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s forwards 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Premium Buttons */
.btn-luxury {
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(219, 98, 11, 0.3);
  transition: var(--transition-smooth);
}

.btn-luxury:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(219, 98, 11, 0.5);
}

.btn-luxury-outline {
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  background: transparent;
  transition: var(--transition-smooth);
}

.btn-luxury-outline:hover {
  background-color: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Premium Cards for Real Estate Listing */
.project-card {
  border-radius: var(--border-radius-premium);
  overflow: hidden;
  background-color: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.project-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 65%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.project-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-img {
  transform: scale(1.08);
}

.project-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-accent);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 5;
}

.project-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.project-card-loc {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.project-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
}

/* Floating Utility Buttons */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1) rotate(10deg);
  color: #fff;
}

.call-floating-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: var(--color-accent);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(219, 98, 11, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
}

.call-floating-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

/* Scroll entry reveal effects (Scroll-driven animations) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @keyframes revealUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
  }

  .scroll-reveal {
    animation: revealUp auto linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }
}

/* Lightbox overlay styled beautifully */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 20, 26, 0.9);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--color-accent);
}

/* Footer Section */
footer.luxury-footer {
  background-color: var(--color-bg-dark);
  color: #94a3b8;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer.luxury-footer h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 25px;
}

footer.luxury-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-smooth);
}

footer.luxury-footer a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

/* Dark Mode Switch Styling */
body.dark-mode .dark-mode-toggle {
  color: var(--color-accent);
}

/* Utility helpers */
.max-width-600 {
  max-width: 600px;
}

.site-main {
  min-height: 80vh;
  padding-top: 90px;
}

.page-hero-banner {
  margin-top: -90px;
  padding-top: 150px !important;
}

.chairman-overlay {
  max-width: 320px;
}

.project-sidebar-sticky {
  top: 110px;
  z-index: 5;
}

/* =========================================================================
   Mobile & Tablet Responsive
   ========================================================================= */
@media (max-width: 991.98px) {
  .site-main {
    padding-top: 70px;
  }

  header.site-header {
    height: 70px;
  }

  header.site-header.scrolled {
    height: 70px;
  }

  header.site-header .navbar-collapse {
    background: var(--color-bg-light);
    border-radius: 12px;
    margin-top: 10px;
    padding: 12px 16px 16px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--color-glass-border);
  }

  header.site-header .navbar-collapse .nav-link {
    color: var(--color-text-dark) !important;
    margin: 2px 0;
    padding: 10px 12px !important;
    white-space: normal;
  }

  header.site-header .navbar-collapse .dark-mode-toggle {
    color: var(--color-text-dark) !important;
    display: inline-flex;
    padding: 10px 12px;
  }

  header.site-header .navbar-nav .nav-item.ms-3 {
    margin-left: 0 !important;
    width: 100%;
  }

  header.site-header .navbar-nav .btn-luxury {
    width: 100%;
    margin-top: 8px;
  }

  .project-sidebar-sticky {
    position: static !important;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .hero-slider-section {
    height: auto;
    min-height: 85vh;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-btn {
    flex-direction: column;
    align-items: center;
    gap: 12px !important;
  }

  .hero-btn .btn {
    width: 100%;
    max-width: 300px;
  }

  .page-hero-banner {
    padding-top: 120px !important;
  }

  .page-hero-banner .display-4,
  .project-hero-title {
    font-size: 2rem;
  }

  .chairman-overlay {
    position: static !important;
    margin: 1rem 0 0 !important;
    max-width: 100% !important;
  }

  .project-card-content > .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .project-card-content > .d-flex.justify-content-between .btn {
    width: 100%;
  }

  .testimonial-panel {
    padding: 1.5rem !important;
    margin: 0.5rem !important;
  }

  .testimonial-panel .lead {
    font-size: 1rem !important;
  }

  footer.luxury-footer {
    padding: 48px 0 24px;
  }

  footer.luxury-footer h4 {
    margin-bottom: 16px;
  }

  .call-floating-btn {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .whatsapp-floating-btn {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 85%;
    padding: 0 12px;
  }

  .lightbox-close {
    top: -36px;
    right: 8px;
  }

  .glass-panel.p-5 {
    padding: 1.5rem !important;
  }

  .btn-luxury,
  .btn-luxury-outline {
    padding: 12px 22px;
  }

  #map {
    height: 300px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 15px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .navbar-brand img {
    max-height: 40px;
  }

  .project-card-content {
    padding: 18px;
  }

  .stats-section h2 {
    font-size: 1.75rem;
  }
}
