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

/* --- Core Theme Settings --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-gold: #c5a358;
  /* Brabus luxury gold tone */
  --accent-gold-glow: rgba(197, 163, 88, 0.15);
  --accent-blue-glow: rgba(59, 130, 246, 0.15);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

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

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

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
}

/* --- Selection & Scrollbar --- */
::selection {
  background: var(--accent-gold);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* --- Background Aurora Accents --- */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -10;
  background: radial-gradient(circle at 50% 50%, var(--bg-secondary), var(--bg-primary));
  overflow: hidden;
  pointer-events: none;
}

.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  mix-blend-mode: normal;
  pointer-events: none;
}

.glow-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  animation: float-aurora 25s infinite alternate ease-in-out;
}

.glow-2 {
  bottom: -15%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  animation: float-aurora 30s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  top: 40%;
  left: 25%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 75%);
  opacity: 0.1;
  animation: float-aurora 35s infinite alternate ease-in-out;
}

@keyframes float-aurora {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(5%, 8%) scale(1.15) rotate(180deg);
  }

  100% {
    transform: translate(-5%, -5%) scale(0.9) rotate(360deg);
  }
}

/* --- Layout Components --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 50px 0;
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 26, 0.2));
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background-color: var(--accent-gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 100%;
  margin-bottom: 30px;
  font-weight: 400;
}

/* --- Premium Buttons --- */
.btn, .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 8px;
}

.btn-primary, .btn-submit {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a48134 100%);
  color: #030014;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.btn-primary:hover, .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 163, 88, 0.5);
}

.btn-primary:active, .btn-submit:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --- Glassmorphism Card Base --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* --- Floating Navigation Bar --- */
header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 40px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Scrolled Navbar Style */
header.scrolled .navbar {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(197, 163, 88, 0.25);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06), 0 0 20px rgba(197, 163, 88, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 25px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo span {
  color: var(--accent-gold);
}

.logo img {
  height: 28px;
  width: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-item a {
  display: block;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  border-radius: 20px;
  transition: var(--transition-fast);
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 20px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-toggle:hover {
  background: rgba(197, 163, 88, 0.1);
  border-color: rgba(197, 163, 88, 0.3);
  box-shadow: 0 0 15px rgba(197, 163, 88, 0.15);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 3px;
  width: 14px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  bottom: -6px;
}

/* Hover line effects */
.menu-toggle:hover span {
  background: var(--accent-gold);
}

.menu-toggle:hover span::before,
.menu-toggle:hover span::after {
  background: var(--accent-gold);
  width: 20px;
  left: 0;
}

/* Menu Toggle Open State */
.menu-toggle.open span {
  background: transparent;
}

.menu-toggle.open span::before {
  transform: rotate(45deg);
  top: 0;
  width: 20px;
  left: 0;
  background: var(--accent-gold);
}

.menu-toggle.open span::after {
  transform: rotate(-45deg);
  bottom: 0;
  width: 20px;
  left: 0;
  background: var(--accent-gold);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 40px;
  position: relative;
  background-image: linear-gradient(180deg, rgba(3, 0, 20, 0.30) 0%, rgba(3, 0, 20, 0.40) 100%), url('image/hero.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 163, 88, 0.35);
  border-radius: 30px;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  animation: shine-pulse 3s infinite;
  box-shadow: 0 5px 15px rgba(197, 163, 88, 0.08);
}

@keyframes shine-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 163, 88, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(197, 163, 88, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(197, 163, 88, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ffd06a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: #e2e8f0;
  margin-bottom: 40px;
  max-width: 600px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-quick {
  display: flex;
  gap: 24px;
  padding: 14px 24px !important;
  border-radius: 16px;
  margin-top: 24px;
  transition: var(--transition-smooth);
}

.hero-stats-quick:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.quick-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quick-stat-item:not(:last-child) {
  border-right: 1px solid var(--border-color);
  padding-right: 16px;
}

.quick-stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.quick-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Glass Lead Form */
.hero-form-wrapper {
  perspective: 1000px;
  z-index: 20;
}

.hero-form {
  padding: 40px 35px;
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(197, 163, 88, 0.25) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 0 30px rgba(197, 163, 88, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.hero-form:hover {
  border-color: rgba(197, 163, 88, 0.4) !important;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12), 0 0 40px rgba(197, 163, 88, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.hero-form h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #0f172a 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-form p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 15px rgba(197, 163, 88, 0.1);
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 24px;
}

.form-consent input {
  margin-top: 4px;
  accent-color: var(--accent-gold);
}

.form-consent span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-form .btn {
  width: 100%;
}

/* --- Bento Grid Stats Section --- */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

.bento-card {
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.bento-glow-border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid transparent;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(197, 163, 88, 0.3), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.bento-card-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-large {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-card .stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 10px;
  color: var(--text-primary);
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.5;
}

.bento-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

/* Custom compact overrides for Engineered to Perfection section */
#stats .icon-wrap {
  display: none !important;
}

#stats .bento-card {
  padding: 18px 20px !important;
}

#stats .bento-card h4 {
  margin-top: 0;
}

/* Spec and Layout cards background visual */
.bento-visual-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  opacity: 0.15;
  width: 50%;
  pointer-events: none;
  transform: rotate(-10deg);
}

/* --- Overview Section --- */
.overview-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.overview-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
}

.overview-visual img {
  width: 100%;
  height: 100%;
  object-cover: cover;
  transition: var(--transition-smooth);
}

.overview-visual:hover img {
  transform: scale(1.05);
}

.overview-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 16px 24px;
  background: rgba(8, 7, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.overview-badge-logo {
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.overview-badge-text h5 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.overview-badge-text p {
  font-size: 11px;
  color: #cbd5e1;
}

.overview-info h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 24px;
  line-height: 1.2;
}

.overview-info p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
}

.overview-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.oh-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oh-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(197, 163, 88, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 12px;
}

.oh-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* --- Pricing Section --- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.price-card {
  perspective: 1000px;
  cursor: pointer;
}

.price-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.price-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  z-index: 1;
}

.price-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  z-index: 2;
}

.price-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  z-index: 2;
}

.price-size {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  z-index: 2;
}

.price-value {
  margin-bottom: 10px;
  z-index: 2;
}

.price-value span {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.price-value h4 {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a48134 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-specs {
  list-style: none;
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
  padding-top: 24px;
  margin-bottom: 30px;
  z-index: 2;
}

.price-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.price-specs li:last-child {
  margin-bottom: 0;
}

.price-specs li svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
  position: relative;
  z-index: 2;
}

.price-card:hover .price-card-inner {
  border-color: var(--accent-gold);
  box-shadow: 0 30px 60px rgba(197, 163, 88, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* --- Colorful Price Card Custom Themes --- */

/* 1. Amber/Gold Theme (4 BHK) */
.price-card.card-amber .price-card-inner,
.price-card.card-emerald .price-card-inner,
.price-card.card-purple .price-card-inner {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.55) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}

.price-card.card-amber:hover .price-card-inner,
.price-card.card-emerald:hover .price-card-inner,
.price-card.card-purple:hover .price-card-inner {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 30px 60px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.price-card.card-amber .price-badge,
.price-card.card-emerald .price-badge,
.price-card.card-purple .price-badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #d97706;
}

.price-card.card-amber .price-title,
.price-card.card-emerald .price-title,
.price-card.card-purple .price-title {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-card.card-amber .price-value h4,
.price-card.card-emerald .price-value h4,
.price-card.card-purple .price-value h4 {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-card.card-amber .price-specs li svg,
.price-card.card-emerald .price-specs li svg,
.price-card.card-purple .price-specs li svg {
  color: #d97706;
}

.price-card.card-amber .btn,
.price-card.card-emerald .btn,
.price-card.card-purple .btn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.price-card.card-amber .btn:hover,
.price-card.card-emerald .btn:hover,
.price-card.card-purple .btn:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}

/* --- Amenities Section --- */
.amenities-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.amenity-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 165px;
}

.amenity-card-large {
  grid-column: span 2;
}

.amenity-icon {
  display: none;
}

.amenity-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.amenity-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Strategic Location Section --- */
.map-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-card:hover .map-img {
  transform: scale(1.02);
}

.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}

/* Connectivity timeline cards list */
.travel-times {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.travel-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
}

.travel-time-bubble {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(197, 163, 88, 0.08);
  border: 1px solid rgba(197, 163, 88, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.travel-time-bubble span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--accent-gold);
  line-height: 1;
}

.travel-time-bubble label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.travel-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.travel-details p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Developer Profile --- */
.developer-card {
  padding: 50px;
}

.developer-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.developer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--accent-gold);
  padding: 8px 16px;
  border-radius: 12px;
}

.developer-title h3 {
  font-size: 24px;
  font-weight: 700;
}

.developer-title p {
  font-size: 13px;
  color: var(--text-secondary);
}

.developer-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Apple-Style FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.faq-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  outline: none;
}

.faq-header h4 {
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.faq-header:hover h4 {
  color: var(--accent-gold);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  transition: var(--transition-smooth);
}

/* Plus sign vectors */
.faq-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(135deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 8px;
}

.faq-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 16px;
}

/* --- Footer & Details --- */
footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-contact-wrap {
  text-align: center;
}

.lead-form-mini {
  text-align: left;
}

.footer-phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 2.5vw, 44px);
  color: var(--accent-gold);
  text-decoration: none;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.footer-phone:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.footer-brand {
  margin-top: 50px;
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-brand h3 span {
  color: var(--accent-gold);
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 450px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-contact-info {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.contact-info-item svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.contact-info-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-info-item a:hover {
  color: var(--accent-gold);
}

.footer-disclaimer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 30px;
  text-align: center;
}

.footer-disclaimer p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: justify;
}

.copyright {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Float Action Bar (Call / WhatsApp) --- */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.float-whatsapp {
  background: #25d366;
}

.float-phone {
  background: #0f172a;
}

.sticky-enquiry-tab {
  position: fixed;
  right: 0;
  top: 55%;
  transform: translateY(-50%);
  z-index: 1001;
  background: var(--accent-gold);
  color: #ffffff;
  padding: 18px 10px;
  border-radius: 12px 0 0 12px; /* Rounded only on the left side */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  writing-mode: vertical-rl;
  text-align: center;
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.12);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.sticky-enquiry-tab:hover {
  background: #a48134;
  padding-right: 15px; /* Slide out slightly on hover */
}

.float-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.float-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Glassmorphic Lead Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(197, 163, 88, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
}

/* Success lead submission state */
.success-msg {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-msg-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(197, 163, 88, 0.1);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin: 0 auto 24px auto;
  font-size: 24px;
}

.success-msg h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.success-msg p {
  color: var(--text-secondary);
}

/* --- Scroll Entrance Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

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

  .hero-badge,
  .hero-stats-quick {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    top: 0;
  }

  .nav-wrapper {
    padding: 0;
  }

  .navbar {
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 12px 24px;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 7, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0 0 20px 20px;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: var(--transition-smooth);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
    font-size: 11px;
    padding: 8px 14px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 12px;
  }

  .hero-form-wrapper {
    display: none;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
  }

  .bento-tall {
    grid-row: span 1;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card-inner {
    padding: 16px;
  }

  .price-badge {
    margin-bottom: 8px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .price-title {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .price-size {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .price-specs {
    margin-top: 12px;
    padding-top: 12px;
    margin-bottom: 14px;
  }

  .price-specs li {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .price-value {
    margin-bottom: 6px;
  }

  .price-value span {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .price-value h4 {
    font-size: 26px;
  }

  .price-card .btn {
    padding: 10px 16px;
    font-size: 12px;
    border-radius: 8px;
  }

  .amenities-bento {
    grid-template-columns: 1fr;
  }

  .amenity-card-large {
    grid-column: span 1;
  }

  section {
    padding: 35px 0;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-stats-quick {
    flex-direction: row;
    gap: 8px;
    padding: 10px 12px !important;
  }

  .quick-stat-item {
    width: 33.333%;
  }

  .quick-stat-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    padding-right: 8px;
    padding-bottom: 0;
  }

  .quick-stat-value {
    font-size: 14px;
  }

  .quick-stat-label {
    font-size: 8px;
  }

  #stats .bento-grid {
    gap: 12px;
  }

  .developer-card {
    padding: 30px 20px;
  }

  .floating-actions {
    bottom: 20px;
    right: 20px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
  }

  .footer-brand p {
    margin: 0 auto 24px auto;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .overview-highlights {
    grid-template-columns: 1fr;
  }

  .price-card-inner {
    padding: 14px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .developer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .neighborhood-score {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .travel-item {
    padding: 16px 12px;
    gap: 12px;
  }
}

/* --- Bento Card with Background Image --- */
.bento-image-card {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  min-height: 340px;
}

.bento-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 0, 20, 0.1) 0%, rgba(3, 0, 20, 0.9) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.bento-image-card:hover::after {
  background: linear-gradient(180deg, rgba(3, 0, 20, 0.2) 0%, rgba(3, 0, 20, 0.95) 100%);
}

.bento-image-card .bento-card-content {
  z-index: 3;
  justify-content: flex-end;
}

/* --- Split Bento Card Layout --- */
.highlight-split {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}

.highlight-split-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.highlight-split-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  overflow: hidden;
  border-left: 1px solid var(--border-color);
}

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

.highlight-split:hover .highlight-split-image img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .highlight-split {
    grid-template-columns: 1fr !important;
  }
  
  .highlight-split-image {
    order: -1;
    min-height: 150px;
    border-left: none;
    border-bottom: none;
  }

  #highlights .bento-card {
    padding: 20px !important;
  }

  #highlights .highlight-split-content {
    padding: 20px !important;
  }
}

/* --- Gallery Section Styles --- */
.gallery-section {
  padding: 50px 0;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.gallery-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.gallery-tab:hover {
  background: var(--bg-card-hover);
  color: var(--accent-gold);
  border-color: rgba(197, 163, 88, 0.4);
  transform: translateY(-1px);
}

.gallery-tab.active {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a48134 100%);
  color: #030014;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-gold-glow);
}

/* Gallery Carousel Wrapper */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

/* Gallery Grid Carousel Row */
.gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 5px 25px 5px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.gallery-grid::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.gallery-item {
  flex: 0 0 calc((100% - 60px) / 3);
  width: calc((100% - 60px) / 3);
  padding: 0 !important;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1);
  scroll-snap-align: start;
}

/* Carousel Control Buttons (Side Floating Overlays) */
.gallery-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(8, 7, 26, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-carousel-btn.prev {
  left: -28px;
}

.gallery-carousel-btn.next {
  right: -28px;
}

.gallery-carousel-btn:hover {
  background: rgba(197, 163, 88, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(197, 163, 88, 0.3);
}

.gallery-carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 1024px) {
  .gallery-carousel-btn {
    display: none;
  }
}

/* Gallery Progress Indicator */
.gallery-progress-container {
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin: 35px auto 0 auto;
  overflow: hidden;
}

.gallery-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold) 0%, #a48134 100%);
  border-radius: 2px;
  transition: width 0.1s ease-out;
}

/* For filtering animation states */
.gallery-item.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.9);
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Portrait layout for text overlays */
  overflow: hidden;
  background-color: #0f172a;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.gallery-img-hover {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img-hover {
  opacity: 1;
}

.zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 7, 26, 0.6);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transform: scale(0.8);
  transition: var(--transition-smooth);
  margin-bottom: 40px; /* Push zoom icon up away from footer text overlay */
}

.gallery-item:hover .zoom-icon {
  transform: scale(1);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 45px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgba(3, 0, 20, 0.98) 0%, rgba(3, 0, 20, 0.75) 50%, rgba(3, 0, 20, 0.2) 85%, transparent 100%);
  border-top: none;
  z-index: 5;
  pointer-events: none; /* Allow clicks to fall through to the image wrapper */
}

.gallery-category-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  background: rgba(197, 163, 88, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(197, 163, 88, 0.15);
}

.gallery-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
  color: #ffffff; /* Explicit pure white */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Soft drop shadow for readability */
  letter-spacing: 0.02em;
}

.gallery-info p {
  font-size: 12.5px;
  color: #f1f5f9; /* Clean high-contrast white */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* Soft drop shadow for readability */
  line-height: 1.5;
  margin-top: 8px;
  opacity: 0.9;
}

/* --- Lightbox Modal Styles --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 26, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 40px;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition-fast);
  z-index: 3010;
}

.lightbox-close:hover {
  background: #ffffff;
  color: #030014;
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition-smooth);
  z-index: 3010;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #ffffff;
  color: #030014;
  border-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-4px);
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(4px);
}

.lightbox-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

#lightbox-image {
  max-height: 65vh;
  width: 100%;
  object-fit: contain;
  background: #030014;
}

.lightbox-caption {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-caption h3 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
  margin-bottom: 8px;
  color: #ffffff;
}

.lightbox-caption p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* Responsive adjustments for gallery and lightbox */
@media (max-width: 1024px) {
  .gallery-grid {
    gap: 20px;
  }
  .gallery-item {
    flex: 0 0 calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    gap: 16px;
  }
  .gallery-item {
    flex: 0 0 85%;
    width: 85%;
  }
  
  .lightbox-modal {
    padding: 20px;
  }
  
  .lightbox-content {
    border-radius: 16px;
  }
  
  #lightbox-image {
    max-height: 50vh;
  }
  
  .lightbox-caption {
    padding: 20px;
  }
  
  .lightbox-caption h3 {
    font-size: 18px;
  }
  
  .lightbox-caption p {
    font-size: 12px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}