/* Gootech Header Navigation Styles */
/* ======================================================================= */
/* 
 * This file contains the navigation header styles for Gootech.
 * Namespaced to avoid conflicts with existing Gootech styles.
 */

/* CSS Variables for Header */
:root {
  --main-header-height: 100px;
  --main-header-height-md: 80px;
  --main-header-width-md: 1320px;
  --gootech-primary-color: #0A84FF;
  --gootech-dark-text: #2b2b2b;
  --gootech-light-bg: #f5f5f5;
  --gootech-dark-bg: #262626;
  --gootech-gray-text: #747474;
}

/* Reset potential conflicts with Gootech's existing header */
.main-header * {
  box-sizing: border-box;
}

/* Ensure header doesn't interfere with existing header class if any */
.main-header:not(.js-main-header) {
  /* Let the original header styles pass through if needed */
}

/* Main Header Container */
.main-header {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 999;
  width: 100%;
  top: 0;
}

.main-header__layout {
  margin: 0 auto;
  position: relative;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) / 1.6);
  padding-left: calc(var(--bs-gutter-x, 1.5rem) / 1.6);
}

.main-header__layout .main-header__inner {
  max-width: var(--main-header-width-md);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0;
  min-height: 80px;
  transition: padding 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-header__layout .main-header__inner::after {
  content: "";
  position: absolute;
  width: 100%;
  left: 0;
  height: 100%;
  opacity: 0;
  border-radius: 40px;
  backdrop-filter: blur(8px);
  filter: contrast(0.958);
  background-color: rgba(28, 28, 28, 0.9);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.main-header__layout .main-header__inner.move::after {
  opacity: 1;
}

.main-header__layout .main-header__inner.move {
  padding: 0.5rem 1.5rem;
  transform: translateY(10px);
  position: fixed;
  margin: 0 auto;
  left: 0;
  right: 0;
  border: 1px solid color-mix(in srgb, var(--default-color, #EBEBF5), transparent 85%);
  border-radius: 40px;
  transition: padding 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), border 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Logo Styles */
.main-header__layout .main-header__inner .main-header__logo {
  position: relative;
  z-index: 10;
  margin-left: 0;
  min-width: max-content;
  max-width: max-content;
  display: flex;
  align-items: center;
}

.main-header__layout .main-header__inner .main-header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.main-header__logo img {
  height: 50px;
  width: auto;
}

/* Navigation Styles */
.js .main-header, .js .main-header__layout {
  height: var(--main-header-height);
}

.main-header__nav {
  position: relative;
  z-index: 10;
}

.js .main-header__layout {
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--main-header-height-md);
}

.main-header__layout .main-header__nav:not(.is_mobile) .navbar-nav {
  height: 60px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  display: flex;
}

.main-header__layout .main-header__nav {
  font-size: 1.25em;
}

.main-header__layout .main-header__nav ul {
  list-style: none;
  padding-left: 0;
}

.main-header__layout .main-header__default:not(.is_mobile) {
  margin: 0 0.75em;
}

.main-header__layout .main-header__default .menu-item {
  position: relative;
  align-items: center;
  display: flex;
}

.main-header__layout .main-header__default .menu-item > a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding: 0 0.75em;
  font-size: 18px;
  height: 100%;
  position: relative;
  z-index: 10;
}

/* Span wrapper for hover dots - required for ::after positioning */
.main-header__layout .main-header__default .menu-item > a span {
  position: relative;
  display: inline-block;
  padding-left: 0.7em;
}

.main-header__layout .main-header__default .menu-item > a span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0) rotate(0.001deg);
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background-color: var(--gootech-primary-color);
  transition: all 0.57s cubic-bezier(0.5, 0.5, 0, 1), transform 0.5s cubic-bezier(0.5, 0.5, 0, 1);
}

.main-header__layout .main-header__default .menu-item > a:hover span::after {
  transform: translateY(-50%) scale(1) rotate(0.001deg);
}

/* Mobile Menu Trigger Icon */
.main-header__nav-trigger-icon {
  position: relative;
  display: block;
  height: 2px;
  width: 1.2em;
  background-color: currentColor;
  transition: 0.25s ease;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
}

/* Ensure no white line appears from hamburger button on desktop */
@media (min-width: 64rem) {
  .main-header__nav-trigger-icon::before,
  .main-header__nav-trigger-icon::after {
    display: none !important;
  }
}

.main-header__nav-trigger-icon::before, .main-header__nav-trigger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: inherit;
  height: inherit;
  background-color: currentColor;
  transition: 0.2s;
}

.main-header__nav-trigger-icon::before {
  transform: translateY(-6px);
}

.main-header__nav-trigger-icon::after {
  transform: translateY(6px);
}

.main-header__nav-trigger[aria-expanded=true] .main-header__nav-trigger-icon {
  background-color: transparent;
}

.main-header__nav-trigger[aria-expanded=true] .main-header__nav-trigger-icon::before {
  transform: rotate(45deg);
}

.main-header__nav-trigger[aria-expanded=true] .main-header__nav-trigger-icon::after {
  transform: rotate(-45deg);
}

.js .main-header__nav.ms-nav-drawer {
  position: relative;
  background-color: transparent;
  box-shadow: none;
  top: 0;
  left: 0;
  width: auto;
  padding: 0;
  display: block;
}

.js .main-header__nav--is-visible {
  display: block;
  z-index: 2;
}

.js .main-header__nav--is-visible::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 20px;
  height: 20px;
  width: 20px;
  background-color: #2b2b2b;
  transform: rotate(60deg);
}

.js .main-header__nav-trigger {
  display: inline-flex;
  justify-content: center;
  z-index: 11;
  background-color: #262626;
  box-shadow: none !important;
  color: #cfcfcf;
  outline: none;
  margin-right: 0;
  font-size: 18px;
  width: 36px;
  height: 36px;
  margin-left: 5pt;
  border-radius: 40px;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

/* Hide hamburger button on desktop to prevent white line */
@media (min-width: 64rem) {
  .js .main-header__nav-trigger {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
  }
  
  .js .main-header__nav-trigger-icon {
    display: none !important;
  }
}

/* Submenu Styles */
.main-header__nav .sub-menu {
  margin-left: 15px;
  font-size: 18px;
  backface-visibility: hidden;
  display: block;
}

.main-header__nav .sub-menu a {
  color: #747474;
  text-wrap: nowrap;
}

.sub-menu.sub-menu---visible {
  display: block;
}

/* Header Widgets Container */
.main-header__widgets {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
  position: relative;
  z-index: 10;
}

.main-header__widgets .ms-h_w:not(:first-child) {
  margin-left: 8pt;
}

.main-header__widgets .main-header--widgets {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Go Tech Button */
.btn-go-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background-color: var(--gootech-primary-color);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 11;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
  border: none;
  white-space: nowrap;
}

.btn-go-tech:hover {
  background-color: color-mix(in srgb, var(--gootech-primary-color), #000 15%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-go-tech:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.3);
}

/* Theme Toggle Styles */
.ms_theme_mode {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1) 0.1s, filter 0.5s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  width: 36px;
  height: 36px;
  background-color: #f5f5f5;
  border-radius: 45px;
  z-index: 2;
}

.ms_theme_mode .ms_tm--inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  justify-content: center;
}

.ms_theme_mode .theme-toggle {
  --size: 22px;
  display: flex;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  inline-size: var(--size);
  block-size: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 5px;
}

.ms_theme_mode .theme-toggle > svg {
  inline-size: 100%;
  block-size: 100%;
  stroke-linecap: round;
  max-width: 18px;
  max-height: 18px;
  margin: auto;
}

.ms_theme_mode .sun-and-moon {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ms_theme_mode .sun-and-moon > :is(.moon, .sun, .sun-beams) {
  transform-origin: center center;
}

.ms_theme_mode .sun-and-moon > :is(.moon, .sun) {
  fill: #747474;
}

.ms_theme_mode .sun-and-moon > .sun-beams {
  stroke: #747474;
  stroke-width: 2px;
}

.ms_theme_mode .check {
  position: absolute;
  display: block;
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .ms_theme_mode .sun-and-moon > .sun {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), stroke 0.5s, fill 0.5s;
  }
  .ms_theme_mode .sun-and-moon > .sun-beams {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), stroke 0.5s, fill 0.5s;
  }
  .ms_theme_mode .sun-and-moon .moon > circle {
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
}

/* Dark Theme (Always Active) */
body[data-theme=dark] .main-header__layout .main-header__default .menu-item > a {
  color: #fff;
}

body[data-theme=dark] .main-header__layout .main-header__inner::after {
  background-color: rgba(28, 28, 28, 0.9);
}

body[data-theme=dark] .js .main-header__nav-trigger {
  background-color: #262626;
  color: #cfcfcf;
}

/* Fix hover state for dark theme */
body[data-theme=dark] .main-header__layout .main-header__default .menu-item > a:hover {
  color: var(--gootech-primary-color);
}

/* Desktop Responsive Styles (min-width: 64rem / 1024px) */
@media (min-width: 64rem) {
  .main-header, .main-header__layout {
    height: var(--main-header-height-md);
  }

  .main-header__default .navbar-nav {
    display: flex;
    flex-direction: row;
  }

  .main-header__layout {
    padding: 0;
    display: table;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .main-header__logo {
    display: table-cell;
    vertical-align: middle;
    z-index: 999;
  }

  .main-header__nav {
    float: right;
    margin-top: 0;
    font-size: 0.875em;
  }

  .js .main-header__nav {
    padding: 0;
    background-color: transparent;
    position: static;
    width: auto;
    box-shadow: none;
    display: block;
    z-index: 3;
  }

  .js .main-header__nav-trigger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    position: absolute !important;
    left: -9999px !important;
  }

  /* Desktop Submenu Styles */
  .main-header__layout .main-header__nav .navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    width: max-content;
    left: 50%;
    transform: translateX(calc(-50% + 0.35em)) scale3d(0.8, 1, 1) translateY(5%);
    margin: 0;
    margin-top: 10px;
    background-color: #2b2b2b;
    z-index: 5;
    visibility: hidden;
    opacity: 0;
    padding: 4pt 12pt;
    backface-visibility: hidden;
    will-change: transform;
    transition: visibility 0.3s cubic-bezier(0.6, 0, 0.1, 1), opacity 0.3s cubic-bezier(0.6, 0, 0.1, 1), transform 0.3s cubic-bezier(0.6, 0, 0.1, 1);
    border-radius: 18pt;
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu::after {
    content: "";
    position: absolute;
    background-color: #2b2b2b;
    border-radius: 3pt;
    width: 14px;
    height: 14px;
    top: -0.3rem;
    left: 0;
    right: 0;
    margin: auto;
    z-index: -1;
    transform: rotate(45deg);
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu li {
    width: 100%;
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu li > a {
    line-height: 1.4;
    font-size: 16px;
    color: #ffffff;
    padding: 6pt 8pt;
    padding-left: calc(8pt + 0.7em);
    cursor: pointer;
    border-radius: 4pt;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu li > a::after {
    content: "";
    position: absolute;
    left: 8pt;
    top: 50%;
    transform: translateY(-50%) scale(0) rotate(0.001deg);
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    background-color: var(--gootech-primary-color);
    transition: all 0.57s cubic-bezier(0.5, 0.5, 0, 1), transform 0.5s cubic-bezier(0.5, 0.5, 0, 1);
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu li > a:hover {
    opacity: 1;
    color: var(--gootech-primary-color);
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu li > a:hover::after {
    transform: translateY(-50%) scale(1) rotate(0.001deg);
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu li:first-child > a {
    margin-top: 6pt;
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu li:last-child > a {
    margin-bottom: 6pt;
  }

  .main-header__layout .main-header__default .menu-item-has-children:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(calc(-50% + 0.35em)) scale3d(1, 1, 1) translateY(0%);
  }

  .main-header__layout .main-header__default .menu-item-has-children .sub-menu .sub-menu {
    transform: translateX(0%);
    left: calc(100% + 12pt);
    top: -10pt;
  }

  .main-header__layout .main-header__default .menu-item-has-children .sub-menu .sub-menu::after {
    content: none;
  }

  /* Dark theme submenu styles */
  .main-header__layout .main-header__nav .navbar-nav .sub-menu {
    background-color: #1a1a1a;
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu::after {
    background-color: #1a1a1a;
  }

  .main-header__layout .main-header__nav .navbar-nav .sub-menu li > a {
    color: #ffffff !important;
  }

  body[data-theme=dark] .main-header__layout .main-header__nav .navbar-nav .sub-menu {
    background-color: #1a1a1a;
  }

  body[data-theme=dark] .main-header__layout .main-header__nav .navbar-nav .sub-menu::after {
    background-color: #1a1a1a;
  }

  body[data-theme=dark] .main-header__layout .main-header__nav .navbar-nav .sub-menu li > a {
    color: #ffffff;
  }
  
  body[data-theme=dark] .main-header__layout .main-header__nav .navbar-nav .sub-menu li > a:hover {
    color: var(--gootech-primary-color) !important;
  }
}

/* Mobile Responsive Styles (max-width: 1023px) */
@media only screen and (max-width: 1023px) {
  /* Hide desktop navigation completely on mobile */
  .main-header__nav {
    display: none !important;
    visibility: hidden !important;
  }

  /* Hide old mobile menu trigger if it exists */
  .main-header__nav-trigger {
    display: none !important;
  }
}

/* Small Mobile Styles (max-width: 782px) */
@media only screen and (max-width: 782px) {
  .main-header {
    width: calc(100% - 1.5 * 1em);
    margin: 0 auto;
  }

  .main-header__logo {
    max-width: 50%;
  }

  .main-header__logo a {
    width: 100%;
  }

  .main-header__logo img {
    height: 26px !important;
  }
}

/* Fixed Menu Mode */
body[data-menu=fixed] .main-header {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

body[data-menu=fixed] .main-header .main-header__inner {
  position: fixed;
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 0 20px;
}

@media (max-width: 450px) {
  body[data-menu=fixed] .main-header .main-header__inner {
    padding: 0;
    padding-left: 20px;
  }
}

/* Scroll Effects */
.main-header.show-bg .main-header__layout::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-bottom: solid 1px rgba(255, 255, 255, 0.2);
  transition: background-color 250ms ease, border-color 250ms ease;
}

.main-header.show-bg .main-header__layout::before {
  opacity: 0.8 !important;
  will-change: opacity;
  transition: opacity 250ms ease;
}

.main-header.unpinned {
  transform: translateY(-100%);
}

/* Utility Classes */
.main-header.menu-center .main-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4px;
}

/* Desktop - Preserve grid layout */
@media (min-width: 1024px) {
  .main-header.menu-center .main-header__inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 4px;
  }
}

.container-menu {
  position: relative;
  z-index: 9;
  margin-right: 0;
  height: 60px;
  display: flex;
  align-items: center;
}

/* ========================================================================
   Mobile Off-Canvas Menu Styles
   ======================================================================== */

/* Mobile Menu Toggle Button (Modern Icon Design) */
.main-header__mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px 8px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  margin-left: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.main-header__mobile-toggle:hover {
  transform: scale(1.1);
}

.main-header__mobile-toggle:hover .main-header__mobile-toggle-icon span {
  background-color: var(--gootech-primary-color);
}

.main-header__mobile-toggle-icon {
  position: relative;
  width: 24px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-header__mobile-toggle-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 24px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.main-header__mobile-toggle-icon span:nth-child(1) {
  top: 0;
  width: 20px;
  left: 2px;
}

.main-header__mobile-toggle-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  left: 0;
}

.main-header__mobile-toggle-icon span:nth-child(3) {
  bottom: 0;
  width: 16px;
  left: 4px;
}

/* Animated state when menu is open - elegant X */
.main-header__mobile-toggle[aria-expanded="true"] .main-header__mobile-toggle-icon span:nth-child(1) {
  top: 50%;
  left: 0;
  width: 24px;
  transform: translateY(-50%) rotate(45deg);
  background-color: var(--gootech-primary-color);
}

.main-header__mobile-toggle[aria-expanded="true"] .main-header__mobile-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
  width: 0;
}

.main-header__mobile-toggle[aria-expanded="true"] .main-header__mobile-toggle-icon span:nth-child(3) {
  bottom: 50%;
  left: 0;
  width: 24px;
  transform: translateY(50%) rotate(-45deg);
  background-color: var(--gootech-primary-color);
}

/* Mobile Menu Overlay (Blur Background) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Off-Canvas Menu */
.mobile-menu-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: transparent;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu-offcanvas.is-open {
  transform: translateX(0);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  transition: stroke 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.mobile-menu-close:hover svg {
  stroke: #ffffff;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  width: 100%;
}

.mobile-menu-item {
  width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-offcanvas.is-open .mobile-menu-item {
  animation: slideInRight 0.4s ease forwards;
}

.mobile-menu-offcanvas.is-open .mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-offcanvas.is-open .mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-offcanvas.is-open .mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-offcanvas.is-open .mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-offcanvas.is-open .mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-offcanvas.is-open .mobile-menu-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu-offcanvas.is-open .mobile-menu-item:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu-link {
  display: block;
  padding-right: 0.5em;
  color: #ffffff;
  font-size: 32px;
  font-weight: 500;
  text-decoration: none;
  text-align: right;
  text-transform: uppercase;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: var(--gootech-primary-color);
}

.mobile-menu-link::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0) rotate(0.001deg);
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background-color: var(--gootech-primary-color);
  transition: transform 0.5s cubic-bezier(0.5, 0.5, 0, 1);
}

.mobile-menu-link:hover::before,
.mobile-menu-link:focus::before {
  transform: translateY(-50%) scale(1) rotate(0.001deg);
}

/* Mobile Submenu */
.mobile-menu-item-has-children {
  position: relative;
}

.mobile-menu-link-parent {
  position: relative;
  padding-right: 0.5em;
}

.mobile-menu-link-parent::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0) rotate(0.001deg);
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background-color: var(--gootech-primary-color);
  transition: transform 0.5s cubic-bezier(0.5, 0.5, 0, 1);
}

.mobile-menu-link-parent:hover::before,
.mobile-menu-link-parent:focus::before {
  transform: translateY(-50%) scale(1) rotate(0.001deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu-item-has-children.active .mobile-submenu {
  max-height: 500px;
  opacity: 1;
}

.mobile-submenu-item {
  margin: 0;
}

.mobile-submenu-link {
  display: block;
  padding: 5px 0;
  padding-right: 0.5em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  text-decoration: none;
  text-align: right;
  text-transform: uppercase;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus {
  color: var(--gootech-primary-color);
}

.mobile-submenu-link::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0) rotate(0.001deg);
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background-color: var(--gootech-primary-color);
  transition: transform 0.5s cubic-bezier(0.5, 0.5, 0, 1);
}

.mobile-submenu-link:hover::before,
.mobile-submenu-link:focus::before {
  transform: translateY(-50%) scale(1) rotate(0.001deg);
}

/* Mobile Responsive - Show/Hide Elements */
@media (max-width: 1023px) {
  /* Show mobile toggle button */
  .main-header__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 45px;
  }
  
  /* Hide desktop navigation on mobile */
  .main-header__nav {
    display: none !important;
  }
  
  /* Fix mobile header layout - override grid for mobile */
  .main-header.menu-center .main-header__inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none !important;
    gap: 0;
  }
  
  .main-header__logo {
    flex: 0 0 auto;
    margin-left: 0;
    padding-left: 0;
  }
  
  .main-header__widgets {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-right: 0;
  }
  
  .main-header--widgets {
    display: flex;
    align-items: center;
  }
  
  /* Adjust button size on mobile */
  .btn-go-tech {
    padding: 8px 18px;
    font-size: 14px;
  }
  
  /* Mobile header - no background at top, only on scroll */
  .main-header__layout {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
  }
  
  .main-header__layout .main-header__inner {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-left: 0;
    padding-right: 0;
    min-height: 70px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Ensure logo and widgets have proper spacing */
  .main-header__layout .main-header__inner .main-header__logo {
    margin-left: 0;
  }
  
  .main-header__layout .main-header__inner .main-header__widgets {
    margin-right: 0;
  }
  
  .main-header__layout .main-header__inner::after {
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Mobile header on scroll - rounded blur background (like desktop) */
  .main-header__layout .main-header__inner.move {
    border-radius: 40px;
    margin-left: 12px;
    margin-right: 12px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(28, 28, 28, 0.85);
    padding: 0.6rem 1.5rem;
    min-height: 56px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .main-header__layout .main-header__inner.move::after {
    border-radius: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 1;
    background-color: rgba(28, 28, 28, 0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Ensure header background is visible on scroll */
  .main-header.show-bg .main-header__layout::before {
    opacity: 0.95 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* Desktop - Hide mobile menu elements */
@media (min-width: 1024px) {
  .main-header__mobile-toggle {
    display: none !important;
  }
  
  .mobile-menu-overlay,
  .mobile-menu-offcanvas {
    display: none !important;
  }
}

