:root {
  --black: #0b0b0b;
  --obsidian: #111;
  --red: #b11212;
  --dark-red: #6e0c0c;
  --gray: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #050505;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* MOVING GRID BACKGROUND */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: moveGrid 20s linear infinite;
  pointer-events: none;
}

@keyframes moveGrid {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

/* HERO */
.hero {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: -1;
  text-align: center;
  padding: 0 20px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 30%, rgba(5, 5, 5, 0.95) 90%);
}

.hero-logo {
  width: min(50vw, 600px); /* Reduced size */
  filter: drop-shadow(0 0 30px rgba(177, 18, 18, 0.3));
  animation: float 6s ease-in-out infinite;
  margin-bottom: 2rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards 0.5s;
  margin-bottom: 60px; /* Lift text up to avoid scroll overlap */
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(177, 18, 18, 0.4);
  letter-spacing: 0.15em;
}

.hero p.subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #e5e5e5;
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
}

.hero p.description {
  font-size: 1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* CONTENT STRUCTURE */
.content {
  position: relative;
  margin-top: 100vh;
  background: var(--black);
  overflow: hidden; /* Hide overflow from particles if needed */
}

.content-wrapper {
  padding-top: 120px;
  max-width: 1100px;
  margin: auto;
  padding-bottom: 80px;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, #0b0b0b 0%, #0f0f0f 50%, #0b0b0b 100%);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

strong {
  color: #fff;
  font-weight: 600;
}

.divider {
  height: 1px;
  width: 100%;
  max-width: 100px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 24px 0 40px 0;
}

/* CARDS & GRID */
.grid-container, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: 4px; /* More corporate/sharp */
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(25, 25, 25, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  color: var(--red);
  font-size: 1.2rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* SPECIFIC SERVICES STYLES */
.service-card .cta-link {
  margin-top: 20px;
  color: var(--red);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
    align-items: center;
  gap: 5px;
  transition: 0.3s;
}

.service-card:hover .cta-link {
  color: #fff;
  padding-left: 5px;
}

/* DISCORD */
.discord {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

iframe {
  border-radius: 16px;
  border: none;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* PARTICLES CANVAS */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Above grid (-2), below content */
  pointer-events: none;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 25px; /* Moved closer to bottom to avoid text */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  animation: bounce 2s infinite;
  z-index: 10;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* NAVIGATION STYLES */
nav {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 98%;
  max-width: 1800px;
  height: 65px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;

  background: rgba(5, 5, 5, 0.85); /* Slightly more opaque */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.08); /* Neutral border by default */
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  transition: 0.3s;
}

nav:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 15px rgba(177, 18, 18, 0.5);
  transition: 0.3s;
}

.nav-logo:hover {
  text-shadow: 0 0 25px rgba(177, 18, 18, 0.8);
}

.nav-links {
  display: flex;
  gap: 16px; /* Tighter gap for pill buttons */
}

.nav-links a {
  text-decoration: none;
  color: #ccc;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: 0.3s;
  position: relative;
  padding: 8px 16px;
  border-radius: 99px;
  background: transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
  display: none;
}

.filtrosafe-btn {
  border: 1px solid #00f3ff !important; /* Electric Blue */
  padding: 8px 24px !important;
  border-radius: 4px;
  color: #00f3ff !important;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.filtrosafe-btn:hover {
  background: rgba(0, 243, 255, 0.1) !important;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.5) !important;
  color: #fff !important;
}

.filtrosafe-btn::after {
  display: none !important;
}

/* MOBILE MENU CONTROLS */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    z-index: 1000;
    backdrop-filter: blur(15px);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--red);
  color: #fff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-radius: 99px;
  transition: 0.3s;
}

.btn:hover {
  background: var(--red);
  box-shadow: 0 0 20px rgba(177, 18, 18, 0.4);
}

/* FOOTER */
footer {
  text-align: center;
  width: 100%;
  display: block;
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 60px;
}

footer p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px; /* Override global p margin */
}

footer a {
  color: #888;
  text-decoration: none;
  margin: 0 12px;
  transition: 0.2s;
}

footer a:hover {
  color: #fff;
}

/* SECURITY PAGE & CONTAINERS */
.container {
  max-width: 800px;
  margin: 120px auto 60px; /* Account for fixed nav */
  padding: 20px;
}

.code-block {
  background: #111;
  border: 1px solid #333;
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #0f0;
  overflow-x: auto;
  white-space: pre-wrap;
  margin-bottom: 40px;
}

.canary-box {
  border: 1px solid var(--red);
  background: rgba(177, 18, 18, 0.05);
  padding: 24px;
  margin-top: 40px;
}

a.btn-back {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #333;
  padding: 10px 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  transition: 0.3s;
}

a.btn-back:hover {
  border-color: var(--red);
}
