/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-100%);
}

.navbar.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 70px;
    width: auto;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: 0.5rem;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-bottom: none !important;
    cursor: default !important;
}

.nav-logo a,
.nav-logo a:link,
.nav-logo a:visited,
.nav-logo a:hover,
.nav-logo a:active,
.nav-logo a:focus {
    text-decoration: none !important;
    color: inherit !important;
}

.nav-logo a .logo-text,
.nav-logo a:link .logo-text,
.nav-logo a:visited .logo-text,
.nav-logo a:hover .logo-text,
.nav-logo a:active .logo-text,
.nav-logo a:focus .logo-text {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    cursor: default !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-cta {
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

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

    .logo {
        height: 50px;
        width: auto;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        z-index: 1001;
        padding: 2rem;
        width: 100vw;
        height: 100vh;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
    }
    
    /* Fallback for browsers that don't support backdrop-filter */
    @supports not (backdrop-filter: blur(10px)) {
        .nav-links {
            background-color: var(--background-white);
        }
    }

    .nav-links .nav-link {
        font-size: 20px !important;
        color: var(--text-dark) !important;
        text-decoration: none;
        padding: 1.2rem 2.5rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        width: 80%;
        max-width: 300px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.8);
        border: 2px solid rgba(0, 0, 0, 0.05);
        font-weight: 500;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
    }

    /* CTA button inside mobile menu */
    .nav-links .nav-cta {
        font-size: 20px !important;
        color: var(--text-dark) !important;
        text-decoration: none;
        padding: 1.2rem 2.5rem !important;
        border-radius: 12px;
        transition: all 0.3s ease;
        width: 80%;
        max-width: 300px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.8) !important;
        border: 2px solid rgba(0, 0, 0, 0.05) !important;
        font-weight: 500;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        margin-top: 1.5rem;
        height: auto !important;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: 1rem;
        z-index: 1002;
        position: relative;
    }

    .navbar .nav-cta {
        padding: 4px 16px !important;
        height: 32px !important;
        font-size: 12px !important;
        border-width: 1px !important;
        background-color: transparent !important;
        color: var(--text-light) !important;
        border-color: var(--border-color) !important;
        margin-right: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-cta:hover {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .nav-logo {
        flex-shrink: 0;
    }

    /* Ensure text is always visible on mobile menu */
    .nav-links .nav-link,
    .nav-links .nav-cta {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Add animation for menu items */
    .nav-links.active .nav-link,
    .nav-links.active .nav-cta {
        animation: slideInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        opacity: 0;
    }
    
    .nav-links.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.active .nav-cta { animation-delay: 0.5s; }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Add logo/title at the top of mobile menu */
    .nav-links::before {
        content: '';
        background-image: url('../assets/images/Logo Techloggi.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 120px;
        height: 60px;
        margin-bottom: 2rem;
        opacity: 0.8;
    }

    .nav-cta {
        display: none !important;
    }

    .logo-text {
        font-size: 1.3rem;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        border-bottom: none !important;
        cursor: default !important;
    }

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

.hide-mobile {
    display: inline-block;
}
