/* ===========================================================
   Daflixx Vanuatu — Design tokens
   Navy/coral/teal system — deliberately not the cream+terracotta
   or near-black+neon defaults.
=========================================================== */
:root {
  --navy: #0A0A0A;
  --navy-deep: #000000;
  --coral: #04AE0B;
  --coral-dark: #038A09;
  --teal: #2ECC40;
  --off-white: #F7F8FA;
  --ink: #12181F;
  --ink-soft: #4A5568;
  --border: #E2E6EB;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }

.text-teal { color: var(--teal); }
.bg-navy { background: rgba(0,0,0,0.55); }
.bg-navy-deep { background: var(--navy-deep); }

/* ===========================================================
   Global alien-tech backdrop — fixed behind the entire site.
   Lives once in main.php; every dark section (navbar, hero,
   footer) is semi-transparent so this shows through consistently
   across every page, not just the homepage.
=========================================================== */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 20%, #0d1f0f 0%, #000000 70%);
}
.page-shell {
  position: relative;
  z-index: 1;
}

.cosmic-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,204,64,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,204,64,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.cosmic-bg::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(46,204,64,0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.star {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  background: #eaffea;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(46,204,64,0.9);
  opacity: 0;
  animation: shoot 5s linear infinite;
}
.star::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 140px;
  height: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(46,204,64,0.9));
}

.star:nth-child(1) { top: 8%;  left: 5%;  animation-delay: 0s;   animation-duration: 4.5s; }
.star:nth-child(2) { top: 22%; left: 55%; animation-delay: 1.6s; animation-duration: 6s; }
.star:nth-child(3) { top: 55%; left: 15%; animation-delay: 3.2s; animation-duration: 5.2s; }
.star:nth-child(4) { top: 65%; left: 70%; animation-delay: 0.8s; animation-duration: 7s; }
.star:nth-child(5) { top: 35%; left: 85%; animation-delay: 4.5s; animation-duration: 5.8s; }

@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0) rotate(140deg); }
  5%   { opacity: 1; }
  25%  { opacity: 1; transform: translate(-260px, 190px) rotate(140deg); }
  35%  { opacity: 0; transform: translate(-320px, 235px) rotate(140deg); }
  100% { opacity: 0; transform: translate(-320px, 235px) rotate(140deg); }
}

@media (prefers-reduced-motion: reduce) {
  .star, .cosmic-bg::after { animation: none; opacity: 0; }
}

/* Navbar — now semi-transparent so the cosmic backdrop shows through */
.navbar-daflixx {
  background: rgba(0,0,0,0.5);
  padding: 1rem 0;
}
.navbar-daflixx .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.navbar-daflixx .nav-link {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  margin: 0 0.5rem;
}
.navbar-daflixx .nav-link:hover,
.navbar-daflixx .nav-link.active {
  color: #fff;
}
.btn-coral {
  background: var(--coral);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.btn-coral:hover { background: var(--coral-dark); color: #fff; }

.btn-outline-light-custom {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 6px;
  padding: 0.55rem 1.3rem;
  font-weight: 500;
}
.btn-outline-light-custom:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Hero — transparent now, so it reveals the global cosmic-bg behind it.
   The dark gradient here just darkens it slightly for text contrast. */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  padding: 5.5rem 0 6rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  max-width: 620px;
}
.hero p.lead {
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  font-size: 1.15rem;
}
.status-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.5rem;
}
.status-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
}
.status-row:last-child { border-bottom: none; }
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 8px;
  box-shadow: 0 0 6px 1px rgba(46,204,64,0.8);
}

/* Sections */
section { padding: 4.5rem 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* Service cards — deliberately not identical rounded shadow cards:
   left border accent + no shadow, differentiated by content weight */
.service-row {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-icon {
  flex: 0 0 48px;
  height: 48px;
  width: 48px;
  border-radius: 8px;
  background: rgba(46,204,64,0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.service-row h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.service-row p { color: var(--ink-soft); margin-bottom: 0; }

/* Portfolio */
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  height: 100%;
  background: #fff;
}
.portfolio-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--teal);
  background: rgba(46,204,64,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Pricing */
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  background: #fff;
  height: 100%;
}
.pricing-card.featured {
  border: 2px solid var(--coral);
  background: #fff;
  position: relative;
}
.pricing-card .price-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pricing-card ul li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.pricing-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* FAQ accordion tweak */
.accordion-button:not(.collapsed) {
  background: rgba(4,174,11,0.08);
  color: var(--navy);
}
.accordion-button:focus { box-shadow: none; border-color: var(--border); }

/* Contact */
.contact-panel {
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 10px;
  padding: 2rem;
}
.form-control, .form-select {
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,204,64,0.15);
}

/* Footer — semi-transparent so the cosmic backdrop shows through */
footer {
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: #fff; }

/* Admin */
.admin-sidebar {
  background: var(--navy-deep);
  min-height: 100vh;
  color: rgba(255,255,255,0.85);
}
.admin-sidebar a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
}

@media (max-width: 767px) {
  .hero { padding: 3.5rem 0 4rem; text-align: left; }
  section { padding: 3rem 0; }
}