@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
  /* Dark Mode Palette - Deep luxurious tones for KSA */
  --bg-primary: #0a0e17;
  --bg-secondary: #121826;
  --bg-gradient: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15) 0%, #0a0e17 50%);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-color: #10B981;
  /* Emerald Green (KSA related) */
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.2);

  --gold: #D4AF37;
  --gold-hover: #B5952F;

  /* Glassmorphism */
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  border-radius: 8px;
}

/* --- Layout & Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a.btn-primary {
  color: white;
}

.nav-links a.btn-primary:hover {
  color: white;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  color: white;
}

.btn-primary.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  color: #000;
}

.btn-primary.gold:hover {
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* --- Hero Section --- */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow-x: clip;
  /* prevent glowing orbs from causing horizontal overflow */
}

/* Decorative glowing orbs */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: var(--accent-color);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 20%;
  width: 250px;
  height: 250px;
  background: var(--gold);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  z-index: -1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.badge svg {
  color: var(--accent-color);
  width: 16px;
  height: 16px;
}

/* --- Info Section --- */
.info-section {
  padding: 60px 0;
}

.glass-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 40px;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.glass-box h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.glass-box p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.glass-box ul {
  list-style: none;
  margin: 24px 0;
}

.glass-box li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.glass-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
  background: var(--accent-light);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* --- Countries Section --- */
.countries-section {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.country-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: bottom;
}

.country-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  border-color: rgba(16, 185, 129, 0.3);
}

.country-card:hover::before {
  transform: scaleY(1);
}

.country-icon {
  font-size: 2rem;
  line-height: 1;
}

.country-card span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* --- CTA Section --- */
.cta-mega {
  margin: 100px 0;
  padding: 60px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(212, 175, 55, 0.05)), var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.cta-mega h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-mega p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* --- Footer --- */
footer {
  background: rgba(10, 14, 23, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.disclaimer {
  font-size: 0.85rem;
  max-width: 800px;
  margin-top: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  body {
    background-attachment: scroll;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: 2.3rem;
    overflow-wrap: break-word;
  }

  .glass-box {
    padding: 24px;
  }

  .countries-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .nav-links {
    display: none;
    /* In a real app add a hamburger menu */
  }

  .cta-mega {
    padding: 40px 24px;
  }
}