:root {
  --primary-gradient: linear-gradient(135deg, #0f4c81 0%, #0083b0 100%);
  --deep-blue: #0f4c81;
  --light-blue: #0083b0;
  --warm-gold: #d2b487;
  --silk: #eae4d9;
  --sage-green: #bfc6a5;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --background-gray: #f8f9fa;
  --glass-background: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
}

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

body {
  font-family: "Tajawal", "Inter", sans-serif;
  color: var(--text-dark);
  background-color: var(--background-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: "Inter", sans-serif;
}

html[lang="ar"] body {
  font-family: "Tajawal", sans-serif;
}

.en {
  font-family: "Inter", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
.header {
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  z-index: 1000;
}

#langToggle,
#loginBtn {
  background: transparent;
  border: 2px solid var(--warm-gold);
  color: var(--deep-blue);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  text-decoration: none;
}

#langToggle:hover,
#loginBtn:hover {
  background: var(--warm-gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(210, 180, 135, 0.4);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo img {
  height: 45px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--deep-blue);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .en {
  font-size: 0.9rem;
  color: var(--light-blue);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--warm-gold);
  transition: width 0.3s;
}

/* Align underline correctly for RTL/LTR */
html[dir="rtl"] .nav-links a::after {
  right: 0;
}

html[dir="ltr"] .nav-links a::after {
  left: 0;
}

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

.nav-links a:hover {
  color: var(--deep-blue);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--deep-blue);
}

/* Hero Section */
.hero {
  background: var(--primary-gradient);
  padding: 8rem 0;
  /* Increased padding */
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Center align by default */
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(-15deg);
}

.hero-content {
  display: flex;
  /* Changed from grid to flex */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  max-width: 800px;
  /* Limit width for readability */
  margin: 0 auto;
}

.hero-text {
  width: 100%;
}

.hero-text h1 {
  font-size: 4rem;
  /* Larger title */
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* Hide hero image container as requested */
.hero-image {
  display: none;
  /* background-image: url('assets/images/hero_illustration.png'); */
}

.highlight {
  color: var(--warm-gold);
}

.tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--warm-gold);
  color: var(--deep-blue);
}

.btn-primary:hover {
  background: #c1a376;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--deep-blue);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glass-card img {
  width: 100%;
  filter: brightness(0) invert(1);
}

/* Vision & Mission */
.vision-mission {
  padding: 4rem 0;
  background: var(--silk);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--deep-blue);
}

.card h3 {
  color: var(--deep-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Values */
.values {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--deep-blue);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.value-item .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--warm-gold);
}

.icon-wrapper {
  font-size: 2.5rem;
  color: var(--warm-gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.info-item .label i,
.social-links i,
.website-link i {
  margin-left: 8px;
  color: var(--warm-gold);
}

.value-item h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
}

/* Solution Details */
.solution-details {
  padding: 6rem 0;
  background: white;
}

.solution-content {
  background: var(--background-gray);
  padding: 3rem;
  border-radius: 20px;
  border-inline-end: 8px solid var(--sage-green);
  /* Logical property for auto-flip */
}

.meta-notice {
  margin-top: 2rem;
  padding: 2rem;
  background: #eef2f3;
  border-radius: 10px;
  border-inline-start: 4px solid var(--deep-blue);
  /* Logical property */
}

.meta-notice h4 {
  margin-bottom: 0.5rem;
  color: var(--deep-blue);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--silk);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item .label {
  display: block;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 0.25rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--deep-blue);
  text-decoration: underline;
}

.website-link {
  margin-top: 2rem;
}

.website-link a {
  font-size: 1.25rem;
  color: var(--deep-blue);
  font-weight: 700;
  text-decoration: none;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--deep-blue);
  color: var(--text-light);
  text-align: center;
}

/* Animations */
.reveal {
  /* opacity: 0; */
  /* transform: translateY(30px); */
  transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    inset-inline-start: -100%;
    /* Logical start (left in LTR, right in RTL) */
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    inset-inline-start: 0;
  }

  .hero-content,
  .grid,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-btns {
    justify-content: center;
  }
}

/* Page Headers */
.page-header {
  background: var(--primary-gradient);
  padding: 6rem 0;
  color: var(--text-light);
  text-align: center;
}

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

.page-header p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Privacy Content */
.privacy-content {
  padding: 6rem 0;
}

.meta-notice-full {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-inline-start: 8px solid var(--deep-blue);
  /* Logical property */
}

.meta-notice-full h2 {
  color: var(--deep-blue);
  margin-bottom: 1.5rem;
}

.policy-section {
  margin-top: 2rem;
}

.policy-section h3 {
  color: var(--light-blue);
  margin-bottom: 0.75rem;
}

.nav-links a.active {
  color: var(--warm-gold);
}

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

.learn-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--deep-blue);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s;
}

.learn-more:hover {
  transform: translateX(-5px);
}

.features {
  padding: 4rem 0;
}
