/* ========================================
   CSS Variables (Design Tokens)
   ======================================== */
:root {
  /* Colors */
  --navy-900: #0b1f3b;
  --navy-800: #162e52;
  --navy-700: #1e3a5f;
  --navy-50: #f0f4f8;

  --gold-600: #b5952f;
  --gold-500: #d4af37;
  --gold-400: #e5c158;

  --gray-50: #f9fafb;
  --gray-100: #f5f5f5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;

  --white: #ffffff;

  /* Typography */
  --font-family: "Cairo", sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--gray-50);
  color: var(--navy-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hidden {
  display: none !important;
}

.text-gold {
  color: var(--gold-500);
}

/* ========================================
   Disclaimer Banner
   ======================================== */
.disclaimer-banner {
  background-color: var(--gold-500);
  color: var(--navy-900);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1001;
  border-bottom: 2px solid var(--gold-400);
}

.disclaimer-banner a {
  color: var(--navy-900);
  text-decoration: underline;
  font-weight: 700;
  transition: opacity var(--transition-fast);
}

.disclaimer-banner a:hover {
  opacity: 0.8;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 2.75rem; /* Space for disclaimer banner */
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  background-color: var(--navy-900);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  background-color: var(--navy-900);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}

/* Solid navbar for internal pages (non-homepage) */
.navbar.solid {
  background-color: var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast);
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-icon {
  background-color: var(--gold-500);
  padding: 0.375rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-normal);
}

.logo-link:hover .logo-icon {
  background-color: var(--gold-400);
}

.icon-scale {
  color: var(--navy-900);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--gold-500);
  letter-spacing: 0.05em;
}

/* Desktop Menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition-normal);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-500);
}

.btn-cta {
  background-color: var(--gold-500);
  color: var(--navy-900);
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.btn-cta:hover {
  background-color: var(--gold-400);
  transform: scale(1.05);
}

/* Mobile Toggle */
.mobile-toggle {
  color: var(--white);
  transition: color var(--transition-normal);
}

.mobile-toggle:hover {
  color: var(--gold-500);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--navy-900);
  box-shadow: var(--shadow-xl);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.mobile-menu.active {
  max-height: 24rem;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--navy-800);
  transition: color var(--transition-normal);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold-500);
}

.btn-cta-mobile {
  background-color: var(--gold-500);
  color: var(--navy-900);
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* ========================================
   Main Content
   ======================================== */
main {
  padding-top: 100px; /* Space for disclaimer banner + fixed navbar */
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--navy-900),
    rgba(11, 31, 59, 0.8),
    rgba(11, 31, 59, 0.4)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-text {
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: rgba(229, 193, 88, 0.1);
  color: var(--gold-500);
  border: 1px solid var(--gold-500);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 1.5rem 0;
}

.hero-description {
  color: var(--gray-300);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
  box-shadow: 0 0 20px rgba(229, 193, 88, 0.2);
}

.btn-primary:hover {
  background-color: var(--gold-400);
  transform: scale(1.05);
}

.btn-secondary {
  width: 100%;
  padding: 1rem 2rem;
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--navy-900);
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
  padding: 4rem 0;
  background-color: var(--navy-800);
  margin: -5rem 1rem 0;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border-bottom: 4px solid var(--gold-500);
  position: relative;
  z-index: 20;
}

.stats-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 0.5rem;
  cursor: default;
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: scale(1.1);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-500);
  transition: transform var(--transition-normal);
}

.stat-label {
  color: var(--gray-300);
  font-weight: 500;
  font-size: 0.875rem;
}

/* ========================================
   About Preview Section
   ======================================== */
.about-preview-section {
  padding: 5rem 0;
  background-color: var(--white);
  overflow: hidden;
}

.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.about-image-container {
  width: 100%;
  position: relative;
}

.about-image-border {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-500);
  border-radius: 0.5rem;
  z-index: 0;
}

.about-image {
  position: relative;
  z-index: 10;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-quote {
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
  background-color: var(--navy-900);
  color: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  max-width: 18rem;
  display: none;
}

.quote-text {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.quote-author {
  color: var(--gold-500);
  font-size: 0.875rem;
}

.about-content {
  width: 100%;
}

.section-subtitle {
  color: var(--gold-500);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1.5rem;
}

.section-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.features-list {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.check-icon {
  color: var(--gold-500);
  flex-shrink: 0;
}

.feature-item span {
  color: var(--navy-900);
  font-weight: 500;
}

.btn-dark {
  display: inline-block;
  background-color: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: background-color var(--transition-normal);
}

.btn-dark:hover {
  background-color: var(--navy-800);
}

/* ========================================
   Services Preview Section
   ======================================== */
.services-preview-section {
  padding: 5rem 0;
  background-color: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.title-underline {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--gold-500);
  margin: 1rem auto 0;
  border-radius: 9999px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-normal);
}

.service-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-4px);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--navy-900);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: var(--gold-500);
}

.service-icon svg {
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.service-link {
  color: var(--gold-600);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-normal);
}

.service-card:hover .service-link {
  gap: 0.75rem;
}

.arrow {
  font-size: 1.25rem;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--navy-900);
  color: var(--navy-900);
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
}

.btn-outline:hover {
  background-color: var(--navy-900);
  color: var(--white);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--navy-900);
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--navy-800);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--navy-700);
  position: relative;
}

.quote-mark {
  color: var(--gold-500);
  font-size: 4rem;
  font-family: serif;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  opacity: 0.2;
}

.testimonial-text {
  color: var(--gray-300);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.75;
  position: relative;
  z-index: 10;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 1.125rem;
}

.author-name {
  font-weight: 700;
  color: var(--white);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--navy-900);
  color: var(--white);
  border-top: 1px solid var(--navy-800);
}

.footer-content {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-icon {
  color: var(--gold-500);
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-description {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.75;
}

.footer-heading {
  color: var(--gold-500);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -0.3rem;
  right: 0;
  width: 50%;
  height: 2px;
  background-color: var(--gold-500);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.links-list a {
  color: var(--gray-300);
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

.links-list a:hover {
  color: var(--gold-500);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-300);
  font-size: 0.875rem;
}

.contact-icon {
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  background-color: var(--navy-800);
  padding: 0.5rem;
  border-radius: 50%;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  background-color: var(--gold-500);
  color: var(--navy-900);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-500);
  border-top: 1px solid var(--navy-800);
  padding-top: 1rem;
}

.footer-bottom {
  background-color: #050e1c;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer-bottom p {
  margin: 0.25rem 0;
}

.made-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.flixvar {
  color: var(--gold-500);
  font-weight: 700;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Media Queries
   ======================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-value {
    font-size: 3rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .about-grid {
    flex-direction: row;
  }

  .about-image-container,
  .about-content {
    width: 50%;
  }

  .about-quote {
    display: block;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .stats-section {
    margin: -5rem 2.5rem 0;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
