/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1E88E5, #B93B8F, transparent);
    opacity: 0.7;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 1001;
    transition: all 0.3s ease;
}

.logo-icon {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    line-height: 1;
    min-width: 0; /* Allows text to shrink below its content size */
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: #E0E0E0;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
    display: block;
    opacity: 0.9;
    margin-top: 2px;
}

.nav-logo:hover .logo-icon {
    filter: drop-shadow(0 0 12px rgba(30, 136, 229, 0.6));
    transform: scale(1.05);
}

.nav-logo:hover .logo-title {
    background: linear-gradient(135deg, #1E88E5, #B93B8F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1E88E5, #B93B8F);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(30, 136, 229, 0.1);
}

.nav-link:hover::before {
    width: 80%;
}

/* CTA Button */
.nav-cta {
    background: linear-gradient(135deg, #1E88E5, #B93B8F);
    color: #FFFFFF;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

.nav-cta::before {
    display: none;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #1565C0, #9C27B0);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(185, 59, 143, 0.5);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle .bar {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #1E88E5, #B93B8F);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle:hover .bar {
    background: linear-gradient(90deg, #1565C0, #9C27B0);
}

/* Mobile Toggle Active State */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Styles */
/* Show subtitle on larger screens */
@media screen and (min-width: 769px) {
    .logo-subtitle {
        display: block !important;
        opacity: 0.9 !important;
        visibility: visible !important;
    }
    
    .logo-text {
        display: flex !important;
    }
}

@media screen and (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }
    
    .logo-text {
        display: flex !important; /* Ensure logo text is always visible */
        flex-direction: column;
        min-width: 0; /* Allows text to shrink below its content size */
        flex-shrink: 1; /* Allows the container to shrink */
    }
    
    .logo-title {
        font-size: 1.3rem; /* Slightly smaller font for mobile */
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .logo-subtitle {
        display: block !important;
        font-size: 0.6rem;
        margin-top: 1px;
        opacity: 0.9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
        border-top: 2px solid rgba(30, 136, 229, 0.4);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 0;
    }
    
    .nav-link::before {
        bottom: 10px;
    }
    
    .nav-cta {
        margin: 1rem 2rem;
        display: inline-block;
        width: auto;
    }
}

@media screen and (max-width: 768px) {
    .logo-icon {
        height: 45px;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 1rem;
    }
    
    .logo-icon {
        height: 45px; /* Slightly smaller logo on very small screens */
        flex-shrink: 0; /* Prevents the logo from shrinking */
    }
    
    .logo-title {
        font-size: 1.1rem; /* Smaller font for very small screens */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-toggle .bar {
        width: 22px;
        height: 2.5px;
    }
}