/* ============================================
   FUTURISTIC DROPDOWN NAVIGATION MENU
   Modern UI Design - Matches IIN.edu Theme
   ============================================ */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Trigger Button */
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

/* Chevron Icon Animation */
.dropdown-trigger i {
    font-size: 0.65rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0.7;
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
    opacity: 1;
}

/* Active glow effect on trigger */
.nav-dropdown:hover .dropdown-trigger {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* ============================================
   DROPDOWN MENU CONTAINER
   ============================================ */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 20px;
    
    /* Ultra-modern glass effect */
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    
    /* Rounded corners */
    border-radius: 16px;
    padding: 12px;
    min-width: 220px;
    
    /* Borders & shadows */
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10000;
    
    /* Glow effect */
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

/* Show dropdown on hover */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    margin-top: 15px;
}

/* ============================================
   DROPDOWN MENU ITEMS
   ============================================ */
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 4px;
    
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    
    position: relative;
    overflow: hidden;
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Last item no margin */
.dropdown-menu a:last-child {
    margin-bottom: 0;
}

/* Hover effect with animated gradient */
.dropdown-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.dropdown-menu a:hover::before {
    opacity: 1;
}

.dropdown-menu a:hover {
    color: #60a5fa;
    transform: translateX(8px);
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(59, 130, 246, 0.05);
}

/* Active state */
.dropdown-menu a[style*="color:#3b82f6"],
.dropdown-menu a.active {
    color: #3b82f6 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* ============================================
   ARROW POINTER (TOOLTIP STYLE)
   ============================================ */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-left: 1px solid rgba(59, 130, 246, 0.2);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* Subtle glow on arrow */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

/* ============================================
   CATEGORY BADGES (OPTIONAL)
   ============================================ */
.dropdown-menu a .badge {
    margin-left: auto;
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 12px;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(59, 130, 246, 0.15);
        box-shadow: none;
        filter: none;
    }
    
    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }
    
    .nav-dropdown .dropdown-menu a {
        padding-left: 30px;
        font-size: 0.85rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.dropdown-trigger:focus,
.dropdown-menu a:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu,
    .dropdown-trigger i,
    .dropdown-menu a {
        transition: none;
    }
}