/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/* ==================== VARIABLES ==================== */
:root {
  --header-height: 3.5rem;

  /* Colors */
  --primary-color: #1e40af;
  --primary-color-alt: #1d4ed8;
  --secondary-color: #059669;
  --accent-color: #dc2626;
  --gradient-color: linear-gradient(135deg, #1e40af 0%, #059669 100%);
  
  --title-color: #1f2937;
  --text-color: #4b5563;
  --text-color-light: #6b7280;
  --body-color: #ffffff;
  --container-color: #f9fafb;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --body-font: 'Cairo', sans-serif;
  --biggest-font-size: 2.75rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;

  /* Font Weight */
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /* Margins */
  --mb-0-5: 0.5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* ==================== RESPONSIVE TYPOGRAPHY ==================== */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/* ==================== BASE ==================== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.7;
  direction: rtl;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ==================== REUSABLE CLASSES ==================== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.grid {
  display: grid;
}

.section {
  padding: 6rem 0 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-1);
  font-weight: var(--font-bold);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  text-align: center;
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section__description {
  text-align: center;
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto var(--mb-2-5);
  line-height: 1.6;
}

.section-header {
  margin-bottom: var(--mb-3);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: var(--font-semi-bold);
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  font-size: var(--normal-font-size);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
}

.btn--white {
  color: white;
  border-color: white;
}

.btn--white:hover {
  background: white;
  color: var(--primary-color);
}

.btn--small {
  padding: 0.75rem 1.5rem;
  font-size: var(--small-font-size);
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
}

.nav__logo i {
  font-size: 1.5rem;
}

.nav__list {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__toggle,
.nav__close {
  display: none;
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
  background: var(--gradient-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero__subtitle {
  display: block;
  color: var(--secondary-color);
  font-size: var(--h1-font-size);
  margin-top: 0.5rem;
}

.hero__description {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  margin-bottom: var(--mb-2-5);
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image img {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==================== STATS SECTION ==================== */
.stats {
  padding: 4rem 0;
  background: var(--gradient-color);
  color: white;
}

.stats__container {
  padding: 0 1rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stats__card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stats__card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.stats__icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.stats__number {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 0.25rem;
}

.stats__text {
  font-size: var(--normal-font-size);
  opacity: 0.9;
}

/* ==================== ABOUT SECTION ==================== */
.about {
  padding: 6rem 0;
  background: var(--body-color);
}

.about__container {
  padding: 0 1rem;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-2);
  line-height: 1.7;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.about__image img {
  border-radius: 1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== EXHIBITIONS SECTION ==================== */
.exhibitions {
  padding: 6rem 0;
  background: var(--container-color);
}

.exhibitions__container {
  padding: 0 1rem;
}

.exhibitions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.exhibition__card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.exhibition__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.exhibition__image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.exhibition__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.exhibition__card:hover .exhibition__image img {
  transform: scale(1.1);
}

.exhibition__overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: var(--small-font-size);
}

.exhibition__views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exhibition__content {
  padding: 1.5rem;
}

.exhibition__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

.exhibition__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--mb-1-5);
}

.exhibition__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.exhibition__detail i {
  color: var(--primary-color);
  width: 1rem;
}

/* ==================== BENEFITS SECTION ==================== */
.benefits {
  padding: 6rem 0;
  background: white;
}

.benefits__container {
  padding: 0 1rem;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit__card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--container-color);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.benefit__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background: white;
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--gradient-color);
  border-radius: 50%;
  margin-bottom: var(--mb-1);
  color: white;
  font-size: 1.5rem;
}

.benefit__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

.benefit__description {
  color: var(--text-color-light);
  line-height: 1.6;
}

/* ==================== CTA SECTION ==================== */
.cta {
  padding: 6rem 0;
  background: var(--gradient-color);
  color: white;
  text-align: center;
}

.cta__container {
  padding: 0 1rem;
}

.cta__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
}

.cta__description {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-2-5);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 4rem 0 2rem;
  background: var(--title-color);
  color: white;
}

.footer__container {
  padding: 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-2-5);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
}

.footer__logo i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.footer__description {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: var(--mb-1-5);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: white;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: #d1d5db;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary-color);
  padding-right: 0.5rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #d1d5db;
}

.footer__contact-item i {
  color: var(--primary-color);
  width: 1.25rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--mb-2);
}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  color: #d1d5db;
  font-size: var(--small-font-size);
}

.footer__bottom-links {
  display: flex;
  gap: 2rem;
}

.footer__bottom-link {
  color: #d1d5db;
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.footer__bottom-link:hover {
  color: var(--primary-color);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: var(--gradient-color);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transition: var(--transition);
  z-index: var(--z-tooltip);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

.show-scroll {
  visibility: visible;
  bottom: 2rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .hero__container,
  .about__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    text-align: center;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .stats__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .exhibitions__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .benefits__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer__content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    padding: 4rem 0 0 3rem;
    transition: var(--transition);
    z-index: var(--z-fixed);
    border-left: 1px solid var(--border-color);
  }

  .nav__list {
    flex-direction: column;
    row-gap: 2rem;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .nav__close,
  .nav__toggle {
    display: block;
  }

  .nav__close {
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    cursor: pointer;
    color: var(--title-color);
  }

  .nav__toggle {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
  }

  .show-menu {
    right: 0;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  .stats__card {
    justify-content: center;
    text-align: center;
  }

  .exhibitions__grid,
  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .hero__buttons,
  .cta__buttons {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .hero__buttons,
  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .exhibition__card {
    margin: 0 1rem;
  }

  .scroll-top {
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
}

/* ==================== LOADING STATES ==================== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .nav,
  .scroll-top,
  .hero__buttons,
  .cta__buttons {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
  }
  
  .hero,
  .stats,
  .cta {
    background: none !important;
    color: black !important;
  }
}