/* templatemo-electric-xtra.css */

/* ---------- Root + Reset ---------- */

:root {
  --bg: #02040a;
  --bg-elevated: #050811;
  --accent: #c7ff3b;              /* SSX neon green */
  --accent-soft: rgba(199, 255, 59, 0.12);
  --accent-strong: #e6ff8c;
  --text-main: #f5f7ff;
  --text-muted: #9ea2b8;
  --border-soft: rgba(255, 255, 255, 0.06);
  --danger: #ff5b5b;
  --radius-lg: 18px;
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.8);
  --grid-color: rgba(199, 255, 59, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(
      circle at top,
      #0d141f 0,
      #02040a 42%,
      #000000 100%
    );
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Background FX ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -2;
  animation: gridPan 32s linear infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: -40%;
  background: radial-gradient(
    circle at 50% 0,
    rgba(199, 255, 59, 0.23),
    transparent 60%
  );
  opacity: 1;
  mix-blend-mode: screen;
  z-index: -3;
  pointer-events: none;
}

@keyframes gridPan {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-60px, -60px, 0);
  }
}

/* ---------- Navbar ---------- */

/* SLIM NAVBAR FOR SSX */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  padding: 10px 7vw;                    /* slimmer vertical padding */
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* content inside navbar */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* left brand (icon + text) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  height: 32px;                          /* tweak 28–40px if needed */
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* optional: hide burger on desktop for now */
.menu-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 90px 7vw 84px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 10% 0,
    rgba(199, 255, 59, 0.25),
    transparent 60%
  );
  opacity: 0.8;
  mix-blend-mode: screen;
  z-index: -1;
}

.hero-grid-orbit {
  position: absolute;
  inset: 15% 12%;
  border-radius: 32px;
  border: 1px solid rgba(199, 255, 59, 0.18);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.85);
  background: radial-gradient(
      circle at top,
      rgba(199, 255, 59, 0.08),
      transparent 60%
    ),
    radial-gradient(circle at bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.98));
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Hero text area */

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    90deg,
    rgba(199, 255, 59, 0.24),
    rgba(0, 0, 0, 0.7)
  );
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.hero-tag span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(199, 255, 59, 1);
}

.hero-copy h1.glitch-text {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  margin-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero-copy .subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 22px;
}

.text-rotator {
  position: relative;
  min-height: 110px;
  max-width: 720px;        /* keep it compact */
  margin: 40px auto 0;     /* center under hero */
  text-align: center;
}

.text-set {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.text-rotator .subtitle {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
}

.text-set.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.btn-primary,
.btn-ghost {
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
}

.btn-primary {
  border-color: rgba(199, 255, 59, 0.9);
  background: linear-gradient(135deg, #c7ff3b, #77a310);
  color: #050800;
  box-shadow: 0 18px 40px rgba(199, 255, 59, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(199, 255, 59, 0.55);
}

.btn-ghost {
  border-color: var(--border-soft);
  color: var(--text-main);
  background: radial-gradient(
      circle at 0 0,
      rgba(199, 255, 59, 0.16),
      transparent 55%
    ),
    rgba(0, 0, 0, 0.7);
}

.btn-ghost:hover {
  border-color: rgba(199, 255, 59, 0.6);
  box-shadow: 0 0 18px rgba(199, 255, 59, 0.3);
}

.hero-server-ip {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-server-ip code {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(199, 255, 59, 0.5);
  background: rgba(0, 0, 0, 0.8);
  font-family: "Orbitron", monospace;
  letter-spacing: 0.16em;
}

/* Hero visual */

.hero-visual {
  justify-self: end;
  max-width: 420px;
  position: relative;
}

.hero-logo-shell {
  position: relative;
  padding: 18px;
  border-radius: 32px;
  background: radial-gradient(
      circle at 30% 0,
      rgba(199, 255, 59, 0.26),
      transparent 70%
    ),
    linear-gradient(145deg, #05080c, #020309);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(199, 255, 59, 0.25);
}

.hero-logo-shell::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 40px;
  border: 1px solid rgba(199, 255, 59, 0.22);
  opacity: 0.5;
  filter: blur(0.5px);
}

.hero-logo-shell img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 28px rgba(199, 255, 59, 0.95));
  transform: perspective(900px) rotateX(12deg) rotateY(-18deg);
  transform-origin: 50% 100%;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.hero-logo-shell:hover img {
  transform: perspective(900px) rotateX(6deg) rotateY(-6deg)
    translateY(-4px);
  filter: drop-shadow(0 0 40px rgba(199, 255, 59, 1));
}

.hero-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 0.78rem;
}

.hero-stat {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(
      circle at top,
      rgba(199, 255, 59, 0.1),
      transparent 70%
    ),
    rgba(0, 0, 0, 0.82);
}

.hero-stat strong {
  display: block;
  font-family: "Orbitron";
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat span {
  color: var(--text-muted);
}

/* ---------- Sections / Cards ---------- */

.section {
  padding: 80px 7vw;
  position: relative;
}

.section-narrow {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-strong);
}

.section-title {
  font-family: "Orbitron";
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 6px;
}

.section-description {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 0.96rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(
      circle at 0 0,
      rgba(199, 255, 59, 0.12),
      transparent 55%
    ),
    rgba(0, 0, 0, 0.86);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(199, 255, 59, 0.25),
    transparent 45%,
    rgba(199, 255, 59, 0.25)
  );
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-family: "Orbitron";
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(199, 255, 59, 0.5);
  display: inline-block;
  margin-bottom: 10px;
}

.server-status-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(199, 255, 59, 0.5);
  background: rgba(0, 0, 0, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.server-status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(199, 255, 59, 1);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-panel {
  padding: 22px 20px 22px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(
      circle at 0 0,
      rgba(199, 255, 59, 0.16),
      transparent 55%
    ),
    rgba(0, 0, 0, 0.9);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.9);
}

.contact-panel h3 {
  font-family: "Orbitron";
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-panel p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

input,
textarea,
select {
  background: rgba(3, 5, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 9px 11px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(199, 255, 59, 0.8);
  box-shadow: 0 0 0 1px rgba(199, 255, 59, 0.5);
  background: rgba(3, 5, 12, 0.98);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 18px;
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: var(--accent-strong);
}

/* ---------- Footer ---------- */

footer {
  padding: 32px 7vw 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.96);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

footer .footer-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

footer .footer-left span.logo-mini {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0,
    #f8ffe0 0,
    var(--accent) 60%,
    #6f8c1b
  );
  box-shadow: 0 0 12px rgba(199, 255, 59, 0.9);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-strong);
}

/* ---------- Glitch Text ---------- */

.glitch-text {
  position: relative;
  color: var(--accent-strong);
  text-shadow: 0 0 16px rgba(199, 255, 59, 0.9);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.glitch-text::before {
  left: -2px;
  text-shadow: -2px 0 rgba(0, 255, 150, 0.9);
  animation: glitchShift 2.4s infinite ease-in-out alternate;
}

.glitch-text::after {
  left: 2px;
  text-shadow: 2px 0 rgba(255, 255, 255, 0.75);
  opacity: 0.7;
  animation: glitchShift 2s infinite ease-in-out alternate-reverse;
}

@keyframes glitchShift {
  0% {
    clip-path: inset(0 0 85% 0);
  }
  20% {
    clip-path: inset(15% 0 40% 0);
  }
  40% {
    clip-path: inset(40% 0 5% 0);
  }
  60% {
    clip-path: inset(20% 0 60% 0);
  }
  80% {
    clip-path: inset(60% 0 10% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- Scroll Reveal ---------- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  nav {
    padding-inline: 4vw;
  }

  .nav-links {
    display: none; /* if you add burger-menu JS, switch this */
  }

  main {
    padding-top: 76px;
  }

  .hero {
    padding: 76px 5vw 60px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    max-width: 320px;
    justify-self: flex-start;
    order: -1;
  }

  .hero-grid-orbit {
    inset: 18% 4%;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-inline: 5vw;
  }
}
/* DEBUG: force content to show above logo */
.hero,
.section,
.about,
.contact {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
}

/* Subtle float for hero visual */
.hero-visual {
  animation: heroFloat 10s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Slight glow on primary button */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* Ensure logo images are not fixed/fullscreen */
.brand-mark,
.hero-logo {
  position: relative;
  max-height: 240px;
  width: auto;
  display: block;
}
