/*
  Four Projects — Maintenance Page Styles
  - Modern gradient background with animated noise and aurora orbs
  - Glassmorphism card with soft shadows
  - Subtle micro-interactions and reduced-motion support
*/

:root {
  --bg-start: #000000;
  --bg-end: #000000;
  --glass: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #e9edf7;
  --muted: #a6b0c3;
  --brand: #7c5cff; /* primary accent */
  --brand-2: #00e0ff; /* cyan accent */
  --success: #37ff9f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  --grid: rgba(255, 255, 255, 0.06);
  --grid-strong: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: #000000;
  overflow-x: hidden;
}

/* subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1.2px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: .35;
}

.orb {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(30px) saturate(130%);
  opacity: 0.3;
  animation: float 28s ease-in-out infinite;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
              radial-gradient(closest-side, rgba(230, 236, 255, 0.42), rgba(230, 236, 255, 0) 70%);
}

.orb-1 { width: 38vmax; height: 38vmax; top: 6vh; left: -10vw; animation-delay: -8s; }
.orb-2 { width: 30vmax; height: 30vmax; bottom: -6vh; right: -8vw; animation-direction: alternate-reverse; }

@keyframes float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.02); }
}

.bg::before,
.bg::after {
  content: '';
  position: fixed;
  inset: -20vmax;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(40vmax 30vmax at 15% 70%, rgba(255, 255, 255, 0.16), transparent 60%),
              radial-gradient(35vmax 25vmax at 85% 30%, rgba(230, 236, 255, 0.14), transparent 60%);
  filter: blur(40px) saturate(120%);
  animation: aurora 14s ease-in-out infinite alternate;
}

.bg::after {
  animation-duration: 18s;
  animation-delay: -5s;
  transform: scale(1.05);
}

@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -1%, 0) scale(1.03); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.06); }
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  /*width: 40px;*/
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  /*background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(0, 224, 255, 0.25));*/
  /*border: 1px solid rgba(255, 255, 255, 0.18);*/
  box-shadow: var(--shadow);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name { font-weight: 700; }
.brand-tag { color: var(--muted); font-size: 12px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}

.link:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.chip {
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
}

.container {
  min-height: calc(100dvh - 140px);
  display: grid;
  place-items: stretch;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 860px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,0.35), rgba(230,236,255,0.3), rgba(255,255,255,0.35));
  filter: blur(30px);
  opacity: 0.12;
  z-index: -1;
  animation: rotate 18s linear infinite;
}

/* holographic border sheen */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), rgba(230,236,255,0.35), rgba(255,255,255,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .35;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--success), #1fd87f);
  box-shadow: 0 0 0 0 rgba(55, 255, 159, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 255, 159, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(55, 255, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 255, 159, 0); }
}

.title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}

.grad {
  background: linear-gradient(90deg, #ffffff, #a3b0ff, #7c5cff, #00e0ff);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(124, 92, 255, 0.18));
}

.subtitle {
  color: var(--muted);
  font-size: clamp(14px, 2.1vw, 18px);
  line-height: 1.7;
  margin: 0 0 24px;
}

.progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
}

.bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  filter: saturate(120%);
  animation: load 2.6s ease-in-out infinite;
}

.glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(120px 60px at var(--x, 0%) 50%, rgba(124, 92, 255, 0.35), transparent 60%);
  mix-blend-mode: screen;
  animation: sweep 5.2s ease-in-out infinite;
}

@keyframes load {
  0%, 100% { width: 28%; }
  50% { width: 74%; }
}

@keyframes sweep {
  0% { --x: 0%; opacity: .0; }
  15% { opacity: .9; }
  50% { --x: 100%; opacity: .4; }
  85% { opacity: .0; }
  100% { --x: 0%; opacity: .0; }
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  will-change: transform;
}

.btn.primary {
  color: #0b0b12;
  background: linear-gradient(180deg, #ffffff, #dfe6ff);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 10px 22px rgba(124, 92, 255, 0.25), inset 0 -10px 20px rgba(124, 92, 255, 0.14);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: var(--muted);
  justify-content: center;
}

/* Minimal hero structure (bottom-left stacked title) */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 180px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px 24px 12px;
  border-radius: 20px;
  overflow: hidden;
}

.display {
  font-weight: 800;
  font-size: clamp(40px, 8.5vw, 104px);
  line-height: .88;
  letter-spacing: -0.02em;
  margin: 0;
  z-index: 1;
}

.kicker {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 20px);
  z-index: 1;
}

/* hero visual inside the card (morphing blobs + sheen) */
.hero-visual {
  position: absolute;
  top: -12%;
  right: -8%;
  width: min(56%, 520px);
  height: min(56%, 520px);
  filter: blur(6px) saturate(120%);
  opacity: .9;
  z-index: 0;
}

.blob {
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 40% 60%/42% 40% 60% 58%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 70% 70%, rgba(230, 236, 255, 0.6), rgba(230, 236, 255, 0) 55%);
  mix-blend-mode: screen;
}

.blob.b1 { transform: translate3d(-6%, 0, 0) scale(1.05); animation: morph1 18s ease-in-out infinite; }
.blob.b2 { transform: translate3d(6%, 4%, 0) scale(0.95); animation: morph2 22s ease-in-out infinite; opacity: .8; }
.blob.b3 { transform: translate3d(0, -6%, 0) scale(0.9); animation: morph3 26s ease-in-out infinite; opacity: .7; }

@keyframes morph1 {
  0%   { border-radius: 42% 58% 40% 60%/42% 40% 60% 58%; transform: translate3d(-6%, 0, 0) scale(1.05) rotate(0deg); }
  50%  { border-radius: 60% 40% 58% 42%/60% 58% 42% 40%; transform: translate3d(-2%, -2%, 0) scale(1.02) rotate(6deg); }
  100% { border-radius: 42% 58% 40% 60%/42% 40% 60% 58%; transform: translate3d(-6%, 0, 0) scale(1.05) rotate(0deg); }
}

@keyframes morph2 {
  0%   { border-radius: 58% 42% 60% 40%/40% 60% 42% 58%; transform: translate3d(6%, 4%, 0) scale(0.95) rotate(0deg); }
  50%  { border-radius: 44% 56% 42% 58%/58% 42% 56% 44%; transform: translate3d(2%, 2%, 0) scale(0.98) rotate(-8deg); }
  100% { border-radius: 58% 42% 60% 40%/40% 60% 42% 58%; transform: translate3d(6%, 4%, 0) scale(0.95) rotate(0deg); }
}

@keyframes morph3 {
  0%   { border-radius: 50% 50% 58% 42%/58% 42% 50% 50%; transform: translate3d(0, -6%, 0) scale(0.9) rotate(0deg); }
  50%  { border-radius: 60% 40% 46% 54%/46% 54% 40% 60%; transform: translate3d(-2%, -4%, 0) scale(0.94) rotate(10deg); }
  100% { border-radius: 50% 50% 58% 42%/58% 42% 50% 50%; transform: translate3d(0, -6%, 0) scale(0.9) rotate(0deg); }
}

.sheen {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,0.0) 0deg, rgba(255,255,255,0.25) 30deg, rgba(255,255,255,0.0) 60deg);
  mix-blend-mode: soft-light;
  animation: sweepSheen 8s linear infinite;
  opacity: .5;
}

@keyframes sweepSheen {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* decorative grid inside card */
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
    radial-gradient(600px 300px at 20% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(600px 300px at 80% 100%, rgba(0, 224, 255, 0.16), transparent 60%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  mask-image: radial-gradient(180% 100% at 50% 0%, #000, rgba(0,0,0,0.05));
  opacity: 0.35;
  pointer-events: none;
  animation: gridshift 22s linear infinite;
  z-index: 0;
}

@keyframes gridshift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 32px 0, 0 32px, 0 0, 0 0; }
}

/* Responsive */
@media (max-width: 720px) {
  .site-header, .site-footer { padding: 16px; }
  .card { padding: 22px; }
  .header-actions .link { display: none; }
}

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


