/* =========================================================
   MAIN CONTAINER
========================================================= */

.Main-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: url("images/hero-section/hero-section-background.png")
    center / cover no-repeat;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;

  height: 80px;
  padding: 16px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: blur(10px);

  position: sticky;
  top: 0;
  z-index: 1000;

  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll state */
.header.scrolled {
  background: var(--card);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

/* =========================================================
   NAVIGATION
========================================================= */

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.nav a.active {
  font-weight: 600;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* =========================================================
   MOBILE NAV
========================================================= */

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--card);
    border-top: 1px solid var(--border);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.open {
    max-height: 420px;
  }

  .nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .auth-buttons {
    display: none;
  }
}


/* =========================================================
   FOOTER LAYOUT
========================================================= */

.footer {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 112px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}


/* =========================================================
   FOOTER TOP LAYOUT
========================================================= */

.footer-top {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
}

/* Footer divider */
.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 64px 0 32px;
}

/* =========================================================
   FOOTER BOTTOM LAYOUT
========================================================= */

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Left align logo */
.footer-logo {
  justify-self: start;
}

/* Center button */
.back-to-top {
  justify-self: center;
}

/* Right align copyright */
.footer-bottom p {
  justify-self: end;
}


/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .footer {
    padding: 80px 48px 32px;
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .footer {
    padding: 64px 24px 24px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .back-to-top {
    margin: 0 auto;
  }
}
