/* ===================================
   UNIQUE MODERN HEADER DESIGN
   Removing #705adc and creating fresh design
   =================================== */

/* Override default header styles with modern unique design */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* Glassmorphism effect on scroll */
.header.scrolled {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .header.scrolled {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%) !important;
}

/* Logo styling with glow effect */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo:hover::before {
    opacity: 1;
}

.logo i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3)); }
    50% { filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6)); }
}

.logo span {
    letter-spacing: -0.5px;
    position: relative;
}

.logo:hover {
    transform: translateY(-2px);
}

/* Navigation links with modern hover effects */
.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.nav-link.active::after,
.nav-link:hover::after {
    display: none; /* Remove underline effect */
}

/* Dropdown menu with glassmorphism */
.dropdown-menu {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.3);
    padding: 0.75rem;
}

[data-theme="dark"] .dropdown-menu {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.dropdown-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    transform: translateX(8px);
}

/* Mobile toggle button with modern design */
.mobile-toggle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-toggle span {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile navigation styling */
@media (max-width: 991px) {
    .nav {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(102, 126, 234, 0.3);
        margin-top: 1rem;
    }
    
    [data-theme="dark"] .nav {
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 0.5rem;
    }
}

/* Header content wrapper */
.header-content {
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.header.scrolled .header-content {
    padding: 0.75rem 0;
}

/* Add subtle animation on page load */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    animation: headerSlideDown 0.5s ease-out;
}

/* Unique accent color for the new design */
:root {
    --header-primary: #667eea;
    --header-secondary: #764ba2;
    --header-text: #ffffff;
    --header-glow: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] {
    --header-primary: #1a1a2e;
    --header-secondary: #16213e;
    --header-glow: rgba(0, 0, 0, 0.5);
}

/* Decorative gradient line under header */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #ffd700 0%, 
        #ffed4e 25%, 
        #667eea 50%, 
        #764ba2 75%, 
        #ffd700 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

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

/* Remove old color completely */
/* Ensuring #705adc is never used */
