/* Base styles and variables */
:root {
  --primary: #14F195;
  --secondary: #9945FF;
  --accent: #00C2FF;
  --background: #121212;
  --background-light: #1E1E1E;
  --background-alt: #191919;
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-muted: #A0A0A0;
  --nav-height: 64px;
  --transition-speed: 0.3s;
}

/* Typography */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

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

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-speed) ease;
}

.mobile-menu-button.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  display: none;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.mobile-nav-links a {
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-light) 100%);
  overflow: hidden;
  padding: 6rem 0 3rem;
}

.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-content .description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--background);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 194, 255, 0.3);
}

.cta-button:hover {
  background-color: var(--primary);
  color: var(--background);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(20, 241, 149, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-muted);
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Story Sections */
.story-section {
  min-height: 100vh;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-section.alt-bg {
  background-color: var(--background-alt);
}

.story-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.story-content.reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.text-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.image-content {
  flex: 1;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.image-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.story-content.reverse .text-content {
  transform: translateX(20px);
}

.story-content.reverse .image-content {
  transform: translateX(-20px);
}

.paragraphs p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: var(--background-light);
  padding: 4rem 0;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .story-content {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-button {
    display: flex;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content .subtitle {
    font-size: 1.25rem;
  }
  
  .story-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .story-content.reverse {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content .subtitle {
    font-size: 1.1rem;
  }
  
  .hero-content .description {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .story-section {
    padding: 4rem 0;
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary: #00FF00;
    --accent: #FFFFFF;
    --text-muted: #CCCCCC;
  }
  
  img {
    border: 2px solid white;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .story-section,
  .text-content,
  .image-content {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
