/* Premium Preloader Styles */
#premium-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
}

.preloader-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 90, 31, 0.05) 0%, rgba(0,0,0,1) 70%);
    opacity: 0;
}

.particles-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    background-color: #FF5A1F;
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
}

.logo-container {
    position: relative;
    z-index: 10;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#knovista-logo-svg {
    width: 100px;
    height: 100px;
    overflow: visible;
}

.logo-path {
    stroke-dasharray: 400; /* Approximate length, will be set in JS */
    stroke-dashoffset: 400;
    fill: transparent;
    transition: filter 0.5s ease;
}

.logo-path.filled {
    fill: #FF5A1F;
    filter: drop-shadow(0 0 15px rgba(255, 90, 31, 0.6));
}

.loading-progress-line {
    margin-top: 20px;
    width: 0%;
    height: 2px;
    background-color: #FF5A1F;
    border-radius: 2px;
    opacity: 0;
    box-shadow: 0 0 8px rgba(255, 90, 31, 0.8);
}

.energy-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 90, 31, 0.4);
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
}

/* Premium Navigation Styles */
#premium-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 99990;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    display: flex;
    align-items: center;
}

#premium-navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0; /* Hidden initially, preloader logo morphs into this */
}

.nav-logo.visible {
    opacity: 1;
}

.nav-logo:hover .nav-logo-svg {
    transform: rotate(3deg) scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 90, 31, 0.8));
}

.nav-logo-svg {
    width: 32px;
    height: 32px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.nav-logo-text {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #FF5A1F;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 90, 31, 0.5);
}

.nav-links li a:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li.active a {
    color: #FF5A1F;
}

.nav-links li.active a::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border: 1px solid #FF5A1F;
    border-radius: 22px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: transparent;
}

.nav-cta:hover {
    background-color: #FF5A1F;
    box-shadow: 0 4px 15px rgba(255, 90, 31, 0.4);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 99992;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Fullscreen Menu */
#mobile-fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 99991;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#mobile-fullscreen-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 32px;
    overflow: hidden;
}

.mobile-nav-links li a {
    display: inline-block;
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(100%);
    opacity: 0;
    transition: color 0.3s ease;
}

.mobile-nav-links li a:hover {
    color: #FF5A1F;
}

.mobile-menu-footer {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 992px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0 20px;
    }
}
