﻿:root {
  --color-primary: #0f4c6b;
  --color-primary-dark: #0a3850;
  --color-professional: #17326a;
  --color-professional-soft: #2a4f97;
  --color-accent: #d57a30;
  --color-accent-soft: #e58d45;
  --color-bg: #ffffff;
  --color-bg-alt: #f2f7fc;
  --color-text: #1b2a3f;
  --color-text-muted: #53657b;
  --color-border: #d2dfeb;
  --color-success: #2f7a4d;
  --color-error: #8a3d2f;
  --container-max: 1160px;
  --header-max: 1460px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --radius-small: 4px;
  --radius-large: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 22px rgba(11, 60, 93, 0.08);
  --shadow-card: 0 18px 40px rgba(10, 35, 68, 0.12);
  --shadow-glow: 0 14px 30px rgba(21, 58, 110, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Inter", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  line-height: 1.7;
  text-align: center;
}

body.is-loading {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -120px;
  inset-inline-start: var(--space-2);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0c1f3d;
  isolation: isolate;
}

.page-loader__backdrop {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(229, 141, 69, 0.2), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(56, 102, 180, 0.3), transparent 44%),
    linear-gradient(rgba(10, 19, 45, 0.7), rgba(10, 19, 45, 0.75)),
    url("loading.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: loader-bg 7.5s ease-in-out infinite alternate;
}

.page-loader__grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to left, rgba(226, 236, 250, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 236, 250, 0.11) 1px, transparent 1px);
  background-size: 42px 42px;
  animation: loader-grid 8s linear infinite;
}

.page-loader__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 30px;
  border: 1px solid rgba(215, 228, 244, 0.3);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(14, 36, 74, 0.72) 0%, rgba(18, 44, 85, 0.5) 100%);
  box-shadow: 0 18px 40px rgba(3, 11, 28, 0.42);
  backdrop-filter: blur(5px);
}

.page-loader__ring {
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(229, 141, 69, 0.35);
  border-top-color: rgba(229, 141, 69, 0.85);
  border-radius: 50%;
  animation: loader-ring 2.2s linear infinite, loader-glow 2.8s ease-in-out infinite;
}

.page-loader__ring--inner {
  inset: -6px;
  border-color: rgba(182, 214, 255, 0.25);
  border-top-color: rgba(182, 214, 255, 0.9);
  animation-duration: 3.8s, 3.2s;
  animation-direction: reverse, normal;
}

.page-loader__spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff 0%, #f7c99e 34%, #e08e45 78%, transparent 100%);
  box-shadow: 0 0 22px rgba(232, 154, 83, 0.85);
}

.page-loader__spark--one {
  top: -7px;
  right: 8%;
  animation: loader-spark 1.8s ease-in-out infinite;
}

.page-loader__spark--two {
  bottom: 18px;
  left: -4px;
  animation: loader-spark 2.2s ease-in-out infinite reverse;
}

.page-loader__logo {
  width: clamp(138px, 21vw, 220px);
  height: auto;
  animation: loader-logo 1.25s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.page-loader__title {
  margin: 0;
  letter-spacing: 0.22em;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  color: #f8fbff;
  font-weight: 700;
  text-shadow: 0 4px 18px rgba(7, 17, 36, 0.62);
}

.page-loader__subtitle {
  margin: -2px 0 0;
  letter-spacing: 0.08em;
  font-size: clamp(0.65rem, 1.9vw, 0.78rem);
  color: #cae0ff;
  text-transform: uppercase;
}

.page-loader__line {
  width: min(260px, 56vw);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(218, 231, 247, 0.2);
  border: 1px solid rgba(218, 231, 247, 0.35);
}

.page-loader__line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #d57a30 0%, #f5b47d 100%);
  animation: loader-fill 3s ease-out forwards;
}

.page-loader__loading-text {
  margin-top: -4px;
  color: #d6e7fb;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: loader-dots 1.1s steps(3, end) infinite;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

@keyframes loader-bg {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes loader-grid {
  from { transform: translate(0, 0); }
  to { transform: translate(-42px, 42px); }
}

@keyframes loader-logo {
  0% { transform: scale(0.92); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.8; }
}

@keyframes loader-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loader-fill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes loader-glow {
  0% { filter: drop-shadow(0 0 0 rgba(229, 141, 69, 0.2)); }
  50% { filter: drop-shadow(0 0 18px rgba(229, 141, 69, 0.6)); }
  100% { filter: drop-shadow(0 0 0 rgba(229, 141, 69, 0.2)); }
}

@keyframes loader-spark {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

@keyframes loader-dots {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}

@keyframes header-settle {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.skip-link:focus {
  top: var(--space-2);
}

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
  text-align: center;
}

.site-header .container {
  width: min(100% - 32px, var(--header-max));
}

.section {
  padding-block: var(--space-7);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-professional);
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
  font-family: "Inter", "Cairo", sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:focus-visible,
.nav-list a:focus-visible,
.theme-toggle:focus-visible,
.lang-select:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(213, 122, 48, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
}

.btn-outline {
  border-color: var(--color-professional);
  color: var(--color-professional);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-professional);
  color: #fff;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, rgba(244, 248, 253, 0.96) 0%, rgba(244, 248, 253, 0.78) 100%);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 12px;
  gap: 12px var(--space-2);
  padding: 14px 18px;
  border: 1px solid rgba(196, 211, 230, 0.95);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at top left, rgba(229, 141, 69, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(42, 79, 151, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.95) 48%, rgba(236, 243, 251, 0.92) 100%);
  box-shadow: var(--shadow-card);
  overflow: clip;
  animation: header-settle 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 34%, transparent 60%);
  pointer-events: none;
}

.header-inner > * {
  position: relative;
  z-index: 1;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 1 / -1;
  padding: 12px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 255, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  min-width: min(100%, 300px);
}

.brand-logo-shell {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 242, 250, 0.98) 100%);
  border: 1px solid rgba(205, 218, 234, 0.96);
  box-shadow: 0 10px 24px rgba(14, 40, 76, 0.1);
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: start;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: none;
  background: transparent;
  padding: 0;
}

.brand-name {
  margin: 0;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.14em;
  color: var(--color-professional);
  font-size: clamp(1.05rem, 1vw, 1.28rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  margin: 0;
  color: #425368;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.main-nav {
  position: relative;
  justify-self: end;
  z-index: 2;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1px solid rgba(188, 204, 224, 0.98);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(12, 41, 83, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-professional);
  border-radius: 999px;
}

.nav-list {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  min-width: min(340px, 88vw);
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(201, 214, 231, 0.98);
  border-radius: 24px;
  box-shadow: 0 22px 40px rgba(10, 35, 68, 0.16);
  display: none;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(14px);
}

.nav-list.open {
  display: flex;
}

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--color-text);
  border-radius: var(--radius-pill);
  transition: transform 0.28s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.28s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  inset-inline: 18px;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 76, 107, 0) 0%, rgba(15, 76, 107, 0.95) 50%, rgba(213, 122, 48, 0) 100%);
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--color-professional);
  background: rgba(15, 76, 107, 0.08);
  box-shadow: inset 0 0 0 1px rgba(140, 165, 201, 0.3);
  transform: translateY(-1px);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(196, 211, 230, 0.96);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 255, 0.92) 100%);
  box-shadow: var(--shadow-glow);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 44, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 820;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  min-width: 108px;
  border: 1px solid #c2d0e2;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: #1f3556;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 16px;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.theme-toggle::before {
  content: "◐";
  font-size: 0.9rem;
  line-height: 1;
}

.theme-toggle:focus {
  outline: none;
  border-color: var(--color-professional);
  box-shadow: 0 0 0 3px rgba(23, 50, 106, 0.1);
}

.lang-switcher:focus-within {
  border-color: var(--color-professional);
  box-shadow: 0 0 0 3px rgba(23, 50, 106, 0.1);
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  height: 48px;
  padding-inline: 14px 12px;
  border: 1px solid #c2d0e2;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.tool-label {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #607188;
  white-space: nowrap;
}

.lang-switcher::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid #2b3f66;
  border-bottom: 2px solid #2b3f66;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.lang-select {
  width: 68px;
  height: 100%;
  border: none;
  background: transparent;
  color: #1f3556;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding-inline: 6px 18px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
  transition: color 0.2s ease;
}

.lang-select:hover {
  color: var(--color-professional);
}

.lang-select:focus {
  outline: none;
}

.lang-select::-ms-expand {
  display: none;
}

.header-cta {
  white-space: nowrap;
  min-height: 48px;
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(213, 122, 48, 0.22);
}

.btn:hover,
.btn:focus-visible,
.theme-toggle:hover,
.lang-switcher:hover,
.header-cta:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle:hover,
.lang-switcher:hover,
.nav-toggle:hover {
  box-shadow: 0 14px 28px rgba(12, 41, 83, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(106deg, rgba(10, 31, 58, 0.92) 10%, rgba(23, 62, 109, 0.74) 52%, rgba(51, 78, 125, 0.58) 100%), var(--hero-background-image, url("hero/1.png"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.section {
  padding-block: 84px 78px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-4);
}

.hero-content {
  max-width: 760px;
  margin-inline: auto;
}

.hero-content h1,
.hero-text {
  color: #f3f7ff;
}

.hero-panel {
  border: 1px solid rgba(220, 230, 246, 0.6);
  border-top: 3px solid #ffffff;
  border-inline-start: 3px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.92);
  padding: var(--space-3);
  max-width: 440px;
  margin-inline: auto;
}

.hero-panel h2 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
  color: var(--color-professional);
}

.hero-panel ul {
  display: grid;
  gap: var(--space-1);
}

.hero-panel li {
  padding-bottom: var(--space-1);
  border-bottom: 1px solid #dce4ef;
}

.hero-panel li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.section-head {
  margin-bottom: var(--space-4);
  border-top: 3px solid var(--color-professional);
  padding-top: var(--space-2);
  border-inline-start: none;
}

.services,
.contact {
  background: var(--color-bg-alt);
}

.sponsors {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
}

.sponsor-marquee {
  --sponsor-gap: 16px;
  --sponsor-height: 150px;
  --sponsor-duration: 34s;
  position: relative;
  display: block;
  min-height: var(--sponsor-height);
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(13, 37, 74, 0.06);
  isolation: isolate;
}

.sponsor-marquee::before,
.sponsor-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  z-index: 2;
  pointer-events: none;
}

.sponsor-marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.sponsor-marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.sponsor-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  gap: var(--sponsor-gap);
  padding: 12px;
  animation: sponsor-scroll var(--sponsor-duration) linear infinite;
  will-change: transform;
}

.sponsor-track:nth-child(2) {
  left: calc(100% + var(--sponsor-gap));
}

.sponsor-item {
  flex: 0 0 clamp(140px, 18vw, 210px);
  height: 126px;
  border: 1px solid #d8e3ef;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sponsor-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

@keyframes sponsor-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% - var(--sponsor-gap)), 0, 0); }
}

.services-grid {
  display: grid;
  border-top: 1px solid #d3dceb;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid #d7deea;
  transition: transform 0.32s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.32s ease;
  justify-items: center;
  text-align: center;
}

.service-row:hover {
  border-color: #8fa7d2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(237, 243, 252, 0.9) 100%);
  transform: translateY(-4px);
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d3dceb;
  color: var(--color-professional);
}

.service-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-row p,
.about-content p,
.team-card p {
  color: var(--color-text-muted);
}

.about-grid {
  display: grid;
  gap: var(--space-4);
}

.about-content {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}

.about-visual {
  border: 1px solid #d3dceb;
  border-top: 3px solid var(--color-professional);
  min-height: 280px;
  background: #fff;
  overflow: hidden;
}

.idea-slideshow {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 100%;
  background:
    linear-gradient(to left, rgba(11, 60, 93, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 132, 0.08) 1px, transparent 1px),
    #f8fbff;
  background-size: 28px 28px;
}

.idea-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(11, 38, 78, 0.08));
}

.idea-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.idea-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.idea-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #d9e3f0;
  background: #f8fbff;
}

.idea-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8c8de;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.idea-dot.active {
  background: var(--color-accent);
  transform: scale(1.25);
}

.team {
  background: #f9fbff;
}

.team-grid {
  display: grid;
  gap: var(--space-2);
}

.team-card {
  border: 1px solid #d5deec;
  border-top: 3px solid var(--color-professional);
  padding: var(--space-3);
  background: #ffffff;
}

.team-role {
  color: var(--color-professional);
  font-weight: 600;
  margin: 4px 0 var(--space-1);
}

.contact-grid {
  display: grid;
  gap: var(--space-3);
}

.profile-section {
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.profile-soft {
  background: linear-gradient(180deg, #edf4ff 0%, #f8fbff 100%);
}

.profile-grid {
  display: grid;
  gap: var(--space-2);
}

.profile-card {
  border: 1px solid #d5e1f0;
  border-top: 3px solid var(--color-accent);
  border-radius: 10px;
  background: #fff;
  padding: var(--space-3);
  box-shadow: 0 12px 28px rgba(9, 35, 73, 0.07);
}

.profile-card h3 {
  margin-bottom: 10px;
  color: var(--color-professional);
}

.profile-card ul {
  display: grid;
  gap: 8px;
}

.profile-card li {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-inline-start: 0;
  color: var(--color-text-muted);
}

.profile-card li::before {
  content: "";
  position: static;
  margin-top: 0.62em;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.profile-card-wide {
  max-width: 1000px;
}

.contact-card,
.form-card {
  border: 1px solid #d1dbea;
  border-top: 3px solid var(--color-professional);
  background: #fff;
  padding: var(--space-3);
  box-shadow: 0 8px 18px rgba(8, 34, 68, 0.05);
}

.contact-card h3,
.form-card h3 {
  margin-bottom: var(--space-2);
}

.contact-list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  justify-items: center;
}

.contact-list strong {
  color: var(--color-professional);
  font-size: 0.95rem;
}

.contact-value {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
  font-family: "Inter", "Cairo", sans-serif;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.map-wrap {
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.field {
  margin-bottom: var(--space-2);
}

.field:last-of-type {
  margin-bottom: var(--space-3);
}

.field label {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c8d4df;
  padding: 10px 12px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border-radius: 2px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-professional);
  box-shadow: 0 0 0 3px rgba(17, 17, 132, 0.08);
  outline: none;
}

.field-message {
  display: block;
  min-height: 20px;
  color: var(--color-error);
  font-size: 0.84rem;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #bc7b69;
  background: #fffdfc;
}

.field.valid input,
.field.valid select,
.field.valid textarea {
  border-color: #8fb79d;
}

.field-split {
  display: grid;
  gap: var(--space-2);
}

.field input::placeholder,
.field textarea::placeholder {
  text-align: center;
}

.field input[type="tel"],
.field input[type="email"] {
  direction: ltr;
  text-align: center;
}

.form-status {
  min-height: 24px;
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-weight: 600;
}

.form-status.success {
  color: var(--color-success);
}

.form-status.error {
  color: var(--color-error);
}

.site-footer {
  background: linear-gradient(160deg, #0a2846 0%, #12355f 54%, #1e4a88 100%);
  color: #d7e2ea;
  padding-top: var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  justify-items: center;
  text-align: center;
}

.footer-brand {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.site-footer h4 {
  color: #ffffff;
  margin-bottom: var(--space-1);
}

.site-footer a,
.site-footer li,
.site-footer p {
  color: #d7e2ea;
}

.site-footer a {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(215, 226, 234, 0.3);
  padding-block: var(--space-2);
  font-size: 0.9rem;
}

.hero-panel,
.about-visual,
.idea-slideshow,
.profile-card,
.team-card,
.contact-card,
.form-card,
.sponsor-item,
.footer-grid > div {
  transition: transform 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease, background-color 0.36s ease;
}

.hero-panel:hover,
.about-visual:hover,
.idea-slideshow:hover,
.profile-card:hover,
.team-card:hover,
.contact-card:hover,
.form-card:hover,
.sponsor-item:hover,
.footer-grid > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px rgba(12, 41, 83, 0.13);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (min-width: 760px) {
  .header-inner {
    grid-template-columns: minmax(290px, auto) auto 1fr;
    row-gap: 0;
  }

  .brand-block {
    grid-column: auto;
  }

  .field-split {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }

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

  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 759px) {
  .section {
    padding-block: 44px;
  }

  .container {
    width: min(100% - 20px, var(--container-max));
  }

  .site-header .container {
    width: min(100% - 20px, var(--header-max));
  }

  .site-header {
    padding: 8px 0;
    backdrop-filter: none;
  }

  .header-inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "tools tools";
    justify-items: stretch;
    align-items: center;
    gap: 8px 10px;
    padding: 8px;
    border-radius: 18px;
    overflow: visible;
  }

  .brand-block {
    grid-area: brand;
    grid-column: auto;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .brand-logo-shell {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-name {
    font-size: clamp(0.78rem, 3.3vw, 0.95rem);
    line-height: 1.1;
    letter-spacing: 0.08em;
  }

  .brand-tagline {
    display: none;
  }

  .main-nav {
    grid-area: nav;
    grid-column: auto;
    justify-self: end;
    align-self: center;
    position: relative;
    width: auto;
    display: flex;
    justify-content: flex-end;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 11px;
  }

  .nav-list {
    position: fixed;
    top: 116px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 20px), 430px);
    min-width: 0;
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(9, 30, 66, 0.2);
    padding: 8px;
    gap: 4px;
    z-index: 930;
  }

  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .header-tools {
    grid-area: tools;
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    justify-self: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    padding: 6px;
    border-radius: 14px;
  }

  .lang-switcher {
    min-width: 76px;
    height: 38px;
    flex: 0 0 76px;
    justify-content: space-between;
    gap: 0;
    padding-inline: 10px 8px;
  }

  .tool-label {
    display: none;
  }

  .theme-toggle {
    min-width: 74px;
    height: 38px;
    padding-inline: 10px;
    font-size: 0.78rem;
    flex: 0 0 auto;
  }

  .lang-select {
    min-width: 0;
    height: 100%;
    width: 54px;
    font-size: 0.78rem;
    padding-inline: 4px 14px;
  }

  .header-cta {
    min-width: 0;
    width: auto;
    min-height: 38px;
    padding-inline: 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex: 1 1 auto;
  }

  .hero {
    min-height: auto;
  }

  .hero.section {
    padding-block: 58px 52px;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero-panel {
    max-width: none;
    padding: 18px;
    border-radius: 10px;
    text-align: start;
  }

  .idea-slideshow {
    min-height: 240px;
  }

  .hero-content h1 {
    font-size: clamp(1.45rem, 6.4vw, 1.95rem);
  }

  .hero-text {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .sponsor-item {
    flex-basis: clamp(120px, 34vw, 180px);
    height: 108px;
  }

  .sponsor-marquee {
    --sponsor-gap: 12px;
    --sponsor-height: 132px;
    --sponsor-duration: 28s;
  }

  .sponsor-marquee::before,
  .sponsor-marquee::after {
    width: 28px;
  }

  .profile-card {
    border-radius: 12px;
    padding: 18px 16px;
  }

  .profile-card li {
    justify-content: flex-start;
    text-align: start;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .service-row,
  .team-card,
  .contact-card,
  .form-card {
    border-radius: 10px;
  }

  .map-wrap iframe {
    height: 220px;
  }

  .team-card,
  .contact-card,
  .form-card {
    padding: 18px 16px;
  }
}

@media (min-width: 980px) {
  .header-inner {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: stretch;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    justify-self: stretch;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(196, 211, 230, 0.96);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 246, 255, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    justify-content: center;
    backdrop-filter: none;
  }

  .header-tools {
    justify-self: end;
    flex-shrink: 0;
  }

  .hero-grid {
    grid-template-columns: 1.45fr 0.9fr;
    align-items: end;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-4);
    position: relative;
  }

  .services-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: calc(50% - 1px);
    width: 1px;
    background: #d6dfed;
    pointer-events: none;
  }

  .about-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
  }

  .team-grid {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
  }
}

@media (min-width: 980px) and (max-width: 1380px) {
  .header-inner {
    grid-template-columns: minmax(320px, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    row-gap: 14px;
  }

  .brand-block {
    grid-area: brand;
    grid-column: auto;
  }

  .main-nav {
    grid-area: nav;
  }

  .header-tools {
    grid-area: tools;
  }

  .nav-list {
    width: 100%;
  }
}

main section {
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .header-inner {
    animation: none;
  }

  .btn,
  .site-header,
  .header-inner,
  .field input,
  .field select,
  .field textarea,
  .service-row,
  .idea-slide,
  .idea-dot {
    transition: none;
  }

  .sponsor-track {
    animation: none;
  }

  .page-loader__backdrop,
  .page-loader__grid,
  .page-loader__logo,
  .page-loader__ring,
  .page-loader__spark,
  .page-loader__line span,
  .page-loader__loading-text {
    animation: none;
  }
}

html[data-theme="dark"] {
  --color-bg: #0f1725;
  --color-bg-alt: #152033;
  --color-text: #e6eef8;
  --color-text-muted: #b5c4d6;
  --color-border: #2c3c54;
  --color-professional: #8fb7ff;
  --color-accent: #f39a52;
  --color-accent-soft: #ffae6b;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .nav-list,
html[data-theme="dark"] .brand-block,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .sponsor-marquee,
html[data-theme="dark"] .sponsor-item,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .about-visual,
html[data-theme="dark"] .table-shell,
html[data-theme="dark"] .stat {
  background: #1a263a;
  border-color: #2f435f;
}

html[data-theme="dark"] .services,
html[data-theme="dark"] .contact,
html[data-theme="dark"] .team,
html[data-theme="dark"] .sponsors,
html[data-theme="dark"] .profile-section,
html[data-theme="dark"] .profile-soft {
  background: #131d2e;
}

html[data-theme="dark"] .sponsor-marquee::before {
  background: linear-gradient(90deg, #1a263a 0%, rgba(26, 38, 58, 0) 100%);
}

html[data-theme="dark"] .sponsor-marquee::after {
  background: linear-gradient(270deg, #1a263a 0%, rgba(26, 38, 58, 0) 100%);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .theme-toggle {
  background: #101929;
  color: #e6eef8;
  border-color: #365074;
}

html[data-theme="dark"] .lang-select {
  background: transparent;
  color: #e6eef8;
  border-color: transparent;
}

html[data-theme="dark"] .brand-logo-shell,
html[data-theme="dark"] .lang-switcher,
html[data-theme="dark"] .nav-toggle {
  background: #101929;
  border-color: #365074;
}

html[data-theme="dark"] .header-tools {
  background: linear-gradient(180deg, rgba(37, 53, 81, 0.95) 0%, rgba(26, 38, 58, 0.95) 100%);
  border-color: #365074;
}

html[data-theme="dark"] .tool-label,
html[data-theme="dark"] .brand-tagline {
  color: #dce8f9;
}

html[data-theme="dark"] .profile-card {
  background: #1a263a;
  border-color: #2f435f;
}

html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .nav-list a,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .lang-select {
  color: #e6eef8;
}

html[data-theme="dark"] .idea-dots {
  background: #1a263a;
  border-top-color: #2f435f;
}

html[data-theme="dark"] .idea-dot {
  background: #48608a;
}

html[data-theme="dark"] .nav-list a:hover,
html[data-theme="dark"] .nav-list a:focus-visible {
  background: #22324b;
}
