/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    padding: 0 0 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Left Side Navigation */
.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 6rem;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Right Side Navigation */
.nav-right {
    padding: 0 2rem 0 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    padding: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 280px;
}

.search-container:focus-within {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #000;
    padding: 0.6rem 1.2rem;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.search-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.08);
}

/* Join Button */
.btn-join {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 2px;
    background: #2a02f6;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -70%;
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.mobile-search-icon {
    font-size: 1.2rem;
    color: #2a02f6;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-content {
    padding: 1rem 1.5rem 2rem;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

/* Mobile Search */
.mobile-search-container {
    margin-bottom: 1rem;
    display: none;
}

.mobile-search-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-search {
    min-width: 100%;
    width: 100%;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item {
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.8rem 1rem;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
}

.mobile-join-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.mobile-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    display: none;
    z-index: 1002;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 2rem;
    }
    
    .nav-menu {
        gap: 1.8rem;
    }
    
    .search-container {
        min-width: 250px;
    }
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0.8rem 1.5rem;
    }
    
    .nav-left {
        gap: 2rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .search-container {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu,
    .nav-right {
        display: none;
    }
    
    .nav-logo img {
        height: 2.5rem;
    }
    
    .nav-container {
        padding: 0.8rem 1.5rem;
    }
    
    .mobile-menu-content {
        padding: 1rem 1rem 1.5rem;
    }
    
    .mobile-nav-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .mobile-join-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0.7rem 1rem;
    }
    
    .nav-logo img {
        height: 2.2rem;
    }
    
    .mobile-menu-content {
        padding: 0.5rem 1rem 1rem;
    }
    
    .mobile-menu {
        width: 80%;
        right: -80%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 0.8rem;
    }
    
    .nav-logo img {
        height: 2rem;
    }
    
    .mobile-menu-content {
        padding: 0.5rem 0.8rem 0.8rem;
    }
    
    .mobile-nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .mobile-join-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .mobile-menu {
        width: 85%;
        right: -85%;
    }
}

/* Animation for navbar elements */
.nav-logo,
.nav-menu,
.nav-right {
    opacity: 0;
    animation: fadeInDown 0.6s ease forwards;
}

.nav-logo {
    animation-delay: 0.1s;
}

.nav-menu {
    animation-delay: 0.2s;
}

.nav-right {
    animation-delay: 0.3s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure logo is always visible and properly positioned */
.nav-logo {
    position: relative;
    z-index: 1001;
}

/* Scrolled state for navbar */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}