*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f7fb;
  color: #0A1633;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.top-bar {
  background-color: #0A3D8F;
  color: #ffffff;
  font-size: 0.9rem;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.35rem 0;
}

.top-contact span {
  margin-left: 1.5rem;
}

.top-contact a {
  font-weight: 500;
}

/* Navigation */
.main-nav {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem;
  gap: 1rem;
}

.brand img {
  height: 60px;
}

#main-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

#main-menu a {
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

#main-menu a:hover {
  border-bottom-color: #0A3D8F;
  color: #0A3D8F;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #0A3D8F 0, #0A3D8F 35%, #0a1633 100%);
  color: #ffffff;
  padding: 3.3rem 0 3rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.hero-btn {
  animation: pulse 2.2s infinite;
}

.hero-media {
  position: relative;
}

.hero-image-frame {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-image {
  width: 100%;
}

.hero-badge {
  position: absolute;
  bottom: -0.9rem;
  left: 0.6rem;
  right: auto;
  background: rgba(10, 61, 143, 0.96);
  color: #ffde66;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background-color: #ffcc33;
  color: #0a1633;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-muted {
  background-color: #eef2fb;
}

.section-title {
  font-size: 1.9rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Layout helpers */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.info-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(10, 61, 143, 0.08);
  border: 1px solid rgba(10, 61, 143, 0.08);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.info-card ul {
  padding-right: 1.1rem;
  margin: 0;
}

/* Gallery */
.gallery-section {
  padding-top: 0;
}

.gallery-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.gallery-text h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.gallery-images {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 0.75rem;
}

.gallery-img-frame {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(10, 22, 51, 0.3);
}

.gallery-img-frame.secondary {
  align-self: flex-end;
}

.gallery-img {
  width: 100%;
  display: block;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.3rem 1.2rem;
  box-shadow: 0 10px 28px rgba(10, 61, 143, 0.07);
  border: 1px solid rgba(10, 61, 143, 0.06);
  transform-origin: center bottom;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

/* Contact */
.contact-section {
  background: linear-gradient(140deg, #0A3D8F 0, #142a4d 60%, #0A1633 100%);
}

.contact-inner {
  display: flex;
  justify-content: center;
}

.contact-box {
  max-width: 640px;
  padding: 2rem 1.8rem;
  background: rgba(7, 19, 46, 0.95);
  border-radius: 1.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.contact-box h2 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.note {
  font-size: 0.94rem;
  opacity: 0.9;
}

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  background-color: #0A1633;
  color: #ffffff;
  font-size: 0.9rem;
}

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

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 5s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
  50% { transform: scale(1.04); box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
  100% { transform: scale(1); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-inner {
    grid-template-columns: 1fr;
  }

  .gallery-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

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

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-section {
    padding-top: 1.5rem;
  }
}

@media (max-width: 720px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .brand img {
    height: 50px;
  }

  .nav-toggle {
    display: block;
  }

  #main-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: max-height 0.2s ease;
  }

  #main-menu.open {
    max-height: 260px;
  }

  #main-menu li {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.4rem 1.2rem;
  }

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

  .hero-media {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .two-col {
    gap: 1.8rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-images {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 1.7rem 1.3rem;
  }
}
