@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Jost', serif;
}

.custom-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.custom-gradient {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
}

.menu-open {
    overflow: hidden;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 40;
}

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

  .hover\:bg-dark-primary:hover {
    background-color: #092B9C;
  }

  @keyframes bounce-horizontal {
    0%, 100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(-4px);
    }
  }
  
  .bounce-arrow {
    transition: all 0.3s ease;
  }
  
  .group:hover .bounce-arrow {
    animation: bounce-horizontal 0.8s ease-in-out infinite;
  }
  
  /* Custom animation */
  .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  .duration-300 {
    transition-duration: 300ms;
  }

/* Ensure the navbar is always on top */
.navbar-visible {
    background-color: rgba(253, 253, 253, 0.95) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-visible a {
    color: black !important;
}

.navbar-visible .hamburger i {
    color: black !important; 
}

/* Mobile styles */
.nav-menu {
    background-color: rgba(247, 243, 243, 0.98);
    backdrop-filter: blur(15px);
}




/* Style for the menu items to fade in */
.menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.2s;
    width: 100%;
    text-align: center;
}

.nav-menu.active .menu-item {
    opacity: 1;
    color: white;
    transform: translateY(0);
}

/* Add different delays for each menu item */
.nav-menu.active .menu-item:nth-child(1) { transition-delay: 0.4s; }
.nav-menu.active .menu-item:nth-child(2) { transition-delay: 0.5s; }
.nav-menu.active .menu-item:nth-child(3) { transition-delay: 0.6s; }
.nav-menu.active .menu-item:nth-child(4) { transition-delay: 0.7s; }
.nav-menu.active .menu-item:nth-child(5) { transition-delay: 0.8s; }
.nav-menu.active .menu-item:nth-child(6) { transition-delay: 0.9s; }

/* Desktop dropdown styles */
.desktop-dropdown {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 100;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    background: linear-gradient(135deg, #000000, #1a1a1a);
    background-size: 200% 200%;
    animation: gradientBG 5s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dropdown-arrow {
    box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    position: relative;
    overflow: hidden;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Desktop dropdown - show on hover */
li.group:hover .desktop-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    z-index: 100;
}

/* Enhanced hover effect for dropdown items */
.desktop-dropdown .dropdown-item {
    position: relative;
    transition: all 0.3s ease;
}

.desktop-dropdown .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.3), transparent); /* Blue gradient */
}

/* Enhanced hover indicator for dropdown items */
.desktop-dropdown .dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background-color: #0066cc; /* Blue color for hover indicator */
    opacity: 0.2;
    transition: width 0.3s ease;
}

.desktop-dropdown .dropdown-item:hover::before {
    width: 100%;
}

/* Mobile dropdown animation */
.mobile-dropdown {
    max-height: 0; /* Hide the dropdown initially */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Smooth animation */
    /* background: rgba(20, 20, 20, 0.7); */
    border-radius: 10px;
    margin-top: 15px;
    /* border-left: 3px solid #0066cc; */
    backdrop-filter: blur(5px);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 0;
    z-index: 100;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); */
}

/* Remove hover effect for mobile */
li.group:hover .mobile-dropdown,
li.group.active .mobile-dropdown {
    max-height: 300px; /* Show the dropdown when active */
}

/* Mobile dropdown item transitions */
.mobile-dropdown .dropdown-item {
    width: 300px; /* Set the width to 300px */
    margin: 10px auto; /* Center horizontally */
    border-radius: 8px;
    background: #84b1de;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding: 12px;
    position: relative;
    overflow: hidden;
    text-align: center; /* Center text and inline elements */
}

/* Enhanced hover effect for mobile dropdown items */
.mobile-dropdown .dropdown-item:hover,
.mobile-dropdown .dropdown-item:active {
    background: rgba(6, 82, 181, 0.25);
    transform: translateX(0) !important;
}

/* Mobile dropdown item shine effect */
.mobile-dropdown .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.mobile-dropdown .dropdown-item:hover::before {
    left: 100%;
}

.nav-menu.active .dropdown-item {
    transform: translateX(0);
    opacity: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animate-blink {
    animation: blink 1s step-end infinite;
}

/* Smoke effect */
.smoke-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.smoke {
    position: absolute;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9InNtb2tlIiBjeD0iNTAlIiBjeT0iNTAlIiByPSI1MCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwKSIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxjaXJjbGUgY3g9IjE1MCIgY3k9IjE1MCIgcj0iMTUwIiBmaWxsPSJ1cmwoI3Ntb2tlKSIvPjwvc3ZnPg==');
    background-size: contain;
    transform-origin: center;
    opacity: 0;
}

.smoke1 {
    top: 20%;
    left: 10%;
    animation: smoke1 20s linear infinite;
}

.smoke2 {
    top: 40%;
    right: 10%;
    animation: smoke2 25s linear infinite;
}

.smoke3 {
    bottom: 30%;
    left: 30%;
    animation: smoke3 22s linear infinite;
}

@keyframes smoke1 {
    0% { transform: scale(0.5) translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.2; }
    40% { opacity: 0.4; }
    60% { opacity: 0.2; }
    100% { transform: scale(3) translate(-100px, -200px) rotate(360deg); opacity: 0; }
}

@keyframes smoke2 {
    0% { transform: scale(0.5) translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.2; }
    40% { opacity: 0.4; }
    60% { opacity: 0.2; }
    100% { transform: scale(3) translate(100px, -250px) rotate(-360deg); opacity: 0; }
}

@keyframes smoke3 {
    0% { transform: scale(0.5) translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.2; }
    40% { opacity: 0.4; }
    60% { opacity: 0.2; }
    100% { transform: scale(3) translate(-50px, -300px) rotate(360deg); opacity: 0; }
}

/* Reset the group hover for mobile */
li.group:hover .mobile-dropdown {
    max-height: 0; 
    opacity: 0;
}

.nav-menu.active .dropdown-item:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active .dropdown-item:nth-child(2) { transition-delay: 0.2s; }
.nav-menu.active .dropdown-item:nth-child(3) { transition-delay: 0.3s; }

li.group.active .dropdown-item {
    transform: translateX(0);
    opacity: 1;
}

.desktop-dropdown .dropdown-item {
    transform: translateY(-5px);
    opacity: 0;
    transition: all 0.3s ease;
}

li.group:hover .desktop-dropdown .dropdown-item:nth-child(1) { 
    transition-delay: 0.05s;
    transform: translateY(0);
    opacity: 1;
}
li.group:hover .desktop-dropdown .dropdown-item:nth-child(2) { 
    transition-delay: 0.1s;
    transform: translateY(0);
    opacity: 1;
}
li.group:hover .desktop-dropdown .dropdown-item:nth-child(3) { 
    transition-delay: 0.15s;
    transform: translateY(0);
    opacity: 1;
}

/* Ripple effect for mobile buttons */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple 0.6s linear;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Pulsing effect for mobile menu-item */
.menu-item .fa-chevron-down {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Active state styling for mobile menu */
li.group.active > div {
    color: #0066cc !important;
    /* background: rgba(6, 58, 181, 0.1); */
    border-radius: 10px;
    padding: 10px;
}

/* article */
.article-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.bg-pattern {
    background-image: url('/src/Images/articles/article-1.jpg');
    background-color: #b55206; 
    background-blend-mode: multiply;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(181, 82, 6, 0.5); 
    pointer-events: none;
}

.article-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
}

.arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.enroll-button:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* training */
.video-modal {
    display: none;
    animation: modalFade 0.3s ease-out;
}

.video-modal.active {
    display: flex;
}

.card-overlay {
    background: rgba(30, 41, 59, 0.7);
    opacity: 0;
    transition: all 0.4s ease;
}

.hover-effect:hover .card-overlay {
    opacity: 1;
}

.hover-effect:hover img {
    transform: scale(1.05);
}

.hover-gradient:hover .card-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

@keyframes modalFade {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.play-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.category-badge {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* button */
.arrow {
    opacity: 0; 
    transform: translateX(-10px); 
    transition: opacity 0.3s ease, transform 0.3s ease; 
}
.hover\:arrow-visible:hover .arrow {
    opacity: 1; 
    transform: translateX(0);
}

/* principles */
.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.number-circle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover .title-text {
    color: #1d4ed8;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-container {
    position: relative;
    min-height: 100vh;
}

.principle-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color, #f3e7d7);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 50;
}

.principle-page.active {
    transform: translateX(0);
}

.page-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.principle-page.active .page-content {
    opacity: 1;
    transform: translateY(0);
}

.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 60;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.principle-page.active .back-btn {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.6s;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
}

.view-more-btn {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover .view-more-btn {
    opacity: 1;
    transform: translateX(0);
}

.arrow-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-more-btn:hover .arrow-icon {
    transform: translateX(8px);
}

/* preloader */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}

@keyframes rotateChakra {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); -webkit-transform: rotate(180deg) scale(1.2); -moz-transform: rotate(180deg) scale(1.2); -ms-transform: rotate(180deg) scale(1.2); -o-transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes glowEffect {
    0% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.9)); }
    100% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)); }
}

.chakra {
    animation: rotateChakra 4s ease-in-out infinite, glowEffect 2s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.sanskrit-text {
    animation: floatAnimation 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.progress-ring {
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.3s ease;
}

.hide-preloader {
    opacity: 0;
    visibility: hidden;
}

.krishna-audio-btn {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
}

.krishna-audio-btn:hover {
    background: rgb(249, 115, 22);
    transform: scale(1.05);
}

.krishna-skip-tooltip {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.krishna-audio-btn:hover .krishna-skip-tooltip {
    opacity: 1;
    bottom: -2rem;
}

.krishna-audio-btn.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* Partners */

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.animate-slide {
    animation: slide 30s linear infinite;
}

.logo-slide {
    &:hover {
        animation-play-state: paused;
    }
}

/* aboutus  */

/* Animation keyframes */
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Animation properties */
.animate-slide {
    animation: slide 30s linear infinite;
}

.logo-slide {
    &:hover {
        animation-play-state: paused;
    }
}

/* Logo container styles */
.logo-container {
    flex-shrink: 0;
    width: clamp(120px, 15vw, 192px); /* Responsive width */
    height: clamp(60px, 8vw, 96px);   /* Responsive height */
    margin: 0 clamp(16px, 2vw, 32px); /* Responsive margin */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Logo image styles */
.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
    aspect-ratio: 3/2;
}

/* Hover effects */
.logo-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-container:hover img {
    filter: grayscale(0%);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .logo-container {
        padding: 8px;
    }
}