.header {
  height: 118px;
  background: #fff;
  padding: 20px 47px 20px 116px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 38, 68, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  height: 65px;
  padding: 10px 47px 10px 116px;
  box-shadow: 0 4px 16px rgba(0, 38, 68, 0.15);

  .mega-menu {
    top: 65px;
  }
}

.header:hover {
  box-shadow: 0 4px 12px rgba(0, 38, 68, 0.12);
}

.logo img {
  height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

.header.scrolled .logo img {
  height: 50px;
}

.logo:hover img {
  transform: scale(1.02);
}

.nav {
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: #002644;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 4px;
  position: relative;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #30C5FF, #28b0e6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item > a:hover::after {
  width: 100%;
}

.nav-item > a:hover {
  color: #30C5FF;
}

.nav-arrow {
  font-size: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
  opacity: 0.7;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.mega-menu {
  position: fixed;
  top: 118px;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  box-shadow: 0 15px 50px rgba(0, 38, 68, 0.1);
  padding: 50px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border-top: 1px solid rgba(48, 197, 255, 0.1);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 140px;
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 50px;
}

.mega-menu-section h4 {
  color: #707070;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.mega-menu-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #30C5FF, transparent);
}

.mega-menu-featured {
  background: linear-gradient(135deg, #F8F9FA 0%, #F0F4F8 100%);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.mega-menu-featured:hover {
  background: linear-gradient(135deg, #E9ECEF 0%, #DEE8F0 100%);
  border-color: rgba(48, 197, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 38, 68, 0.08);
}

.mega-menu-featured h5 {
  color: #002644;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-featured h5::before {
  content: '→';
  color: #30C5FF;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.mega-menu-featured:hover h5::before {
  transform: translateX(4px);
}

.mega-menu-featured p {
  color: #5A6C7D;
  font-size: 13px;
  line-height: 1.6;
}

.mega-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-menu-links a {
  color: #002644;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-links a::before {
  content: '•';
  color: #30C5FF;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mega-menu-links a:hover {
  color: #30C5FF;
  background: rgba(48, 197, 255, 0.05);
  padding-left: 16px;
}

.mega-menu-links a:hover::before {
  opacity: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(248, 249, 250, 0.4);
}

.product-item:hover {
  background: white;
  border-color: rgba(48, 197, 255, 0.15);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 38, 68, 0.06);
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.product-item:hover .product-icon {
  transform: scale(1.1);
}

.product-icon.blue {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  color: #1976D2;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}

.product-icon.green {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  color: #388E3C;
  box-shadow: 0 2px 8px rgba(56, 142, 60, 0.15);
}

.product-icon.orange {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  color: #F57C00;
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.15);
}

.product-icon.purple {
  background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
  color: #7B1FA2;
  box-shadow: 0 2px 8px rgba(123, 31, 162, 0.15);
}

.product-name {
  color: #002644;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.product-item:hover .product-name {
  color: #30C5FF;
}

.mega-menu-card {
  background: linear-gradient(135deg, #004E89 0%, #003D6B 100%);
  border-radius: var(--border-radius);
  padding: 28px;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mega-menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 78, 137, 0.3);
}

.mega-menu-card:hover::before {
  opacity: 1;
}

.mega-menu-card h5 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.mega-menu-card p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.mega-menu-card.secondary {
  background: linear-gradient(135deg, #30C5FF 0%, #1BA3D6 100%);
}

.mega-menu-card.secondary:hover {
  box-shadow: 0 12px 40px rgba(48, 197, 255, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002644;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  background: rgba(0, 38, 68, 0.03);
}

.action-icon:hover {
  background: rgba(48, 197, 255, 0.1);
  border-color: rgba(48, 197, 255, 0.2);
  color: #30C5FF;
  transform: translateY(-2px);
}

.language-selector {
  position: relative;
  cursor: pointer;
}

.language-current {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #002644;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  background: rgba(0, 38, 68, 0.03);
  border: 1px solid transparent;
}

.language-current:hover {
  background: rgba(48, 197, 255, 0.1);
  border-color: rgba(48, 197, 255, 0.2);
  color: #30C5FF;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 38, 68, 0.12);
  border-radius: var(--border-radius);
  margin-top: 4px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 38, 68, 0.08);
  overflow: hidden;
}

.language-selector:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown a {
  display: block;
  padding: 12px 18px;
  color: #002644;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.language-dropdown a:hover {
  background: rgba(48, 197, 255, 0.08);
  border-left-color: #30C5FF;
  color: #30C5FF;
  padding-left: 22px;
}

.btn-demo {
  color: white;
  border: 2px solid transparent;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #30C5FF 0%, #28b0e6 100%);
  box-shadow: 0 4px 12px rgba(48, 197, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(48, 197, 255, 0.4);
}

.btn-demo:hover::before {
  left: 100%;
}

.btn-demo:active {
  transform: translateY(0);
}

#mobile-menu-checkbox {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  z-index: 10000;
  width: 45px;
  height: 45px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #002644;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  display: block;
}

#mobile-menu-checkbox:checked ~ .header .mobile-menu-toggle span {
  background: #30C5FF;
}

#mobile-menu-checkbox:checked ~ .header .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu-checkbox:checked ~ .header .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#mobile-menu-checkbox:checked ~ .header .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 118px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 998;
  overflow-y: auto;
  padding: 20px;
}

#mobile-menu-checkbox:checked ~ .mobile-nav {
  display: block;
}

.mobile-submenu-checkbox {
  display: none;
}

.mobile-nav-item {
  border-bottom: 1px solid #E9ECEF;
  padding: 15px 0;
}

.mobile-nav-item > label {
  color: #002644;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-nav-item > a {
  color: #002644;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: block;
}

.mobile-nav-item label > span {
  transition: transform 0.3s ease;
  display: inline-block;
  font-size: 14px;
}

.mobile-submenu-checkbox:checked ~ label > span {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 20px;
}

.mobile-submenu-checkbox:checked ~ .mobile-submenu {
  max-height: 500px;
  padding-top: 15px;
}

.mobile-submenu a {
  display: block;
  color: #707070;
  text-decoration: none;
  padding: 10px 0;
  font-size: 15px;
}

.mobile-submenu a:hover {
  color: #30C5FF;
}

@media (max-width: 1024px) {
  .header {
    padding: 20px 30px;
  }

  .logo img {
    height: 100px;
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 20px;
    height: 70px;
  }

  .header.scrolled {
    height: 60px;
    padding: 8px 20px;
  }

  .logo img {
    height: 50px;
    position: relative;
    top: 0;
  }

  .header.scrolled .logo img {
    height: 40px;
  }

  .mega-menu {
    top: 70px;
  }

  .header.scrolled ~ .mega-menu {
    top: 60px;
  }

  .mobile-nav {
    top: 70px !important;
  }

  .header.scrolled ~ .mobile-nav {
    top: 60px !important;
  }

  .nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .btn-demo {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mega-menu {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .header {
    height: 65px;
    padding: 10px 15px;
  }

  .header.scrolled {
    height: 55px;
    padding: 8px 15px;
  }

  .logo img {
    height: 45px;
  }

  .header.scrolled .logo img {
    height: 35px;
  }

  .mobile-nav {
    top: 65px !important;
  }

  .header.scrolled ~ .mobile-nav {
    top: 55px !important;
  }
}
