/* ===== HEADER/NAVBAR STYLES ===== */

/* Variables needed for navbar styles */
:root {
    --primary-green: #7ED321;
    --primary-purple: #9c27b0;
    --transition-fast: 0.3s ease;
}

/* ===== NAVBAR CSS ===== */
.navbar {
    padding: 15px 0;
    transition: transform 0.4s ease, background 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(126, 211, 33, 0.1);
}

.navbar-brand {
    padding: 0;
}

.logo-img {
    height: 60px;
    transition: all var(--transition-fast) ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar-toggler {
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 0;
    background: rgba(126, 211, 33, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: #ffffff;
    font-weight: 700;
    margin: 0 5px;
    padding: 10px 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link span {
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
    border-radius: 30px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
    transform: scale(0.9);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #7ED321, #9c27b0);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    color: #7ED321;
    opacity: 1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    opacity: 1;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: rgb(255 255 255);
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}

.nav-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(126, 211, 33, 0.3);
    background: linear-gradient(135deg, #7ED321, #2E7D32);
    color: white;
}

.nav-cta-btn i {
    transition: all 0.3s ease;
    position: relative;
    left: 0;
}

.nav-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #7ED321, #2E7D32);
}

.nav-cta-btn:hover i {
    left: 5px;
}

/* Theme toggle button with luxury styling */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    position: relative;
}

.theme-toggle {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.7), rgba(42, 42, 42, 0.7));
    border: 1px solid rgba(126, 211, 33, 0.2);
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(126, 211, 33, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    z-index: 100;
}


.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(126, 211, 33, 0.2);
}

.theme-toggle:hover::before {
    opacity: 0.7;
}

.theme-toggle:active {
    transform: scale(0.92) translateY(-2px);
}

.theme-toggle i {
    font-size: 1.4rem;
    color: #FFFFFF;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 10px rgba(126, 211, 33, 0.5);
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: translateY(20px) rotate(120deg) scale(0.5);
    color: #FFC107;
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
    color: #E1E1E1;
}

/* Light theme toggle icon styles */
.light-theme .theme-toggle {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
    border: 1px solid rgba(126, 211, 33, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(156, 39, 176, 0.05);
}

.light-theme .theme-toggle:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(156, 39, 176, 0.1);
}

.light-theme .theme-toggle i {
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
}

.light-theme .theme-toggle .fa-sun {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.light-theme .theme-toggle .fa-moon {
    opacity: 0;
    transform: translateY(-20px) rotate(-120deg) scale(0.5);
}

@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        height: 45px;
    }
    
    /* Light theme specific mobile styles */
    .light-theme #theme-toggle-mobile {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(126, 211, 33, 0.3) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    }
    
    .light-theme #theme-toggle-mobile .fa-sun {
        opacity: 1 !important;
        transform: translateY(0) rotate(0) scale(1) !important;
        color: #FFC107 !important;
    }
    
    .light-theme #theme-toggle-mobile .fa-moon {
        opacity: 0 !important;
        transform: translateY(-20px) rotate(-120deg) scale(0.5) !important;
    }
    
    .light-theme .navbar-toggler {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(126, 211, 33, 0.3) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    }
    
    .light-theme .navbar-toggler i {
        color: #222 !important;
    }
    
    /* Force visible mobile controls */
    .mobile-controls {
        display: flex !important;
        align-items: center;
        gap: 10px;
        position: relative;
        z-index: 1000;
    }
    
    /* Style navbar toggler */
    .navbar-toggler {
        width: 40px !important;
        height: 40px !important;
        background: rgba(20, 20, 20, 0.8) !important;
        border: 1px solid rgba(126, 211, 33, 0.3) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 10px !important;
        z-index: 9999 !important;
        color: #ffffff !important;
    }
    
    .navbar-toggler i {
        color: #ffffff !important;
        font-size: 1.2rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Style mobile theme toggle */
    #theme-toggle-mobile {
        width: 40px !important;
        height: 40px !important;
        background: rgba(20, 20, 20, 0.8) !important;
        border: 1px solid rgba(156, 39, 176, 0.3) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
        backdrop-filter: none !important;
    }
    
    #theme-toggle-mobile i {
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        display: block !important;
        font-size: 1.2rem !important;
        color: #ffffff !important;
    }
    
    .mobile-controls {
        display: flex !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    /* Premium mobile menu design */
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.97);
        backdrop-filter: blur(20px);
        padding: 30px;
        margin-top: 20px;
        border-radius: 20px;
        border: 1px solid rgba(156, 39, 176, 0.15);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(126, 211, 33, 0.05);
        max-height: 85vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(126, 211, 33, 0.3) rgba(15, 15, 15, 0.3);
        transform: translateY(10px);
        opacity: 0;
        animation: menu-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    @keyframes menu-reveal {
        0% { transform: translateY(10px); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }
    
    /* Custom scrollbar styling */
    .navbar-collapse::-webkit-scrollbar {
        width: 5px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: rgba(15, 15, 15, 0.3);
        border-radius: 10px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: linear-gradient(to bottom, rgba(126, 211, 33, 0.3), rgba(156, 39, 176, 0.3));
        border-radius: 10px;
    }
    
    /* Mobile menu header with logo/branding */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .mobile-menu-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #fff;
        background: linear-gradient(135deg, #7ED321 0%, #9C27B0 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    
    /* Info cards in mobile menu */
    .mobile-info-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .info-card {
        background: rgba(30, 30, 30, 0.5);
        border-radius: 15px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    .info-card:hover {
        background: rgba(40, 40, 40, 0.6);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .info-card-title {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 5px;
    }
    
    .info-card-value {
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .info-card-value i {
        color: var(--primary-green);
        font-size: 1rem;
    }
    
    /* Navigation categories */
    .nav-category {
        margin-bottom: 25px;
    }
    
    .category-title {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 15px;
        padding-left: 15px;
        position: relative;
    }
    
    .category-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 5px;
        height: 5px;
        background: var(--primary-green);
        border-radius: 50%;
        transform: translateY(-50%);
    }
    
    /* Navigation items styling */
    .navbar-nav {
        padding: 10px 0;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-item {
        position: relative;
        z-index: 1;
    }
    
    .nav-link {
        margin: 3px 0;
        padding: 15px 20px;
        border-radius: 15px;
        font-weight: 600;
        letter-spacing: 0.3px;
        display: flex;
        align-items: center;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        background: rgba(25, 25, 25, 0.5);
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, #7ED321, #9C27B0);
        opacity: 0;
        transition: all 0.4s ease;
    }
    
    .nav-link:not(.active):hover {
        background: rgba(35, 35, 35, 0.7);
        transform: translateX(5px);
    }
    
    .nav-link:not(.active):hover::before {
        opacity: 0.5;
    }
    
    .nav-link.active {
        background: rgba(40, 40, 40, 0.8);
        background: linear-gradient(135deg, rgba(126, 211, 33, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
        padding-left: 25px;
        transform: translateX(5px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .nav-link.active::before {
        opacity: 1;
    }
    
    .nav-link .nav-icon {
        margin-right: 12px;
        font-size: 1.1rem;
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .nav-link:not(.active):hover .nav-icon {
        transform: translateX(3px);
        color: var(--primary-green);
    }
    
    .nav-link.active span,
    .nav-link.active .nav-icon {
        background: linear-gradient(135deg, #7ED321 0%, #9C27B0 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    
    /* Quick links section */
    .quick-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
        margin-bottom: 25px;
    }
    
    .quick-link {
        padding: 8px 15px;
        background: rgba(30, 30, 30, 0.6);
        border-radius: 30px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .quick-link:hover {
        background: rgba(40, 40, 40, 0.8);
        transform: translateY(-2px);
        color: #fff;
    }
    
    .quick-link i {
        font-size: 0.8rem;
        color: var(--primary-green);
    }
    
    /* Contact info section */
    .mobile-contact-info {
        background: rgba(25, 25, 25, 0.5);
        border-radius: 15px;
        padding: 15px;
        margin-top: 20px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .contact-item:last-child {
        margin-bottom: 0;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        background: rgba(126, 211, 33, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-green);
        font-size: 1rem;
    }
    
    .contact-text {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* CTA group styling */
    .nav-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-top: 25px;
        margin-left: 0;
        position: relative;
        padding-top: 20px;
    }
    
    .nav-cta-group::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, rgba(126, 211, 33, 0), rgba(126, 211, 33, 0.3), rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0));
    }
    
    .nav-cta-btn {
        justify-content: center;
        padding: 16px 20px;
        border-radius: 15px;
        position: relative;
        overflow: hidden;
        font-size: 1.05rem;
        background: linear-gradient(135deg, #7ED321, #2E7D32);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .nav-cta-btn.secondary {
        background: rgba(30, 30, 30, 0.8);
        border: 1px solid rgba(126, 211, 33, 0.3);
        color: #fff;
    }
    
    .nav-cta-btn i {
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    /* Social links in mobile menu */
    .mobile-social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(30, 30, 30, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .social-link:hover {
        transform: translateY(-3px);
        background: rgba(40, 40, 40, 0.8);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .social-link.facebook:hover { color: #1877F2; }
    .social-link.twitter:hover { color: #1DA1F2; }
    .social-link.instagram:hover { color: #E4405F; }
    .social-link.linkedin:hover { color: #0A66C2; }
    
    /* Mobile menu footer */
    .mobile-menu-footer {
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.5);
    }
    
    /* Additional specific fix for mobile controls */
    .navbar .container .mobile-controls {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar .container .mobile-controls .navbar-toggler,
    .navbar .container .mobile-controls .theme-toggle-wrapper,
    .navbar .container .mobile-controls .theme-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-controls .theme-toggle i {
        position: absolute;
        display: block !important;
        visibility: visible !important;
    }
}

/* Responsive toggle button styles */
@media screen and (max-width: 768px) {
    .theme-toggle-wrapper {
        margin: 0;
        display: flex !important;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        display: flex !important;
    }
    
    .theme-toggle i {
        font-size: 1.2rem;
    }
    
    .navbar-brand .logo-img {
        height: 45px;
    }
    
    .mobile-controls {
        display: flex !important;
        align-items: center;
    }
}

/* For smaller screens */
@media screen and (max-width: 576px) {
    .theme-toggle-wrapper {
        margin: 0;
    }
    
    .theme-toggle {
        width: 38px;
        height: 38px;
        background: rgba(20, 20, 20, 0.8) !important;
        backdrop-filter: none !important;
    }
    
    .navbar-brand .logo-img {
        height: 40px;
    }
    
    .navbar-collapse {
        margin-top: 15px;
        padding: 25px 20px;
    }
    
    .nav-link {
        padding: 12px 15px;
    }
    
    .nav-cta-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* Mobile button container */
.mobile-controls {
    display: none !important; /* Ensure it's hidden on desktop */
}

/* Add rotation animation for theme toggle */
.theme-rotate {
    animation: rotate-toggle 0.5s ease-in-out;
}

@keyframes rotate-toggle {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* Desktop/Mobile visibility classes */
.desktop-only {
    display: none !important;
}

@media (min-width: 992px) {
    .desktop-only {
        display: flex !important;
    }
}

.mobile-only {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-only {
        display: flex !important;
    }
}

/* Hide toggler on desktop */
@media (min-width: 992px) {
    .navbar-toggler, 
    button.navbar-toggler,
    .mobile-controls .navbar-toggler {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}
