/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 60px;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.4s ease;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: #00a874;
  z-index: 1001;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Desktop Menu */
.menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}

.menu a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.menu a:hover {
  color: #00a874;
}

/* Menu Item with Submenu */
.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.menu-link:hover {
  color: #00a874;
}

.arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  margin-left: 5px;
}

/* Submenu Styles - Desktop */
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border-radius: 15px;
  padding: 1rem 0;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
}

.submenu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #333;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.submenu a:hover {
  background: rgba(0, 168, 116, 0.08);
  color: #00a874;
  padding-left: 1.8rem;
}

/* Show Submenu on Hover - Desktop */
.menu-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.menu-item:hover .arrow {
  transform: rotate(180deg);
}

/* CTA Button with Icon */
.cta-link {
  text-decoration: none;
}

.cta {
  background: #00a874;
  border: none;
  border-radius: 40px;
  padding: 0.6rem 1.4rem 0.6rem 1rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta:hover {
  background: #009366;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 116, 0.3);
}

.store-icon {
  width: 18px;
  height: 18px;
  color: white;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 24px;
  justify-content: space-between;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #00a874;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(2px, 1px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(2px, -1px);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.7rem 1.2rem;
    border-radius: 40px;
    top: 15px;
    width: 95%;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* HIDE CTA BUTTON ON MOBILE NAVBAR - IMPORTANT FIX */
  .navbar > .cta-link {
    display: none !important;
  }
  
  /* Mobile Menu */
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    padding-top: 100px;
    padding-bottom: 2rem;
    overflow-y: auto;
  }
  
  .menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  /* All menu links including Services and Industries */
  .menu > a,
  .menu-link {
    font-size: 1.2rem !important;
    padding: 1.2rem 2rem !important;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 168, 116, 0.1);
    color: #222 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
  }
  
  /* Arrow for mobile */
  .arrow {
    transform: rotate(-90deg);
    font-size: 0.8rem;
    color: #00a874;
  }
  
  .menu-item.active .arrow {
    transform: rotate(0deg);
  }
  
  /* Submenu for mobile */
  .submenu {
    position: static !important;
    display: block !important;
    background: rgba(0, 168, 116, 0.05) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .menu-item.active .submenu {
    max-height: 500px;
  }
  
  .submenu a {
    padding: 0.8rem 3rem !important;
    font-size: 1rem !important;
    color: #444 !important;
    border-bottom: 1px solid rgba(0, 168, 116, 0.08) !important;
    display: block !important;
  }
  
  .submenu a:last-child {
    border-bottom: none !important;
  }
  
  .submenu a:hover {
    background: rgba(0, 168, 116, 0.1) !important;
    color: #00a874 !important;
  }
  
  /* Active state for parent menu */
  .menu-item.active .menu-link {
    color: #00a874 !important;
    font-weight: 600 !important;
    background: rgba(0, 168, 116, 0.05);
  }
  
  /* SHOW CTA BUTTON INSIDE MOBILE MENU ONLY */
  .menu .cta-link {
    display: block !important;
    margin: 1.5rem 2rem 0 2rem;
    order: 100;
  }
  
  /* Override CTA styles for mobile menu */
  .menu .cta {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    margin: 0;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 168, 116, 0.2);
  }
  
  .menu .cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 116, 0.3);
  }
  
  /* Ensure the button inside menu is shown */
  .cta-link.menu-cta {
    display: block !important;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet Devices */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.8rem 1.5rem;
    width: 94%;
  }
  
  .menu {
    gap: 1.5rem;
  }
  
  .menu a {
    font-size: 0.95rem;
  }
  
  .submenu {
    min-width: 200px;
  }
  
  .cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 1rem;
    width: 96%;
  }
  
  .logo-img {
    height: 30px;
  }
  
  .menu > a,
  .menu-link {
    font-size: 1.1rem !important;
    padding: 1rem 1.5rem !important;
  }
  
  .submenu a {
    padding: 0.9rem 2.5rem !important;
    font-size: 1rem !important;
  }
  
  .hamburger {
    width: 26px;
    height: 20px;
  }
  
  .hamburger span {
    height: 2.5px;
  }
  
  /* Adjust CTA button in mobile menu for small screens */
  .menu .cta {
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
  }
  
  .menu .cta-link {
    margin: 1.5rem 1.5rem 0 1.5rem;
  }
  
  /* IMPORTANT: Hide CTA button in navbar on mobile */
  .navbar > .cta-link {
    display: none !important;
  }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
  .menu {
    padding-top: 80px;
    padding-bottom: 1.5rem;
  }
  
  .menu > a,
  .menu-link {
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .submenu a {
    padding: 0.7rem 3rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Adjust CTA button for landscape */
  .menu .cta-link {
    margin: 1rem 2rem 0 2rem;
  }
  
  .menu .cta {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  .navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* Smooth Scrolling for Menu Links */
html {
  scroll-behavior: smooth;
}

/* Active Link Style */
.menu a.active {
  color: #00a874;
  font-weight: 600;
}

/* Overlay for mobile menu */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Navbar Scroll Effects - FIXED */
.navbar.hide {
  transform: translateX(-50%) translateY(-150%);
  opacity: 0;
  visibility: hidden;
}

.navbar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}