:root {
  color-scheme: dark;
  --navy-1000: #04111b;
  --navy-950: #061725;
  --navy-900: #092539;
  --navy-800: #103e5b;
  --blue-600: #1498d2;
  --blue-500: #2baee4;
  --blue-300: #79cef0;
  --blue-100: #def4fc;
  --white: #fff;
  --page: #061725;
  --surface: #0a2233;
  --surface-soft: #0d2a3e;
  --surface-contrast: #102f45;
  --text: #f4f9fc;
  --muted: #9bb0bf;
  --line: rgba(255, 255, 255, 0.12);
  --field: #0b2638;
  --field-line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  --story-bg: #071b2a;
  --story-glow: rgba(43, 174, 228, 0.18);
  --container: 1360px;
  --font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --page: #fff;
  --surface: #f5f9fb;
  --surface-soft: #eaf4f8;
  --surface-contrast: #fff;
  --text: #092238;
  --muted: #5a7080;
  --line: rgba(9, 34, 56, 0.14);
  --field: #fff;
  --field-line: #d4e2e9;
  --shadow: 0 22px 65px rgba(5, 31, 50, 0.1);
  --story-bg: #edf7fb;
  --story-glow: rgba(43, 174, 228, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  transition: color 260ms ease, background-color 260ms ease;
}

body.drawer-open {
  overflow: hidden;
}

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

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

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

figure, h1, h2, h3, p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 92px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy-950);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid rgba(43, 174, 228, 0.65);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: 84px;
  color: var(--text);
  background: rgba(6, 23, 37, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(9, 34, 56, 0.08);
  box-shadow: 0 8px 30px rgba(5, 31, 50, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  height: 84px;
  gap: 42px;
}

.logo-lockup {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.brand-logo {
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo--university,
.brand-logo--faculty {
  width: 42px;
  height: 42px;
}

.brand-logo--vatel {
  width: 82px;
  height: 46px;
}

.brand-logo--vatel img {
  transform: scale(1.52);
}

.logo-divider {
  width: 1px;
  height: 27px;
  background: rgba(9, 34, 56, 0.14);
}

.header-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding-block: 10px;
  color: var(--text);
  transition: color 180ms ease;
}

.desktop-nav a:hover {
  color: var(--blue-500);
}

.desktop-nav a::after {
  position: absolute;
  inset: auto 0 3px;
  height: 2px;
  background: var(--blue-500);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.theme-toggle,
.menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: currentColor;
  background: rgba(4, 18, 30, 0.16);
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 180ms ease;
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .menu-toggle {
  border-color: rgba(9, 34, 56, 0.14);
  background: #f3f8fa;
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle svg,
.menu-toggle svg,
.drawer-close svg {
  width: 20px;
  height: 20px;
}

.theme-icon {
  display: none;
}

html[data-theme="dark"] .theme-icon--sun,
html:not([data-theme]) .theme-icon--sun {
  display: grid;
}

html[data-theme="light"] .theme-icon--moon {
  display: grid;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  z-index: 121;
  inset: 0;
  height: 100svh;
  background: rgba(2, 12, 20, 0.66);
  opacity: 0;
  transition: opacity 220ms ease;
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  z-index: 130;
  inset: 0 0 auto auto;
  display: flex;
  width: min(86vw, 370px);
  height: 100svh;
  flex-direction: column;
  padding: 22px;
  color: #fff;
  background: var(--navy-950);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.28);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 800;
}

.drawer-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.mobile-drawer nav {
  display: grid;
  margin-top: 28px;
}

.mobile-drawer nav a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 15px;
  font-weight: 700;
}

.mobile-drawer nav a > span {
  color: var(--blue-300);
  font: 700 10px/1 "Segoe UI", Arial, sans-serif;
}

.mobile-drawer nav svg {
  width: 16px;
  height: 16px;
  transform: scaleX(-1);
}

/* Page Main & Hero */
.page-main {
  flex: 1 0 auto;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(132px, 14vw, 170px);
  padding-bottom: clamp(52px, 6vw, 76px);
  background: radial-gradient(circle at 50% 0%, var(--story-glow) 0%, transparent 68%), var(--story-bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 260ms ease, border-color 260ms ease;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.page-title {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}

.page-title-accent {
  display: block;
  width: 64px;
  height: 3px;
  margin: 20px auto 0;
  border-radius: 2px;
  background: var(--blue-500);
}

/* Content Area */
.content-section {
  padding-block: clamp(64px, 8vw, 108px);
}

.content-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(340px, 40vh, 480px);
  padding: 32px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: background-color 260ms ease, border-color 260ms ease;
}

.content-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  padding-top: 70px;
  color: #fff;
  background: #030e17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 70px;
  padding-bottom: 58px;
}

.logo-lockup--footer {
  padding: 7px;
  background: #fff;
}

.footer-main > div:first-child > p {
  max-width: 440px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.9;
}

.footer-main nav,
.footer-actions {
  display: grid;
  align-content: start;
  gap: 15px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.footer-main a:hover {
  color: var(--blue-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

/* Responsive */
@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
    font-size: 11px;
  }
  .header-tools {
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }
  .site-header,
  .header-inner {
    height: 76px;
  }
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .brand-logo--university,
  .brand-logo--faculty {
    width: 34px;
    height: 34px;
  }
  .brand-logo--vatel {
    width: 60px;
    height: 37px;
  }
  .logo-lockup {
    gap: 5px;
    padding: 3px 5px;
  }
  .logo-divider {
    height: 23px;
  }
  .header-tools {
    gap: 5px;
  }
  .theme-toggle,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .page-hero {
    padding-top: 118px;
    padding-bottom: 42px;
  }
  .page-title {
    font-size: clamp(30px, 8.5vw, 38px);
  }
  .content-section {
    padding-block: 48px;
  }
  .content-placeholder {
    min-height: 280px;
    border-radius: 12px;
  }
  .content-placeholder p {
    font-size: 18px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    display: grid;
    gap: 8px;
    text-align: center;
  }
}
