/* AKIRA-Inspired Design System */
/* Neo-Tokyo Cyberpunk Aesthetic */

:root {
  /* AKIRA Colors */
  --red: #e63946;
  --red-glow: rgba(230, 57, 70, 0.6);
  --red-dark: #b71c1c;
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --yellow: #ffd700;
  --white: #ffffff;
  --gray-100: #f0f0f0;
  --gray-200: #cccccc;
  --gray-400: #888888;
  --gray-600: #444444;
  --dark-100: #1a1a2e;
  --dark-200: #16213e;
  --dark-300: #0f0f1a;
  --black: #0a0a12;
  
  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Speed Lines Background */
.speed-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    var(--red) 2px,
    var(--red) 3px
  );
}

/* City Grid Background */
.city-grid {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  pointer-events: none;
  z-index: 0;
  background: 
    linear-gradient(to top, var(--black) 0%, transparent 100%),
    linear-gradient(90deg, var(--red) 1px, transparent 1px),
    linear-gradient(0deg, var(--red) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  opacity: 0.05;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: linear-gradient(to bottom, var(--black) 0%, transparent 100%);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 0 20px var(--red-glow);
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--gray-400);
  letter-spacing: 0.3em;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  margin-bottom: var(--space-md);
}

.badge-text {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.9;
  margin-bottom: var(--space-md);
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--red);
  text-shadow: 
    0 0 40px var(--red-glow),
    0 0 80px var(--red-glow);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--gray-200);
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 30px var(--red-glow);
}

.btn--primary:hover {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--black);
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.2em;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

.section--dark {
  background: var(--dark-100);
}

.section--accent {
  background: var(--red);
}

.section--accent .section-title {
  color: var(--white);
}

.section--accent .section-title::after {
  background: var(--white);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--red);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-md);
  background: var(--dark-100);
  border-left: 3px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateX(10px);
  box-shadow: -10px 0 30px var(--red-glow);
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--red);
  opacity: 0.3;
  line-height: 1;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: var(--space-sm) 0;
}

.service-desc {
  color: var(--gray-200);
  font-size: 0.95rem;
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.work-card {
  padding: var(--space-md);
  background: var(--dark-200);
  border: 1px solid var(--gray-600);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  border-color: var(--red);
  box-shadow: 0 0 30px var(--red-glow);
}

.work-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.work-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.work-desc {
  color: var(--gray-200);
  margin-bottom: var(--space-sm);
}

.work-tech {
  font-size: 0.8rem;
  color: var(--cyan);
  font-family: monospace;
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.about-lead {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.about-text p {
  color: var(--gray-200);
  margin-bottom: var(--space-sm);
}

.stack-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: var(--space-sm);
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.stack-item {
  padding: 6px 12px;
  background: var(--dark-100);
  border: 1px solid var(--gray-600);
  font-size: 0.85rem;
  font-family: monospace;
}

/* Contact */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-lead {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--white);
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: text-shadow 0.2s;
}

.contact-email:hover {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.2em;
}

.contact-value {
  font-size: 1rem;
}

/* Footer */
.footer {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--gray-600);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--red);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Glitch effect for hero */
@keyframes glitch {
  0%, 100% { text-shadow: 0 0 40px var(--red-glow); }
  20% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--red); }
  40% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--red); }
  60% { text-shadow: 0 0 40px var(--red-glow); }
}

.title-line.accent:hover {
  animation: glitch 0.3s ease;
}
