:root {
  --ink: #14241c;
  --ink-soft: #3d5246;
  --paper: #f3f6f1;
  --emerald: #1a5c3a;
  --emerald-deep: #0d3a24;
  --gold: #c9a24a;
  --gold-soft: #e8d5a3;
  --mist: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(13, 58, 36, 0.14);
  --radius: 18px;
  --font-display: "Amiri", "Traditional Arabic", serif;
  --font-body: "Cairo", "Tahoma", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(201, 162, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 20%, rgba(26, 92, 58, 0.16), transparent 50%),
    linear-gradient(165deg, #e8efe6 0%, #f7faf5 42%, #eef4eb 100%);
  overflow-x: hidden;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(26, 92, 58, 0.03) 48px,
      rgba(26, 92, 58, 0.03) 49px
    );
  opacity: 0.7;
}

.hero,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 1.5rem 4rem;
  background:
    linear-gradient(160deg, rgba(13, 58, 36, 0.94) 0%, rgba(26, 92, 58, 0.88) 55%, rgba(20, 70, 45, 0.92) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 20 L50 20 L38 30 L43 45 L30 36 L17 45 L22 30 L10 20 L25 20 Z' fill='none' stroke='%23c9a24a' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
  color: #f8faf6;
}

.hero-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.brand-logo {
  width: clamp(110px, 18vw, 160px);
  height: clamp(110px, 18vw, 160px);
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem;
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.45), 0 16px 36px rgba(0, 0, 0, 0.25);
  animation: logo-rise 1s ease-out both;
}

.org-name {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.portal-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.7;
  color: #ffffff;
  max-width: 34ch;
  margin-inline: auto;
}

.hero-sub {
  margin: 1rem auto 0;
  max-width: 42ch;
  color: rgba(248, 250, 246, 0.82);
  font-size: 0.98rem;
  line-height: 1.8;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f3f6f1' d='M0,32 C240,64 480,0 720,24 C960,48 1200,64 1440,24 L1440,64 L0,64 Z'/%3E%3C/svg%3E")
    center bottom / cover no-repeat;
}

.systems {
  width: min(1180px, calc(100% - 2rem));
  margin: -1.5rem auto 0;
  padding: 1rem 0 3.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--emerald-deep);
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
}

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

.slide-card {
  display: flex;
  flex-direction: column;
  background: var(--mist);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 92, 58, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.slide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(13, 58, 36, 0.2);
}

.slide-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--emerald-deep);
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.slide-card:hover .slide-media img {
  transform: scale(1.05);
}

.slide-body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.slide-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emerald-deep);
  line-height: 1.5;
}

.slide-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  flex: 1;
}

.slide-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.slide-btn:hover {
  filter: brightness(1.08);
  transform: translateX(-3px);
}

.slide-btn span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.slide-btn:hover span {
  transform: translateX(-4px);
}

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem;
}

.contact {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto 3rem;
}

.contact-panel {
  background: linear-gradient(145deg, var(--emerald-deep), var(--emerald));
  color: #f5f8f3;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(201, 162, 74, 0.22), transparent 45%);
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
}

.contact-panel h2 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  color: var(--gold-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
}

.contact-item .label {
  display: block;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  line-height: 1.75;
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--gold-soft);
}

.contact-note {
  margin: 1.25rem 0 0;
  text-align: center;
  opacity: 0.85;
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  padding: 1.25rem 1rem 1.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  border-top: 1px solid rgba(26, 92, 58, 0.12);
  background: rgba(243, 246, 241, 0.75);
}

.site-footer a {
  color: var(--emerald);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--delay, 0) * 90ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .slides-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }
}
