/* ==========================================================================
   Under Construction Page - Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:            #f5f8fb;
  --surface:       #ffffff;
  --ink:           #10243a;
  --muted:         #5c7288;
  --accent:        #1c6b8c;
  --accent-2:      #2f9bb5;
  --accent-soft:   #e9f2f7;
  --line:          #e3eaf1;
  --shadow:        0 24px 60px -30px rgba(16, 36, 58, .28);

  --font-main: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;

  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);

  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%,   rgba(47, 155, 181, .10), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(28, 107, 140, .10), transparent 45%);
  background-repeat: no-repeat;
  background-attachment: fixed;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.card {
  width: 100%;
  max-width: 640px;
  text-align: center;

  padding: 56px 44px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   4. Status badge + gear icon
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 16px;
  margin-bottom: 22px;

  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.gear {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  animation: spin 16s linear infinite;
}

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
.title {
  font-size: clamp(1.75rem, 5.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.subtitle {
  max-width: 42ch;
  margin: 14px auto 0;
  font-size: clamp(.95rem, 2.6vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.9;
  color: var(--muted);
}

.divider {
  width: 64px;
  height: 3px;
  margin: 32px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.title-en {
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.subtitle-en {
  max-width: 48ch;
  margin: 10px auto 0;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. Progress indicator
   -------------------------------------------------------------------------- */
.progress {
  width: min(260px, 100%);
  height: 5px;
  margin: 40px auto 0;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: load 2.6s cubic-bezier(.65, .05, .36, 1) infinite;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 22px 20px 28px;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
  animation: fade 1s ease .7s both;
}

.year {
  unicode-bidi: isolate;
}

/* --------------------------------------------------------------------------
   8. Animations
   -------------------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes load {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}

.reveal {
  animation: rise .75s cubic-bezier(.22, .61, .36, 1) both;
}

.reveal-1 { animation-delay: .08s; }
.reveal-2 { animation-delay: .16s; }
.reveal-3 { animation-delay: .24s; }
.reveal-4 { animation-delay: .32s; }
.reveal-5 { animation-delay: .40s; }

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .card { padding: 48px 34px 44px; }
}

@media (max-width: 560px) {
  .stage { padding: 32px 16px; }

  .card {
    padding: 40px 22px 36px;
    border-radius: 20px;
  }

  .divider { margin: 26px auto; }
  .progress { margin-top: 32px; }
}

@media (max-width: 360px) {
  .card { padding: 34px 18px 32px; }
  .badge { font-size: .75rem; }
}

/* --------------------------------------------------------------------------
   10. Accessibility - reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .footer,
  .gear,
  .progress span {
    animation: none;
  }

  .reveal { opacity: 1; transform: none; }
  .footer { opacity: 1; }
  .progress span { width: 100%; }
}
