/* ====================================
   BASE STYLES
   ==================================== */

html {
  font-size: 62.5%;
}

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

:root {
  --size-font: clamp(0.5rem, calc(0.5rem + 0.52083vw), 1rem);
  --color-primary: #FF8200;
  --color-glow: #ffa500;
  --color-text-light: #f5f5f5;
  --color-text-medium: #DDDDDD;
  --color-text-dark: #BBBBBB;
  --color-bg-dark: #000;
  --color-bg-navy: #0a0f2c;
  --color-border: #343434;
  --color-border-blue: rgba(30, 40, 90, 0.3);
}

body {
  font-size: var(--size-font);
}

h2 {
  font-size: clamp(2.4rem, calc(2.4rem + 2.08333vw), 6.4rem);
}


/* ====================================
   FONTS
   ==================================== */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("https://cdn.prod.website-files.com/68b652bbd6c64a44c8fe3e5e/68b657be33fe818503e22525_PPNeueMontreal-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}


/* ====================================
   ACCESSIBILITY
   ==================================== */

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 0;
}


/* ====================================
   ANIMATIONS
   ==================================== */

.char {
  display: inline-block;
  transform: translateY(175px);
  transform-origin: bottom center;
  transition: transform 0.8s ease;
}

.text {
  overflow: hidden;
}

@keyframes fadeInUpCustom {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


/* ====================================
   BACKGROUND GRADIENTS
   ==================================== */

.bg-gr {
  background: linear-gradient(to bottom, var(--color-bg-navy) 0%, var(--color-bg-dark) 100%);
}

.bg-gr-rv {
  background: linear-gradient(to bottom, var(--color-bg-dark) 0%, var(--color-bg-navy) 100%);
}

.bg-gr-full {
  background: linear-gradient(to bottom, var(--color-bg-navy) 0%, var(--color-bg-dark) 50%, var(--color-bg-navy) 100%);
}


/* ====================================
   MEDIA CONTENT BLOCKS
   ==================================== */

.video-1,
.video-2,
.join-forums,
.join-discord,
.join-instagram {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  border: 4px solid var(--color-border-blue);
  border-radius: 4px;
  will-change: transform;
  backface-visibility: hidden;
  z-index: 1;
}

/* Background Images */
.video-1 {
  background-image: url('https://mechcommanderonline.com/wp-content/uploads/2025/11/123.png');
}

.video-2 {
  background-image: url('https://mechcommanderonline.com/wp-content/uploads/2025/11/colonel.jpg');
}

.join-forums,
.join-discord,
.join-instagram {
  background-image: url('https://mechcommanderonline.com/wp-content/uploads/2025/11/colonel.jpg');
}

/* Hover Overlay Effect */
.video-1::before,
.video-2::before,
.join-forums::before,
.join-discord::before,
.join-instagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.video-1:hover::before,
.video-2:hover::before,
.join-forums:hover::before,
.join-discord:hover::before,
.join-instagram:hover::before {
  transform: scale(1.1);
}


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

/* Elementor Menu Items */
.elementor-item {
  font-family: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--color-glow) !important;
  text-shadow: 0 0 1px hsla(39, 100%, 50%, .25), 
               0 0 3px hsla(39, 100%, 50%, .15);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  filter: none !important;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.elementor-item:hover,
.elementor-item:focus {
  color: #ffb733 !important;
  text-shadow: 0 0 2px rgba(255, 165, 0, 0.4), 
               0 0 4px rgba(255, 165, 0, 0.2);
}

/* Menu Trigger */
#menu-trigger {
  display: none !important;
}


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

.mobile-menu__trigger {
  cursor: pointer;
  border: 2px solid rgb(61, 82, 143);
  background: linear-gradient(0deg, rgba(61, 82, 143, 0) 0%, rgba(10, 10, 10, 0.4) 100%), rgb(61, 82, 143) !important;
  outline-color: rgb(61, 82, 143);
  color: white;
  border-radius: 6.4px;
  padding: 0.64rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000 !important;
  position: relative;
  transition: color 0.32s ease-in-out, 
              background-color 0.48s ease-in-out, 
              border-color 0.48s ease-in-out;
  margin-right: 0.6rem;
}

.mobile-menu__trigger:hover {
  background: linear-gradient(0deg, rgba(99, 116, 165, 0) 0%, rgba(10, 10, 10, 0.4) 100%), rgb(99, 116, 165);
  border-color: rgb(99, 116, 165);
}

.mobile-menu__trigger svg {
  width: 24px;
  height: 24px;
  margin-bottom: -0.4rem;
  stroke: white;
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: linear-gradient(to bottom, var(--color-bg-dark) 0%, var(--color-bg-navy) 100%);
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.mobile-menu__content {
  height: calc(100% - 155.62px);
  margin-top: 77.81px;
  margin-bottom: 77.81px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: "Suisse Intl Condessed", Sans-serif;
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1em;
  letter-spacing: -0.032em;
}

.mobile-menu__nav__item a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.32s ease;
}

.mobile-menu__nav__item a:hover {
  color: var(--color-text-light);
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
}


/* ====================================
   BLUR EFFECTS
   ==================================== */

.blurbox {
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.3);
}

.blurbox .dialog-widget-content,
.elementor-popup-modal .dialog-widget-content {
  backdrop-filter: none;
}

.elementor-popup-modal {
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.5);
}

.elementor-popup-modal .dialog-widget-content {
  background-color: rgba(0, 0, 0, 0.7);
}


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

footer.footer,
.footer,
.marquee {
  background: linear-gradient(85deg, #0c0c18, var(--color-bg-dark));
  color: var(--color-text-light);
}

footer.footer {
  background: linear-gradient(to bottom, var(--color-bg-navy) 0%, var(--color-bg-dark) 100%);
  padding: 8rem 3.2rem;
  border-top: 2px solid var(--color-border);
  font-family: 'PP Neue Montreal', sans-serif;
}

.footer-container {
  max-width: 2560px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4.8rem;
  margin-bottom: 8rem;
}

.logo-section {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.logo-section img {
  max-width: 320px;
}

.tagline {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--color-text-medium);
  letter-spacing: -0.024em;
}

.links-section {
  grid-column: span 6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.8rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.footer-heading {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -0.032em;
  color: var(--color-text-dark);
  font-weight: 500;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-link,
.footer-left a,
.back-to-top {
  color: var(--color-text-light);
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-weight: 500;
}

.footer-link {
  font-size: 2.4rem;
}

.footer-left a,
.back-to-top {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -0.032em;
  color: var(--color-text-medium);
}

.footer-link::after,
.footer-left a::after,
.back-to-top::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 0.1rem;
  background-color: var(--color-text-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(.32, .72, 0, 1);
}

.footer-link:hover::after,
.footer-left a:hover::after,
.back-to-top:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-link:not(:hover)::after,
.footer-left a:not(:hover)::after,
.back-to-top:not(:hover)::after {
  transform-origin: right;
  transform: scaleX(0);
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4.8rem;
  padding-top: 12.8rem;
}

.footer-left {
  display: flex;
  gap: 2.4rem;
}

.copyright {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -0.032em;
  color: var(--color-text-medium);
  text-align: right;
}

.footer-icons {
  transition: all 0.3s ease;
  color: #00FF8A;
}


/* ====================================
   MISC ELEMENTS
   ==================================== */

.gallery-carousel img {
  cursor: pointer;
}

.close-btn {
  cursor: pointer;
}


/* ====================================
   MEDIA QUERIES
   ==================================== */

@media (min-width: 1025px) {
  .mobile-menu__trigger {
    display: none;
  }
}

@media (max-width: 1024px) {
  .logo {
    width: 100%;
  }

  #menu-trigger {
    display: block !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  footer.footer {
    padding: 60px 20px 30px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .copyright {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-heading {
    font-size: 11px;
  }

  .footer-link {
    font-size: 14px;
  }

  .tagline {
    font-size: 18px;
  }
}