/* ============================================
   SHARED NAVBAR + MOBILE SIDEBAR STYLES
   Used by every page (loaded via navbar.php)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700;900&display=swap');

 /* Navbar Styles */
 .navbar {
     font-family: 'Fredoka', sans-serif;
     background-color: #000;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 15px 30px;
     position: relative;
     /* Added: Position relative for proper dropdown placement */
     z-index: 100;
     /* Added: Higher z-index to be on top of other content */
 }

 /* Logo Section */
 .navbar-logo {
     display: flex;
     align-items: center;
 }

 .navbar-logo img {
     height: 50px;
     width: auto;
     object-fit: contain;
     display: block;
 }

 /* Logo Pulse Animation */
 @keyframes pulse {
     0% {
         transform: scale(1);
     }

     50% {
         transform: scale(1.05);
     }

     100% {
         transform: scale(1);
     }
 }

 .navbar-logo:hover img {
     animation: pulse 1.5s infinite;
 }

 /* Navigation Links */
 .nav-links {
     display: flex;
     align-items: center;
     list-style: none;
     margin: 0;
     padding: 0;
 }

 .nav-links li {
     margin: 0 20px;
     position: relative;
     /* Added: Ensures dropdowns are positioned correctly relative to their parent li */
 }

 .nav-links a,
 .nav-links span {
     position: relative;
     color: #fff;
     text-decoration: none;
     font-weight: 400;
     font-size: 18px;
     letter-spacing: 0.5px;
     display: flex;
     align-items: center;
     cursor: pointer;
     transition: color 0.3s ease;
     padding-bottom: 2px;
 }

 /* Icon Lift Animation for top-level links */
 .nav-links>li>a:hover i,
 .nav-links>li>span:hover i {
     transform: translateY(-3px);
     transition: transform 0.3s ease;
 }

 .nav-links a i,
 .nav-links span i {
     margin-right: 12px;
 }

 /* Dropdown Menu */
 .dropdown {
     position: absolute;
     top: 100%;
     left: -20px;
     background-color: #111;
     padding: 10px 0;
     border-radius: 5px;
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
     list-style: none;
     display: none;
     min-width: 250px;
     transition: opacity 0.3s ease, transform 0.3s ease;
     /* Added: Smooth fade-in/out */
     opacity: 0;
     pointer-events: none;
     /* Added: Prevents interaction when hidden */
     transform: translateY(10px);
 }

 /* FIX: The main change is here. We apply 'hover' on the parent container (li)
nsure the dropdown stays visible as the mouse moves from the link to the sub-menu. */
 .nav-links li:hover .dropdown {
     display: block;
     opacity: 1;
     pointer-events: auto;
     transform: translateY(0);
 }

 /* Dropdown Icon Animation (Fades Down) */
 .dropdown-icon {
     transition: transform 0.3s ease, opacity 0.3s ease;
     padding-left: 4px;
     padding-top: 3px;
 }

 .dropdown-toggle:hover .dropdown-icon {
     transform: translateY(5px);
 }

 .dropdown li {
     margin: 0;
 }

 .dropdown a {
     padding: 10px 20px;
     display: block;
     white-space: nowrap;
 }

 .dropdown a:hover {
     background-color: #222;
 }

 /* Right-side Actions (Buttons) */
 .nav-actions {
     display: flex;
     align-items: center;
 }

 /* Sign Up Button Animation: Left-to-Right Fill */
 .nav-actions .btn {
     position: relative;
     overflow: hidden;
     background-color: transparent;
     color: #fff;
     padding: 10px 20px;
     border: 2px solid #fff;
     border-radius: 5px;
     cursor: pointer;
     text-decoration: none;
     font-size: 18px;
     font-weight: 700;
     z-index: 1;
     transition: color 0.5s ease;
 }

 .nav-actions .btn i {
     z-index: 2;
     position: relative;
     transition: color 0.5s ease;
 }

 .nav-actions .btn::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     height: 100%;
     width: 0%;
     background-color: #fff;
     transition: width 0.5s ease;
     z-index: -1;
 }

 .nav-actions .btn:hover {
     color: #000;
 }

 .nav-actions .btn:hover::before {
     width: 100%;
 }

 /* Mobile Responsiveness */
 @media (max-width: 1130px) {
     .navbar {
         flex-wrap: nowrap;
         padding: 15px;
     }

     .nav-links,
     .nav-actions {
         display: none;
     }
 }

 /* Side NAVBAR */
 /* --- START: Mobile Sidebar Styles --- */
 .mobile-menu-toggle {
     display: none;
     position: fixed;
     top: 20px;
     right: 20px;
     z-index: 9999;
     background-color: transparent;
     border: none;
     color: #fff;
     font-size: 24px;
     cursor: pointer;
 }

 .mobile-sidebar {
     font-family: 'Fredoka', sans-serif;
     position: fixed;
     top: 0;
     left: -300px;
     height: 100%;
     width: 280px;
     background-color: #000;
     padding: 20px;
     box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
     transition: left 0.3s ease-in-out;
     z-index: 999;
     overflow-y: auto;
     display: flex;
     flex-direction: column;
 }

 .mobile-sidebar.active {
     left: 0;
 }

 .sidebar-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding-bottom: 20px;
     border-bottom: 1px solid #333;
     margin-bottom: 20px;
     gap: 15px;
 }

 .sidebar-header .header-logo img {
     height: 35px;
     width: auto;
     object-fit: contain;
 }

 .sidebar-header .header-profile {
     display: flex;
     align-items: center;
 }

 .sidebar-header .header-profile .sidebar-btn {
     position: relative;
     overflow: hidden;
     background-color: transparent;
     color: #fff;
     padding: 7px 15px;
     border: 2px solid #fff;
     border-radius: 5px;
     cursor: pointer;
     text-decoration: none;
     font-size: 16px;
     font-weight: 700;
     z-index: 1;
     transition: color 0.5s ease;
     white-space: nowrap;
 }

 .sidebar-header .header-profile .sidebar-btn i {
     z-index: 2;
     position: relative;
     transition: color 0.5s ease;
 }

 .sidebar-header .header-profile .sidebar-btn::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     height: 100%;
     width: 0%;
     background-color: #fff;
     transition: width 0.5s ease;
     z-index: -1;
 }

 .sidebar-header .header-profile .sidebar-btn:hover {
     color: #000;
 }

 .sidebar-header .header-profile .sidebar-btn:hover::before {
     width: 100%;
 }

 .sidebar-menu-list {
     list-style: none;
     padding: 0;
     margin: 0;
 }

 .sidebar-menu-list li {
     margin-bottom: 10px;
 }

 .sidebar-menu-item {
     display: flex;
     align-items: center;
     padding: 12px 15px;
     color: #fff;
     text-decoration: none;
     border-radius: 8px;
     transition: background-color 0.3s ease, color 0.3s ease;
 }

 .sidebar-menu-item:hover,
 .sidebar-menu-item.active {
     background-color: #4318FF;
     color: #fff;
 }

 .sidebar-menu-item:hover i {
     transform: translateY(-3px);
     transition: transform 0.3s ease;
 }

 .sidebar-menu-item i {
     margin-right: 15px;
     font-size: 20px;
 }

 .sidebar-dropdown-toggle {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .sidebar-dropdown-icon {
     font-size: 16px;
     transition: transform 0.3s ease;
 }

 .sidebar-nested-menu {
     list-style: none;
     padding: 0;
     margin-top: 5px;
     margin-left: 20px;
     display: none;
     max-height: 180px;
     overflow-y: auto;
 }

 .sidebar-nested-menu::-webkit-scrollbar {
     width: 6px;
     background-color: #333;
     border-radius: 10px;
 }

 .sidebar-nested-menu::-webkit-scrollbar-thumb {
     background-color: #4318FF;
     border-radius: 10px;
 }

 .sidebar-nested-item {
     display: flex;
     align-items: center;
     padding: 8px 15px;
     color: #888;
     text-decoration: none;
     border-radius: 8px;
     transition: color 0.3s ease;
 }

 .sidebar-nested-item i {
     margin-right: 10px;
 }

 .sidebar-nested-item:hover {
     color: #fff;
 }

 /* Close button ki position fix ki */
 .sidebar-bottom {
     padding-top: 20px;
     border-top: 1px solid #333;
     margin-top: 20px;
     text-align: center;
 }

 .sidebar-bottom-close-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 44px;
     height: 44px;
     margin: 0 auto;
     background: rgba(255, 255, 255, 0.06);
     border: 1px solid rgba(255, 255, 255, 0.15);
     border-radius: 50%;
     color: #fff;
     font-size: 18px;
     cursor: pointer;
     transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
 }

 .sidebar-bottom-close-btn:hover {
     background-color: #4318FF;
     border-color: #4318FF;
     color: #fff;
     transform: rotate(90deg);
 }

 @media (max-width: 1130px) {

     .navbar .nav-links,
     .navbar .nav-actions {
         display: none;
     }

     .mobile-menu-toggle {
         display: block;
     }

     .sidebar-bottom-close-btn {
         position: static;
         transform: none;
     }
 }
/* ============================================
   NAVBAR REDESIGN — additions & overrides
   ============================================ */

/* Sticky nav: hides on scroll-down, shows (transparent glass) on scroll-up */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-heading, 'Fredoka'), sans-serif;
    transition: transform 0.35s ease, background-color 0.35s ease, backdrop-filter 0.35s ease;
}
.navbar.nav-hidden { transform: translateY(-100%); }
.navbar.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Sign Up button — premium (brand blue + Nunito) */
.nav-actions .btn {
    background-color: var(--blue, #4318ff);
    color: var(--white, #fff);
    border: 2px solid var(--blue, #4318ff);
    border-radius: 50px;
    padding: 10px 26px;
    font-family: var(--font-btn, 'Nunito'), sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(67, 24, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.nav-actions .btn:hover {
    background-color: #3610d6;
    color: var(--white, #fff);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(67, 24, 255, 0.5);
}
.nav-actions .btn::before { display: none; }

/* 2-line hamburger */
.mobile-menu-toggle {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 0;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--white, #fff);
    border-radius: 3px;
    transition: all 0.3s ease;
}
@media (max-width: 1130px) {
    .mobile-menu-toggle { display: flex; }
}

/* Mobile sidebar bottom: social icons -> close -> Sign Up */
.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}
.sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white, #fff);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.sidebar-social a:hover {
    background: var(--white, #fff);
    color: var(--black, #000);
    transform: translateY(-3px);
}
.sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6b47ff, #4318ff);
    color: var(--white, #fff);
    border-radius: 50px;
    font-family: var(--font-btn, 'Nunito'), sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(67, 24, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.sidebar-cta-btn:hover {
    background: linear-gradient(135deg, #7d5cff, #5423ff);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(67, 24, 255, 0.55);
}
.sidebar-cta-btn i {
    transition: transform 0.3s ease;
}
.sidebar-cta-btn:hover i {
    transform: scale(1.15);
}

/* ============================================
   NAVBAR FIXES (round 2)
   ============================================ */

/* Mobile sidebar ABOVE the sticky navbar (was hidden behind navbar z-index) */
.mobile-sidebar { z-index: 1100; }

/* Sign Up button — like the creative-design button (white, invert to black on hover) */
.nav-actions .btn {
    background: var(--white, #fff);
    color: var(--black, #000);
    border: none;
    border-radius: 8px;
    padding: 10px 26px;
    font-family: var(--font-btn, 'Nunito'), sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: none;
    transition: all 0.3s ease;
}
.nav-actions .btn:hover {
    background: var(--black, #000);
    color: var(--white, #fff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Submenu (dropdown) — premium glass card (desktop) */
.dropdown {
    background: linear-gradient(180deg, rgba(30, 30, 38, 0.92), rgba(14, 14, 20, 0.94));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    min-width: 264px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4318ff rgba(255, 255, 255, 0.05);
}
.dropdown::-webkit-scrollbar {
    width: 8px;
}
.dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 6px 0;
}
.dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6b47ff, #4318ff);
    border-radius: 10px;
}
.dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7d5cff, #5423ff);
}
.dropdown li a {
    border-radius: 10px;
    padding: 11px 14px;
    color: #d8d8e0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dropdown li a i {
    color: #8f8fa3;
    transition: color 0.2s ease;
}
.dropdown li a:hover {
    background: rgba(67, 24, 255, 0.20);
    color: #fff;
    transform: translateX(4px);
}
.dropdown li a:hover i {
    color: #6b47ff;
}