/* ROOTMARE - BASE & LAYOUT STYLES (BLACK & RED THEME) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle Cyber Grid Texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Radial Red Glow in Background */
body::after {
  content: '';
  position: fixed;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.07) 0%, rgba(10, 10, 10, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Custom Red Cyber Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(225, 6, 0, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-highlight);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.5rem, 1.85rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Container & Structure */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: 110px 0;
  z-index: 1;
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  section {
    padding: 52px 0;
  }
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid var(--border-red);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 0 14px rgba(225, 6, 0, 0.15);
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-dot-red 2s infinite ease-in-out;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Section Dividers with Red Glow Accent */
.section-divider {
  position: relative;
  width: 100%;
  height: 48px;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.divider-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(225, 6, 0, 0.3) 30%, rgba(225, 6, 0, 0.7) 50%, rgba(225, 6, 0, 0.3) 70%, transparent 100%);
  position: relative;
  margin: 0 auto;
}

/* Gradient Text Highlight (Red / Crimson) */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.text-red {
  color: var(--accent-red);
}

@keyframes pulse-dot-red {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-red); }
  100% { transform: scale(0.95); opacity: 0.8; }
}
