:root {
  --primary-bg: #0a0e1a;
  --secondary-bg: #141b2d;
  --accent-color: #00d9ff;
  --accent-secondary: #00ff88;
  --text-primary: #e8eef7;
  --text-secondary: #a0aec0;
  --border-color: #1e293b;
  --completed-color: #00ff88;
  --upcoming-color: #00d9ff;
  --timeline-line: #2d3748;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background effects layer */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.background-ellipse {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.3s ease;
  will-change: transform, opacity;
}

.background-ellipse.left {
  left: -220px;
  width: 700px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.25), rgba(0, 217, 255, 0.1), rgba(0, 217, 255, 0.05), transparent);
}

.background-ellipse.right {
  right: -220px;
  width: 700px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05), transparent);
}

.background-ellipse.visible {
  opacity: 1;
}

/* Additional subtle background elements */
.background-effects::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.12), rgba(0, 217, 255, 0.05), transparent);
  filter: blur(60px);
  opacity: 0.65;
  animation: float 20s ease-in-out infinite;
}

.background-effects::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 5%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.12), rgba(0, 255, 136, 0.05), transparent);
  filter: blur(70px);
  opacity: 0.65;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

/* Ensure content is above background */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
}

.logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2rem;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--secondary-bg);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-button:hover::before {
  left: 100%;
}

.nav-button:hover {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.2);
}

.nav-button-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.nav-button-text {
  white-space: nowrap;
}

.social-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1.5rem;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--secondary-bg);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.5s ease;
}

.social-button:hover::before {
  left: 100%;
}

.social-button:hover {
  border-color: var(--accent-secondary);
  background: rgba(0, 255, 136, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.social-button-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-button-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.social-button-icon.telegram-icon svg {
  color: #2AABEE;
  fill: #2AABEE;
}

.social-button-text {
  white-space: nowrap;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line);
  transform: translateX(-50%);
}

.milestone {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.milestone:nth-child(odd) {
  flex-direction: row;
}

.milestone:nth-child(even) {
  flex-direction: row-reverse;
}

.milestone-content {
  width: 45%;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.milestone-content:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.1);
  transform: translateY(-2px);
}

.milestone:nth-child(odd) .milestone-content {
  margin-right: auto;
}

.milestone:nth-child(even) .milestone-content {
  margin-left: auto;
}

.milestone-marker {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 3px solid var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone.completed .milestone-marker {
  background: var(--completed-color);
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2), 0 0 20px rgba(0, 255, 136, 0.4);
}

.milestone.upcoming .milestone-marker {
  background: var(--upcoming-color);
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.2), 0 0 20px rgba(0, 217, 255, 0.4);
}

.milestone-marker::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-bg);
}

.milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.milestone-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.milestone-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.completed {
  background: rgba(0, 255, 136, 0.2);
  color: var(--completed-color);
  border: 1px solid var(--completed-color);
}

.status-badge.upcoming {
  background: rgba(0, 217, 255, 0.2);
  color: var(--upcoming-color);
  border: 1px solid var(--upcoming-color);
}

.milestone-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.milestone-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.milestone-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.milestone-link:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.block-number {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-secondary);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Footer styles */
.site-footer {
  margin-top: 6rem;
  padding: 1.5rem 0 0.75rem;
  border-top: 1px solid var(--border-color);
  background: var(--secondary-bg);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo-img {
  max-width: 100px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
  opacity: 1;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.2);
}

.footer-social-link.telegram-link svg {
  color: #2AABEE;
  fill: #2AABEE;
}

.footer-social-link.telegram-link:hover svg {
  color: #2AABEE;
  fill: #2AABEE;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0.75rem 1.5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .milestone {
    flex-direction: row !important;
    padding-left: 3rem;
  }

  .milestone-content {
    width: 100%;
    margin: 0 !important;
  }

  .milestone-marker {
    left: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .container {
    padding: 1rem;
  }

  .milestone-content {
    padding: 1.5rem;
  }

  .header-nav {
    gap: 0.75rem;
  }

  .nav-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .social-nav {
    gap: 0.75rem;
  }

  .social-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .background-ellipse {
    filter: blur(55px);
  }

  .background-ellipse.left,
  .background-ellipse.right {
    width: 450px;
    height: 650px;
    left: -180px;
  }

  .background-ellipse.right {
    right: -180px;
  }

  .background-effects::before,
  .background-effects::after {
    width: 320px;
    height: 320px;
    filter: blur(50px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .milestone-title {
    font-size: 1.25rem;
  }

  .header-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-button {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  .social-nav {
    flex-direction: row;
    gap: 0.75rem;
  }

  .social-button {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 1.25rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-social {
    justify-content: center;
  }
}

