@charset "utf-8";

/* Under construction page */

@font-face {
  font-family: "Lusail-Regular";
  src: url("../fonts/Lusail-Regular.woff") format("woff"),
    url("../fonts/Lusail-Regular.ttf") format("truetype"),
    url("../fonts/Lusail-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --maroon: #8a1538;
  --maroon-dark: #5c0d25;
  --maroon-deep: #3d0818;
  --gold: #c9a45c;
  --gold-soft: #e6d3a8;
  --ink: #2b1a20;
  --muted: #6e5a61;
  --card: #fffdf9;
  --font-head: "Lusail-Regular", "Noto Kufi Arabic", "Tajawal", Arial, sans-serif;
  --font-body: "Tajawal", "Noto Kufi Arabic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0%, #a41d47 0%, transparent 60%),
    linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 55%, var(--maroon-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Islamic 8-point star pattern overlay */
.pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e6d3a8' stroke-width='1.2'%3E%3Cpath d='M40 10l8.3 11.7L62.4 17.6l-4.1 14.1L70 40l-11.7 8.3 4.1 14.1-14.1-4.1L40 70l-8.3-11.7-14.1 4.1 4.1-14.1L10 40l11.7-8.3-4.1-14.1 14.1 4.1z'/%3E%3Crect x='28' y='28' width='24' height='24' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 0l10 10M80 0L70 10M0 80l10-10M80 80L70 70'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  to { background-position: 80px 80px; }
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 24px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border-radius: 20px;
  padding: 48px 48px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(20, 0, 8, .45), 0 0 0 1px rgba(201, 164, 92, .35);
  animation: rise .8s cubic-bezier(.2, .8, .2, 1) both;
}

/* Gold inner frame */
.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 164, 92, .45);
  border-radius: 14px;
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.logo {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-bottom: 20px;
}

.dept {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--muted);
}

.center-name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  line-height: 1.6;
  color: var(--maroon);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px auto;
  max-width: 320px;
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--gold), transparent);
}

.ornament svg {
  fill: var(--gold);
}

.gears {
  position: relative;
  width: 96px;
  height: 72px;
  margin: 0 auto 10px;
}

.gear {
  position: absolute;
  fill: var(--maroon);
}

.gear-lg {
  width: 60px;
  height: 60px;
  right: 6px;
  top: 0;
  animation: spin 8s linear infinite;
}

.gear-sm {
  width: 36px;
  height: 36px;
  left: 8px;
  bottom: 0;
  fill: var(--gold);
  animation: spin 5.3s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.headline {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--ink);
}

.lead {
  margin: 0 auto;
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--muted);
}

.lead-en {
  margin: 10px 0 0;
  font-size: .9rem;
  letter-spacing: .02em;
  color: #9a8a90;
}

.progress {
  position: relative;
  height: 8px;
  max-width: 360px;
  margin: 28px auto 30px;
  background: #f1e7ea;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 75%;
  border-radius: inherit;
  background: linear-gradient(to left, var(--maroon), #b8325c);
  animation: fill 1.6s cubic-bezier(.2, .8, .2, 1) .4s both;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(100%);
  animation: shine 2.2s ease-in-out 2s infinite;
}

@keyframes fill {
  from { width: 0; }
}

@keyframes shine {
  to { transform: translateX(-100%); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 99px;
  background: var(--maroon);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(138, 21, 56, .3);
}

.btn:hover,
.btn:focus-visible {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(138, 21, 56, .4);
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.footer {
  margin-top: 28px;
  font-size: .9rem;
  color: var(--gold-soft);
  opacity: .85;
  text-align: center;
}

@media (max-width: 560px) {
  .card {
    padding: 36px 22px 30px;
    border-radius: 16px;
  }

  .lead {
    font-size: 1rem;
  }

  .lead br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
