/* Enhanced Hamburger Icon Animation - Using existing button structure */
#menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#menu-toggle:hover {
  transform: scale(1.1);
}

/* Style the existing menu-icon and x-icon */
#menu-icon,
#x-icon {
  font-size: 27px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-block;
}

#menu-icon {
  transform: rotate(0deg) scale(1);
}

#menu-icon.hidden {
  transform: rotate(180deg) scale(0);
}

#x-icon {
  transform: rotate(-180deg) scale(0);
}

#x-icon:not(.hidden) {
  transform: rotate(0deg) scale(1);
}

/* Enhanced Mobile Menu - Using existing #mobile-menu with curtain overlay */
#mobile-menu {
  position: fixed !important;
  top: 64px; /* Height of header */
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(-100%) scaleY(0);
  transform-origin: top;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

#mobile-menu:not(.hidden) {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  visibility: visible;
}

body.dark-mode #mobile-menu {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  background-color: rgba(28, 28, 28, 0.95);
}

/* Enhanced menu items - targeting existing structure with curtain effect */
#mobile-menu .flex.flex-col.gap-3 > a {
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s ease;
  position: relative;
  border-left: 3px solid transparent;
  padding-left: 1.25rem;
}

#mobile-menu:not(.hidden) .flex.flex-col.gap-3 > a {
  transform: translateY(0);
  opacity: 1;
}

/* Staggered animation delays - faster for curtain effect */
#mobile-menu:not(.hidden) .flex.flex-col.gap-3 > a:nth-child(1) {
  transition-delay: 0.2s;
}

#mobile-menu:not(.hidden) .flex.flex-col.gap-3 > a:nth-child(2) {
  transition-delay: 0.25s;
}

#mobile-menu:not(.hidden) .flex.flex-col.gap-3 > a:nth-child(3) {
  transition-delay: 0.3s;
}

#mobile-menu:not(.hidden) .flex.flex-col.gap-3 > a:nth-child(4) {
  transition-delay: 0.35s;
}

#mobile-menu:not(.hidden) .flex.flex-col.gap-3 > a:nth-child(5) {
  transition-delay: 0.4s;
}

#mobile-menu:not(.hidden) .flex.flex-col.gap-3 > a:nth-child(6) {
  transition-delay: 0.45s;
}

/* Enhanced hover effects for menu items */
#mobile-menu .flex.flex-col.gap-3 > a:hover {
  transform: translateX(8px);
  border-left-color: #000;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
}

body.dark-mode #mobile-menu .flex.flex-col.gap-3 > a:hover {
  border-left-color: #81a1c1;
  background: linear-gradient(90deg, rgba(129, 161, 193, 0.1) 0%, transparent 100%);
}

/* Special styling for the CTA button (last item) with curtain effect */
#mobile-menu .flex.flex-col.gap-3 > a:last-child {
  margin-top: 0.5rem;
  border-left: none !important;
  border-radius: 12px;
  text-align: center;
  transform: translateY(-20px) scale(0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#mobile-menu:not(.hidden) .flex.flex-col.gap-3 > a:last-child {
  transform: translateY(0) scale(1);
  transition-delay: 0.5s;
}

#mobile-menu .flex.flex-col.gap-3 > a:last-child:hover {
  transform: scale(1.02) translateX(0) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Smooth background transition for mobile menu container */
#mobile-menu .mx-auto.w-full.max-w-7xl {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

body.dark-mode #mobile-menu .mx-auto.w-full.max-w-7xl {
  background: rgba(28, 28, 28, 0.95);
}

/* Add a subtle curtain drop effect with bounce when menu opens */
#mobile-menu:not(.hidden) {
  animation: curtainDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes curtainDrop {
  0% {
    transform: translateY(-100%) scaleY(0);
    opacity: 0;
  }
  60% {
    transform: translateY(10px) scaleY(1.05);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
}

/* Enhanced button hover state */
#menu-toggle:active {
  transform: scale(0.95);
}

/* Improved Dark Mode Styles */
body.dark-mode {
  background-color: #0d0d0d;
  color: #e0e0e0;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode section {
  background-color: #1c1c1c;
  color: #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

body.dark-mode a {
  color: #81a1c1;
  text-decoration: none;
  transition: color 0.3s;
}

body.dark-mode a:hover {
  color: #88c0d0;
}

body.dark-mode .card-hover {
  background-color: #222;
  border: 1px solid #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

body.dark-mode .card-hover:hover {
  background-color: #2a2a2a;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

body.dark-mode .exploding-button {
  background-color: #3a3a3a;
  color: #f0f0f0;
  border: 1px solid #555;
}

body.dark-mode .exploding-button:hover {
  background-color: #5a5a5a;
  color: #fff;
}

body.dark-mode section {
  background: linear-gradient(145deg, #1a1a1a, #111);
}

@media (min-width: 768px) {
  #menu-toggle {
    display: none !important;

header {
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s;
  pointer-events: none;
}

header:hover::before {
  left: 100%;
}

    
  }
}


/* Logo enhancements */
header a[href="#home"] {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 12px;
  border-radius: 16px;
  overflow: hidden;
}

header a[href="#home"]:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

header a[href="#home"] span {
  position: relative;
  z-index: 1;
}

/* Logo icon rotation effect */
#logo-icon {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

header a[href="#home"]:hover #logo-icon {
  transform: rotate(360deg) scale(1.1);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

@keyframes headerEntrance {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  animation: headerEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

body.dark-mode nav.hidden.md\\:flex {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode nav.hidden.md\\:flex a::before,
body.dark-mode nav a.hover\\:text-black::before,
body.dark-mode a[href="index.html"]::before,
body.dark-mode a[href="WhoArewe.html"]::before,
body.dark-mode a[href="courses.html"]::before,
body.dark-mode a[href="Speakers.html"]::before,
body.dark-mode a[href="contact.html"]::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

body.dark-mode nav.hidden.md\\:flex a:hover,
body.dark-mode nav a.hover\\:text-black:hover,
body.dark-mode a[href="index.html"]:hover,
body.dark-mode a[href="WhoArewe.html"]:hover,
body.dark-mode a[href="courses.html"]:hover,
body.dark-mode a[href="Speakers.html"]:hover,
body.dark-mode a[href="contact.html"]:hover {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode nav a::after,
body.dark-mode a[href="index.html"]::after,
body.dark-mode a[href="WhoArewe.html"]::after,
body.dark-mode a[href="courses.html"]::after,
body.dark-mode a[href="Speakers.html"]::after,
body.dark-mode a[href="contact.html"]::after {
  background: linear-gradient(90deg, #81a1c1, #88c0d0);
}

body.dark-mode div.flex.items-center.gap-3 button {
  background: rgba(28, 28, 28, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

body.dark-mode div.flex.items-center.gap-3 button::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
}

body.dark-mode div.flex.items-center.gap-3 button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Toggle buttons enhancements */
div.flex.items-center.gap-3 button {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
  overflow: hidden;
}

div.flex.items-center.gap-3 button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), transparent);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

div.flex.items-center.gap-3 button:hover::before {
  width: 120%;
  height: 120%;
}

div.flex.items-center.gap-3 button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Floating animation for the entire nav */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

nav.hidden.md\\:flex:hover {
  animation: float 2s ease-in-out infinite;
}


@media screen and (min-width: 768px) {
nav.hidden.md\\:flex.items-center.gap-6.text-sm.text-zinc-700 {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Target ALL navigation links specifically */
nav.hidden.md\\:flex a,
nav a.hover\\:text-black {
  position: relative !important;
  padding: 10px 18px !important;
  border-radius: 25px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-weight: 500 !important;
  letter-spacing: 0.025em !important;
  overflow: hidden !important;
  display: inline-block !important;
}

/* Sliding background effect for nav links */
nav.hidden.md\\:flex a::before,
nav a.hover\\:text-black::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
  border-radius: 25px;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

nav.hidden.md\\:flex a:hover::before,
nav a.hover\\:text-black:hover::before {
  left: 0;
}

/* Hover effects for navigation links */
nav.hidden.md\\:flex a:hover,
nav a.hover\\:text-black:hover {
  color: #000 !important;
  transform: translateY(-2px) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  font-weight: 600 !important;
  background-color: transparent !important;
}

/* Underline animation for regular nav links */
nav.hidden.md\\:flex a:not([class*="bg-black"])::after,
nav a.hover\\:text-black:not([class*="bg-black"])::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #000, #555);
  border-radius: 1px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

nav.hidden.md\\:flex a:not([class*="bg-black"]):hover::after,
nav a.hover\\:text-black:not([class*="bg-black"]):hover::after {
  width: 80%;
}

/* Special styling for the CTA button (Enroll) */
nav.hidden.md\\:flex a[class*="bg-black"],
nav a[class*="bg-black"] {
  background: linear-gradient(135deg, #000, #333) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

nav.hidden.md\\:flex a[class*="bg-black"]::before,
nav a[class*="bg-black"]::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
}

nav.hidden.md\\:flex a[class*="bg-black"]:hover,
nav a[class*="bg-black"]:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
  background: linear-gradient(135deg, #111, #444) !important;
  color: #fff !important;
}

/* Additional targeting for specific links by href */
a[href="index.html"],
a[href="WhoArewe.html"],
a[href="courses.html"],
a[href="Speakers.html"],
a[href="contact.html"] {
  position: relative !important;
  padding: 10px 18px !important;
  border-radius: 25px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-weight: 500 !important;
  letter-spacing: 0.025em !important;
  overflow: hidden !important;
  display: inline-block !important;
}

a[href="index.html"]::before,
a[href="WhoArewe.html"]::before,
a[href="courses.html"]::before,
a[href="Speakers.html"]::before,
a[href="contact.html"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
  border-radius: 25px;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

a[href="index.html"]:hover::before,
a[href="WhoArewe.html"]:hover::before,
a[href="courses.html"]:hover::before,
a[href="Speakers.html"]:hover::before,
a[href="contact.html"]:hover::before {
  left: 0;
}

a[href="index.html"]:hover,
a[href="WhoArewe.html"]:hover,
a[href="courses.html"]:hover,
a[href="Speakers.html"]:hover,
a[href="contact.html"]:hover {
  color: #000 !important;
  transform: translateY(-2px) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  font-weight: 600 !important;
}

a[href="index.html"]::after,
a[href="WhoArewe.html"]::after,
a[href="courses.html"]::after,
a[href="Speakers.html"]::after,
a[href="contact.html"]::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #000, #555);
  border-radius: 1px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

a[href="index.html"]:hover::after,
a[href="WhoArewe.html"]:hover::after,
a[href="courses.html"]:hover::after,
a[href="Speakers.html"]:hover::after,
a[href="contact.html"]:hover::after {
  width: 80%;
}

}
