/* ====================================================================
   Premium Navigation & Header Enhancements
   Modern B2B eCommerce Interface
   ==================================================================== */

/* ==================== Topbar Improvements ==================== */
.container-fluid.bg-light {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.container-fluid.bg-light small {
    font-size: 0.875rem;
    color: #6B7280;
    transition: color 0.3s ease;
}

.container-fluid.bg-light .fa,
.container-fluid.bg-light .far {
    color: #0D6EFD;
    margin-right: 0.5rem;
}

/* Social icons in topbar */
.btn-sm-square {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-sm-square:hover {
    background: #0D6EFD;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    border-color: #0D6EFD;
}

.btn-sm-square:hover i {
    color: white !important;
}

/* ==================== Navbar Premium Redesign ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar.sticky-top {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Brand enhancements */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #0D6EFD !important;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color: #0b5ed7 !important;
}

.navbar-brand i {
    background: linear-gradient(135deg, #0D6EFD 0%, #0b5ed7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(360deg);
}

/* ==================== Navigation Links ==================== */
.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #374151 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0D6EFD 0%, #0b5ed7 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: #0D6EFD !important;
    background: rgba(13, 110, 253, 0.05);
}

.navbar-nav .nav-link.active {
    color: #0D6EFD !important;
    background: rgba(13, 110, 253, 0.08);
}

/* ==================== Dropdown Menu Premium ==================== */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0.75rem;
    margin-top: 0.5rem;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-weight: 500;
    font-size: 0.9375rem;
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.25rem;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #0D6EFD 0%, #0b5ed7 100%);
    color: white !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.dropdown-item.active {
    background: linear-gradient(135deg, #0D6EFD 0%, #0b5ed7 100%);
    color: white !important;
}

/* ==================== CTA Button in Navbar ==================== */
.navbar .btn-primary {
    background: linear-gradient(135deg, #0D6EFD 0%, #0b5ed7 100%);
    border: none;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
    background: linear-gradient(135deg, #0b5ed7 0%, #0D6EFD 100%);
}

.navbar .btn-primary i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar .btn-primary:hover i {
    transform: translateX(4px);
}

/* ==================== Mobile Menu Toggle ==================== */
.navbar-toggler {
    border: 2px solid #0D6EFD;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(13, 110, 253, 0.05);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230D6EFD' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== Mobile Navigation ==================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 0.75rem;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    .navbar .btn-primary {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        background: #f8f9fa;
        border: none;
        box-shadow: none;
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
}

/* ==================== Hero Header Enhancements ==================== */
.hero-header {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.85) 0%,
        rgba(11, 94, 215, 0.75) 50%,
        rgba(13, 110, 253, 0.85) 100%
    );
    z-index: 1;
}

.hero-header .container {
    position: relative;
    z-index: 2;
}

.hero-header h1 {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: heroFadeIn 0.8s ease-out;
}

.hero-header p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: heroFadeIn 1s ease-out;
}

.hero-header .btn {
    animation: heroFadeIn 1.2s ease-out;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Footer Improvements ==================== */
.footer {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #0D6EFD 50%, transparent 100%);
}

.footer h4 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #0D6EFD 0%, #0b5ed7 100%);
    border-radius: 2px;
}

.footer .btn-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer .btn-link:hover {
    color: white;
    transform: translateX(8px);
    padding-left: 0.5rem;
}

.footer .btn-link::before {
    content: '→';
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer .btn-link:hover::before {
    opacity: 1;
}

/* Footer social buttons */
.footer .btn-outline-light {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.5rem;
}

.footer .btn-outline-light:hover {
    background: #0D6EFD;
    border-color: #0D6EFD;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.footer .btn-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.5rem;
}

.footer .btn-social:hover {
    background: #0D6EFD;
    border-color: #0D6EFD;
    transform: translateY(-4px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

/* Newsletter form */
.footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.footer .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #0D6EFD;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
    color: white;
}

.footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer .position-relative .btn-primary {
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
}

/* Copyright section */
.copyright {
    background: #0F1419;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.copyright a {
    color: #0D6EFD;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #3d8bfd;
}

/* ==================== Responsive Adjustments ==================== */
@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 2rem;
    }

    .hero-header p {
        font-size: 1rem;
    }

    .hero-header .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* ==================== Scroll Progress Bar ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0D6EFD 0%, #0b5ed7 100%);
    z-index: 99999;
    transition: width 0.1s ease;
}

/* ==================== Accessibility ==================== */
.navbar-nav .nav-link:focus,
.dropdown-item:focus,
.btn:focus {
    outline: 2px solid #0D6EFD;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: #0D6EFD;
    color: white;
    padding: 1rem 1.5rem;
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 0.5rem 0;
    font-weight: 600;
}

.skip-to-main:focus {
    top: 0;
}
