/* Attahadi University — Under Development */
:root {
  --blue-deep: #0a2d6b;
  --blue-mid: #1a4fa3;
  --blue-light: #3d7dd4;
  --red: #c8102e;
  --red-soft: #e8354f;
  --white: #ffffff;
  --off-white: #f4f7fc;
  --text-muted: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --font: "Cairo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  background: linear-gradient(145deg, var(--blue-deep) 0%, var(--blue-mid) 45%, #0f3d8a 100%);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Identity bar — blue to red gradient (no white) */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 100;
  background: linear-gradient(
    90deg,
    var(--blue-deep) 0%,
    var(--blue-mid) 25%,
    var(--blue-light) 45%,
    #6b3a6e 60%,
    #a82845 80%,
    var(--red) 100%
  );
}

/* Decorative background */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(200, 16, 46, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(61, 125, 212, 0.2) 0%, transparent 35%);
}

.bg-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* White logo — no light background */
.logo-wrap {
  padding: 0.5rem 1rem 1.5rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.logo {
  display: block;
  max-width: min(420px, 88vw);
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

/* Hero */
.hero {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.15s both;
}

.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.45);
}

.title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* Countdown */
.countdown-section {
  width: 100%;
  animation: fadeUp 0.8s ease 0.3s both;
}

.countdown-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--off-white);
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.25rem;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
  padding: 1.1rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.countdown-unit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.countdown-value {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  font-family: "Cairo", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "lnum" 1;
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: embed;
}

.countdown-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.45rem;
  direction: rtl;
}

.countdown-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-soft);
  padding: 0 0.15rem;
  align-self: center;
  margin-bottom: 1.2rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.launch-date {
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
}

.launch-date time {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.25rem 0.75rem;
  background: rgba(200, 16, 46, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-variant-numeric: lining-nums;
  direction: ltr;
  unicode-bidi: embed;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  animation: fadeUp 0.8s ease 0.45s both;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

#year {
  font-variant-numeric: lining-nums;
}

/* Launch reached state */
.countdown--done .countdown-value {
  color: #ffd700;
}

.countdown--done .countdown-label::after {
  content: " 🎉";
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.countdown-unit--tick {
  animation: pulse 0.35s ease;
}

/* Responsive */
@media (max-width: 520px) {
  .logo-wrap {
    padding: 0.25rem 0.5rem 1rem;
  }

  .countdown-unit {
    min-width: 4.25rem;
    padding: 0.85rem 0.5rem;
  }

  .countdown-sep {
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
  }

  .countdown-name {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
