/* ==========================================================================
   ADAM SANDLER OFFICIAL ARCHIVE - LUXURY GOLD / CINEMATIC THEME
   Custom Bespoke CSS System | Mobile Friendly | Dark & Light Mode Support
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-primary: #0D0B08;
  --bg-secondary: #14120D;
  --bg-tertiary: #1D1A13;
  --bg-card: rgba(26, 22, 14, 0.88);
  --bg-card-hover: rgba(36, 31, 20, 0.95);
  --bg-glass: rgba(18, 15, 10, 0.75);
  
  --accent-gold: #D4AF37;
  --accent-gold-light: #F5DB8C;
  --accent-gold-bright: #FFDE6A;
  --accent-gold-dim: #8A6E1E;
  --accent-gold-glow: rgba(212, 175, 55, 0.28);
  
  --text-main: #F4EEDD;
  --text-secondary: #C8BFAD;
  --text-muted: #9E9480;
  --text-gold: #E8CA6B;

  --border-gold: rgba(212, 175, 55, 0.32);
  --border-gold-strong: rgba(212, 175, 55, 0.65);

  --shadow-gold: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.15);
  --shadow-gold-hover: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.35);

  --nav-bg: rgba(13, 11, 8, 0.92);
  --hero-overlay: radial-gradient(circle at 75% 25%, rgba(212, 175, 55, 0.18) 0%, rgba(13, 11, 8, 0.92) 75%);
}

[data-theme="light"] {
  --bg-primary: #FAF6EE;
  --bg-secondary: #F1EAD8;
  --bg-tertiary: #E6DDD0;
  --bg-card: rgba(255, 253, 246, 0.94);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(250, 246, 238, 0.88);

  --accent-gold: #9F7715;
  --accent-gold-light: #B88E23;
  --accent-gold-bright: #805E09;
  --accent-gold-dim: #D4B662;
  --accent-gold-glow: rgba(159, 119, 21, 0.18);

  --text-main: #1D1A14;
  --text-secondary: #464032;
  --text-muted: #6C6350;
  --text-gold: #88630A;

  --border-gold: rgba(159, 119, 21, 0.35);
  --border-gold-strong: rgba(159, 119, 21, 0.75);

  --shadow-gold: 0 10px 30px rgba(70, 60, 40, 0.12), 0 4px 12px rgba(159, 119, 21, 0.08);
  --shadow-gold-hover: 0 16px 40px rgba(70, 60, 40, 0.18), 0 6px 18px rgba(159, 119, 21, 0.15);

  --nav-bg: rgba(250, 246, 238, 0.94);
  --hero-overlay: radial-gradient(circle at 75% 25%, rgba(212, 175, 55, 0.22) 0%, rgba(250, 246, 238, 0.88) 75%);
}

/* Base Reset & Transitions */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.68;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Custom Gold Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-gold-strong);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography & Luxury Gradients */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.text-gold {
  color: var(--accent-gold) !important;
}

.text-gold-gradient {
  background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold) 50%, #B8881A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-subtle {
  color: var(--text-muted) !important;
}

.lead-luxury {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.78;
}

/* Navigation Bar */
.navbar-luxury {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1050;
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.navbar-brand-custom svg {
  width: 32px;
  height: 32px;
  fill: var(--accent-gold);
}

.navbar-luxury .nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.navbar-luxury .nav-link:hover,
.navbar-luxury .nav-link.active {
  color: var(--accent-gold-bright);
  background: var(--accent-gold-glow);
}

/* Dark Mode Toggle Switch Button */
.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  border-radius: 50px;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
  transform: translateY(-1px);
}

.theme-toggle-switch {
  width: 36px;
  height: 20px;
  background-color: var(--border-gold);
  border-radius: 20px;
  position: relative;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.theme-toggle-knob {
  width: 14px;
  height: 14px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .theme-toggle-knob {
  transform: translateX(16px);
}

/* Hero Cinematic Section */
.hero-luxury {
  position: relative;
  padding: 6rem 0 5rem;
  background: var(--hero-overlay);
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
}

.hero-luxury::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold-strong);
  color: var(--accent-gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.35rem;
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-gold-strong);
  box-shadow: var(--shadow-gold-hover);
  background: var(--bg-secondary);
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image-frame:hover img {
  transform: scale(1.04);
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Luxury Cards */
.card-gold {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-gold);
  height: 100%;
}

.card-gold:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold-hover);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B88E23 100%);
  color: #0D0B08 !important;
  font-weight: 800;
  padding: 0.82rem 1.85rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
  filter: brightness(1.1);
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent-gold) !important;
  border: 2px solid var(--border-gold-strong);
  font-weight: 700;
  padding: 0.78rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: var(--accent-gold-glow);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright) !important;
}

/* Stats Counter Box */
.stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.6rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.stat-value {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Timeline Components */
.timeline-luxury {
  position: relative;
  padding-left: 2.2rem;
  border-left: 2px solid var(--border-gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.75rem;
  top: 0.25rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold);
}

.timeline-year {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--border-gold);
  margin-bottom: 0.65rem;
}

/* Interactive Net Worth Visual Bars */
.net-worth-bar-container {
  background: var(--bg-secondary);
  border-radius: 50px;
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  margin: 0.65rem 0 1.25rem;
}

.net-worth-bar-fill {
  background: linear-gradient(90deg, #9F7715 0%, var(--accent-gold) 50%, #FFE27D 100%);
  height: 100%;
  border-radius: 50px;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Interactive Calculator Sliders */
.gold-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  outline: none;
}

.gold-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-gold);
}

/* Gallery Grid & Cards */
.gallery-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-secondary);
  transition: all 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold-hover);
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 11, 8, 0.96) 0%, rgba(13, 11, 8, 0.75) 65%, transparent 100%);
  padding: 1.5rem;
  color: #F4EEDD;
}

.gallery-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid var(--accent-gold);
  color: #FFDF73;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Filter Pills */
.filter-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  padding: 0.55rem 1.35rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--accent-gold);
  color: #0D0B08 !important;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

/* Quote Soundboard Cards */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quote-card:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
  transform: scale(1.02);
}

.quote-icon {
  width: 28px;
  height: 28px;
  fill: var(--accent-gold);
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* Accordion Customization */
.accordion-luxury .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-luxury .accordion-button {
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}

.accordion-luxury .accordion-button:not(.collapsed) {
  color: var(--accent-gold);
  background: var(--bg-secondary);
}

.accordion-luxury .accordion-button::after {
  filter: sepia(100%) saturate(500%) hue-rotate(10deg);
}

.accordion-luxury .accordion-body {
  padding: 1.25rem 1.5rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-gold);
}

/* Contact & Forms */
.form-control-luxury {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  transition: all 0.3s ease;
}

.form-control-luxury:focus {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px var(--accent-gold-glow);
}

/* Footer */
.footer-luxury {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-gold);
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* Lightbox Modal Custom */
.modal-luxury .modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-gold-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-gold-hover);
}

/* Responsive Optimization */
@media (max-width: 768px) {
  .hero-luxury {
    padding: 3.5rem 0 3rem;
  }
  .card-gold {
    padding: 1.35rem;
  }
  .stat-value {
    font-size: 2.1rem;
  }
  .gallery-card img {
    height: 280px;
  }
}
