/*!
 * Custom Scrolling Navigation CSS
 * For Bootstrap 3 Fixed Navbar
 */

/* Body padding for fixed navbar */
body {
    padding-top: 70px;
}

/* Remove border radius from fixed navbar */
.navbar-fixed-top {
    border-radius: 0;
}

/* Navbar brand image styling */
.navbar-brand img {
    height: auto;
    max-height: 40px;
    display: inline-block;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Section styling */
.section-light {
    background-color: #f8f9fa;
    color: #333;
}

.pad-section {
    padding: 40px 0;
}

/* Navbar transitions */
.navbar {
    transition: all 0.3s ease-in-out;
}

/* Mobile navbar adjustments */
@media (max-width: 767px) {
    body {
        padding-top: 60px;
    }

    .navbar-nav {
        margin: 7.5px -15px;
    }

    .navbar-nav > li > a {
        padding-top: 10px;
        padding-bottom: 10px;
        line-height: 20px;
    }

    .navbar-brand img {
        max-height: 30px;
    }

    .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
    }
}

/* Dropdown menu styling */
.dropdown-menu {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

/* Active navigation states */
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer styling */
#footer {
    margin-top: 50px;
    border-top: 1px solid #e7e7e7;
}

/* Background sections */
.background-1 {
    min-height: 70%;
    position: relative;
    background-attachment: fixed;
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

/* Panel and table responsive improvements */
.panel {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.table-responsive {
    border: none;
}

/* Loading and transition states */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .navbar-fixed-top {
        display: none;
    }

    body {
        padding-top: 0;
    }
}