html {
    scroll-behavior: smooth; 
    scroll-padding-top: 100px;
}

.text-brand-red {
    color: #E31E24;
}

.bg-brand-red {
    background-color: #E31E24;
}

#scrollProgressBarContainer {
    position: relative;
    /* Or absolute to pin it to top */
    z-index: 100 !important;
    /* Force it above everything else */
    width: 100%;
    height: 4px;
    /* Make it slightly thicker for testing */
    background: #E31E24 !important;
    /* Matches your zinc-900 */
}

#scrollProgressBar {
    height: 100%;
    background-color: #E31E24;
    /* CHANGE THIS: Ensure it starts at 0 */
    width: 0%;
    transition: width 0.1s ease-out;
    /* Optional: Ensure it grows from the left */
    transform-origin: left;
}

.active-link {
    color: #E31E24 !important;
    /* Your brand red */
    font-weight: 900;
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
    transform: translateY(-100%);
}

#mobile-menu.active {
    transform: translateY(0);
}

.bg-brand-red {
    background-color: #E31E24;
}

/* Hero Parallax */
.hero-parallax {
    background-image: url('../img/hero-2.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 65vh;
}

.profile-border {
    border: 6px solid white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

body.modal-active {
    overflow: hidden;
}

/* .error-message {
    color: #ffeb3b !important;
    font-weight: 600;
}

.error-message,
.success-message {
    display: none;
} */

.custom-btn {
    background: #ffc107;
    color: #212529;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: bold;
    transition: all 0.3s;
}

/* Custom Red Scrollbar for the Dudley Brand */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #E31E24;
    border-radius: 10px;
}

/* The main menu container */
#mobile-menu {
    display: flex !important;
    /* Keep it as flex but move it off-screen */
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* When the menu slides in */
#mobile-menu.active {
    transform: translateX(0);
}

/* The Navigation Links */
#mobile-menu a {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease-out;
    /* The 300ms delay you wanted before text appears */
    transition-delay: 0ms;
}

/* Slide text in from left to right after menu background arrives */
#mobile-menu.active a {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered text links (300ms base + incremental) */
#mobile-menu.active a:nth-child(2) {
    transition-delay: 300ms;
}

#mobile-menu.active a:nth-child(3) {
    transition-delay: 400ms;
}

#mobile-menu.active a:nth-child(4) {
    transition-delay: 500ms;
}

.swiper-pagination-bullet-active {
    background: #E31E24 !important;
        transform: scale(1.2);
        transition: transform 0.3s ease;
}
