/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,100..800;1,100..800&family=Damion&display=swap');

/* ===== Body scroll lock - High priority ===== */
body.mtc-no-scroll {
  overflow: hidden !important;
  height: 100% !important;
  position: fixed !important;
  width: 100% !important;
}

html.mtc-no-scroll {
  overflow: hidden !important;
  height: 100% !important;
}

/* ===== Header ===== */
.mtc-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 20px 0 0 0;
  z-index: 1000;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* ===== Header Container ===== */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* ===== Logo + Brand Text ===== */
.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  height: 70px;
  position: relative;
  z-index: 1002;
  max-width: 100%;
  height: auto; 
  image-rendering: -webkit-optimize-contrast; 
  image-rendering: crisp-edges; 
  -ms-interpolation-mode: bicubic; 
  object-fit: contain;
}

.brand-text {
  font-family: "Damion", cursive;
  font-size: 38px;
  color: #ffffff;
  white-space: nowrap;
  position: relative;
  z-index: 1002;
}

/* ===== Navigation - Base styles for desktop ===== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-weight: 200;
  color: white;
  margin-left: auto;
}

.nav-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-item:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

/* ===== Hamburger Button – hidden by default ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 100%;
  display: block;
}

/* ===== Tablet device optimization (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-container {
    padding: 0 30px;
    max-width: 100%;
  }
  
  .nav-menu {
    gap: 25px;
  }
  
  .brand-text {
    font-size: 34px;
    font-family: "Damion", cursive;
  }
  
  .logo {
    height: 65px;
    max-width: 180px; 
  }
  
  .nav-item {
    font-size: 15px;
  }
}

/* ===== Main breakpoints for mobile devices (768px and below) ===== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 1001;
  }

  /* Hidden by default – mobile full-screen menu */
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 40px;
    width: 100vw;
    height: 100vh;
    text-align: center;
    background-color: #042b2f;
    margin: 0;
    padding: 0;
    
    /* Full-screen overlay positioning */
    position: fixed;
    top: 0;
    left: 0;
    
    /* Adjusted positioning for better spacing */
    justify-content: flex-start;
    padding-top: 140px;
    
    /* Ensure it is below logo and hamburger */
    z-index: 999;
  }

  /* Activated state – menu displayed */
  .nav-menu.active {
    display: flex;
    background-color: #042b2f;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
    width: 25px;
    height: 20px;
  }

  .logo {
    height: 60px;
    max-width: 160px;
    image-rendering: high-quality;
  }

  .logo-section .brand-text {
    font-size: 32px;
  }

  .nav-item {
    font-size: 18px;
    padding: 15px 20px;
    min-height: 44px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }

  .nav-item:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }

  .logo {
    height: 60px;
  }

  /* Hamburger button active state animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Ensure logo remains visible when menu is open */
  .mtc-header.menu-open .logo-section {
    z-index: 1001;
  }
  
  .mtc-header.menu-open .brand-text {
    color: #ffffff;
  }
  
  .mtc-header.menu-open .logo {
    filter: none;
  }
}

/* ===== Mobile landscape specific adjustments ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .nav-menu {
    padding-top: 120px;
    gap: 25px;
    justify-content: flex-start;
    overflow-y: auto;
  }
  
  .nav-item {
    padding: 10px 20px;
    min-height: 40px;
  }
}

/* ===== Small mobile landscape ===== */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 400px) {
  .nav-menu {
    padding-top: 100px;
    gap: 15px;
  }
  
  .nav-item {
    padding: 8px 20px;
    min-height: 36px;
    font-size: 16px;
  }
}

/* ===== Clear desktop protection (769px and above) ===== */
@media (min-width: 769px) {
  /* Ensure the navigation menu is on the same line and properly aligned */
  .nav-menu {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    background-color: transparent !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 40px !important;
    margin-left: auto !important;
  }
  
  .hamburger {
    display: none !important;
  }
  
  .nav-item {
    padding: 0 !important;
    min-height: auto !important;
    width: auto !important;
    display: block !important;
    font-size: 16px !important;
    background-color: transparent !important;
    border-radius: 0 !important;
  }
  
  .nav-item:hover {
    background-color: transparent !important;
    transform: scale(1.1) !important;
  }
}

/* ===== Small-screen devices (480px and below) ===== */
@media (max-width: 480px) {

  .logo {
    height: 50px;
    max-width: 140px;
  }

  .logo-section {
    gap: 10px;
  }
  
  .logo-section .brand-text {
    font-size: 28px;
  }
  
  .logo {
    height: 50px;
  }
  
  .hamburger {
    width: 22px;
    height: 18px;
  }
  
  .nav-item {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .nav-menu {
    gap: 30px;
    padding-top: 120px;
  }
}

/* ===== High-contrast mode support ===== */
@media (prefers-contrast: high) {
  .nav-item:hover {
    outline: 2px solid white;
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* ===== Support for reduced animations ===== */
@media (prefers-reduced-motion: reduce) {
  .logo-link,
  .nav-item,
  .hamburger span {
    transition: none;
  }
  
  .logo-link:hover,
  .nav-item:hover {
    transform: none;
  }
}

/* ===== Dark mode support ===== */
@media (prefers-color-scheme: dark) {
  .mtc-header.menu-open {
    background-color: #042b2f;
  }
}

/* ===== Print style optimization ===== */
@media print {
  .mtc-header {
    position: static;
    background-color: white !important;
  }
  
  .logo-section .brand-text {
    color: black !important;
  }
  
  .nav-menu {
    display: none !important;
  }
  
  .hamburger {
    display: none !important;
  }
}

/* ===== High DPI/Retina Display Optimization ===== */
@media (-webkit-min-device-pixel-ratio: 2), 
       (min-resolution: 192dpi), 
       (min-resolution: 2dppx) {

}

@media (max-width: 768px) {
  .logo {
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
  }
}