/* 
===========================================================================
  SAHARA MIRAGE CASINO HOTEL - PREMIUM DESERT LUXURY STYLESHEET
===========================================================================
  1. Variables
  2. Reset & Typography
  3. Layout
  4. Components (Header, Hero, Buttons, Cards)
  5. Animations
  6. Utilities
===========================================================================
*/

/* --- 1. VARIABLES --- */
:root {
  /* Colors - Base */
  --color-bg-primary: #1a120b;
  --color-bg-secondary: #2c1f16;
  --color-surface: rgba(255, 248, 240, 0.06);
  --color-surface-hover: rgba(255, 248, 240, 0.1);
  --color-surface-border: rgba(255, 248, 240, 0.1);

  /* Colors - Accent */
  --color-accent-primary: #e6a756;
  --color-accent-secondary: #c97b36;
  --color-accent-highlight: #f4d03f;
  
  /* Colors - Text */
  --color-text-primary: #fff7ed;
  --color-text-secondary: #fcd9b6;
  --color-text-muted: rgba(252, 217, 182, 0.6);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Layout */
  --container-max-width: 1320px;
  
  /* Padding */
  --pad-desk: 32px;
  --pad-tab: 24px;
  --pad-mob: 16px;

  /* Spacing */
  --space-desk: 110px;
  --space-tab: 80px;
  --space-mob: 60px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. RESET & TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Texture / Subtle Gradient */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(230, 167, 86, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  font-weight: 300;
}

a {
  text-decoration: none;
  color: var(--color-accent-primary);
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-accent-highlight);
}

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

ul {
  list-style: none;
}

/* --- 3. LAYOUT --- */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--pad-desk);
}

.section {
  padding: var(--space-desk) 0;
  position: relative;
}

.section-sm {
  padding: calc(var(--space-desk) / 2) 0;
}

/* Flex Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

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

/* --- 4. COMPONENTS --- */

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 18, 11, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 167, 86, 0.1);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(26, 18, 11, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(230, 167, 86, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

/* Sand Sweep Underline Effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-highlight));
  transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  color: var(--color-bg-primary);
  box-shadow: 0 4px 15px rgba(230, 167, 86, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 208, 63, 0.3);
  color: #000;
  filter: brightness(1.1);
}

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

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent-primary);
  transform: translateY(-2px);
  color: var(--color-accent-highlight);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}

/* Specific background image via stylesheet as requested */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/sahara-mirage-desert-dunes-sunset.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: slowZoom 20s infinite alternate linear;
}

/* Fallback background color if image is missing */
.hero-bg-image::after {
  content: '';
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: linear-gradient(180deg, rgba(26,18,11,0.6) 0%, rgba(26,18,11,1) 100%);
}

.hero .grid {
  align-items: center;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero-tagline {
  color: var(--color-accent-primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
  font-size: 0.9rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-disclaimer {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, rgba(230,167,86,0.2), transparent);
  pointer-events: none;
}

/* Glass Cards */
.glass-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--color-surface-hover);
  border-color: rgba(230, 167, 86, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 15px rgba(230, 167, 86, 0.05);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(230, 167, 86, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent-primary);
  font-size: 1.5rem;
}

/* Inner Page Headers */
.page-header {
  padding-top: 150px;
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(44, 31, 22, 0.8) 0%, var(--color-bg-primary) 100%);
  border-bottom: 1px solid var(--color-surface-border);
}

.page-header h1 {
  margin-bottom: 1rem;
}

/* Content Blocks for Legal/About pages */
.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  margin-top: 2.5rem;
  color: var(--color-accent-primary);
  font-size: 1.8rem;
}

.content-block p, .content-block ul {
  margin-bottom: 1.5rem;
}

.content-block ul {
  list-style: disc;
  padding-left: 2rem;
  color: var(--color-text-secondary);
}

.content-block ul li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.form-control {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  background: rgba(0,0,0,0.4);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: #120c08;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(230, 167, 86, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
  font-size: 0.9rem;
}

.footer-heading {
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- 5. ANIMATIONS --- */
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@keyframes floatSand {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(50px) rotate(360deg); opacity: 0; }
}

/* Scroll Fade In */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Sand Particles Container */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--color-accent-primary);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
}

/* --- 6. MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .container { padding: 0 var(--pad-tab); }
  .section { padding: var(--space-tab) 0; }
  
  .hero .grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; } /* Simplify on tablet/mobile */
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .container { padding: 0 var(--pad-mob); }
  .section { padding: var(--space-mob) 0; }
  
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-bg-secondary);
    flex-direction: column;
    padding: 100px 40px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: -1;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-btn { display: none; }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}