/* ===== Ali3N Studios — Shared Styles ===== */
/* Black/red cyberpunk theme with animated enhancements */

:root {
  --bg0: #07070a;
  --bg1: #0b0b10;
  --card: #101018cc;
  --text: #f2f2f6;
  --muted: #b8b8c7;
  --line: #2a2a37;
  --red: #ff2a2a;
  --glow: 0 0 22px rgba(255,42,42,.22);
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 18% 10%, rgba(255,42,42,.12), transparent 55%),
    radial-gradient(900px 540px at 84% 18%, rgba(255,42,42,.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
  overflow-x: hidden;
  animation: pageIn 0.5s ease;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

a { color: inherit; text-decoration: none; }

/* --- Particles canvas (fixed background) --- */
#particles {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

.wrap {
  max-width: var(--max); margin: 0 auto; padding: 24px;
  position: relative; z-index: 1;
}

/* ===== Topbar / Navigation ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: linear-gradient(180deg, rgba(16,16,24,.75), rgba(10,10,14,.65));
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
  position: sticky; top: 14px; z-index: 10;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  letter-spacing: .6px; text-transform: uppercase;
  font-weight: 800; font-size: 14px;
}
.brand a { color: var(--text); }
.logo-img {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid rgba(255,42,42,.35);
  box-shadow: var(--glow); object-fit: cover;
}
.logo {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid rgba(255,42,42,.35);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,42,42,.35), transparent 45%),
    linear-gradient(180deg, rgba(255,42,42,.18), rgba(0,0,0,.2)), #0d0d14;
  box-shadow: var(--glow); position: relative; overflow: hidden;
}
.logo::after {
  content: ""; position: absolute; inset: -2px;
  background: linear-gradient(120deg, transparent, rgba(255,42,42,.35), transparent);
  transform: translateX(-60%);
  animation: sweep 4.5s ease-in-out infinite; opacity: .9;
}
@keyframes sweep {
  0%   { transform: translateX(-70%); }
  45%  { transform: translateX(70%); }
  100% { transform: translateX(70%); }
}

nav {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; font-weight: 600; color: var(--muted);
}
.navlink {
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid transparent; transition: .18s ease;
}
.navlink:hover, .navlink.active {
  color: var(--text);
  border-color: rgba(255,42,42,.25);
  background: rgba(255,42,42,.06);
  box-shadow: 0 0 0 4px rgba(255,42,42,.06);
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255,42,42,.35);
  background: linear-gradient(180deg, rgba(255,42,42,.22), rgba(177,0,0,.10));
  color: var(--text); box-shadow: var(--glow);
  transition: .18s ease; white-space: nowrap;
}
.cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255,42,42,.55);
  box-shadow: 0 0 0 4px rgba(255,42,42,.08), var(--glow);
}

/* --- Hamburger menu (mobile) --- */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: transparent;
  border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: 0.3s ease;
}
.topbar.nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.topbar.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.topbar.nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 720px) {
  .hamburger { display: flex; }
  .topbar {
    flex-wrap: wrap; border-radius: var(--radius);
  }
  .topbar nav {
    display: none; width: 100%;
    flex-direction: column; gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }
  .topbar.nav-open nav { display: flex; }
  .navlink, .cta { text-align: center; justify-content: center; }
}

/* ===== Panels ===== */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,16,24,.75), rgba(10,10,14,.65));
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
  overflow: hidden; position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: -2px;
  background: radial-gradient(600px 220px at 20% 0%, rgba(255,42,42,.20), transparent 55%);
  pointer-events: none;
}
.panel-padded { padding: 26px 28px; }

/* ===== Hero banner ===== */
.hero-banner {
  width: 100%; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-banner img {
  width: 100%; height: auto; display: block;
  object-fit: cover;
}

.head { padding: 22px 22px 12px; position: relative; }
h1 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.4px; }
.sub { margin: 10px 0 0; color: var(--muted); line-height: 1.65; max-width: 78ch; }

/* ===== WOW: Animated gradient hero text ===== */
.hero-title {
  background: linear-gradient(90deg, #ffffff, #ffb3b3, #ff2a2a, #ff6b6b, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s linear infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ===== WOW: Pulsing status dot ===== */
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255,42,42,.6); }
  50%      { box-shadow: 0 0 28px rgba(255,42,42,.9), 0 0 50px rgba(255,42,42,.3); }
}

/* --- Status label (hero) --- */
.status-label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,42,42,.25); border-radius: 999px;
  background: rgba(255,42,42,.06);
  color: var(--muted); font-weight: 800;
  letter-spacing: .3px; text-transform: uppercase; font-size: 12px;
}

/* ===== Product cards ===== */
.product {
  margin: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.product:hover {
  border-color: rgba(255,42,42,.18);
  box-shadow: 0 0 40px rgba(255,42,42,.1);
  transform: translateY(-3px);
}
.productInner {
  padding: 18px; display: grid;
  grid-template-columns: 1fr auto; gap: 18px;
  align-items: center;
}
@media (max-width: 720px) {
  .productInner { grid-template-columns: 1fr; }
}

.badgeRow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  padding: 7px 10px; border-radius: 999px;
  border: 1px solid rgba(255,42,42,.18);
  background: rgba(255,42,42,.05); color: #f7c7c7;
  font-weight: 800; font-size: 12px; letter-spacing: .2px;
}
.badge-new {
  border-color: rgba(0,210,80,.35);
  background: rgba(0,210,80,.08);
  color: #b3ffd1;
}
.title { margin: 0; font-size: 18px; letter-spacing: .2px; }
.desc { margin: 8px 0 0; color: var(--muted); line-height: 1.65; font-size: 14.8px; }
.bullets { margin: 12px 0 0; padding-left: 18px; color: rgba(184,184,199,.95); line-height: 1.6; }

/* ===== Action buttons ===== */
.actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
@media (max-width: 720px) { .actions { min-width: unset; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--text); font-weight: 800;
  transition: .18s ease; text-align: center; white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,42,42,.35);
  box-shadow: 0 0 0 4px rgba(255,42,42,.06);
}
.btnPrimary {
  border-color: rgba(255,42,42,.35);
  background: linear-gradient(180deg, rgba(255,42,42,.24), rgba(177,0,0,.10));
  box-shadow: var(--glow);
}
button.btn {
  cursor: pointer; font-family: inherit; font-size: inherit;
}

/* ===== Footer ===== */
footer {
  margin: 30px 0 18px; padding: 18px 10px 0;
  color: rgba(184,184,199,.85); text-align: center;
  border-top: 1px solid rgba(42,42,55,.8); font-size: 13px;
}
.footerLinks {
  display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-top: 8px;
}
.footerLinks a {
  color: rgba(184,184,199,.95); padding: 8px 10px;
  border-radius: 999px; border: 1px solid transparent;
}
.footerLinks a:hover {
  border-color: rgba(255,42,42,.22);
  background: rgba(255,42,42,.05); color: var(--text);
}

/* ===== Banners ===== */
.banner { margin: 0 0 14px; padding: 14px; border-radius: 14px; font-weight: 900; }
.success { background: rgba(0,160,60,.15); border: 1px solid rgba(0,160,60,.45); }

/* ===== Speed Test gauge ===== */
.gaugeWrap {
  margin-top: 12px; border: 1px solid rgba(255,42,42,.15);
  border-radius: 18px; padding: 20px;
  background:
    radial-gradient(300px 200px at 50% 80%, rgba(255,42,42,.08), transparent 60%),
    rgba(0,0,0,.25);
}
.meterRow { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.meter {
  position: relative; width: 300px; height: 185px;
  border-radius: 18px; border: 1px solid rgba(255,42,42,.2);
  background:
    radial-gradient(260px 180px at 50% 100%, rgba(255,42,42,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.15));
  overflow: visible;
}
.gauge-svg { width: 100%; height: 100%; display: block; }
.speedNums { min-width: 240px; }
.big { font-size: 28px; font-weight: 900; letter-spacing: .2px; }
.small { color: var(--muted); line-height: 1.6; font-size: 14px; }

@media (max-width: 720px) {
  .meter { width: 100%; max-width: 320px; }
}

/* ===== WOW: Scroll reveal animations ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===== Form inputs (contact page) ===== */
input[type="text"],
input[type="email"],
textarea {
  width: 100%; padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #fff; font-size: 14px; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255,42,42,.35);
  box-shadow: 0 0 0 3px rgba(255,42,42,.08);
}
textarea { min-height: 160px; resize: vertical; }

/* ===== Privacy page ===== */
.privacy-content h2 {
  margin-top: 28px; margin-bottom: 10px;
  font-size: 20px; color: var(--text); letter-spacing: .2px;
}
.privacy-content p,
.privacy-content li {
  color: var(--muted); line-height: 1.65;
}
.privacy-content ul { padding-left: 20px; }
.privacy-content ul li { margin-bottom: 4px; }
.privacy-content a { color: #ff8a8a; font-weight: 600; }
.privacy-content a:hover { color: var(--text); }
.dates { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .panel-padded { padding: 20px 16px; }
}
