/* ==========================================================================
   MOTION HERO SECTION - DESKTOP/LAPTOP PILL NAVBAR & FULL SCREEN COVER
   ========================================================================== */

/* Hide classic site header on homepage so hero covers 100% of the screen */
.luxury-home #header-placeholder,
.luxury-home .site-header {
  display: none !important;
}

/* Standalone Site Header for Subpages (Gallery, About, Blogs, Contact, etc.) */
.motion-site-header {
  width: 100%;
  position: relative;
  z-index: 1000;
  padding: 22px 28px 12px;
  box-sizing: border-box;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.motion-site-header .motion-desktop-top-bar {
  padding: 0;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .motion-site-header {
    padding: 14px 16px 8px;
    align-items: stretch;
  }
  .motion-site-header .motion-mobile-top-bar {
    padding: 0;
  }
}

/* Full Viewport Screen Cover */
.motion-hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  background-color: var(--hero-theme-bg, #0d0d0f);
  background-image: 
    var(--hero-theme-radial, radial-gradient(circle at 50% 46%, rgba(38, 44, 58, 0.48) 0%, rgba(13, 13, 15, 0.94) 68%, #0d0d0f 100%)),
    var(--hero-theme-dots, radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px));
  background-size: var(--hero-theme-dot-size, 100% 100%, 24px 24px);
  color: var(--hero-theme-text-heading, #ffffff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px 30px;
  box-sizing: border-box;
  overflow: hidden;
  font-family: var(--hero-theme-font-sans, 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif);
}

/* --------------------------------------------------------------------------
   DESKTOP & LAPTOP TOP BAR (EXACT REFERENCE DESIGN)
   -------------------------------------------------------------------------- */
.motion-desktop-top-bar {
  width: 100%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
  padding: 4px 0 10px;
}

/* Floating Pill Nav Capsule */
.motion-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: rgba(18, 19, 23, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 12px 6px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.motion-pill-nav:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65);
}

.motion-brand-logo {
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.motion-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.motion-nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.motion-nav-link:hover {
  color: #ffffff;
}

.motion-avatar-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.motion-nav-link.active {
  color: #ffffff;
  font-weight: 500;
}

.motion-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.motion-avatar:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Theme Toggle (Desktop Position: Pinned to Top Right) */
.motion-theme-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 48px;
  height: 25px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 2px 4px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.motion-theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.motion-theme-toggle .toggle-icon {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.motion-theme-toggle .toggle-knob {
  width: 17px;
  height: 17px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   MOBILE TOP BAR & DRAWER (FOR SMARTPHONES < 860px)
   -------------------------------------------------------------------------- */
.motion-mobile-top-bar {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
  padding: 4px 6px;
}

.motion-mobile-left {
  display: flex;
  align-items: center;
  gap: 8px; /* Close to hamburger icon */
}

.motion-hamburger-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.motion-hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.motion-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.motion-site-logo {
  height: 40px;
  width: 40px;
  max-width: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.motion-mobile-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.motion-mobile-profile-btn,
.motion-mobile-signin-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.motion-mobile-profile-btn:hover,
.motion-mobile-signin-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: scale(1.05);
}

/* Desktop Navbar Profile Button */
.motion-nav-link.motion-nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.motion-nav-link.motion-nav-profile-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.motion-nav-link.motion-nav-profile-btn i {
  font-size: 13px;
  color: #ffffff;
}

/* Default state: hide profile button until verified signed-in */
body:not(.auth-signed-in) .nav-item-profile,
body:not(.auth-signed-in) #nav-profile,
body:not(.auth-signed-in) .motion-mobile-profile-btn,
body:not(.auth-signed-in) #drawer-nav-profile,
body:not(.auth-signed-in) .drawer-item-profile {
  display: none !important;
}

/* Auth state classes applied to body */
body.auth-signed-in .nav-item-login,
body.auth-signed-in #nav-login,
body.auth-signed-in .motion-mobile-signin-btn,
body.auth-signed-in #drawer-nav-login,
body.auth-signed-in .drawer-item-login,
body.auth-signed-in #drawer-nav-signup,
body.auth-signed-in .drawer-item-signup {
  display: none !important;
}

body.auth-signed-in .nav-item-profile,
body.auth-signed-in #nav-profile,
body.auth-signed-in .motion-mobile-profile-btn,
body.auth-signed-in #drawer-nav-profile {
  display: inline-flex !important;
}

body.auth-signed-in li.nav-item-profile,
body.auth-signed-in li.drawer-item-profile {
  display: list-item !important;
}

body.auth-signed-out .nav-item-profile,
body.auth-signed-out #nav-profile,
body.auth-signed-out .motion-mobile-profile-btn,
body.auth-signed-out #drawer-nav-profile,
body.auth-signed-out .drawer-item-profile {
  display: none !important;
}

body.auth-signed-out .nav-item-login,
body.auth-signed-out #nav-login,
body.auth-signed-out .motion-mobile-signin-btn,
body.auth-signed-out #drawer-nav-login,
body.auth-signed-out #drawer-nav-signup {
  display: inline-flex !important;
}

body.auth-signed-out li.nav-item-login,
body.auth-signed-out li.drawer-item-login,
body.auth-signed-out li.drawer-item-signup {
  display: list-item !important;
}

.motion-theme-toggle.mobile-toggle {
  position: static;
  transform: none;
}

/* Slide-out Left Drawer for Mobile */
/* Slide-out Left Drawer for Mobile - Luxury Art Gallery Aesthetic */
.motion-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 9998;
}

/* Slide-out Left Drawer for Mobile - Monochrome Black/Grey/White Theme */
.motion-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 9998;
}

.motion-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.motion-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 80vw);
  height: 100vh;
  height: 100dvh;
  background: #111215; /* Pure dark charcoal/black */
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 54px; /* Space for top-right close button */
}

.motion-drawer.is-active {
  transform: translateX(0);
}

/* Close Button (Circular, Top-Right) */
.motion-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.motion-drawer-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

/* Menu Navigation List (Clean Monochrome Outline Icons) */
.motion-drawer-nav {
  list-style: none;
  margin: 10px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.motion-drawer-nav li a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 26px;
  color: #c4c7d0;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.motion-drawer-nav li a i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  color: #9295a0;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.motion-drawer-nav li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding-left: 30px;
}

.motion-drawer-nav li a:hover i {
  color: #ffffff;
}

.motion-drawer-nav li a.active {
  color: #ffffff;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
}

.motion-drawer-nav li a.active i {
  color: #ffffff;
}

/* Bottom Social Icons Row (Monochrome Grey/White) */
.motion-drawer-footer {
  margin-top: auto;
  padding: 24px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.motion-drawer-socials {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.motion-drawer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8d98;
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  width: 40px;
  height: 40px;
}

.motion-drawer-socials a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   HERO BODY (HEADLINE, FANNED DECK, SUBTITLE, BUTTONS)
   -------------------------------------------------------------------------- */
.motion-hero-body {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 0;
  z-index: 10;
}

/* Main Headline */
.motion-hero-heading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 10px 0 20px;
  text-align: center;
}

/* Fanned Cards Deck / Arc Container */
.motion-cards-deck {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 950px;
  height: clamp(220px, 30vh, 310px);
  margin: 10px auto 26px;
  perspective: 1200px;
}

/* Individual Card */
.deck-card {
  width: clamp(120px, 13vw, 158px);
  height: clamp(180px, 24vh, 236px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.75), 
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  background-color: #1a1a22;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transform-origin: center 85%;
  transition: 
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), 
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), 
    z-index 0.2s ease;
  will-change: transform, box-shadow;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: brightness(0.98) contrast(1.02);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

/* Negative overlap between cards */
.deck-card:not(:last-child) {
  margin-right: clamp(-38px, -3.5vw, -44px);
}

/* Exact Rotations and Vertical Offsets forming the Arc */
.deck-card.card-1 {
  transform: translateY(40px) rotate(-21deg);
  z-index: 1;
}

.deck-card.card-2 {
  transform: translateY(16px) rotate(-13deg);
  z-index: 2;
}

.deck-card.card-3 {
  transform: translateY(2px) rotate(-4.5deg);
  z-index: 3;
}

.deck-card.card-4 {
  transform: translateY(2px) rotate(4.5deg);
  z-index: 3;
}

.deck-card.card-5 {
  transform: translateY(16px) rotate(13deg);
  z-index: 2;
}

.deck-card.card-6 {
  transform: translateY(40px) rotate(21deg);
  z-index: 1;
}

/* Hover Lift Effect */
.deck-card:hover {
  transform: translateY(-22px) rotate(0deg) scale(1.12) !important;
  z-index: 25 !important;
  box-shadow: 
    0 30px 65px rgba(0, 0, 0, 0.9), 
    0 0 25px rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.deck-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.05) contrast(1.05);
}

/* Subtitle under the cards */
.motion-hero-subtext {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(13.5px, 1.3vw, 15px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 24px;
  max-width: 620px;
  letter-spacing: -0.1px;
}

/* --------------------------------------------------------------------------
   CTA BUTTONS (DESKTOP & LAPTOP: SIDE-BY-SIDE)
   -------------------------------------------------------------------------- */
.motion-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.motion-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.1px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

/* Primary White Button */
.motion-btn-pill.primary {
  background: #ffffff;
  color: #0c0c0e;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.motion-btn-pill.primary:hover {
  transform: translateY(-2px);
  background: #f4f4f8;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.motion-btn-pill.primary i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.motion-btn-pill.primary:hover i {
  transform: translateX(3px);
}

/* Secondary Translucent Button */
.motion-btn-pill.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.motion-btn-pill.secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.motion-btn-pill.secondary i {
  color: #25D366;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE SWITCHING (DESKTOP & LAPTOP vs MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* Show Mobile Header, Hide Desktop Pill Header */
  .motion-desktop-top-bar {
    display: none !important;
  }

  .motion-mobile-top-bar {
    display: flex !important;
  }

  .motion-hero-section {
    padding: 16px 20px 24px;
  }

  .motion-cards-deck {
    height: 220px;
    max-width: 580px;
    margin: 8px auto 20px;
  }

  .deck-card {
    width: 95px;
    height: 142px;
    border-radius: 12px;
  }

  .deck-card:not(:last-child) {
    margin-right: -26px;
  }

  .deck-card.card-1 { transform: translateY(24px) rotate(-17deg); }
  .deck-card.card-2 { transform: translateY(10px) rotate(-10deg); }
  .deck-card.card-3 { transform: translateY(2px) rotate(-3.5deg); }
  .deck-card.card-4 { transform: translateY(2px) rotate(3.5deg); }
  .deck-card.card-5 { transform: translateY(10px) rotate(10deg); }
  .deck-card.card-6 { transform: translateY(24px) rotate(17deg); }

  .motion-hero-heading {
    font-size: 2.3rem;
    margin: 8px 0 16px;
  }

  .motion-hero-subtext {
    font-size: 13.5px;
    margin-bottom: 20px;
    padding: 0 10px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE BUTTONS DESIGN (< 600px): CLEAN, ELEGANT, CENTERED VERTICAL STACK
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .motion-hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 275px;
    margin: 8px auto 0;
  }

  .motion-btn-pill {
    width: 100%;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-sizing: border-box;
    border-radius: 9999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  }

  .motion-btn-pill.primary {
    background: #ffffff;
    color: #0c0c0e;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
  }

  .motion-btn-pill.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .deck-card {
    width: 78px;
    height: 118px;
    border-radius: 10px;
  }

  .deck-card:not(:last-child) {
    margin-right: -22px;
  }

  .motion-cards-deck {
    height: 180px;
    margin: 6px auto 16px;
  }

  .motion-hero-heading {
    font-size: 2.05rem;
  }
}
