/* ===== Global ===== */

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

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f5f5f5;
    background-color: #000;

    /* DOT GRID - gradient first, then dots */
    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 100%),
        radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 100% 100%, 28px 28px;
    background-repeat: no-repeat, repeat;
}


.brand,
.brand * {
    text-decoration: none !important;
    color: #f5f5f5 !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    font-size: 1.05rem;
}


#roadmap {
  scroll-margin-top: 100px;
}


#contact {
  scroll-margin-top: 100px;
}


/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* ===== Navbar ===== */

/* ===== Navbar ===== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 32px;

    /* Start fully transparent */
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);

    transition:
        background-color 0.2s ease,
        backdrop-filter 0.2s ease,
        box-shadow 0.2s ease;

    z-index: 1000;
}

.navbar.scrolled {
    /* Fade to a translucent dark layer */
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}




.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #f5f5f5;
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    opacity: 0;
    background-color: #ffffff;
    transition: opacity 0.2s ease-out;
}

.nav-links a:hover::after {
    opacity: 100%;
}

.nav-toggle {
  display: none;               /* hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Layout ===== */

.page-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.section {
    margin-top: 80px;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.section-header p {
    color: #b9b9b9;
    font-size: 0.98rem;
}

/* ===== Hero ===== */

.hero {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto;
    color: #c4c4c4;
    line-height: 1.5;
}

/* ===== Timeline ===== */

.timeline {
    position: relative;
    margin-left: 14px;
    padding-left: 24px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(250, 250, 250, 0.9),
        rgba(250, 250, 250, 0.9)
    );
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 28px;
}

.timeline-marker {
    position: absolute;
    left: -7px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #101010;
}

.timeline-content {
    background: rgba(10, 10, 10, 0.9);
    border-radius: 12px;
    padding: 16px 18px 14px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    width: 100%;
}

.timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    color: #a7a7a7;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #d7d7d7;
    line-height: 1.5;
}

/* ===== Contact ===== */

.section-contact {
    margin-top: 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    gap: 32px;
}

.contact-info {
    font-size: 0.98rem;
}

.contact-line {
    margin-bottom: 10px;
}

.contact-line a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-line a:hover {
    border-bottom-color: #ffffff;
}

.contact-note {
    margin-top: 12px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Form */

.contact-form {
    background: rgba(10, 10, 10, 0.9);
    border-radius: 14px;
    padding: 20px 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-row label {
    font-size: 0.88rem;
    margin-bottom: 5px;
    color: #dcdcdc;
}

.form-row input,
.form-row textarea {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 11px;
    background: rgba(5, 5, 5, 0.85);
    color: #f5f5f5;
    font-size: 0.95rem;
    outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #777777;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: rgba(255, 255, 255, 0.7);
}

/* Temporary disabled button */
.btn-disabled {
    width: 100%;
    padding: 10px 0;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.16);
    color: #f3f3f3;
}

/* ===== Footer ===== */

.footer {
    text-align: center;
    padding: 16px 20px 22px;
    font-size: 0.82rem;
    color: #8c8c8c;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .nav-inner {
        flex-direction: row;
        gap: 16px;
    }

    .nav-links {
        gap: 18px;
        font-size: 0.95rem;
    }

    .page-content {
        padding: 110px 16px 50px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

  /* Navbar container grows and stacks content */
  .navbar.open .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px; /* space between top row and menu */
  }

    .navbar.open {
      background: rgba(0, 0, 0, 0.75) !important;
      backdrop-filter: blur(14px) !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  }

  /* Top row holds logo + X aligned left/right */
  .mobile-top-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Center the nav links vertically */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items:first baseline;
    gap: 22px;
    width: 100%;
  }

  .navbar.open .nav-links {
    display: flex;
  }

  /* Show hamburger */
  .nav-toggle {
    display: block;
  }

  /* Turn hamburger into X */
  .navbar.open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}


.error-message {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    height: 16px; /* keeps spacing consistent */
}

input.invalid, textarea.invalid {
    border: 1px solid #ff4d4d !important;
}

.form-status {
    margin-top: 16px;
}
