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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #000; /* keep dark theme */
  overflow-x: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Header */
.site-header {
  font-family: 'Press Start 2P', monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: #000000; /* pure black */
  border-bottom: 3px solid #4aa8ff; /* bright blue outline */
  box-shadow: 0 2px 20px rgba(74, 168, 255, 0.5); /* blue glow under header */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

/* Logo styling */
.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(90deg, #4aa8ff, #82cfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* gradient text effect */
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-transform: none;
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #e0e6ed;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4aa8ff;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.9);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease-in-out; /* smooth hide/show */
  z-index: 1000;
}

header.hide {
  transform: translateY(-100%); /* slide header up */
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 5% 2rem;
  padding-top: 5rem;
  background: url("assets/bg8_pattern.jpg") no-repeat center center/cover;
  position: relative;
}


.hero-text {
  max-width: 500px;
  animation: fadeInUp 1s ease-out;
}

.hero-text small {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero-text p {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  color: #cbd5e1; /* light grayish blue */
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.5rem;
  margin-left: 0.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 
    0 0 5px #4aa8ff,
    0 0 10px #4aa8ff,
    0 0 20px #1e90ff,
    0 0 40px #1e90ff;
  
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Pulse keyframes */
@keyframes pulseGlow {
  0%, 80%, 100% {
    transform: scale(1);
    text-shadow: 
      0 0 5px #4aa8ff,
      0 0 10px #4aa8ff,
      0 0 20px #1e90ff,
      0 0 40px #1e90ff;
  }
  40% {
    transform: scale(1.05);
    text-shadow: 
      0 0 10px #4aa8ff,
      0 0 20px #4aa8ff,
      0 0 40px #1e90ff,
      0 0 60px #1e90ff;
  }
}

.hero-text p {
  margin-bottom: 1.5rem;
  color: #f8f8f8;
}

.buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.buttons a {
  font-family: 'Press Start 2P', monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.8rem;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease-in-out, background 0.3s, box-shadow 0.3s;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Primary (APE IN NOW) – light grayish blue button */
.buttons a.primary {
  background: linear-gradient(180deg, #6f8ca3, #4a6378); /* grayish blue gradient */
  color: #fff;
  border: none;
}

/* Secondary (VIEW CHART) – dark grayish blue w/ light blue border */
.buttons a.secondary {
  background: #1b2733; /* deep bluish-gray */
  color: #7da6c2;       /* muted blue text */
  border: 2px solid #7da6c2;
}

/* Hover vibrate animation */
@keyframes vibrate {
  0% { transform: translate(0); }
  10% { transform: translate(-3px, 2px); }
  20% { transform: translate(-2px, -2px); }
  30% { transform: translate(3px, 2px); }
  40% { transform: translate(2px, -2px); }
  50% { transform: translate(-3px, 2px); }
  60% { transform: translate(2px, 2px); }
  70% { transform: translate(-2px, -2px); }
  80% { transform: translate(3px, -2px); }
  90% { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}

.buttons a:hover {
  animation: vibrate 0.4s linear;
  filter: brightness(1.2);
  box-shadow: 
    0 0 8px #7da6c2,
    0 0 16px #7da6c2,
    0 0 24px #7da6c2;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 300px; /* smaller on large screens */
  height: auto;
  border-radius: 50% 0 50% 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInRight 1.2s ease-out;
  margin-bottom: 3rem
}

@media (max-width: 480px) {
  .hero-image img {
    max-width: 100px; /* very small screens */
  }
}

.contract-row {
  grid-column: 1 / -1;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* align full-width row inside centered hero */
  margin-top: 6rem;
  margin-bottom: 2rem;
  position: relative;
  padding: 25px;
  background: #2b2f3a;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Shining effect applied to the entire row */
.contract-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.contract-row:hover::before {
  animation: shine 1.2s forwards;
}

.contract-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #242933;
  border: 1px solid #3f4a59;
  padding: 15px 20px;
  border-radius: 6px;
}

.contract-label {
  font-weight: bold;
  color: #aab6c5;
  white-space: nowrap;
}

.contract-box {
  padding: 10px 14px;
  border: 1px solid #5a6b7a;
  border-radius: 4px;
  background: #dce4ec; /* light box */
  color: #2c3e50;       /* dark text */
  font-size: 14px;
  font-weight: bold;
  min-width: 420px;
  text-align: center;
  text-transform: none;
}

.copy-btn {
  font-family: 'Share Tech Mono', monospace;
  padding: 10px 18px;
  background: linear-gradient(145deg, #4a6075, #2f3b47);
  border: 1px solid #5a6b7a;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn::before {
  content: "📋"; /* clipboard emoji */
  font-size: 1rem;
}

.copy-btn:hover {
  background: linear-gradient(145deg, #5c7890, #364654);
}

.copy-popup {
  position: fixed;
  transform: translateX(-50%);
  background: #4caf50;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 9999;
  pointer-events: none; /* don’t block clicks */
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* Roadmap Section */
.roadmap {
  background: url("assets/bg3_gray.jpg") no-repeat center center/cover;
  color: #e0e6ed;
  padding: 4rem 5%;
  position: relative;
}

.roadmap h2 {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #f1f5f9; /* brighter heading */
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #3b4d61; /* muted steel blue */
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: #4aa8ff; /* vivid blue */
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  border: 3px solid #0d1b2a; /* matches dark bg */
  box-shadow: 0 0 10px rgba(74, 168, 255, 0.6); /* glow effect */
}

.timeline-content {
  display: inline-block;
  background: rgba(255, 255, 255, 0.07); /* semi-opaque white */
  padding: 1rem 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(6px); /* frosted glass feel */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  color: #4aa8ff; /* same as dot */
}

.timeline-content p {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  color: #cbd5e1; /* muted light gray */
}

.roadmap-footer {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    font-size: 0.8rem; /* smaller logo */
  }
  .timeline-item {
    width: 100%;
    text-align: center !important;
    padding-left: 0;
    padding-right: 0;
  }
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #2b2f3a;
    position: absolute;
    top: 60px;  /* below header */
    right: 15px;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-links.active {
    display: flex; /* show when toggled */
  }
  .hamburger {
    display: block;
    margin-right: -180px;
  }
  .hero-image img {
    max-width: 120px; /* mobile size */
  }
  .contract-row {
    width: 100%;
    margin-left: 0;
    padding: 12px 6px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
  }
  .contract-container {
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
  }
  .contract-box {
    min-width: 0;
    width: 100%;
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* Intro Screen Styles */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes video cover entire screen */
}

.skip-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(74, 168, 255, 0.9);
  color: white;
  border: 2px solid #4aa8ff;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(74, 168, 255, 0.4);
}

.skip-button:hover {
  background: #4aa8ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 168, 255, 0.6);
}

/* Main Content */
.main-content {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

/* Alternative: If you want the video centered with black bars */
.intro-video.contained {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .buttons {
    justify-content: center;
  }

  .hero-image img {
    max-width: 160px; /* tablet size */
  }
}

@media (max-width: 600px) {

  .hero-text h1 {
    font-size: 2rem;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .buttons a {
    width: 100%;
    text-align: center;
  }
}

html {
  scroll-behavior: smooth;
}