/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --mid: #1a1a1a;
  --gray: #555;
  --light: #ccc;
  --white: #f0f0f0;
  --pure-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--black);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === PARTICLE CANVAS === */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 6px;
  color: var(--pure-white);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--pure-white);
}

/* === HERO === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero__glitch {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 15vw, 14rem);
  letter-spacing: 0.15em;
  color: var(--pure-white);
  position: relative;
  text-shadow:
    0 0 20px rgba(255,255,255,0.15),
    0 0 60px rgba(255,255,255,0.05);
  animation: glitchText 4s infinite;
}

.hero__glitch::before,
.hero__glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}

.hero__glitch::before {
  color: rgba(255,255,255,0.6);
  animation: glitchBefore 4s infinite;
  clip-path: inset(0 0 65% 0);
}

.hero__glitch::after {
  color: rgba(100,100,100,0.5);
  animation: glitchAfter 4s infinite;
  clip-path: inset(65% 0 0 0);
}

@keyframes glitchText {
  0%, 95%, 100% { transform: none; }
  96% { transform: translate(4px, -2px); }
  97% { transform: translate(-3px, 1px); }
  98% { transform: translate(2px, 3px); }
  99% { transform: translate(-1px, -1px); }
}

@keyframes glitchBefore {
  0%, 95%, 100% { transform: none; }
  96% { transform: translate(-6px, 2px); }
  97% { transform: translate(4px, -1px); }
  98% { transform: translate(-2px, 4px); }
}

@keyframes glitchAfter {
  0%, 95%, 100% { transform: none; }
  96% { transform: translate(5px, -3px); }
  97% { transform: translate(-4px, 2px); }
  98% { transform: translate(3px, -2px); }
}

.hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  letter-spacing: 0.6em;
  color: var(--gray);
  margin-top: 0.5rem;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--light);
  margin-top: 2rem;
  opacity: 0.7;
}

.hero__scroll {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: bobble 2s ease-in-out infinite;
}

.hero__arrow {
  font-size: 1.5rem;
}

@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* === SECTIONS === */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.12em;
  color: var(--pure-white);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gray);
  margin: 1rem auto 0;
}

/* === STORY GRID === */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.story-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
}

.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.story-card:hover::before {
  opacity: 1;
}

.story-card__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  line-height: 1;
}

.story-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: var(--pure-white);
  margin-bottom: 1rem;
}

.story-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--light);
  opacity: 0.75;
}

/* === DIVIDER === */
.divider {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}

.divider__line {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--gray), transparent);
}

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
  transition: background 0.4s, border-color 0.4s;
}

.feature:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.12);
}

.feature__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: grayscale(100%);
}

.feature__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--pure-white);
  margin-bottom: 0.75rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--light);
  opacity: 0.65;
  line-height: 1.65;
}

/* === HELL CANVAS === */
.section--canvas {
  padding-bottom: 2rem;
}

.hell-canvas {
  width: 100%;
  height: 400px;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--dark);
}

/* === DEVELOPER === */
.dev-card {
  max-width: 500px;
  padding: 3rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.dev-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.dev-card__avatar {
  width: 90px; height: 90px;
  margin: 0 auto 1.5rem;
}

.dev-card__avatar svg {
  width: 100%; height: 100%;
}

.dev-card__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 6px;
  color: var(--pure-white);
  margin-bottom: 0.25rem;
}

.dev-card__role {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.dev-card__bio {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--light);
  opacity: 0.7;
}

/* === FOOTER === */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 6px;
  color: var(--gray);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--gray);
  opacity: 0.6;
}

/* === REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .nav {
    padding: 0.8rem 1.2rem;
  }
  .nav__links {
    gap: 1rem;
  }
  .nav__links a {
    font-size: 0.7rem;
  }
  .section {
    padding: 4rem 1.2rem;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .hell-canvas {
    height: 250px;
  }
}
