*,
*::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: #071522;
  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 */
.top-bar {
  background: linear-gradient(90deg, #0b6889 0, #0a3d59 100%);
  color: #ffffff;
  font-size: 0.9rem;
}

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

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

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

/* Navigation */
.main-nav {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  gap: 1rem;
  flex-direction: row-reverse; /* logo on the right */
}

.brand-wrapper {
  background-color: #ffffff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.brand-logo {
  height: 64px;
}

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

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

#main-menu a:hover {
  border-bottom-color: #0b6889;
  color: #0b6889;
  transform: translateY(-1px);
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.4rem 0 3.2rem;
  background: radial-gradient(circle at top right, #e4f8ff 0, #f5f7fb 55%, #e9f3ff 100%);
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(2px);
  pointer-events: none;
}

.hero-bg-1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #15a0c8 0, #0b6889 70%, transparent 100%);
  top: -90px;
  left: -120px;
}

.hero-bg-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(9, 92, 122, 0.95) 0, rgba(9, 92, 122, 0.4) 55%, transparent 100%);
  bottom: -140px;
  left: 35%;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 2.6rem;
  align-items: center;
  z-index: 1;
}

.hero-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0b6889;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin: 0 0 0.8rem;
  color: #062032;
}

.hero-text {
  font-size: 1.02rem;
  max-width: 620px;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #15a0c8 0, #0b6889 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(5, 80, 112, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(5, 80, 112, 0.6);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.8);
  color: #0b6889;
  border: 1px solid rgba(11, 104, 137, 0.4);
}

.btn-ghost:hover {
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.hero-tags span {
  background-color: rgba(248, 252, 255, 0.9);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(11, 104, 137, 0.15);
}

/* Hero right grid */
.hero-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr);
  gap: 0.8rem;
}

.hero-card {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 40px rgba(5, 80, 112, 0.15);
  border: 1px solid rgba(11, 104, 137, 0.09);
}

.hero-card-main h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.hero-card-main p {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.hero-card-main ul {
  padding-right: 1.1rem;
  margin: 0;
  font-size: 0.95rem;
}

.hero-mini-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.mini-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0, #ffffff 0, #15a0c8 70%);
  color: #ffffff;
  font-size: 1.2rem;
}

.mini-card h3 {
  margin: 0 0 0.1rem;
  font-size: 0.98rem;
}

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

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

.section-light {
  background-color: #f8fbff;
}

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

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

.info-card {
  background-color: #ffffff;
  border-radius: 1.4rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 12px 30px rgba(6, 32, 50, 0.08);
  border: 1px solid rgba(6, 32, 50, 0.04);
}

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

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

/* Vision section */
.section-gradient {
  background: radial-gradient(circle at top right, #0b6889 0, #062032 60%, #060e17 100%);
  color: #ffffff;
}

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

.vision-grid h2 {
  margin-top: 0;
}

.goals-list {
  padding-right: 1.1rem;
  margin: 0.4rem 0 0;
}

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

.card {
  background-color: #ffffff;
  border-radius: 1.4rem;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 14px 32px rgba(7, 21, 34, 0.08);
  border: 1px solid rgba(7, 21, 34, 0.04);
  transform-origin: center bottom;
}

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

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

/* Contact section */
.contact-section {
  background: linear-gradient(140deg, #0b6889 0, #062032 72%);
  color: #ffffff;
}

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

.contact-card {
  max-width: 640px;
  padding: 2rem 1.9rem;
  border-radius: 1.6rem;
  background: rgba(3, 16, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.7);
}

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

.contact-details p {
  margin: 0.15rem 0;
}

.contact-note {
  font-size: 0.92rem;
  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);
}

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

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

.float-anim-delayed {
  animation: float 6.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

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

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

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

  .vision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }

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

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

  .hero {
    padding-top: 2.4rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-card-grid {
    max-width: 460px;
    margin: 0 auto;
  }

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

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

  .brand-logo {
    height: 54px;
  }

  .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.05);
    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.35rem 1.3rem;
  }

  .nav-inner {
    align-items: center;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .contact-card {
    padding: 1.7rem 1.4rem;
  }
}
