/* ============================================
   GLOBAL CSS - Explore Jordan Website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES & ROOT STYLES
   ============================================ */

:root {
  --primary-desert: #B8844D;
  --primary-dark: #8B6F47;
  --bg-light: #F8FAFC;
  --text-dark: #1f1713;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --success-green: #4ADE80;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: pageEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.exiting {
  animation: pageExit 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/* PAGE TRANSITION ANIMATIONS */
@keyframes pageEnter {
  from { 
    opacity: 0; 
    transform: scale(0.99) translateY(10px); 
    filter: blur(10px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
    filter: blur(0); 
  }
}

@keyframes pageExit {
  from { 
    opacity: 1; 
    transform: scale(1); 
    filter: blur(0); 
  }
  to { 
    opacity: 0; 
    transform: scale(1.02); 
    filter: blur(5px); 
  }
}

/* ============================================
   CINEMATIC HEADERS
   ============================================ */

.cinematic-header {
  height: 250px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}

.cinematic-header:hover {
  transform: scale(1.01);
}

.header-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.cinematic-header h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cinematic-header p {
  font-size: 14px;
  max-width: 90%;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* TABLET */
@media (min-width: 640px) {
  .cinematic-header {
    height: 300px;
    border-radius: 32px;
    margin-bottom: 32px;
  }

  .cinematic-header h1 {
    font-size: 40px;
  }

  .cinematic-header p {
    font-size: 16px;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .cinematic-header {
    height: 400px;
    border-radius: 40px;
    margin-bottom: 40px;
  }

  .cinematic-header h1 {
    font-size: 56px;
  }

  .cinematic-header p {
    font-size: 18px;
    max-width: 80%;
  }
}

/* ============================================
   GLASS PANEL EFFECT
   ============================================ */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .glass-panel {
    border-radius: 32px;
  }
}

/* ============================================
   NAVIGATION DOCK (FLOATING)
   ============================================ */

.page-navigation {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .page-navigation {
    bottom: 30px;
    right: 30px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

.nav-button {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--primary-desert);
  border: 1px solid rgba(184, 132, 77, 0.3);
  padding: 10px 14px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  font-size: 13px;
  cursor: pointer;
}

.nav-button .material-icons {
  font-size: 18px;
  margin: 0;
}

.nav-button .nav-text {
  display: inline;
}

.nav-button:hover,
.nav-button.active-nav {
  background: var(--primary-desert);
  color: white;
  border-color: var(--primary-desert);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(184, 132, 77, 0.3);
}

@media (min-width: 768px) {
  .nav-button {
    padding: 12px 20px;
    font-size: 14px;
    gap: 8px;
  }

  .nav-button .material-icons {
    font-size: 20px;
  }
}

/* ============================================
   LOGO HEADER (FIXED)
   ============================================ */

.logo-header {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--primary-desert);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
  font-size: 13px;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img { 
  height: 24px; 
  width: auto; 
}

.logo-text {
  font-weight: 800;
  color: var(--primary-desert);
}

@media (min-width: 768px) {
  .logo-header {
    top: 24px;
    left: 24px;
  }

  .logo-link {
    padding: 8px 18px;
    font-size: 14px;
    gap: 10px;
  }

  .logo-img { 
    height: 32px; 
  }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-top: 40px;
  color: #666;
  font-size: 13px;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  color: #888;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-desert);
}

.footer-links a::after {
  content: " •";
  margin-left: 8px;
}

.footer-links a:last-child::after {
  content: "";
  margin-left: 0;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 14px;
  }

  .footer-links {
    margin-top: 15px;
    gap: 12px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-links a::after {
    margin: 0 10px;
  }
}

/* ============================================
   BADGE UTILITY
   ============================================ */

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(184, 132, 77, 0.1);
  color: var(--primary-desert);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .badge {
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.8px;
  }
}

/* ============================================
   DOWNLOAD BUTTONS
   ============================================ */

.download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.store-button {
  background: #111;
  color: white;
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 48px;
  justify-content: center;
  flex: 1;
  min-width: 140px;
}

.store-button .material-icons { 
  font-size: 22px; 
}

.btn-text { 
  display: flex; 
  flex-direction: column; 
  text-align: left; 
}

.btn-label { 
  font-size: 8px; 
  font-weight: 500; 
  opacity: 0.7; 
  text-transform: uppercase; 
}

.btn-name { 
  font-size: 12px; 
  font-weight: 700; 
  line-height: 1.2; 
}

.store-button:hover {
  background: #333;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .download-buttons {
    gap: 16px;
  }

  .store-button {
    padding: 10px 20px;
    min-width: 160px;
    flex: none;
    border-radius: 16px;
  }

  .store-button .material-icons { 
    font-size: 26px; 
  }

  .btn-label { 
    font-size: 9px; 
  }

  .btn-name { 
    font-size: 14px; 
  }
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */

.main-content-wrapper {
  background-color: var(--bg-light);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Smooth transitions */
a, button {
  transition: all 0.3s ease;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--primary-desert);
  outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-desert);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary-desert {
  color: var(--primary-desert);
}

.bg-primary-desert {
  background-color: var(--primary-desert);
}

.border-transparent {
  border-color: transparent;
}

.text-white {
  color: white;
}