

/* Reset and Base Styles */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: linear-gradient(90deg, #43276C 1.92%, #221534 65.38%, #3B1855 100%);
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
}

/* Home Page Container */
.home-page {
  background-blend-mode: plus-darker;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Header */
.main-header {
  background-color: var(--deep-space);
  border-bottom: var(--narrow-border) solid var(--dark-pink);
  height: 78px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 11px;
  height: 100%;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}

.header-title span,
.header-title a {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2.3077vw, 1.5rem);
  font-weight: 400;
  color: white;
  text-decoration: none;
}

.right-nav {
  display: flex;
  gap: clamp(1rem, 2.8846vw, 30px);
  align-items: center;
}

.right-nav span,
.right-nav a {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2.3077vw, 1.5rem);
  font-weight: 400;
  color: white;
  text-decoration: none;
}

.right-nav .nav-link {
  transition: opacity 0.2s ease;
}

.right-nav .nav-link:hover {
  opacity: 0.7;
}

.right-nav .nav-link.active {
  font-weight: 700;
  text-decoration: underline;
}

.github-logo {
  width: clamp(40px, 6.4423vw, 67px);
  height: clamp(39px, 6.3462vw, 66px);
  filter: brightness(0) invert(1);
}

/* Hero Section */
.hero {
  max-width: 1040px;
  width: 100%;
  aspect-ratio: 1040 / 428;
  margin: 0 auto;
  margin-top: 0;
  overflow: hidden;
  background-image: url("/images/aeoe-43-cascading-cataracts.png");
  background-size: cover;
  background-position: center;
  padding: 1rem;
  text-align: center;
}

.hero-title {
  font-family: "Risque", cursive;
  font-size: min(42.31vw, 440px);
  /* 440px ÷ 1040px = 42.31% of container width */
  font-weight: 400;
  color: white;
  margin: 0;
  margin-top: clamp(-79px, -7.6vw, -20px);
  /* -79px ÷ 1040px = -7.6% */
}

.hero-subtitle {
  font-family: "Orbitron", sans-serif;
  font-size: min(9.23vw, 96px);
  /* 96px ÷ 1040px = 9.23% of container width */
  font-weight: 700;
  color: var(--deep-space);
  text-shadow: 0px 4px 4px #e1c2d2;
  margin-top: max(-18vw, -170px);
}

/* Slogan Section */
.slogan {
  border-top: var(--narrow-border) solid var(--dark-pink);
  border-bottom: var(--narrow-border) solid var(--dark-pink);
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: var(--deep-space);
}

.slogan p {
  font-family: "Risque", cursive;
  font-size: 2rem;
  font-weight: 300;
  margin: 0;
  line-height: 1;
}

/* Divider */
.divider {
  max-width: 1040px;
  width: 100%;
  height: 12px;
  margin: 0 auto;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Step Sections */
.step {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: clamp(3rem, 15.3846vw, 160px) clamp(2rem, 7.6923vw, 80px) auto;
  gap: 0 12px;
  max-width: 1040px;
  width: 100%;
  min-height: 484px;
  margin: 0 auto;
  overflow: hidden;
  align-content: start;
}

.step.not-crowded {
  align-content: space-around;
}

.step>* {
  border: 0px solid red;
  /* for debugging */
}

.step-1 {
  background-image: url("/images/aeoe-3-exalted-sunborn.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.step-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(256deg, rgba(0, 0, 0, 0.00) 50.21%, rgba(0, 0, 0, 0.60) 69.45%);
  pointer-events: none;
  z-index: 1;
}

.step-2 {
  background-image: url("/images/aeoe-41-terrasymbiosis.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.step-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(72deg, rgba(0, 0, 0, 0.00) 54.8%, rgba(255, 255, 255, 0.40) 70.53%);
  pointer-events: none;
  z-index: 1;
}

.step-3 {
  background-image: url("/images/aeoe-49-bonders-enclave.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.step-3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(252deg, rgba(0, 0, 0, 0.00) 53.12%, rgba(187, 82, 119, 0.40) 69.36%);
  pointer-events: none;
  z-index: 1;
}

.step-action {
  font-family: "Risque", cursive;
  font-size: clamp(3rem, 15.3846vw, 160px);
  font-weight: 400;
  color: var(--deep-space);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--light-pink, #DDC7DD);
  text-shadow: 0px 4px 4px #e1c2d2;
  margin: 0;
  line-height: 1;
  align-self: end;
  position: relative;
  z-index: 2;
}

.step-object {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1;
  transform: translateY(-65%);
  position: relative;
  z-index: 3;
}

.step-description {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2.3077vw, 1.5rem);
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.2;
  position: relative;
  z-index: 3;
}

/* Step 1 - Right Aligned */
.step-1 .step-action {
  grid-column: 1 / 5;
  text-align: right;
}

.step-1 .step-object {
  font-size: clamp(2rem, 7.6923vw, 80px);
  grid-column: 1 / 5;
  text-align: right;
}

.step-1 .step-description {
  grid-column: 1 / 5;
  text-align: right;
}

/* Step 2 - Left Aligned */
.step-2 .step-action {
  grid-column: 5 / -1;
  text-align: left;
}

.step-2 .step-object {
  font-size: clamp(2rem, 7.6923vw, 80px);
  grid-column: 5 / -1;
  text-align: left;
}

.step-2 .step-description {
  grid-column: 5 / -1;
  text-align: left;
}

/* Step 3 - Right Aligned */
.step-3 .step-action {
  grid-column: 1 / 6;
  text-align: right;
}

.step-3 .step-object {
  font-size: clamp(2.5rem, 9.2308vw, 96px);
  grid-column: 1 / 6;
  text-align: right;
}

.step-3 .step-description {
  grid-column: 1 / 6;
  text-align: right;
}

/* Button Base Styles - shared appearance */
.button-base {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 10px outset var(--light-pink);
  width: clamp(180px, 22.3077vw, 232px);
  height: clamp(80px, 11.1538vw, 116px);
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 3.4615vw, 2.25rem);
  font-weight: 700;
  color: black;
  text-decoration: none;
  text-align: center;
}

.button-base:focus {
  outline: 3px solid var(--dark-pink);
}

.button-2 {
  margin: auto;
}

.button-base:disabled {
  color: gray;
  background-color: #f0f0f0;
  border-style: inset;
  cursor: not-allowed;
}

/* BEGIN Button - original button with 3D press behavior */
.begin-button {
  transition: all 0.1s ease;
}

.begin-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.begin-button:active {
  border-style: inset;
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero Button - buttons in hero sections */
.hero-button {
  transition: all 0.1s ease;
  background-color: var(--light-pink);
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-button.active:hover {
  transform: none;
}

.hero-button:active {
  border-style: inset;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-button.active {
  border-style: inset;
  background-color: #f0f0f0;
}

/* Hero buttons container - for multiple buttons side by side */
.hero-buttons {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  z-index: 3;
  grid-column: 3 / 8;
  grid-row: 3;
  justify-content: space-between;
}

/* First BEGIN button - positioned over Step 1 on large screens */
.button-1 {
  position: absolute;
  right: clamp(40px, 7.6923vw, 80px);
  bottom: clamp(40px, 7.6923vw, 80px);
  margin: 0;
  z-index: 3;
}

/* Second BEGIN button wrapper */
.button-wrapper {
  padding-top: clamp(2rem, 14.2308vw, 148px);
  padding-bottom: clamp(2rem, 14.2308vw, 148px);
}

/* Footer */
.main-footer {
  background-color: var(--deep-space);
  outline: var(--narrow-border) solid var(--dark-pink);
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.main-footer p {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.75rem, 2.3077vw, 1.5rem);
  font-weight: 400;
  color: white;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

/* Media Queries for Responsive Layout */

/* Tablet and Mobile: Single column layout */
@media (max-width: 768px) {

  .hero,
  .step {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem 2rem;
  }

  /* Stack all text in single column */
  .step-1 .step-action,
  .step-1 .step-object,
  .step-1 .step-description,
  .step-2 .step-action,
  .step-2 .step-object,
  .step-2 .step-description,
  .step-3 .step-action,
  .step-3 .step-object,
  .step-3 .step-description {
    grid-column: 1;
  }

  /* Reset button positioning for smaller screens */
  .button-1 {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0 auto;
    margin-top: clamp(2rem, 9vw, 148px);
  }

  /* Adjust margins for stacked layout */
  .step-1 .step-object,
  .step-2 .step-object {
    margin-top: 0.5rem;
  }

  .step-3 .step-object {
    margin-top: 0.5rem;
  }

  .step-1 .step-description,
  .step-2 .step-description,
  .step-3 .step-description {
    margin-top: 1rem;
  }

  /* Reduce section heights on mobile */
  .step {
    min-height: 300px;
  }

  .slogan {
    padding: 0 1rem;
  }

  .main-footer {
    padding: 0 1rem;
  }
}

