/* ========================================
   Mobile Hamburger Menu - New Design
   Completely Custom CSS for Mobile View
======================================== */

/* ========================================
   Mobile Menu Container
======================================== */

.mobile-menu-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
  background: transparent;
}

@media only screen and (max-width: 991px) {
  .mobile-menu-wrapper {
    display: block;
  }
}

/* ========================================
   Hamburger Icon Button
======================================== */

.mobile-menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  z-index: 9999999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 30px rgba(0, 212, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 
    0 6px 30px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 0 40px rgba(0, 212, 255, 0.3);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Hamburger Icon Lines */
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #000000, #00d4ff);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-toggle span:nth-child(1) {
  transform: translateY(0);
}

.mobile-menu-toggle span:nth-child(2) {
  opacity: 1;
}

.mobile-menu-toggle span:nth-child(3) {
  transform: translateY(0);
}

/* Hamburger Icon Animation - When Active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: linear-gradient(90deg, #ff0000, #ff6b6b);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: linear-gradient(90deg, #ff0000, #ff6b6b);
}

/* ========================================
   Mobile Menu Overlay
======================================== */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* ========================================
   Mobile Menu Panel
======================================== */

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  z-index: 999999;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 80px;
}

.mobile-menu-panel.active {
  right: 0;
}

/* Menu Header */
.mobile-menu-header {
  padding: 20px;
  border-bottom: 2px solid rgba(0, 212, 255, 0.1);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
}

.mobile-menu-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-header .logo img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-header .logo-text {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Mobile Menu Navigation
======================================== */

.mobile-menu-nav {
  padding: 20px 0;
}

.mobile-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-nav ul li {
  margin: 0;
  padding: 0;
}

.mobile-menu-nav ul li a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.mobile-menu-nav ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #00d4ff, #7c3aed);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mobile-menu-nav ul li a:hover,
.mobile-menu-nav ul li a.active {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  color: #00d4ff;
  border-left-color: #00d4ff;
  padding-left: 28px;
}

.mobile-menu-nav ul li a:hover::before,
.mobile-menu-nav ul li a.active::before {
  transform: scaleY(1);
}

.mobile-menu-nav ul li a i {
  margin-right: 12px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Submenu */
.mobile-menu-nav ul li ul {
  background: rgba(0, 212, 255, 0.05);
  margin-left: 0;
  padding-left: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu-nav ul li.has-submenu.active > ul {
  max-height: 500px;
}

.mobile-menu-nav ul li ul li a {
  padding-left: 48px;
  font-size: 14px;
  color: #666666;
}

.mobile-menu-nav ul li ul li a:hover {
  color: #00d4ff;
}

/* Submenu Toggle Icon */
.mobile-menu-nav ul li.has-submenu > a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free' or 'boxicons';
  font-weight: 900;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.mobile-menu-nav ul li.has-submenu.active > a::after {
  transform: rotate(180deg);
}

/* ========================================
   Mobile Menu Footer
======================================== */

.mobile-menu-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  border-top: 2px solid rgba(0, 212, 255, 0.1);
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.95), rgba(255, 255, 255, 0.95));
}

.mobile-menu-footer .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.mobile-menu-footer .social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: 10px;
  color: #333333;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-menu-footer .social-links a:hover {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.mobile-menu-footer .copyright {
  text-align: center;
  font-size: 12px;
  color: #999999;
}

/* ========================================
   Responsive Adjustments
======================================== */

@media only screen and (max-width: 768px) {
  .mobile-menu-toggle {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .mobile-menu-panel {
    width: 90%;
    max-width: 300px;
  }
}

@media only screen and (max-width: 480px) {
  .mobile-menu-toggle {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 10px;
  }
  
  .mobile-menu-toggle span {
    width: 22px;
    height: 2.5px;
  }
  
  .mobile-menu-panel {
    width: 95%;
    max-width: 280px;
  }
  
  .mobile-menu-nav ul li a {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ========================================
   Scrollbar Styling for Menu Panel
======================================== */

.mobile-menu-panel::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d4ff, #7c3aed);
  border-radius: 3px;
}

.mobile-menu-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00b8e6, #6d28d9);
}

/* ========================================
   Animation Keyframes
======================================== */

@keyframes slideInRight {
  from {
    right: -100%;
  }
  to {
    right: 0;
  }
}

@keyframes slideOutRight {
  from {
    right: 0;
  }
  to {
    right: -100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

