/* ═══════════════════════════════════════════════════════════
   Coming Soon — American University of the Emirates Corp
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────── */
:root {
  --deep-blue:   #120a8f;
  --dark-purple: #22114a;
  --lavender:    #E0DEFF;
  --bg-base:     #06030f;

  --card-bg:      rgba(12, 7, 48, 0.58);
  --card-border:  rgba(224, 222, 255, 0.13);
  --card-glow:    rgba(18, 10, 143, 0.40);

  --font: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────────────────── */
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--lavender);
  background-color: var(--bg-base);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background canvas ──────────────────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Ambient glow orb ───────────────────────────────────── */
.glow-orb {
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(760px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(18, 10, 143, 0.50) 0%,
    rgba(34, 17, 74, 0.25) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  animation: orb-breathe 5.5s ease-in-out infinite;
}

@keyframes orb-breathe {
  0%,  100% { scale: 1;    opacity: 0.75; }
  50%       { scale: 1.18; opacity: 1;    }
}

/* ── Page wrapper ───────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  position: relative;
  width: min(560px, 100%);
  background: var(--card-bg);
  backdrop-filter: blur(28px) saturate(1.7) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.7) brightness(1.05);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(224, 222, 255, 0.04),
    0 4px  16px rgba(6, 3, 15, 0.50),
    0 20px 60px rgba(6, 3, 15, 0.70),
    0 0   80px rgba(18, 10, 143, 0.28),
    inset 0 1px 0 rgba(224, 222, 255, 0.14);
  overflow: hidden;
  animation: card-enter 0.9s var(--ease-out-expo) both;
}

@keyframes card-enter {
  from {
    opacity: 0;
    translate: 0 28px;
    scale: 0.96;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* Top edge shimmer */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(224, 222, 255, 0.10) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

/* Top line highlight */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(224, 222, 255, 0.55),
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

/* Inner top-radial glow */
.card-inner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% -10%,
    rgba(18, 10, 143, 0.35) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Card content ───────────────────────────────────────── */
.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.75rem 2.75rem 2.5rem;
  gap: 0;
}

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 1.1rem 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lavender);
  background: rgba(18, 10, 143, 0.55);
  border: 1px solid rgba(224, 222, 255, 0.20);
  margin-bottom: 1.65rem;
  user-select: none;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6affa0;
  box-shadow: 0 0 8px 2px rgba(106, 255, 160, 0.55);
  flex-shrink: 0;
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,  100% { opacity: 1;   box-shadow: 0 0 8px 2px rgba(106, 255, 160, 0.55); }
  50%       { opacity: 0.4; box-shadow: 0 0 4px 1px rgba(106, 255, 160, 0.25); }
}

/* ── University name ────────────────────────────────────── */
.university-name {
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow:
    0 2px 24px rgba(18, 10, 143, 0.70),
    0 0   60px rgba(18, 10, 143, 0.35);
  margin-bottom: 1.6rem;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 130px;
  margin-bottom: 1.65rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(224, 222, 255, 0.32),
    transparent
  );
}

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(224, 222, 255, 0.40);
  flex-shrink: 0;
}

/* ── Powered-by section ─────────────────────────────────── */
.powered-section {
  width: 100%;
  margin-bottom: 2rem;
}

.powered-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(224, 222, 255, 0.50);
  margin-bottom: 1.1rem;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mithaq-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  /* cream SVG fill (#f4f4db) reads perfectly on dark bg */
  filter:
    drop-shadow(0 2px 18px rgba(18, 10, 143, 0.55))
    drop-shadow(0 0  40px rgba(224, 222, 255, 0.12));
  transition: filter 0.35s ease;
}

.mithaq-logo:hover {
  filter:
    drop-shadow(0 4px 28px rgba(224, 222, 255, 0.30))
    drop-shadow(0 0  50px rgba(18, 10, 143, 0.65));
}

/* ── Contact section ────────────────────────────────────── */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  width: 100%;
  max-width: 300px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--lavender);
  text-decoration: none;
  background: rgba(224, 222, 255, 0.05);
  border: 1px solid rgba(224, 222, 255, 0.09);
  transition:
    background    0.22s ease,
    border-color  0.22s ease,
    color         0.22s ease,
    transform     0.18s ease,
    box-shadow    0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #ffffff;
  background: rgba(224, 222, 255, 0.10);
  border-color: rgba(224, 222, 255, 0.26);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(18, 10, 143, 0.45);
  outline: none;
}

.contact-link:active {
  transform: translateY(0);
}

.contact-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.contact-link:hover .contact-icon,
.contact-link:focus-visible .contact-icon {
  opacity: 1;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 560px) {
  .card-content {
    padding: 2.25rem 2rem 2rem;
  }

  .mithaq-logo {
    max-width: 260px;
  }

  .contact-section {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .card {
    border-radius: 22px;
  }

  .card-content {
    padding: 2rem 1.5rem 1.75rem;
  }

  .university-name {
    font-size: 1.2rem;
  }

  .mithaq-logo {
    max-width: 220px;
  }
}

@media (max-width: 320px) {
  .card-content {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .university-name {
    font-size: 1.1rem;
  }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
