/* Navigation Styles */
.nav-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0 20px;
    position: sticky;
    top: 10px; /* Changed from top: 0 to top: 20px */
    z-index: 1000;
    width: 99%; /* Added 90% width */
    max-width: 1200px; /* Keep max-width constraint */
    margin: 0 auto 0 auto; /* Center the navigation */
    border-radius: 12px; /* Added border-radius for better appearance */
    
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-top: -5px;
    transition: all 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    position: relative;
    padding-left: 4px;
    transition: all 0.3s ease;
}

/* Adding decorative line before text */
.logo-text::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #4361ee, #3a56d4);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.logo-part1 {
    font-size: 16px;
    font-weight: 500;
    margin-left: 74px;
    margin-bottom: -9px;
    color: #4361ee;
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
}

.logo-part3 {
    font-size: 10px;
    font-weight: 700;
    color: #4361ee;
    margin-left: -5px;
    margin-bottom: -17px;
    display: inline-block;
    vertical-align: middle;
    text-transform: lowercase;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.logo-part2 {
    font-size: 24px;
    font-weight: 800;
    color: #4361ee;
    letter-spacing: -0.5px;
    font-family: 'Poppins', 'Segoe UI', -apple-system, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Tablet screens (768px and below) */
@media (max-width: 768px) {
    .logo {
        gap: 10px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        margin-top: -3px;
    }
    
    .logo-text {
        padding-left: 3px;
    }
    
    .logo-text::before {
        left: -6px;
        width: 2px;
    }
    
    .logo-part1 {
        font-size: 13px;
        margin-left: 59px;
        margin-bottom: -7px;
        letter-spacing: 0.3px;
    }
    
    .logo-part3 {
        font-size: 8px;
        margin-left: -4px;
        margin-bottom: -14px;
    }
    
    .logo-part2 {
        font-size: 19px;
        letter-spacing: -0.3px;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 15px;
    }
}

/* Mobile screens (480px and below) */
@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        margin-top: -2px;
    }
    
    .logo-text {
        padding-left: 2px;
    }
    
    .logo-text::before {
        left: -4px;
        width: 1.5px;
    }
    
    .logo-part1 {
        font-size: 11px;
        margin-left: 49px;
        margin-bottom: -6px;
        letter-spacing: 0.2px;
    }
    
    .logo-part3 {
        font-size: 7px;
        margin-left: -3px;
        margin-bottom: -12px;
    }
    
    .logo-part2 {
        font-size: 16px;
        letter-spacing: -0.2px;
    }
    
    .nav-container {
        height: 55px;
        padding: 0 10px;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .logo {
        gap: 6px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
        margin-top: -1px;
    }
    
    .logo-text::before {
        left: -3px;
        width: 1px;
    }
    
    .logo-part1 {
        font-size: 10px;
        margin-left: 40px;
        margin-bottom: -5px;
        letter-spacing: 0.1px;
    }
    
    .logo-part3 {
        font-size: 6px;
        margin-left: -2px;
        margin-bottom: -10px;
    }
    
    .logo-part2 {
        font-size: 14px;
        letter-spacing: -0.1px;
    }
    
    .nav-container {
        height: 50px;
    }
}
/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.1);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #666;
}

.btn-outline:hover {
    border-color: #4361ee;

    color: #4361ee;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
    transform: translateY(-2px);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 500;
    text-decoration: none;
}

.user-btn:hover {
    border-color: #4361ee;
  
    color: #4361ee;
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* Dropdown Icon */
.dropdown-icon {
    width: 16px;
    height: 16px;
    position: relative;
    transition: transform 0.3s ease;
}

.dropdown-icon::before,
.dropdown-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.dropdown-icon::before {
    left: 0;
    transform: rotate(45deg) translateY(-50%);
}

.dropdown-icon::after {
    right: 0;
    transform: rotate(-45deg) translateY(-50%);
}

.user-menu:hover .dropdown-icon,
.user-menu.active .dropdown-icon {
    transform: rotate(180deg);
}

.user-menu:hover .dropdown-icon::before,
.user-menu.active .dropdown-icon::before {
    transform: rotate(-45deg) translateY(-50%);
}

.user-menu:hover .dropdown-icon::after,
.user-menu.active .dropdown-icon::after {
    transform: rotate(45deg) translateY(-50%);
}

/* Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    overflow: hidden;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 14px 20px;
    display: block;
    text-decoration: none;
    color: #666;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(67, 97, 238, 0.08);
    color: #4361ee;
    padding-left: 24px;
}

/* Enhanced Hamburger Button */
.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.hamburger-btn:hover {
    border-color: #4361ee;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.hamburger-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #666;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.hamburger-btn:hover .hamburger-line {
    background: #4361ee;
}

.hamburger-line:nth-child(1) {
    top: 14px;
    width: 16px;
}

.hamburger-line:nth-child(2) {
    top: 21px;
    width: 20px;
}

.hamburger-line:nth-child(3) {
    top: 28px;
    width: 12px;
}

/* Transform to X */
.hamburger-btn.active {
    border-color: #4361ee;
    background: rgba(67, 97, 238, 0.05);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    top: 21px;
    width: 20px;
    transform: translateX(-50%) rotate(135deg);
    background: #4361ee;
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
    background: #4361ee;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    top: 21px;
    width: 20px;
    transform: translateX(-50%) rotate(-135deg);
    background: #4361ee;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hamburger-btn {
        display: block;
        order: 3;
    }

    .main-nav {
        position: fixed;
        top: 90px; /* Adjusted for the top margin */
        left: 5%; /* Adjusted for 90% width */
        width: 90%; /* Mobile menu also 90% width */
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 999;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        border-radius: 12px; /* Added border-radius for mobile menu */
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .nav-link {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 8px;
        text-align: left;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(67, 97, 238, 0.1);
        transform: translateX(5px);
    }

    .nav-link::after {
        display: none;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #f1f5f9;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 1rem;
    }

    .user-menu {
        width: 100%;
    }

    .user-btn {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
    }

    .user-dropdown {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .user-menu.active .user-dropdown {
        display: block;
    }

    .dropdown-item {
        padding: 12px 20px;
        border-bottom: 1px solid #f1f5f9;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 60px;
    }

    .main-nav {
        top: 80px; /* Adjusted for smaller nav height */
    }

    .hamburger-btn {
        width: 40px;
        height: 40px;
    }

    .hamburger-line:nth-child(1) {
        top: 12px;
    }

    .hamburger-line:nth-child(2) {
        top: 19px;
    }

    .hamburger-line:nth-child(3) {
        top: 26px;
    }

    .hamburger-btn.active .hamburger-line:nth-child(1),
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        top: 19px;
    }
}

@media (max-width: 480px) {
    .nav-header {
        width: 95%; /* Slightly wider on very small screens */
        left: 2.5%;
    }
    
    .main-nav {
        width: 95%;
        left: 2.5%;
    }

   

    .user-btn {
        justify-content: center;
        padding: 10px;
    }

    .dropdown-icon {
        position: absolute;
        right: 10px;
    }
}

@media (max-width: 360px) {
   

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .hamburger-btn {
        width: 36px;
        height: 36px;
    }
}