/* ==================== CSS VARIABLES ==================== */
:root {
  --minecraft-grass: #5c8a3d;
  --minecraft-dirt: #8b6f47;
  --minecraft-stone: #7c7c7c;
  --minecraft-dark: #2a2a2a;
  --minecraft-light: #f5f5dc;
  --accent-glow: #88d498;
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #b0b0b0;
  --timeline-inactive: #3a3a3a;
  --timeline-active: var(--minecraft-grass);
}

/* ==================== GLOBAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1,
h2,
h3 {
  font-family: 'Press Start 2P', cursive;
  line-height: 1.4;
}

/* ==================== HERO SECTION ==================== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

/* Pixel grid background */
.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--minecraft-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--minecraft-dark) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.03;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  text-align: center;
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: #39ff14;
  text-shadow:
    0 0 10px #39ff14,
    0 0 20px #39ff14,
    0 0 30px #39ff14,
    0 0 40px #00ff00,
    2px 2px 0 var(--minecraft-dark);
  letter-spacing: 2px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #ffffff;
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.5);
  }

  50% {
    text-shadow:
      0 0 20px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 255, 255, 0.6);
  }
}

..pixel-divider {
  width: 100px;
  height: 4px;
  background: #39ff14;
  margin: 0 auto;
  box-shadow:
    0 0 20px #39ff14,
    0 0 30px #39ff14,
    0 0 40px #00ff00;
  animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {

  0%,
  100% {
    box-shadow:
      0 0 20px #39ff14,
      0 0 30px #39ff14;
  }

  50% {
    box-shadow:
      0 0 30px #39ff14,
      0 0 50px #39ff14,
      0 0 60px #00ff00;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards, bounce 2s ease-in-out 2s infinite;
}

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

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-indicator::after {
  content: '▼';
  font-size: 1.5rem;
  color: #39ff14;
  text-shadow:
    0 0 10px #39ff14,
    0 0 20px #39ff14,
    0 0 30px #00ff00;
  animation: arrowGlow 1.5s ease-in-out infinite;
}

@keyframes arrowGlow {

  0%,
  100% {
    text-shadow:
      0 0 10px #39ff14,
      0 0 20px #39ff14;
  }

  50% {
    text-shadow:
      0 0 20px #39ff14,
      0 0 40px #39ff14,
      0 0 60px #00ff00;
  }
}

/* ==================== TIMELINE SECTION ==================== */
.timeline-section {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}

.timeline-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.timeline-header.visible {
  opacity: 1;
  transform: translateY(0);
}

..timeline-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #7cfc00;
  margin-bottom: 1rem;
  text-shadow:
    0 0 10px rgba(124, 252, 0, 0.5),
    0 0 20px rgba(124, 252, 0, 0.3);
}

.timeline-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--timeline-inactive);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--minecraft-grass), var(--accent-glow));
  width: 0;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Timeline Container */
.timeline-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--minecraft-grass) var(--timeline-inactive);
  padding: 40px 0;
}

.timeline-container::-webkit-scrollbar {
  height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
  background: var(--timeline-inactive);
}

.timeline-container::-webkit-scrollbar-thumb {
  background: var(--minecraft-grass);
  border-radius: 4px;
}

.timeline-wrapper {
  display: flex;
  position: relative;
  padding: 0 10%;
  min-width: max-content;
}

/* Timeline Line */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background: var(--timeline-inactive);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--minecraft-grass), var(--accent-glow));
  width: 0;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Year Card */
.year-card {
  scroll-snap-align: center;
  margin: 0 40px;
  position: relative;
  z-index: 1;
  opacity: 0.5;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.year-card.active {
  opacity: 1;
  transform: scale(1);
}

.year-node {
  width: 24px;
  height: 24px;
  background: var(--timeline-inactive);
  border: 4px solid var(--bg-secondary);
  border-radius: 50%;
  margin: 0 auto 30px;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.year-card.active .year-node {
  background: var(--minecraft-grass);
  box-shadow:
    0 0 0 8px rgba(88, 138, 61, 0.2),
    0 0 20px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.year-content {
  background: var(--bg-primary);
  border: 2px solid var(--minecraft-dark);
  border-radius: 8px;
  padding: 30px;
  width: 300px;
  box-shadow:
    4px 4px 0 var(--minecraft-dark),
    0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.year-card.active .year-content {
  border-color: var(--minecraft-grass);
  box-shadow:
    4px 4px 0 var(--minecraft-grass),
    0 15px 40px rgba(88, 138, 61, 0.3);
}

..year-content .year {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  color: #7cfc00;
  margin-bottom: 15px;
  text-shadow:
    0 0 8px rgba(124, 252, 0, 0.4),
    0 0 15px rgba(124, 252, 0, 0.2);
}

.year-content .title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.year-content .description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== ACHIEVEMENTS SECTION ==================== */
.achievements-section {
  padding: 100px 5%;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

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

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--minecraft-grass);
  margin-bottom: 1rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.achievement-card {
  background: var(--bg-secondary);
  border: 2px solid var(--minecraft-dark);
  border-radius: 8px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.achievement-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--minecraft-grass), var(--accent-glow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-8px);
  border-color: var(--minecraft-grass);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 2px var(--minecraft-grass);
}

.achievement-card:hover::before {
  transform: scaleX(1);
}

.achievement-icon {
  width: 60px;
  height: 60px;
  background: var(--minecraft-grass);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(88, 138, 61, 0.3);
}

.achievement-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.achievement-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-secondary);
  padding: 60px 5%;
  text-align: center;
  border-top: 2px solid var(--minecraft-dark);
}

.footer .pixel-divider {
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--minecraft-grass);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.social-links a:hover::after {
  transform: scaleX(1);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .timeline-section {
    padding: 60px 0;
  }

  .year-content {
    width: 250px;
    padding: 20px;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-header h2,
  .timeline-header h2 {
    font-size: 1.3rem;
  }
}