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

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --primary-color: #0d2b4d;
  --secondary-color: #e65c00;
  --text-main: #333333;
  --text-light: #666666;
  --bg-color: #f8fafc;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --transition: all 0.3s ease;

  /* Header heights — easy to adjust in one place */
  --header-h-desktop: 70px;
  --header-h-tablet: 65px;
  --header-h-mobile: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   CONTAINER
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }

p {
  margin-bottom: 15px;
  color: var(--text-light);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color), #ff7a29);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(230, 92, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 92, 0, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow);
}

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

/* ===========================
   NAVBAR / HEADER
   =========================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 92, 0, 0.12);
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(13, 43, 77, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h-desktop);
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

/* ===========================
   NAV LINKS (DESKTOP)
   =========================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--secondary-color);
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* ===========================
   DROPDOWN MENU
   =========================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 15px 0;
  z-index: 1001;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.dropdown-content a {
  color: var(--primary-color);
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.dropdown-content a:hover {
  background-color: rgba(230, 92, 0, 0.08);
  color: var(--secondary-color);
  padding-left: 26px;
}

.dropdown-header {
  padding: 5px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  background: rgba(13, 43, 77, 0.06);
  border: 1px solid rgba(13, 43, 77, 0.1);
  line-height: 1;
}

.mobile-menu-toggle:hover {
  background: rgba(230, 92, 0, 0.1);
  color: var(--secondary-color);
}

/* ===========================
   HERO / SECTIONS BASE
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: var(--header-h-desktop);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 43, 77, 0.9), rgba(13, 43, 77, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 600px;
}

.hero-content h1 {
  color: var(--white);
}

.hero-content p {
  color: #e2e8f0;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ===========================
   SECTIONS
   =========================== */
.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* ===========================
   GLASSMORPHISM CARDS
   =========================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(31, 38, 135, 0.12);
}

/* ===========================
   GRID LAYOUTS
   =========================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

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

/* ===========================
   HIGHLIGHTS
   =========================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--secondary-color);
}

.highlight-icon {
  font-size: 24px;
  color: var(--secondary-color);
  background: rgba(230, 92, 0, 0.1);
  padding: 15px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===========================
   PROJECT IMAGE
   =========================== */
.project-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

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

/* ===========================
   FOOTER
   =========================== */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
  color: #cbd5e1;
  margin-bottom: 10px;
  display: block;
}

.footer-col a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ===========================
   FORMS
   =========================== */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.1);
}

/* ===========================
   VIDEO SHOWCASE SECTION
   =========================== */
#road-map-showcase {
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.video-cinema-viewport {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-cinema-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 40px 100px rgba(13, 43, 77, 0.2),
              0 0 40px rgba(230, 92, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transform: rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.5s ease;
}

.video-cinema-card:hover {
  transform: rotateX(0deg) scale(1.02);
  box-shadow: 0 50px 120px rgba(13, 43, 77, 0.28),
              0 0 50px rgba(230, 92, 0, 0.12);
}

.cinema-player {
  width: 100%;
  height: auto;
  aspect-ratio: 9/16;
  display: block;
  object-fit: cover;
  border-radius: 24px;
}

.video-ambient-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 0;
  background: radial-gradient(circle, rgba(230, 92, 0, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

.video-controls-overlay {
  display: none !important;
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  align-items: center;
  gap: 15px;
  background: rgba(13, 43, 77, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  padding: 10px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 10;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: auto;
}

.video-cinema-card:hover .video-controls-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.video-control-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-control-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(230, 92, 0, 0.4);
}

.video-control-label {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
}

.video-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.video-highlight-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.video-highlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(13, 43, 77, 0.08);
}

.video-highlight-icon {
  background: rgba(230, 92, 0, 0.1);
  color: var(--secondary-color);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.video-highlight-info h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--primary-color);
  margin-top: 0;
}

.video-highlight-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   3D GALLERY SECTION
   =========================== */
.estate-gallery-container {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(13, 43, 77, 0.03) 0%, transparent 70%);
}

.estate-3d-viewport {
  width: 100%;
  max-width: 800px;
  height: 500px;
  perspective: 1000px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.estate-3d-sphere {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.estate-gallery-card {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 25px rgba(13, 43, 77, 0.15),
              0 0 15px rgba(230, 92, 0, 0.05);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
  user-select: none;
}

.estate-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.estate-gallery-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 15px 35px rgba(230, 92, 0, 0.25);
  z-index: 100 !important;
}

.estate-gallery-card:hover img {
  transform: scale(1.15);
}

.estate-gallery-card.dimmed {
  opacity: 0.15;
  filter: blur(2px);
  pointer-events: none;
}

.estate-gallery-card.highlighted {
  opacity: 1;
  filter: none;
  border-color: var(--secondary-color);
  box-shadow: 0 15px 35px rgba(230, 92, 0, 0.3);
}

/* Filter Bar */
.estate-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 8px 16px;
  box-shadow: var(--shadow);
  margin: 0 auto 30px;
  width: max-content;
  max-width: 90%;
  flex-wrap: wrap;
  z-index: 20;
  position: relative;
}

.estate-filter-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.estate-filter-btn.active,
.estate-filter-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.estate-filter-btn.active {
  box-shadow: 0 4px 10px rgba(13, 43, 77, 0.25);
}

/* Lightbox */
.estate-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 43, 77, 0.95);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.estate-lightbox.active {
  display: flex;
  opacity: 1;
}

.estate-lightbox-content {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  max-width: 90%;
  width: 600px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.estate-lightbox.active .estate-lightbox-content {
  transform: scale(1);
}

.estate-lightbox-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.estate-lightbox-body {
  padding: 25px;
}

.estate-lightbox-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.estate-lightbox-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.estate-lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.estate-lightbox-close:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* ===========================
   MACOS CODE BLOCK
   =========================== */
.macos-code-container {
  width: 100%;
  max-width: 800px;
  margin: 50px auto 0;
  background: #1e1e2e;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(13, 43, 77, 0.15);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-titlebar {
  background: #181825;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.macos-buttons {
  display: flex;
  gap: 8px;
}

.macos-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.macos-close    { background: #ff5f56; }
.macos-minimize { background: #ffbd2e; }
.macos-expand   { background: #27c93f; }

.macos-title {
  color: #cdd6f4;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.macos-code-body {
  padding: 25px;
  margin: 0;
  overflow-x: auto;
}

.macos-code-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #cdd6f4;
  line-height: 1.6;
  display: block;
}

.syntax-keyword  { color: #cba6f7; }
.syntax-string   { color: #a6e3a1; }
.syntax-number   { color: #f9e2af; }
.syntax-property { color: #89b4fa; }
.syntax-comment  { color: #6c7086; font-style: italic; }

/* ===========================
   RESPONSIVE — TABLET (≤992px)
   =========================== */
@media (max-width: 992px) {
  :root {
    --header-h-desktop: 65px;
  }

  .nav-container {
    height: var(--header-h-desktop);
  }

  .logo img {
    height: 56px;
  }

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

  h1 { font-size: 2.8rem; }

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

  .hero {
    padding-top: calc(var(--header-h-desktop) + 20px);
  }
}

/* ===========================
   RESPONSIVE — MOBILE (≤768px)
   =========================== */
@media (max-width: 768px) {
  :root {
    --header-h-desktop: 60px;
  }

  /* Show hamburger */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-container {
    height: var(--header-h-desktop);
    padding: 0 16px;
  }

  .logo img {
    height: 50px;
  }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 270px;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 8px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.08);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(226, 232, 240, 0.6);
    overflow-y: auto;
  }

  .nav-links.mobile-active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  }

  /* Mobile dropdown */
  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static !important;
    display: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    min-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 8px 0 0 16px !important;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: block !important;
  }

  .dropdown-content a {
    padding: 8px 10px !important;
    font-size: 0.95rem !important;
    color: var(--primary-color) !important;
    border-bottom: none !important;
  }

  .dropdown-content a:hover {
    padding-left: 18px !important;
    background: transparent !important;
  }

  .dropdown-header {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-h-desktop) + 20px);
    background-attachment: scroll;
  }

  h1 { font-size: 2.2rem; }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Sections */
  .section-padding { padding: 60px 0; }

  /* Slider */
  .slider-controls { padding: 0 15px; }
  .slider-btn { width: 40px; height: 40px; font-size: 16px; }
  .slider-dots { bottom: 20px; }

  /* Video section */
  .video-controls-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    padding: 8px 18px;
    bottom: 15px;
  }

  .video-control-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .video-control-label {
    font-size: 0.8rem;
  }

  .video-cinema-viewport {
    perspective: none;
    padding: 10px 0;
  }

  .video-cinema-card {
    transform: none !important;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(13, 43, 77, 0.1);
  }

  .cinema-player {
    border-radius: 16px;
  }

  .video-highlights-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }

  .video-highlight-card {
    padding: 18px;
    border-radius: 12px;
  }

  /* Gallery */
  .estate-gallery-container {
    height: 480px;
  }

  .estate-3d-viewport {
    height: 400px;
  }

  .estate-gallery-card {
    width: 90px;
    height: 90px;
  }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE (≤576px)
   =========================== */
@media (max-width: 576px) {
  .logo img {
    height: 48px;
  }

  .nav-container {
    height: 60px;
  }

  .nav-links {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .hero {
    padding-top: calc(var(--header-h-desktop) + 20px);
  }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.7rem; }

  .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  .glass-card {
    padding: 20px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .footer-grid {
    gap: 30px;
  }

  .video-control-label {
    display: none !important;
  }

  .video-controls-overlay {
    padding: 6px 12px;
    gap: 8px;
  }
}

/* Premium Slider Heading Style */
.premium-slider-heading {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .premium-slider-heading {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .premium-slider-heading {
    font-size: 2.0rem;
    letter-spacing: -0.5px;
  }
}

@media (max-width: 576px) {
  .premium-slider-heading {
    font-size: 1.55rem;
  }
}

@media (max-width: 375px) {
  .premium-slider-heading {
    font-size: 1.35rem;
  }
}

/* Cinematic Slide 1 Animations */
.slide1-content {
  opacity: 0;
  transition: none !important; /* Override standard text fade */
}

.slide1-badge {
  opacity: 0;
  transform: translateY(-30px) scale(0.9);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.slide1-title {
  opacity: 0;
}

.slide1-buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

/* Layered activation triggers */
.slide.active .slide1-content {
  opacity: 1;
}

.slide.active .slide1-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* High-End Drop, Elastic Bounce, and Zoom Animation */
@keyframes dropBounceScale {
  0% {
    opacity: 0;
    transform: translateY(-200px) scale(0.5);
    filter: blur(10px);
  }
  50% {
    opacity: 1;
    transform: translateY(25px) scale(0.95);
    filter: blur(0);
  }
  70% {
    transform: translateY(-12px) scale(0.98);
  }
  85% {
    transform: translateY(6px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.slide.active .slide1-title {
  animation: dropBounceScale 1.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.slide.active .slide1-buttons {
  opacity: 1;
  transform: translateY(0);
}
