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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-background);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/** Layout **/
header {
  position: fixed;
  width: 100%;
  padding: 1rem 1.5rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 4, 29, 0.8);
  backdrop-filter: blur(5px);
}

.header-logo-img {
  height: 35px; /* Slightly smaller for mobile header */
  width: auto;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

footer {
  background: none;
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  margin-top: auto; /* Pushes footer to the bottom */
  position: relative;
  z-index: 5;
}

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

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 1.5rem;
  scroll-margin-top: 5rem;
}

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

.footer-nav a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-accent-blue);
}
/** Typography **/
h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 2px;
  color: var(--color-text-headings);
  text-shadow: 0 0 10px var(--glass-shadow);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

/** Logo Section **/
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-container .main-logo {
  max-width: 300px; /* A good size for a hero logo */
  height: auto;
  background: transparent;
  margin-bottom: 1.5rem;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-headings);
  text-shadow: 0 0 10px var(--glass-shadow);
}

.logo-container:hover .subtitle::after {
  transform: scaleX(1);
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-box h1 {
  margin-bottom: 0 !important;
}

.logo-box:hover {
  transform: scale(1);
}

.subtitle {
  position: relative;
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-top: 1.5rem;
  color: var(--color-text-headings);
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--glass-shadow);
}

.subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--color-text-headings);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.5, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--color-text-headings);
}

.tag-line {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--color-text-primary);
  text-align: center;
  max-width: 600px;
  line-height: 1.8;
  letter-spacing: 1px;
  font-weight: 300;
  transition: var(--transition);
  cursor: pointer;
}

.tag-line:hover {
  color: var(--color-text-headings);
}

/** Navigation **/
.main-nav {
  position: absolute;
  background: rgba(2, 4, 29, 0.98);
  color: var(--color-text-headings);
  top: 100%;
  right: 1.5rem;
  left: auto;
  z-index: 100;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1rem 1.5rem;
  gap: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  min-width: 150px;
}

.main-nav.nav--visible {
  display: flex;
}

.main-nav.no-transition {
  transition: none !important;
}

.nav-toggle {
  padding: 0.5em;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-toggle {
  height: 35px;
  width: auto;
  display: block;
  opacity: 1;
}

.hamburger {
  display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--color-text-headings);
  width: 2em;
  height: 3px;
  border-radius: 1em;
  transition: none;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.hamburger::before {
  top: 6px;
}
.hamburger::after {
  bottom: 6px;
}

.nav-open .hamburger {
  transform: none;
}
.nav-open .hamburger::before {
  transform: none;
}
.nav-open .hamburger::after {
  opacity: 1;
}

.nav-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem 0;
  position: relative;
  transition: color 150ms ease-out;
  display: block;
  width: 100%;
}

.nav-link:hover {
  color: var(--color-text-headings);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent-blue);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 150ms ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Scrim overlay - only on mobile */
.nav-scrim {
  display: none;
}

.nav-toggle {
  padding: 0.5em;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  right: 1.5em;
  top: 1.5em;
  z-index: 1000;
}

.hamburger {
  display: block;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--color-text-headings);
  width: 2em;
  height: 3px;
  border-radius: 1em;
  transition: transform 150ms ease-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.hamburger::before {
  top: 6px;
}
.hamburger::after {
  bottom: 6px;
}

.nav-open .hamburger {
  transform: rotate(0.625turn);
}
.nav-open .hamburger::before {
  transform: rotate(90deg) translateX(-6px);
}
.nav-open .hamburger::after {
  opacity: 0;
}
.nav-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem 0;
  position: relative;
  transition: color 150ms ease-out;
  display: block;
  width: 100%;
}

.nav-link:hover {
  color: var(--color-text-headings);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent-blue);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 150ms ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/** Content Sections **/
.content-container {
  background: var(--glass-background);
  padding: 3rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 30px var(--glass-shadow);
  backdrop-filter: blur(5px);
  max-width: 900px;
  text-align: left;
}

.content-container p {
  margin-bottom: 1.5rem;
}

/** Vision Page **/
.vision-container {
  width: 100%;
  max-width: 1000px;
  padding: 2rem;
}

.vision-title {
  color: var(--color-text-headings);
  margin-bottom: 4rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.principle-card i {
  font-size: 2.5rem;
  color: var(--color-accent-blue);
  margin-bottom: 1.5rem;
}

.principle-card:nth-child(2) i {
  color: var(--color-accent-orange);
}

.principle-card:nth-child(3) i {
  color: var(--color-accent-green);
}

.principle-card:nth-child(4) i {
  color: var(--color-accent-purple);
}

.principle-card h3 {
  font-size: 1.5rem;
  color: var(--color-text-headings);
  margin-bottom: 1rem;
}

/** Roadmap Page **/
.roadmap-container {
  width: 100%;
  max-width: 1100px;
  padding: 2rem;
  text-align: center;
}

.roadmap-title {
  color: var(--color-text-headings);
  margin-bottom: 1.5rem;
}

.roadmap-intro {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  color: var(--color-text-primary);
  font-size: 1.1rem;
}

.roadmap-phases {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.phase-header h3 {
  font-size: 1.8rem;
  color: var(--color-text-headings);
}

.phase-header span {
  color: var(--color-accent-blue);
  font-weight: bold;
}

.phase-objective {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.milestone-list {
  list-style: none;
  padding-left: 1rem;
}

.milestone-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.milestone-list li::before {
  content: "\f0da"; /* FontAwesome right arrow */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-accent-blue);
}

/** Mission Page **/
.mission-container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  text-align: center;
}

.mission-title {
  color: var(--color-text-headings);
  margin-bottom: 1.5rem;
}

.mission-intro {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  color: var(--color-text-primary);
  font-size: 1.1rem;
}

.use-case-title {
  font-size: 2rem;
  color: var(--color-text-headings);
  margin-bottom: 1rem;
}

.use-case-intro {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  color: var(--color-text-primary);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  text-align: left;
}

.use-case-card h4 {
  font-size: 1.4rem;
  color: var(--color-accent-blue);
  margin-bottom: 1.5rem;
}

.use-case-card p {
  margin-bottom: 1rem;
}

/** Reusable Components (Glass Cards) **/
.principle-card,
.phase-card,
.use-case-card {
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 30px var(--glass-shadow);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.principle-card:hover,
.phase-card:hover,
.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--glass-shadow), 0 0 20px var(--color-accent-glow);
}

.principle-card {
  padding: 2rem;
  text-align: center;
}

.phase-card {
  padding: 2rem 2.5rem;
  text-align: left;
}

.use-case-card {
  padding: 2rem;
  text-align: left;
}

/** Mission Page Timeline **/
.timeline {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 60px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 50%;
  /* Height is the item's height plus the gap between items */
  height: calc(100% + 50px);
  top: 50%;
  border-style: solid;
  border-color: var(--glass-border);
  border-width: 0 0 4px 4px;
  border-bottom-left-radius: 100px;
  right: 0;
  transform: translateX(50%);
  z-index: -1;
}

/** Media Queries **/
@media (max-width: 767px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .logo-box {
    padding: 1.5rem 2.5rem;
  }
  .subtitle {
    font-size: 1.4rem;
    letter-spacing: 3px;
  }
  .tag-line {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .use-case-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .main-nav {
    position: static;
    background: none;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    box-shadow: none;
    display: flex;
    min-width: auto;
  }

  .nav-toggle {
    display: none;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  header {
    background: transparent;
    backdrop-filter: none;
    justify-content: center;
  }
}
