/* --- ROOT & GLOBAL --- */
:root {
--navy-blue: #001529;
--vibrant-yellow: #FFD700;
--white: #ffffff;
--dropdown-bg: rgba(0, 21, 41, 0.95); 
--hover-blue: #003366;
}

html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }

.page-container {
width: 100%;
max-width: 100vw;
margin: 0 auto;
}

/* --- LOADING SCREEN --- */
#loading-screen {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: var(--navy-blue);
display: flex; justify-content: center; align-items: center;
z-index: 9999;
}
/* Blinking effect for loading logo  */
.loader-logo { 
    width: 80px; height: 80px; border-radius: 50%; 
    animation: logo-blink 1.5s ease-in-out infinite; 
}
@keyframes logo-blink { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.3; transform: scale(0.9); } 
}

/* --- NAVIGATION --- */
nav {
background-color: var(--navy-blue);
padding: 0 5%;
display: flex; justify-content: space-between; align-items: center;
border-bottom: 3px solid var(--vibrant-yellow);
position: sticky; top: 0; z-index: 1001;
height: 75px;
}

.nav-left { flex: 0 0 auto; }
/* Continuous zoom in and out for navigation logo  */
.nav-logo-small { 
    height: 50px; width: auto; border-radius: 50%; 
    animation: logo-zoom 3s ease-in-out infinite; 
}
@keyframes logo-zoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.nav-center { flex: 1; text-align: center; overflow: hidden; margin: 0 20px; }
.brand-name {
color: var(--vibrant-yellow);
font-weight: bold;
font-size: 1.2rem;
white-space: nowrap;
display: inline-block;
animation: marquee 10s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

.nav-right { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; }

/* --- SEARCH ICON & INPUT --- */
.search-wrapper { display: flex; align-items: center; }
.search-input {
width: 0; opacity: 0; border: none; background: var(--hover-blue); color: white;
transition: all 0.4s ease; border-radius: 20px; outline: none;
}
.search-input.active { width: 150px; opacity: 1; padding: 5px 15px; border: 1px solid var(--vibrant-yellow); margin-right: 10px; }
.search-icon { color: var(--vibrant-yellow); cursor: pointer; font-size: 1.2rem; transition: transform 0.3s; }
.search-icon:hover { transform: scale(1.1); }

/* --- DESKTOP DROPDOWN --- */
.nav-links { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.nav-links > li { position: relative; padding: 25px 0; }
.nav-links a {
color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.9rem;
transition: color 0.3s;
}
.nav-links a:hover { color: var(--vibrant-yellow); }

.dropdown-menu {
position: absolute; top: 100%; right: 0;
background: var(--dropdown-bg);
min-width: 220px; display: none; list-style: none; padding: 10px 0;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
border-top: 2px solid var(--vibrant-yellow);
border-radius: 0 0 8px 8px;
backdrop-filter: blur(10px);
}
.nav-links li:hover .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-menu li a {
padding: 12px 20px;
display: block;
font-size: 0.85rem;
border-bottom: 1px solid rgba(255,255,255,0.05);
transition: background 0.3s;
}
.dropdown-menu li a:hover { background: var(--hover-blue); color: var(--vibrant-yellow); }

/* --- MOBILE MENU (Popup Window Fix)  --- */
.menu-btn { color: white; font-size: 1.8rem; cursor: pointer; display: none; z-index: 1100; }

.mobile-nav {
position: fixed; 
/* Popup styling */
top: 50%; left: 50%; 
transform: translate(-50%, -50%) scale(0.9);
width: 90%; max-height: 80vh; 
background: var(--navy-blue); 
transition: 0.3s ease-in-out;
z-index: 1050; 
overflow-y: auto; /* Scrollability  */
padding: 20px 0;
border-radius: 15px;
border: 2px solid var(--vibrant-yellow);
opacity: 0;
pointer-events: none;
box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.mobile-nav.active { 
    opacity: 1; 
    pointer-events: auto; 
    transform: translate(-50%, -50%) scale(1); 
}

.mobile-nav a {
display: block; color: white; padding: 15px 25px;
text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05);
font-size: 1.1rem; font-weight: 500;
text-align: center;
}
.mobile-sub {
background: rgba(0,0,0,0.2);
padding-left: 25px !important;
font-size: 0.95rem !important;
color: #ddd !important;
}

@media (max-width: 992px) {
.nav-links { display: none; }
.menu-btn { display: block; }
}