/* ============================================
   ALPINEDRIVERS - MAIN STYLES
   Ultra-Premium VTC Ski Transfer Website
   ============================================ */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES - ALPINEDRIVERS PALETTE
   ============================================ */
:root {
  /* Colors - AlpineDrivers */
  --color-snow-white: #FFFFFF;
  --color-glacier-blue: #A8CFF7;
  --color-night-blue: #0A1A2F;
  --color-anthracite: #111111;
  --color-gold: #C9A86A;

  /* Gradients */
  --gradient-alpine: linear-gradient(135deg, var(--color-night-blue) 0%, var(--color-anthracite) 100%);
  --gradient-glacier: linear-gradient(135deg, var(--color-glacier-blue) 0%, rgba(168, 207, 247, 0.3) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(10, 26, 47, 0.7) 0%, rgba(17, 17, 17, 0.9) 100%);

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 8rem;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 4px 20px rgba(201, 168, 106, 0.2);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-snow-white);
  background-color: var(--color-anthracite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-snow-white);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 500;
}

p {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
}

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

.text-glacier {
  color: var(--color-glacier-blue);
}

.text-center {
  text-align: center;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-dark {
  background-color: var(--color-night-blue);
}

.section-anthracite {
  background-color: var(--color-anthracite);
}

.section-gradient {
  background: var(--gradient-alpine);
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
  display: flex;
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

/* ============================================
   BUTTONS - PREMIUM STYLE
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-anthracite);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: #D4B57A;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 168, 106, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-snow-white);
  border: 2px solid var(--color-glacier-blue);
}

.btn-secondary:hover {
  background: var(--color-glacier-blue);
  color: var(--color-night-blue);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-snow-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-snow-white);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 26, 47, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
  padding: 1rem 0;
}

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

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-snow-white);
  text-decoration: none;
  letter-spacing: 1px;
}

.navbar-logo span {
  color: var(--color-gold);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--color-snow-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-fast);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-menu a:hover {
  color: var(--color-glacier-blue);
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  width: 28px;
  height: 3px;
  background: var(--color-snow-white);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-anthracite);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  padding: 0 var(--spacing-md);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.5vw, 1.125rem);
  font-weight: 500;
  color: var(--color-glacier-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.hero-title {
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CARDS - PREMIUM STYLE
   ============================================ */
.card {
  background: rgba(10, 26, 47, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: var(--transition-smooth);
  border: 1px solid rgba(168, 207, 247, 0.1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: var(--color-glacier-blue);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.card-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-sm);
  color: var(--color-gold);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-night-blue);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 1px solid rgba(168, 207, 247, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-gold);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 2;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-glacier-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Disable expensive animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile optimizations for performance */
@media (max-width: 768px) {

  /* Reduce spacing for mobile to improve layout */
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 5rem;
  }

  /* Optimize navbar for mobile */
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 26, 47, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    gap: 2rem;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* MOBILE PERFORMANCE OPTIMIZATIONS */

  /* Disable parallax effect on mobile (CPU intensive) */
  .hero-background {
    transform: none !important;
  }

  /* Simplify card hover effects on mobile */
  .card:hover {
    transform: translateY(-4px);
    /* Reduced from -8px */
    box-shadow: var(--shadow-medium);
    /* Reduced from shadow-strong */
  }

  /* Reduce backdrop-filter blur on mobile (GPU intensive) */
  .card {
    backdrop-filter: blur(5px);
    /* Reduced from 10px */
  }

  .navbar.scrolled {
    backdrop-filter: blur(5px);
    /* Reduced from 10px */
  }

  /* Simplify button animations on mobile */
  .btn::before {
    display: none;
    /* Disable ripple effect background */
  }

  .btn:hover::before {
    display: none;
  }

  /* Optimize transitions for mobile */
  .btn,
  .card,
  .navbar-menu a {
    transition: all 0.2s ease;
    /* Faster transitions */
  }

  /* Reduce animation complexity */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
      /* Reduced from 30px */
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    /* Faster animation */
  }

  /* Optimize images for mobile */
  .hero-background,
  .card-image {
    will-change: auto;
    /* Prevent unnecessary GPU layers */
  }

  /* Reduce shadow complexity on mobile */
  .btn-primary {
    box-shadow: 0 2px 10px rgba(201, 168, 106, 0.15);
    /* Simplified shadow */
  }

  .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(201, 168, 106, 0.2);
    /* Simplified shadow */
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* Stagger animations */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(168, 207, 247, 0.1);
  border: 1px solid rgba(168, 207, 247, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-snow-white);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.lang-current:hover {
  background: rgba(168, 207, 247, 0.2);
  border-color: var(--color-glacier-blue);
}

.lang-icon {
  font-size: 1.1rem;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(10, 26, 47, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 207, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-medium);
  z-index: 100;
}

.lang-selector:hover .lang-dropdown,
.lang-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-snow-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background: rgba(168, 207, 247, 0.15);
  color: var(--color-glacier-blue);
}

.lang-option.active {
  background: rgba(201, 168, 106, 0.15);
  color: var(--color-gold);
}

/* Mobile language selector */
@media (max-width: 768px) {
  .lang-selector {
    margin-top: 1rem;
  }

  .lang-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.5rem;
  }
}
/* ============================================
   RTL (RIGHT-TO-LEFT) SUPPORT FOR ARABIC
   ============================================ */

/* RTL Direction Adjustments */
body.rtl {
  direction: rtl;
  text-align: right;
}

/* Navbar RTL */
body.rtl .navbar-menu {
  flex-direction: row-reverse;
}

body.rtl .navbar-logo {
  margin-right: 0;
  margin-left: auto;
}

/* Language Selector RTL */
body.rtl .lang-dropdown {
  right: auto;
  left: 0;
}

body.rtl .lang-option {
  text-align: right;
}

/* Grid RTL - Reverse order for better flow */
body.rtl .grid-2 > *:nth-child(odd) {
  order: 2;
}

body.rtl .grid-2 > *:nth-child(even) {
  order: 1;
}

/* Buttons RTL */
body.rtl .hero-cta {
  flex-direction: row-reverse;
}

/* Footer RTL */
body.rtl .footer-content {
  direction: rtl;
}

/* Cards RTL */
body.rtl .card {
  text-align: right;
}

/* Mobile RTL */
@media (max-width: 768px) {
  body.rtl .navbar-menu {
    right: auto;
    left: -100%;
  }
  
  body.rtl .navbar-menu.active {
    left: 0;
    right: auto;
  }
}

