/* CSS VARIABLES */
:root {
  /* Colors - Primary */
  --color-gold: #d4af37;
  --color-gold-light: #f4d03f;
  --color-gold-dark: #b8960c;
  --color-teal: #00d9ff;
  --color-teal-light: #5ce1e6;
  --color-teal-dark: #00a8c6;
  
  /* Colors - Background */
  --color-bg-dark: #0a0a0a;
  --color-bg-deep: #050505;
  --color-bg-card: #101010;
  --color-bg-elevated: #161616;
  --color-bg-overlay: rgba(10, 10, 10, 0.95);
  
  /* Colors - Text */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #666666;
  
  /* Colors - Status */
  --color-success: #00c853;
  --color-error: #ff5252;
  --color-warning: #ffc107;
  
  /* Glow Effects */
  --glow-gold: rgba(212, 175, 55, 0.4);
  --glow-teal: rgba(0, 217, 255, 0.4);
  --glow-white: rgba(255, 255, 255, 0.2);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Fluid Spacing */
  --spacing-fluid-sm: clamp(0.75rem, 2vw, 1.5rem);
  --spacing-fluid-md: clamp(1.00rem, 3vw, 2.00rem);
  --spacing-fluid-lg: clamp(1.50rem, 4vw, 3.00rem);
  --spacing-fluid-xl: clamp(2.00rem, 6vw, 5.00rem);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;
  --easing-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easing-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Fluid Type Scale */
  --text-xs:   clamp(0.70rem, 0.5vw + 0.6rem,  0.80rem);
  --text-sm:   clamp(0.80rem, 0.5vw + 0.7rem,  0.90rem);
  --text-base: clamp(0.90rem, 0.5vw + 0.8rem,  1.00rem);
  --text-lg:   clamp(1.00rem, 1vw  + 0.8rem,  1.25rem);
  --text-xl:   clamp(1.20rem, 2vw  + 0.8rem,  1.75rem);
  --text-2xl:  clamp(1.50rem, 3vw  + 0.8rem,  2.50rem);
  --text-3xl:  clamp(1.80rem, 4vw  + 0.8rem,  3.50rem);
  --text-4xl:  clamp(2.50rem, 6vw  + 0.8rem,  5.00rem);
  
  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-loading: 1000;
  
  /* Navbar */
  --navbar-height: 70px;
}

/* ============================================
   CSS RESET
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent horizontal scroll globally */
  overflow-x: hidden;
}

body {
  -ms-overflow-style: none;
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Fluid base font */
  font-size: var(--text-base);
}

body.loading {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
  height: 100vh;
}

/* Selection */
::selection {
  background-color: var(--color-gold);
  color: var(--color-bg-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
  display: none;
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ============================================
   BASE ELEMENTS
   ============================================ */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--easing-out);
}

a:hover {
  color: var(--color-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   FLUID CONTAINER UTILITY
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

/* Auto-collapsing grid — no media queries needed */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 280px), 1fr)
  );
  gap: var(--spacing-fluid-md);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  transition: opacity var(--duration-slow) var(--easing-out),
              visibility var(--duration-slow) var(--easing-out);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.loader-text {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: 0.5em;
  text-shadow: 0 0 30px var(--glow-gold);
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader-bar {
  width: clamp(120px, 40vw, 200px);
  height: 3px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal));
  border-radius: var(--radius-full);
  animation: loader-progress 2s ease-in-out forwards;
}

@keyframes loader-progress {
  0%   { width: 0%; }
  50%  { width: 70%; }
  100% { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { 
    opacity: 1;
    text-shadow: 0 0 30px var(--glow-gold);
  }
  50% { 
    opacity: 0.8;
    text-shadow: 0 0 50px var(--glow-gold), 0 0 80px var(--glow-gold);
  }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 0%;
  background: linear-gradient(180deg, var(--color-gold), var(--color-teal));
  z-index: var(--z-fixed);
  transition: height var(--duration-fast) linear;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-xl);
  background: transparent;
  z-index: var(--z-fixed);
  transition: all var(--duration-normal) var(--easing-out);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar-brand {
  font-size: var(--text-lg);
  font-weight: 900;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.navbar-brand .brand-fupix {
  color: var(--color-gold);
  text-shadow: 0 0 20px var(--glow-gold);
}

.navbar-brand .brand-solutions {
  color: var(--color-teal);
  text-shadow: 0 0 20px var(--glow-teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-links a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  padding: var(--spacing-xs) 0;
  transition: color var(--duration-normal) var(--easing-out);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--duration-normal) var(--easing-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--spacing-md);
}

.nav-contact-link {
  display: none;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  margin-left: var(--spacing-md);
  transition: color var(--duration-normal) var(--easing-out);
  /* Ensure proper touch target */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-menu:hover {
  color: var(--color-gold);
}

.hamburger-menu i {
  transition: transform var(--duration-normal) var(--easing-out);
}

.hamburger-menu.active i {
  transform: rotate(90deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--easing-out);
  position: relative;
  overflow: hidden;
  /* Minimum touch target */
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-bg-dark);
  border: 1px solid var(--color-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 0 30px var(--glow-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 20px var(--glow-gold);
}

.btn-outline {
  background: transparent;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0%   { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Small Button Variant */
.btn-small.btn-play {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-small.btn-play:hover {
  box-shadow: 0 0 20px var(--glow-gold);
  transform: scale(1.05);
}

/* ============================================
   MODALS — TRAILER
   ============================================ */
.modal-backdrop.trailer-active {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
}

.modal-trailer-view {
  width: min(1100px, 94vw);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(212, 175, 55, 0.08);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
}

.modal-trailer-view.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.trailer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(0, 0, 0, 0.0) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trailer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 0.5px;
}

.trailer-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.trailer-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  /* Proper touch target */
  min-width: 44px;
  min-height: 44px;
}

.trailer-close:hover {
  background: rgba(212, 175, 55, 0.92);
  border-color: rgba(212, 175, 55, 0.6);
  color: #0a0a0a;
  transform: rotate(90deg) scale(1.06);
}

.trailer-body {
  padding: 16px;
  position: relative;
}

.trailer-video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 20px 60px rgba(0,0,0,0.6);
}

.trailer-video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 ratio */
}

.trailer-video-frame video,
.trailer-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trailer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
}

.trailer-controls .hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.trailer-actions {
  display: flex;
  gap: 10px;
}

.trailer-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0,0,0,0.35);
  color: var(--color-gold);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  min-height: 44px;
}

.trailer-btn:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

.trailer-btn.primary {
  background: var(--color-gold);
  color: #0a0a0a;
  border-color: rgba(212, 175, 55, 0.8);
}

.trailer-btn.primary:hover {
  background: rgba(212, 175, 55, 0.92);
}

/* ============================================
   MODALS — BASE
   ============================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--easing-out);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--color-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--easing-out);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-gold);
}

.modal-close {
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--duration-normal) var(--easing-out);
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--color-gold);
}

.modal-content {
  padding: var(--spacing-lg);
}

.modal-content h3 {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.modal-content h3:first-child {
  margin-top: 0;
}

.modal-content p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   CONTACT MODAL — LARGE
   ============================================ */
.modal-contact-large {
  max-width: 1000px;
  width: 95%;
  max-height: 90vh;
  height: auto;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-close-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 10;
}

.contact-modal-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 0;
  height: auto;
}

.contact-info-side {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(16, 16, 16, 0.95));
  padding: var(--spacing-xl);
  border-right: 1px solid rgba(212, 175, 55, 0.1);
  overflow-y: auto;
}

.contact-info-section {
  margin-bottom: var(--spacing-lg);
}

.contact-info-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
}

.title-accent {
  width: 3px;
  height: 16px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-teal);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-info-text p {
  margin: 0;
  line-height: 1.5;
}

/* Business Hours */
.business-hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.hours-day {
  color: var(--color-text-secondary);
}

.hours-time.open {
  color: var(--color-success);
}

.hours-time.closed {
  color: var(--color-error);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--duration-normal) var(--easing-out);
}

.social-link:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg-dark);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Contact Map */
.contact-map {
  margin-top: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-map iframe {
  width: 100%;
  height: 180px;
  display: block;
  border: none;
}

/* Contact Form Side */
.contact-form-side {
  padding: var(--spacing-xl);
  position: relative;
  background-image: url("../assets/background/contact.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  overflow: hidden;
}

.contact-form-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.85));
  z-index: 0;
}

.contact-form-side > * {
  position: relative;
  z-index: 1;
}

.contact-form-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.contact-form-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
}

.contact-form-new {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-group .required {
  color: var(--color-error);
}

.form-group .optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: var(--spacing-sm);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: all var(--duration-normal) var(--easing-out);
  min-height: 48px;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-wrapper input::placeholder {
  color: var(--color-text-muted);
}

.select-wrapper select {
  padding-left: 0.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
}

.textarea-wrapper {
  position: relative;
}

.textarea-wrapper textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 120px;
  transition: all var(--duration-normal) var(--easing-out);
}

.textarea-wrapper textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.textarea-wrapper textarea::placeholder {
  color: var(--color-text-muted);
}

.char-count {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-bg-dark);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--easing-out);
  min-height: 48px;
}

.btn-submit:hover {
  box-shadow: 0 0 30px var(--glow-gold);
  transform: translateY(-2px);
}

.btn-submit svg {
  width: 18px;
  height: 18px;
}

.security-note {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.security-note svg {
  width: 16px;
  height: 16px;
  color: var(--color-teal);
}

.contact-feedback {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
}

.contact-feedback.success {
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.contact-feedback.error {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

/* ============================================
   FULLSCREEN / CERTIFICATE MODALS
   ============================================ */
.modal-fullscreen {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
}

.modal-trailer-content {
  position: relative;
}

.modal-trailer-content .modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--color-text-primary);
  font-size: 2.5rem;
  z-index: 10;
}

.trailer-video {
  width: 100%;
  max-width: 1200px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal-certificate-view {
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  border: none;
  padding: 0;
}

.certificate-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certificate-modal-content .modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--color-text-primary);
  font-size: 2.5rem;
}

.certificate-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.certificate-fullview-title {
  margin-top: var(--spacing-md);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
}

/* Play Modal */
.play-loading {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SECTIONS BASE
   ============================================ */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.section-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 30px var(--glow-gold);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--color-bg-dark), var(--color-bg-deep));
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: var(--spacing-2xl) var(--spacing-xl);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-logo {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--glow-gold);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md) var(--spacing-lg);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: color var(--duration-normal) var(--easing-out);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.responsible-gaming {
  font-size: 0.75rem !important;
  color: var(--color-text-muted) !important;
  opacity: 0.7;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--easing-out);
  z-index: var(--z-fixed);
  box-shadow: 0 4px 20px var(--glow-gold);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px var(--glow-gold);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  color: var(--color-bg-dark);
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */
[data-animate="fade-in"] {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--easing-out);
}
[data-animate="fade-in"].animated {
  opacity: 1;
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--easing-out),
              transform var(--duration-slow) var(--easing-out);
}
[data-animate="fade-up"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-down"] {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity var(--duration-slow) var(--easing-out),
              transform var(--duration-slow) var(--easing-out);
}
[data-animate="fade-down"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="slide-right"] {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--duration-slow) var(--easing-out),
              transform var(--duration-slow) var(--easing-out);
}
[data-animate="slide-right"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="slide-left"] {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--duration-slow) var(--easing-out),
              transform var(--duration-slow) var(--easing-out);
}
[data-animate="slide-left"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="zoom-in"] {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--duration-slow) var(--easing-out),
              transform var(--duration-slow) var(--easing-bounce);
}
[data-animate="zoom-in"].animated {
  opacity: 1;
  transform: scale(1);
}

[data-animate="pop-in"] {
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--duration-normal) var(--easing-out),
              transform var(--duration-normal) var(--easing-bounce);
}
[data-animate="pop-in"].animated {
  opacity: 1;
  transform: scale(1);
}

[data-animate="text-reveal"] .text-reveal-wrapper {
  overflow: hidden;
  display: block;
}
[data-animate="text-reveal"] .text-reveal-content {
  display: block;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--easing-out);
}
[data-animate="text-reveal"].animated .text-reveal-content {
  transform: translateY(0);
}

[data-animate="stagger-up"] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--easing-out),
              transform var(--duration-normal) var(--easing-out);
}
[data-animate="stagger-up"].animated > *:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0s;
}
[data-animate="stagger-up"].animated > *:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 0.1s;
}
[data-animate="stagger-up"].animated > *:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 0.2s;
}

[data-animate="flip-in"] {
  opacity: 0;
  transform: perspective(1000px) rotateY(-90deg);
  transition: opacity var(--duration-slow) var(--easing-out),
              transform var(--duration-slow) var(--easing-out);
}
[data-animate="flip-in"].animated {
  opacity: 1;
  transform: perspective(1000px) rotateY(0);
}

/* ============================================
   SCROLL TRANSITION EFFECTS
   ============================================ */

/* 1. Gold Line Divider */
.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-gold) 30%,
    var(--color-teal) 70%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 10px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-gold) 30%,
    var(--color-teal) 70%,
    transparent 100%
  );
  filter: blur(6px);
  opacity: 0.5;
  border-radius: 9999px;
}

.section-divider.animated {
  transform: scaleX(1);
}

/* 2. Clip-Path Wipe */
[data-animate="clip-wipe"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-animate="clip-wipe"].animated {
  clip-path: inset(0% 0 0 0);
}

/* 3. Parallax Base */
[data-parallax] {
  will-change: transform;
  backface-visibility: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

/* 4. Section Flash */
.section-flash {
  border-top: 1px solid transparent;
}
.section-flash.in-view {
  animation: border-flash 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes border-flash {
  0%   { border-top-color: var(--color-gold); }
  60%  { border-top-color: var(--color-teal); }
  100% { border-top-color: transparent; }
}

/* Section-home safety override */
#section-home .section-content,
#section-home [data-animate],
#section-home .section-drift {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  visibility: visible !important;
}

/* 5. Section Drift */
.section-drift {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: drift-fallback 0s 2s forwards;
}
.section-drift.animated {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}
.section-drift.animated > *:nth-child(1) { transition-delay: 0s; }
.section-drift.animated > *:nth-child(2) { transition-delay: 0.08s; }
.section-drift.animated > *:nth-child(3) { transition-delay: 0.16s; }
.section-drift.animated > *:nth-child(4) { transition-delay: 0.24s; }
.section-drift.animated > *:nth-child(5) { transition-delay: 0.32s; }
.section-drift.animated > *:nth-child(6) { transition-delay: 0.40s; }

@keyframes drift-fallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE — EXTRA LARGE (1600px+)
   ============================================ */
@media (min-width: 1600px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-3xl: 8rem;
  }

  .section-content {
    max-width: 1600px;
  }

  html {
    font-size: 18px;
  }
}

/* ============================================
   RESPONSIVE — ULTRA WIDE (2560px+)
   ============================================ */
@media (min-width: 2560px) {
  html {
    font-size: 20px;
  }

  .section-content {
    max-width: 2000px;
  }

  .navbar {
    padding: 0 6rem;
  }
}

/* ============================================
   RESPONSIVE — LARGE TABLET (max 1200px)
   ============================================ */
@media (max-width: 1200px) {
  :root {
    --navbar-height: 60px;
  }

  .navbar {
    padding: 0 var(--spacing-lg);
  }

  .nav-links {
    gap: var(--spacing-md);
  }

  .section-drift {
    transition-duration: 0.6s;
  }
}

/* ============================================
   RESPONSIVE — TABLET (max 992px)
   ============================================ */
@media (max-width: 992px) {
  .modal-contact-large {
    width: 95%;
    max-height: 92vh;
  }

  .contact-modal-container {
    grid-template-columns: 1fr;
  }

  .contact-info-side {
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    max-height: none;
    padding: var(--spacing-lg);
  }

  .contact-form-side {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .navbar {
    padding: 0 var(--spacing-md);
  }

  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--easing-out);
    z-index: var(--z-dropdown);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    min-height: 52px;
  }

  .nav-contact-link {
    display: block;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-contact-large {
    width: 98%;
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .contact-info-side {
    padding: var(--spacing-md);
    max-height: none;
  }

  .contact-form-side {
    padding: var(--spacing-md);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .contact-map iframe {
    height: 150px;
  }

  .contact-form-title {
    font-size: 1.2rem;
  }

  .contact-form-subtitle {
    font-size: 0.85rem;
  }

  .modal-close-btn {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  .business-hours-list .hours-row {
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--spacing-xs);
  }

  .modal-trailer-view {
    width: 96vw;
    border-radius: 14px;
  }

  .trailer-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .trailer-actions {
    justify-content: space-between;
  }

  [data-animate="clip-wipe"] {
    clip-path: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  [data-animate="clip-wipe"].animated {
    opacity: 1;
    transform: translateY(0);
  }

  .section-divider::after {
    display: none;
  }

  [data-parallax] {
    transform: none !important;
  }

  .parallax-bg {
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .section {
    padding: var(--spacing-xl) var(--spacing-sm);
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .btn-large {
    padding: 1rem 1.5rem;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }

  .modal-contact-large {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
    position: fixed;
  }

  .modal-contact-large.active {
    transform: none;
  }

  .contact-info-side {
    padding: var(--spacing-sm);
  }

  .contact-form-side {
    padding: var(--spacing-sm);
    border-radius: 0;
  }

  .contact-map iframe {
    height: 130px;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .btn-submit {
    width: 100%;
  }

  .section-drift {
    transform: translateY(20px);
  }

  .section-drift.animated {
    transform: translateY(0);
  }

  .section-flash.in-view {
    animation: none;
  }

  .section-divider {
    height: 1px;
  }
}

/* ============================================
   RESPONSIVE — TINY MOBILE (max 320px)
   Galaxy Fold / very small screens
   ============================================ */
@media (max-width: 320px) {
  html {
    font-size: 14px;
  }

  :root {
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 1.5rem;
    --navbar-height: 56px;
  }

  .navbar-brand {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .loader-text {
    font-size: 2rem;
    letter-spacing: 0.3em;
  }

  .loader-bar {
    width: 150px;
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .trailer-btn {
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .contact-form-title {
    font-size: 1.1rem;
  }
}