/* ======= TOKENS ======= */
:root {
  --primary: #e81c23;
  --primary-light: #ff4d4d;
  --bg-dark: #0e0e0e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --text-muted: #999;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Agu Display', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ======= TOP NAV ======= */
.about-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}

.back-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.back-link:hover {
  color: var(--text);
}

.back-link:hover::after {
  width: 100%;
}

.about-nav-title {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text);
  text-shadow: 0 0 16px rgba(232, 28, 35, 0.4);
}

@media (max-width: 600px) {
  .about-nav-title { display: none; }
}

/* ======= HEADER ======= */
header {
  background: var(--primary);
  text-align: center;
  padding: 48px 20px;
  border-bottom: 4px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(0,0,0,0.4), transparent 60%);
  pointer-events: none;
}

.animated-title {
  font-size: clamp(2em, 5vw, 3.5rem);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.animated-title span {
  display: inline-block;
  color: #fff;
  opacity: 0;
  animation: letterFadeIn 0.5s ease forwards, letterFloat 2.5s ease-in-out infinite alternate;
}

/* stagger each letter */
.animated-title span:nth-child(1)  { animation-delay: 0.05s, 0s; }
.animated-title span:nth-child(2)  { animation-delay: 0.10s, 0.1s; }
.animated-title span:nth-child(3)  { animation-delay: 0.15s, 0.2s; }
.animated-title span:nth-child(4)  { animation-delay: 0.20s, 0.15s; }
.animated-title span:nth-child(5)  { animation-delay: 0.25s, 0.05s; }
.animated-title span:nth-child(6)  { animation-delay: 0.30s, 0.25s; }
.animated-title span:nth-child(7)  { animation-delay: 0.35s, 0.3s; }
.animated-title span:nth-child(8)  { animation-delay: 0.40s, 0.1s; }
.animated-title span:nth-child(9)  { animation-delay: 0.45s, 0.2s; }
.animated-title span:nth-child(10) { animation-delay: 0.50s, 0s; }
.animated-title span:nth-child(11) { animation-delay: 0.55s, 0.35s; }
.animated-title span:nth-child(12) { animation-delay: 0.60s, 0.15s; }
.animated-title span:nth-child(13) { animation-delay: 0.65s, 0.25s; }
.animated-title span:nth-child(14) { animation-delay: 0.70s, 0.05s; }

@keyframes letterFadeIn {
  to { opacity: 1; }
}

@keyframes letterFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.animated-title span:hover {
  color: #ffe566;
  transform: scale(1.3) translateY(-4px);
  transition: color 0.15s ease, transform 0.15s ease;
}

/* ======= CONTENT ======= */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 28px;
}

.section {
  margin-bottom: 60px;
  opacity: 0;
  animation: sectionFadeIn 0.8s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.25s; }
.section:nth-child(3) { animation-delay: 0.4s; }
.section:nth-child(4) { animation-delay: 0.55s; }

@keyframes sectionFadeIn {
  to { opacity: 1; }
}

.section h2 {
  font-size: clamp(1.4em, 3vw, 2.2em);
  color: var(--primary-light);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(232, 28, 35, 0.3);
}

.slide-in {
  color: var(--text-muted);
  font-size: 1.05em;
  margin-bottom: 14px;
  transform: translateX(-30px);
  opacity: 0;
  animation: slideIn 0.7s ease-out forwards;
}

.slide-in.delay {
  animation-delay: 0.2s;
}

@keyframes slideIn {
  to { transform: translateX(0); opacity: 1; }
}

/* ======= FOOTER ======= */
footer {
  background: #090909;
  color: var(--text);
  text-align: center;
  padding: 36px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

footer p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-back {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(232, 28, 35, 0.35);
}

.footer-back:hover {
  background: var(--primary-light);
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(232, 28, 35, 0.5);
}
