/* ====================== */
/* Logo & Brand Styles */
/* ====================== */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    height: 60px; /* Fixed height for better alignment */
}

.nav-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Logo hover effects */
.nav-brand:hover .nav-logo {
    transform: rotate(-5deg) scale(1.05);
}


/* ====================== */
/* Responsive Adjustments */
/* ====================== */

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-logo {
        height: 36px;
    }
    .logo-text {
        font-size: 1.3rem;
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    .nav-brand {
        height: 50px; /* Slightly smaller */
    }
    .nav-logo {
        height: 32px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Mobile Portrait (up to 576px) */
@media (max-width: 576px) {
    .nav-brand {
        gap: 0.5rem;
    }
    .nav-logo {
        height: 30px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
}

/* Extra Small Devices (up to 400px) */
@media (max-width: 400px) {
    .nav-logo {
        height: 28px;
    }
    .logo-text {
        font-size: 1rem;
        display: inline; /* Ensures text stays visible */
    }
}

/* Very Small Devices (up to 320px) */
@media (max-width: 320px) {
    .nav-brand {
        gap: 0.25rem;
    }
    .nav-logo {
        height: 26px;
    }
    .logo-text {
        font-size: 0.9rem;
    }
}

/* ====================== */
/* Navigation Container Fixes */
/* ====================== */
.nav-container {
    display: flex;
    justify-content: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

/* Mobile menu button adjustments */
.mobile-menu-btn {
    z-index: 1001; /* Ensure it's above other elements */
}

/* Ensure logo stays visible when menu is open */
.mobile-nav.active ~ .nav-content .nav-brand {
    z-index: 1001;
    position: relative;
}