/* ===================================
   Peace-Code - Developer Site Styles
   =================================== */

/* --- CSS Variables --- */
:root {
  /* Colors - Dark Mode + Cherry Blossom Theme */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #ffb7c5;
  --accent-hover: #ffc8d4;
  --accent-subtle: rgba(255, 183, 197, 0.15);
  --accent-deep: #f48fb1;
  --border: #2a2a2a;
  --border-light: #3a3a3a;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(255, 183, 197, 0.3);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.header__logo img {
  height: 32px;
  width: auto;
}

.header__logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.header__nav a:hover {
  color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--container-padding);
  position: relative;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  display: none; /* Hidden - rendered in Pixi.js canvas instead */
}

.hero__logo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-xl);
  animation: fadeInUp 0.6s ease forwards;
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero__cta:hover {
  background: var(--accent-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* --- Section Common --- */
.section {
  padding: var(--space-4xl) 0;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- About Section --- */
.about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.about__text h2 span {
  color: var(--accent);
}

.about__text p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about__developer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.about__developer-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.about__developer-info h3 {
  font-size: 1rem;
  font-weight: 600;
}

.about__developer-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Contact Section --- */
.contact {
  text-align: center;
}

.contact__content {
  max-width: 500px;
  margin: 0 auto;
}

.contact__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--accent-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.contact h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.contact p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.contact__email:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--text-primary);
}

/* Business Info - Hidden by default */
.footer__business {
  display: none;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer__business.is-visible {
  display: block;
}

/* --- 404 Page --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.error-page__content {
  max-width: 400px;
}

.error-page__code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.error-page__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.error-page__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.error-page__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--accent);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.error-page__button:hover {
  background: var(--accent-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .hero__logo {
    width: 150px;
    height: 150px;
  }

  .hero__title {
    font-size: 4rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

  .about__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__developer {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: 1rem;
  }

  .header__logo-text {
    display: none;
  }

  .hero {
    padding-top: calc(64px + var(--space-2xl));
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .about__text h2 {
    font-size: 1.5rem;
  }

  .contact h2 {
    font-size: 1.5rem;
  }

  .error-page__code {
    font-size: 5rem;
  }
}
