* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 260px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f4f7ff;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(3, 8, 18, 0.28), rgba(3, 8, 18, 0.45)),
    url("images/main-page-background.png") center top / cover scroll;
  background-color: #050a12;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================
   SITE HEADER — FIXED LOGO + EXPANDING FOLDER NAV
========================= */

.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  min-height: 260px;
  display: grid;
  grid-template-columns: 18.75% 81.25%;
  align-items: start;
  overflow: visible;
  box-shadow: none;
}

/* Keep the fixed logo panel visually independent from the expanding menu. */
.logo-zone {
  box-shadow: none;
  border-bottom: 0;
}

/* The logo side never grows when a navigation folder opens. */
.logo-zone {
  position: relative;
  z-index: 6;
  width: 100%;
  height: 260px;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background:
    linear-gradient(
      rgba(2, 5, 10, 0),
      rgba(2, 5, 10, 0)
    ),
    url("images/top-menu-banner-left-bg.png")
      center center / 78.125% auto no-repeat;
  border-right: 0;
}

.brand {
  position: relative;
  z-index: 7;
  display: block;
  width: min(88%, 245px);
  max-height: 235px;
  margin: 0;
  padding: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 235px;
  object-fit: contain;
}

/* Only this right-hand side expands. */
.menu-zone {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 260px;
  min-height: 260px;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: visible;
  border: 0;
  box-shadow: none;
  transition: height 0.32s ease, min-height 0.32s ease;
}

/* Modern browsers: grow the right banner only while one folder is open. */
.menu-zone:has(.nav-item.open) {
  height: 470px;
  min-height: 470px;
}

.cybertronian-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    url("images/top-menu-banner-right-bg.png")
      center center / 100% 100% no-repeat;
}

.menu-zone-banner {
  display: none;
}

.menu-zone-inner {
  position: relative;
  z-index: 6;
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: flex-start;
  padding: 106px 18px 18px;
  overflow: visible;
}

.main-nav {
  position: relative;
  width: 100%;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
  overflow: visible;
}

.nav-item {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: flex-start;
  overflow: visible;
}

.nav-tab {
  position: relative;
  z-index: 12;
  isolation: isolate;
  width: 100%;
  min-height: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  clip-path:
    polygon(
      12px 0,
      calc(100% - 12px) 0,
      100% 12px,
      100% 100%,
      0 100%,
      0 12px
    );
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.nav-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.34) 0%,
      currentColor 9%,
      rgba(22,27,34,0.96) 24%,
      rgba(5,8,13,0.98) 58%,
      currentColor 100%
    );
}

.nav-tab::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(32,38,48,0.96),
      rgba(5,8,13,0.98)
    );
  clip-path:
    polygon(
      10px 0,
      calc(100% - 10px) 0,
      100% 10px,
      100% 100%,
      0 100%,
      0 10px
    );
}

.nav-tab img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px currentColor);
}

.nav-tab span {
  position: relative;
  z-index: 2;
}

.nav-tab:hover,
.nav-item.open .nav-tab {
  transform: translateY(-2px);
  filter: brightness(1.22)
          drop-shadow(0 0 8px currentColor);
}

.nav-tab:active {
  transform: translateY(0) scale(0.985);
}

/*
   Each dropdown becomes a full-width "folder body".
   Because the dropdown lives inside each 1/6-width nav item,
   the nth-child offsets move it back to the left edge of the nav.
*/
.nav-dropdown {
  position: absolute;
  z-index: 8;
  top: 49px;
  width: calc(600% + 30px);
  min-height: 170px;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  color: #fff;
  border: 2px solid currentColor;
  border-radius: 0 12px 12px 12px;
  overflow: hidden;
  box-shadow:
    0 18px 34px rgba(0,0,0,0.58),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 0 35px rgba(0,0,0,0.24);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  clip-path:
    polygon(
      16px 0,
      calc(100% - 16px) 0,
      100% 16px,
      100% calc(100% - 16px),
      calc(100% - 16px) 100%,
      16px 100%,
      0 calc(100% - 16px),
      0 16px
    );
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.08),
      transparent 24%,
      transparent 74%,
      rgba(0,0,0,0.18)
    );
}

.dropdown-visual {
  position: relative;
  min-height: 170px;
  display: grid;
  place-items: center start;
  padding: 0 0 0 18px;
  border-right: 0;
  background:
    linear-gradient(
      145deg,
      rgba(0,0,0,0.05),
      rgba(0,0,0,0.42)
    );
  overflow: hidden;
}

.dropdown-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

.dropdown-visual img {
  position: relative;
  z-index: 1;
  width: 75%;
  height: 75%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  filter:
    drop-shadow(0 0 8px currentColor)
    drop-shadow(0 0 20px currentColor);
}

.dropdown-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 34px;
}

.dropdown-kicker {
  margin: 0;
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.68rem;
  font-weight: 800;
}

.nav-dropdown strong {
  display: block;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dropdown-copy p {
  max-width: 680px;
  margin: 0 0 10px;
  color: rgba(255,255,255,0.84);
  line-height: 1.55;
  font-size: 0.92rem;
}

.dropdown-link {
  min-width: 185px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 4px;
  color: #fff;
  background: rgba(0,0,0,0.34);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.dropdown-link:hover {
  transform: translateX(3px);
  background: rgba(0,0,0,0.52);
  box-shadow: 0 0 14px rgba(255,255,255,0.16);
}


.nav-item:nth-child(1) .nav-dropdown {
  left: 0;
  background:
    linear-gradient(145deg, rgba(190, 14, 31, 0.97), rgba(73, 5, 13, 0.98));
}

.nav-item:nth-child(2) .nav-dropdown {
  left: calc(-100% - 6px);
  background:
    linear-gradient(145deg, rgba(112, 48, 171, 0.97), rgba(42, 13, 70, 0.98));
}

.nav-item:nth-child(3) .nav-dropdown {
  left: calc(-200% - 12px);
  background:
    linear-gradient(145deg, rgba(190, 130, 12, 0.97), rgba(76, 47, 4, 0.98));
}

.nav-item:nth-child(4) .nav-dropdown {
  left: calc(-300% - 18px);
  background:
    linear-gradient(145deg, rgba(16, 132, 185, 0.97), rgba(4, 48, 75, 0.98));
}

.nav-item:nth-child(5) .nav-dropdown {
  left: calc(-400% - 24px);
  background:
    linear-gradient(145deg, rgba(14, 151, 164, 0.97), rgba(4, 58, 67, 0.98));
}

.nav-item:nth-child(6) .nav-dropdown {
  left: calc(-500% - 30px);
  background:
    linear-gradient(145deg, rgba(38, 130, 194, 0.97), rgba(9, 52, 91, 0.98));
}

.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-kicker {
  margin: 0;
  opacity: 0.76;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.68rem;
  font-weight: 800;
}

.nav-dropdown strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.dropdown-link {
  min-width: 185px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 4px;
  color: #fff;
  background: rgba(0,0,0,0.34);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.dropdown-link:hover {
  transform: translateX(3px);
  background: rgba(0,0,0,0.52);
  box-shadow: 0 0 14px rgba(255,255,255,0.16);
}

.autobots {
  color: #ff3344;
}

.decepticons {
  color: #b36cff;
}

.masterpiece {
  color: #ffc238;
}

.third-party {
  color: #27c8ff;
}

.primes {
  color: #45d9e8;
}

.contact-tab {
  color: #72cfff;
}

/* Mobile menu remains hidden until the mobile breakpoint. */
.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 66vh;

  display: grid;
  place-items: center;

  padding: 90px 20px 70px;

  background:
    linear-gradient(
      180deg,
      rgba(2, 7, 16, 0.08),
      rgba(2, 7, 16, 0.62)
    );
}

.hero-logo {
  width: min(780px, 82vw);

  filter:
    drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
}

.hero-logo img {
  width: 100%;
  display: block;
}

/* =========================
   COLLECTION FOLDERS
========================= */

.folder-section {
  width: min(1400px, calc(100% - 30px));

  margin: 20px auto;

  border: 1px solid rgba(255, 255, 255, 0.28);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55);

  scroll-margin-top: 260px;
}

.folder-tab {
  width: 100%;
  min-height: 78px;

  display: grid;

  grid-template-columns: 62px 1fr 45px;

  align-items: center;

  text-align: left;

  padding: 0 22px;

  border: 1px solid currentColor;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      rgba(10, 15, 24, 0.96),
      rgba(5, 8, 14, 0.96)
    );

  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 800;

  clip-path:
    polygon(
      15px 0,
      calc(100% - 15px) 0,
      100% 15px,
      100% calc(100% - 15px),
      calc(100% - 15px) 100%,
      15px 100%,
      0 calc(100% - 15px),
      0 15px
    );
}

.tab-icon {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;
}

.tab-icon img {
  width: 50px;
  height: 50px;

  display: block;

  object-fit: contain;

  filter:
    drop-shadow(0 0 6px currentColor)
    drop-shadow(0 0 12px currentColor);
}

.tab-arrow {
  justify-self: end;
  font-size: 2rem;
  font-weight: 400;
}

.folder-content {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 35px;

  max-height: 0;

  overflow: hidden;

  opacity: 0;

  padding: 0 5%;

  transition:
    max-height 0.55s ease,
    opacity 0.35s ease,
    padding 0.55s ease;
}

.folder-section.open .folder-content {
  max-height: 900px;

  opacity: 1;

  padding-top: 42px;
  padding-bottom: 42px;
}

.autobots-section .folder-content {
  background:
    linear-gradient(
      135deg,
      rgba(85, 5, 14, 0.94),
      rgba(24, 6, 12, 0.96)
    );
}

.decepticons-section .folder-content {
  background:
    linear-gradient(
      135deg,
      rgba(47, 10, 77, 0.94),
      rgba(13, 5, 27, 0.96)
    );
}

.masterpiece-section .folder-content {
  background:
    linear-gradient(
      135deg,
      rgba(82, 54, 5, 0.94),
      rgba(24, 16, 4, 0.96)
    );
}

.third-party-section .folder-content {
  background:
    linear-gradient(
      135deg,
      rgba(4, 55, 78, 0.94),
      rgba(4, 16, 28, 0.96)
    );
}

.primes-section .folder-content {
  background:
    linear-gradient(
      135deg,
      rgba(5, 55, 76, 0.94),
      rgba(4, 16, 29, 0.96)
    );
}

/* =========================
   COLLECTION CONTENT
========================= */

.section-heading {
  align-self: center;
}

.section-kicker {
  display: block;

  margin-bottom: 10px;

  font-size: 0.72rem;

  letter-spacing: 3px;

  font-weight: 800;

  opacity: 0.78;
}

.section-heading h2 {
  margin: 0 0 12px;

  font-size: clamp(2rem, 4vw, 3.4rem);

  text-transform: uppercase;

  letter-spacing: 2px;
}

.section-heading p {
  max-width: 580px;

  margin: 0;

  color: rgba(255, 255, 255, 0.82);

  line-height: 1.7;
}

.collection-placeholder {
  min-height: 310px;

  padding: 30px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.22);

  background: rgba(0, 0, 0, 0.28);

  box-shadow:
    inset 0 0 35px rgba(0, 0, 0, 0.28);
}

.placeholder-icon {
  font-size: 0.7rem;
  letter-spacing: 4px;
  opacity: 0.65;
}

.collection-placeholder h3 {
  margin: 14px 0 8px;

  font-size: 1.7rem;

  text-transform: uppercase;
}

.collection-placeholder p {
  margin: 0 0 22px;

  line-height: 1.6;

  color: rgba(255, 255, 255, 0.72);
}

.collection-button,
.send-button {
  width: fit-content;

  border: 1px solid currentColor;

  padding: 12px 22px;

  color: #fff;

  background: rgba(0, 0, 0, 0.35);

  text-transform: uppercase;

  letter-spacing: 1.5px;

  font-weight: 800;
}

.collection-button:hover,
.send-button:hover {
  background: rgba(255, 255, 255, 0.12);

  box-shadow: 0 0 20px currentColor;
}

/* =========================
   CONTACT
========================= */

.contact-section {
  width: min(1400px, calc(100% - 30px));

  margin: 55px auto 20px;

  padding: 55px 5%;

  border: 1px solid #42cfff;

  background:
    linear-gradient(
      rgba(2, 18, 32, 0.92),
      rgba(2, 10, 20, 0.96)
    ),
    url("images/main-page-background.png") center / cover;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.6);

  scroll-margin-top: 260px;
}

.contact-panel {
  display: grid;

  grid-template-columns: 0.75fr 1.25fr;

  gap: 50px;

  align-items: center;
}

.contact-title {
  display: flex;
  align-items: center;

  gap: 18px;

  margin-bottom: 12px;
}

.contact-title img {
  width: 64px;
  height: 64px;

  object-fit: contain;

  filter:
    drop-shadow(0 0 8px #42cfff)
    drop-shadow(0 0 15px #42cfff);
}

.contact-title h2 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.4rem);

  text-transform: uppercase;

  letter-spacing: 2px;
}

.contact-copy p {
  max-width: 580px;

  margin: 0;

  color: rgba(255, 255, 255, 0.82);

  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
}

.contact-form label {
  display: grid;

  gap: 7px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.78rem;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  border: 1px solid rgba(93, 202, 255, 0.45);

  outline: none;

  padding: 13px 14px;

  color: #fff;

  background: rgba(0, 4, 10, 0.72);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #59d4ff;

  box-shadow:
    0 0 15px rgba(65, 199, 255, 0.25);
}

.contact-form textarea {
  resize: vertical;

  min-height: 150px;
}

.send-button {
  width: 100%;

  color: #4bd5ff;
}

.form-status {
  min-height: 20px;

  margin: 0;

  color: #7be3ff;
}

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

.site-footer {
  display: flex;

  justify-content: space-between;

  padding: 28px 5%;

  color: rgba(255, 255, 255, 0.55);

  background: rgba(2, 5, 10, 0.94);

  font-size: 0.72rem;

  letter-spacing: 2px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

  .site-header {
    grid-template-columns: 21% 79%;
    min-height: 220px;
  }

  .logo-zone {
    height: 220px;
  }

  .menu-zone {
    height: 220px;
    min-height: 220px;
  }

  .menu-zone:has(.nav-item.open) {
    height: 430px;
    min-height: 430px;
  }

  .brand {
    width: min(88%, 205px);
    max-height: 195px;
  }

  .brand img {
    max-height: 195px;
  }

  .menu-zone-inner {
    height: 100%;
    min-height: 220px;
    padding: 78px 12px 16px;
  }

  .main-nav {
    height: 58px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-item {
    height: 52px;
  }

  .nav-tab {
    min-height: 48px;
    height: 48px;
    padding: 6px 9px;
    gap: 7px;
    font-size: 0.68rem;
  }

  .nav-tab img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .nav-dropdown {
    top: 54px;
    width: calc(300% + 12px);
    min-height: 170px;
  }

  .dropdown-visual {
    min-height: 170px;
  }

  .folder-content,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 720px) {
  .menu-zone:has(.nav-item.open) {
    height: 76px;
    min-height: 76px;
  }


  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    display: block;
    height: 76px;
    min-height: 76px;
  }

  .logo-zone {
    position: absolute;
    inset: 0 auto 0 0;

    width: 145px;
    height: 76px;

    padding: 6px 8px;
    border-right: 0;
  }

  .brand {
    width: 125px;
    max-height: 64px;
  }

  .brand img {
    max-height: 64px;
  }

  .menu-zone {
    width: 100%;
    height: 76px;

    justify-content: flex-end;

    background: transparent;
  }

  .cybertronian-frame {
    display: none;
  }

  .menu-zone-inner {
    width: 100%;
    height: 76px;
    min-height: 76px;

    justify-content: flex-end;
    padding: 0 12px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;

    width: 46px;
    height: 42px;

    display: grid;
    place-content: center;

    gap: 5px;

    border: 1px solid #4bd5ff;

    background: rgba(0, 0, 0, 0.6);
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;

    display: block;

    background: #fff;
  }

  .mobile-nav {
    position: sticky;
    top: 76px;

    z-index: 900;

    display: none;

    padding: 8px 12px;

    background: rgba(3, 7, 13, 0.98);

    border-bottom:
      1px solid rgba(75, 213, 255, 0.4);
  }

  .mobile-nav.open {
    display: grid;
    gap: 6px;
  }

  .mobile-nav button {
    display: flex;
    align-items: center;

    gap: 12px;
    padding: 10px 13px;

    border:
      1px solid rgba(255, 255, 255, 0.2);

    color: #fff;

    background:
      rgba(15, 22, 32, 0.95);

    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
  }

  .mobile-nav button img {
    width: 34px;
    height: 34px;

    object-fit: contain;
    flex: 0 0 34px;
  }

  .hero {
    min-height: 48vh;
    padding: 55px 15px;
  }

  .folder-section,
  .contact-section {
    width: calc(100% - 16px);
  }

  .folder-tab {
    min-height: 64px;

    grid-template-columns: 48px 1fr 35px;

    padding: 0 14px;

    font-size: 0.95rem;
  }

  .tab-icon {
    width: 42px;
    height: 42px;
  }

  .tab-icon img {
    width: 38px;
    height: 38px;
  }

  .folder-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .folder-section.open .folder-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 35px 20px;
  }

  .contact-title img {
    width: 52px;
    height: 52px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
  }
}
