:root {
  --masb-black: #0f0f0f;
  --masb-dark: #1a1a1a;
  --masb-yellow: #1d9931;
  --masb-white: #ffffff;
  --masb-gray: #cccccc;
}

.main-nav {
  width: 100%;
  background: var(--masb-black);
  color: var(--masb-white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1400;
  border-bottom: 2px solid var(--masb-yellow);
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  padding: 0 40px;
  height: 80px;

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

.logo img {
  height: 48px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--masb-white);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: 0.3s ease;
  position: relative;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: var(--masb-yellow);
  transition: 0.3s ease;
}

.nav-links li a:hover {
  color: var(--masb-yellow);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 20px;
  background: var(--masb-yellow);
  color: var(--masb-black);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s ease;
}

.nav-cta:hover {
  background: var(--masb-white);
  color: var(--masb-black);
}

.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--masb-dark);
  padding: 50px 80px;
  border-top: 2px solid var(--masb-yellow);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);

  opacity: 0;
  transform: translateY(-10px);
  transition: 0.3s ease;
  pointer-events: none;
  z-index: 1200;
}


.mega-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-inner {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.mega-column h3 {
  color: var(--masb-yellow);
  margin-bottom: 15px;
}

.mega-column h4 {
  color: var(--masb-white);
  margin-bottom: 15px;
  font-size: 14px;
  letter-spacing: 1px;
}

.mega-column ul {
  list-style: none;
}

.mega-column ul li {
  margin-bottom: 10px;
}

.mega-column ul li a {
  color: var(--masb-gray);
  text-decoration: none;
  transition: 0.3s ease;
}

.mega-column ul li a:hover {
  color: var(--masb-yellow);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  padding: 80px 30px 40px;
  transition: right 0.45s cubic-bezier(.77,0,.18,1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.4);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  pointer-events: none;
  z-index: 900;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 900;
}

.nav-menu.active {
  right: 0;
}

.mobile-links {
  list-style: none;
  margin-top: 30px;
  padding: 0;
}

.mobile-links li {
  margin-bottom: 22px;
}

.mobile-links a,
.dropdown-toggle {
  background: none;
  border: none;
  color: var(--masb-white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: 0.25s ease;
  position: relative;
}

/* MOBILE DROPDOWN CONTENT */
.dropdown-content {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin-top: 10px;
  padding-left: 15px;
}

.mobile-dropdown.active .dropdown-content {
  max-height: 500px; /* enough to show items */
}

.dropdown-content li {
  margin-bottom: 12px;
}

.dropdown-content a {
  font-size: 14px;
  color: var(--masb-gray);
}

.dropdown-content a:hover {
  color: var(--masb-yellow);
}

.mobile-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--masb-yellow);
  transition: 0.3s ease;
}

.mobile-links a:hover::after {
  width: 40%;
}

.mobile-links a:hover,
.dropdown-toggle:hover {
  color: var(--masb-yellow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1300;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--masb-white);
  transition: 0.35s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1224px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mega-panel {
    display: none !important;
  }
}

@media (max-width: 700px) {

  .logo img{
    height:30px;
  }
}