/*HEADER*/

.navbar {
    transition: all 1s ease-in-out !important;
    background-color: transparent !important;
    padding: 12px 10px;
}

@media (min-width: 768px) { 
    .navbar {
        padding: 12px 20px;
    }   
}

/* Dual Logo Setup:
   Requires two SVG elements in index.html with these classes 
*/
.logo-scrolled {
    display: none !important;
}

.logo-initial {
    display: block !important;
    /* Optional: maintain same smooth transition if you use opacity instead of display */
}


/* --- Scrolled State (Triggered at 700px) --- */
.navbar-brand svg {
    /* Set a fluid width for mobile by default */
    width: 140px; 
    height: auto;
    transition: width 0.3s ease;
}

@media (min-width: 768px) {
    .navbar-brand svg {
        /* Return to original size on tablet/desktop */
        width: 180px;
    }
}

@media (max-width: 767.98px) {
    #mainNavbar {
    /* Apply a solid background on mobile immediately 
        background-color: #000000 !important; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.3); */
    }
    .navbar-collapse {
        background-color: #000000;
        padding: 1rem;
        margin-top: 10px;
        border-radius: 8px;
        color: #fff;
    }
    .navbar.scrolled .navbar-collapse .nav-link {
        color: #ffffff !important;
    }
    .btn-register {
        width: 100%; /* Full width button on mobile menu */
        text-align: center;
    }
}

.navbar.scrolled {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.3) 100%) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Toggle Logo Visibility when scrolled */
.navbar.scrolled .logo-initial {
    display: none !important;
}

.navbar.scrolled .logo-scrolled {
    display: block !important;
}

.navbar li.nav-item {
    padding: 0 8px;
}

.navbar .nav-link {
    font-family: 'Bw Modelica';
    font-size: 1rem;
    font-weight: 700;
}

.navbar .nav-link:hover {
    color: #FE6B1C !important;
}

/* Adjust Nav Link colors when background turns white */
.navbar.scrolled .nav-link {
    color: #000000 !important;
}

/* Ensure active link is distinct */
.navbar.scrolled .nav-link.active {
    font-weight: 700;
}

/* Ensure links are visible at the top (dark mode) */
.navbar-dark .nav-link {
    color: rgba(255,255,255,0.9) !important;
}

/* --- 4. Toggler Color Change --- */
 .navbar-toggler {
   transition: border-color 0.3s ease;
 }

 /* When scrolled (navbar-light mode), make the toggler icon black */
 .navbar.scrolled.navbar-light .navbar-toggler {
   border-color: rgba(0,0,0,0.6);
 }
        
 /* This filter inverts the default white icon to black */
 .navbar.scrolled.navbar-light .navbar-toggler-icon {
   filter: invert(1) grayscale(1) brightness(0) !important;
 }

/* --- New Register Button Styles --- */
.btn-register {
    background-color: #FFC107; /* The signature yellow from your image */
    color: #000000 !important;
    font-family: 'Bw Modelica', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: 12px; /* High rounded corners as per image */
    border: none;
    transition: all 0.2s ease, background-color 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-register:hover {
    background-color: #eab000;
    color: #fff !important;
}