/* =========================================
   FX DIGITAL - FUTURISTIC WEBSITE
   Dark Navy | Neon Purple | Electric Blue
========================================= */

:root {
  --fx-bg: #080b18;
  --fx-panel: #11182b;
  --fx-panel-light: #19233b;
  --fx-purple: #a855f7;
  --fx-blue: #38bdf8;
  --fx-pink: #e879f9;
  --fx-white: #f8fafc;
  --fx-muted: #cbd5e1;
  --fx-border: rgba(168, 85, 247, 0.25);
}

/* Global */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--fx-bg);
  color: var(--fx-white);
  overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
  font-family: inherit;
}

/* Animated background */

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -5;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(124, 58, 237, 0.20),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 45%,
      rgba(14, 165, 233, 0.15),
      transparent 35%
    ),
    radial-gradient(
      circle at 50% 85%,
      rgba(217, 70, 239, 0.10),
      transparent 35%
    );

  animation: fxBackgroundMove 18s ease-in-out infinite alternate;
}

@keyframes fxBackgroundMove {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  100% {
    transform: translate3d(2%, 2%, 0) scale(1.08);
  }
}

/* Typography */

h1,
h2,
h3 {
  color: var(--fx-white);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  line-height: 1.12;
}

p {
  color: var(--fx-muted);
  line-height: 1.8;
}

/* Gradient text */

.fx-gradient-text {
  color: transparent !important;

  background: linear-gradient(
    100deg,
    #c084fc 0%,
    #60a5fa 35%,
    #f0abfc 65%,
    #c084fc 100%
  );

  background-size: 250% auto;
  background-clip: text;
  -webkit-background-clip: text;

  animation: fxGradientFlow 7s linear infinite;
}

@keyframes fxGradientFlow {
  to {
    background-position: 250% center;
  }
}

/* Hero subtitle */

.fx-hero-subtitle {
  max-width: 760px;
  margin: 22px auto;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
}

.fx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 9px 15px;
  margin-bottom: 18px;

  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.10);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fx-hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7;
}

/* Floating decorative lights */

.fx-orb {
  position: fixed;
  z-index: -2;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.15;
  pointer-events: none;

  animation: fxFloat 12s ease-in-out infinite alternate;
}

.fx-orb-purple {
  top: 20%;
  left: -100px;
  background: #9333ea;
}

.fx-orb-blue {
  right: -100px;
  top: 55%;
  background: #0284c7;
  animation-delay: -5s;
}

@keyframes fxFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(35px, -45px, 0);
  }
}

/* Cards */

.fx-modern-card,
.service-card,
.project-card,
.feature-card,
.card {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.fx-modern-card:hover,
.service-card:hover,
.project-card:hover,
.feature-card:hover,
.card:hover {
  transform: translateY(-7px);

  border-color: rgba(168, 85, 247, 0.65);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.22),
    0 0 25px rgba(124, 58, 237, 0.13);
}

/* Buttons */

button,
.btn,
a.button,
.cta-button {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

button:hover,
.btn:hover,
a.button:hover,
.cta-button:hover {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

button:active,
.btn:active,
a.button:active,
.cta-button:active {
  transform: scale(0.97);
}

/* Scroll reveal */

.fx-reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fx-reveal.fx-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Rotating slogans */

.fx-ticker {
  display: inline-block;
  color: #c4b5fd;
  font-weight: 700;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.fx-ticker.fx-changing {
  opacity: 0;
  transform: translateY(8px);
}

/* Hero entrance */

.fx-hero-enter {
  animation: fxHeroEnter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fxHeroEnter {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Links */

.fx-modern-link {
  text-underline-offset: 5px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 4px;
}

/* Images */

img {
  max-width: 100%;
}

/* Mobile */

@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .fx-orb {
    width: 140px;
    height: 140px;
    filter: blur(55px);
  }

  .fx-modern-card:hover,
  .service-card:hover,
  .project-card:hover,
  .feature-card:hover,
  .card:hover {
    transform: translateY(-3px);
  }

  .fx-hero-subtitle {
    font-size: 1rem;
  }
}

/* Accessibility */

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

  .fx-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Footer: tulisan tepat di tengah */
body > footer.footer {
  text-align: center;
}

body > footer.footer > .container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

/* FX DIGITAL - FOOTER RATA TENGAH */
body > footer.footer {
    text-align: center;
}

body > footer.footer > .container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-sizing: border-box;
}

