/* ====== AUTO-HIDE HEADER STYLES ====== */

#header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999 !important;
    transition: all 0.4s ease-in-out;
    transform: translateY(0);
    opacity: 1;
}

#header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

#header.visible {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease-in-out;
}

/* ====== ADD PADDING TO PAGE CONTENT FOR FIXED HEADER ====== */

.page-content {
    padding-top: 85px;
    transition: padding-top 0.3s ease;
}

@media (max-width: 992px) {
    .page-content {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding-top: 0;
    }
    
    /* Mobile header doesn't need this adjustment as it's not using the auto-hide feature */
    .mobile-header {
        position: relative;
    }
}

/* ====== SMOOTH SCROLLING ====== */

html {
    scroll-behavior: smooth;
}

