/* ==========================================================================
   BANGJEJE.DEV — MAINTENANCE PAGE DESIGN SYSTEM (REFINED)
   ========================================================================== */

:root {
  /* Liquid Color Palette */
  --bg-cobalt: #183de0;
  --bg-indigo: #3e2fe4;
  --bg-violet: #7c1fe5;
  --bg-purple: #9929ea;
  --bg-magenta: #c035e8;

  /* Card Surfaces (20% Dimension Reduction) */
  --card-bg: #ffffff;
  --card-radius: 28px;
  --card-radius-tablet: 24px;
  --card-radius-mobile: 20px;
  --card-shadow: 0 20px 55px -12px rgba(12, 10, 50, 0.26), 0 2px 8px rgba(0, 0, 0, 0.04);
  --card-max-width: 920px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --text-primary: #000000;
  --text-body: #4a5260;
  --text-muted: #6b7280;
  --text-white: #ffffff;

  /* Buttons & Interactivity */
  --btn-bg: #000000;
  --btn-hover-bg: #1f1f24;
  --btn-active-bg: #2b2b32;
  --btn-text: #ffffff;
  --btn-radius: 9999px;
  --focus-ring: #2563eb;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 0.22s;
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-cobalt);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* ==========================================================================
   Smooth Animated Liquid Gradient Background
   ========================================================================== */

.liquid-bg {
  position: fixed;
  inset: -15%;
  width: 130%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #183de0 0%,
    #322fe4 28%,
    #6920e5 55%,
    #9929ea 80%,
    #be33e8 100%
  );
  background-size: 180% 180%;
  animation: liquidFlow 22s ease-in-out infinite alternate;
}

/* Floating organic liquid wave orbs */
.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: screen;
  will-change: transform, border-radius;
}

.liquid-orb-1 {
  top: -8%;
  left: -8%;
  width: 68vw;
  height: 68vh;
  background: radial-gradient(circle at 40% 40%, rgba(30, 80, 255, 0.95) 0%, rgba(30, 80, 255, 0) 65%);
  animation: liquidWave1 18s ease-in-out infinite alternate;
}

.liquid-orb-2 {
  top: 10%;
  right: -12%;
  width: 66vw;
  height: 66vh;
  background: radial-gradient(circle at 50% 50%, rgba(153, 41, 234, 0.9) 0%, rgba(153, 41, 234, 0) 68%);
  animation: liquidWave2 24s ease-in-out infinite alternate;
}

.liquid-orb-3 {
  bottom: -12%;
  left: 15%;
  width: 62vw;
  height: 62vh;
  background: radial-gradient(circle at 45% 55%, rgba(68, 52, 240, 0.9) 0%, rgba(68, 52, 240, 0) 65%);
  animation: liquidWave3 20s ease-in-out infinite alternate;
}

.liquid-orb-4 {
  bottom: 5%;
  right: 8%;
  width: 58vw;
  height: 58vh;
  background: radial-gradient(circle at 50% 50%, rgba(198, 60, 232, 0.85) 0%, rgba(198, 60, 232, 0) 65%);
  animation: liquidWave4 16s ease-in-out infinite alternate;
}

/* Liquid Wave Animations */
@keyframes liquidFlow {
  0% {
    background-position: 0% 25%;
  }
  50% {
    background-position: 100% 75%;
  }
  100% {
    background-position: 25% 100%;
  }
}

@keyframes liquidWave1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50% 50% 50% 50%;
  }
  50% {
    transform: translate(8vw, 6vh) scale(1.12) rotate(35deg);
    border-radius: 42% 58% 65% 35% / 45% 55% 45% 55%;
  }
  100% {
    transform: translate(4vw, -4vh) scale(0.94) rotate(70deg);
    border-radius: 55% 45% 38% 62% / 52% 48% 52% 48%;
  }
}

@keyframes liquidWave2 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50% 50% 50% 50%;
  }
  50% {
    transform: translate(-7vw, 9vh) scale(1.14) rotate(-30deg);
    border-radius: 58% 42% 38% 62% / 48% 52% 48% 52%;
  }
  100% {
    transform: translate(-4vw, -5vh) scale(0.96) rotate(-60deg);
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
  }
}

@keyframes liquidWave3 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 50% 50% 50% 50%;
  }
  50% {
    transform: translate(-6vw, -8vh) scale(1.16);
    border-radius: 62% 38% 55% 45% / 42% 58% 42% 58%;
  }
  100% {
    transform: translate(7vw, 3vh) scale(0.92);
    border-radius: 40% 60% 45% 55% / 58% 42% 58% 42%;
  }
}

@keyframes liquidWave4 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 50% 50% 50% 50%;
  }
  50% {
    transform: translate(-9vw, -5vh) scale(1.1);
    border-radius: 48% 52% 62% 38% / 55% 45% 55% 45%;
  }
  100% {
    transform: translate(4vw, 7vh) scale(1.12);
    border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
  }
}

/* ==========================================================================
   Fine-grain Noise Texture (Procedural SVG, Lightweight)
   ========================================================================== */

.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.038;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ==========================================================================
   Main Maintenance Card Container (Reduced by ~20%)
   ========================================================================== */

.maintenance-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--card-max-width);
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: clamp(1.85rem, 3.2vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.75rem, 3.2vw, 2.75rem);
  transform: translateZ(0);
}

/* ==========================================================================
   Left Column: Maintenance Illustration
   ========================================================================== */

.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.illustration-wrapper {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   Right Column: Content & Brand Hierarchy
   ========================================================================== */

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}


/* Heading: UNDER MAINTENANCE */
.heading {
  font-size: clamp(2.05rem, 3.4vw, 3.15rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 0 0 clamp(0.85rem, 1.4vw, 1.15rem) 0;
}

.heading-line {
  display: block;
}

/* Description Text */
.description {
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.55;
  color: var(--text-body);
  max-width: 380px;
  margin: 0 0 clamp(1.4rem, 2.2vw, 1.85rem) 0;
  font-weight: 450;
}

/* Contact Button */
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.95rem;
  min-height: 46px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) ease,
    transform var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.btn-contact:hover {
  background-color: var(--btn-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.btn-contact:active {
  background-color: var(--btn-active-bg);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet (Medium Screens) */
@media (max-width: 991px) and (min-width: 769px) {
  .maintenance-card {
    border-radius: var(--card-radius-tablet);
    padding: 1.85rem 2rem;
    gap: 1.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .illustration-wrapper {
    max-width: 300px;
  }

  .illustration-img {
    max-height: 350px;
  }


  .heading {
    font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  }

  .description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
}

/* Mobile (Small Screens) */
@media (max-width: 768px) {
  body {
    padding: 1rem;
    align-items: center;
  }

  .maintenance-card {
    grid-template-columns: 1fr;
    border-radius: var(--card-radius-mobile);
    padding: clamp(1.5rem, 5vw, 2.15rem);
    gap: 1.65rem;
    margin: auto;
    max-width: 460px;
    text-align: center;
  }

  .card-media {
    order: 1;
    justify-content: center;
  }

  .illustration-wrapper {
    max-width: 280px;
  }

  .illustration-img {
    max-height: 290px;
    margin: 0 auto;
  }

  .card-content {
    order: 2;
    align-items: center;
  }


  .heading {
    font-size: clamp(1.8rem, 7.5vw, 2.3rem);
    margin-bottom: 0.85rem;
  }

  .description {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    max-width: 320px;
  }

  .btn-contact {
    width: 100%;
    max-width: 260px;
    padding: 0.85rem 1.5rem;
    min-height: 46px;
  }
}

/* Extra-narrow Mobile Screens (< 360px) */
@media (max-width: 359px) {
  body {
    padding: 0.75rem;
  }

  .maintenance-card {
    padding: 1.15rem;
    border-radius: 18px;
    gap: 1.25rem;
  }


  .illustration-wrapper {
    max-width: 220px;
  }

  .illustration-img {
    max-height: 230px;
  }

  .heading {
    font-size: 1.6rem;
  }

  .description {
    font-size: 0.88rem;
  }

  .btn-contact {
    font-size: 0.88rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ==========================================================================
   Accessibility & Reduced Motion Preferences
   ========================================================================== */

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

  .liquid-bg,
  .liquid-orb {
    animation: none !important;
    transform: none !important;
  }
}
