/* ============================================
   Professional Header Enhancements
   ============================================ */

/* Force override Bootstrap defaults */
.header-section {
    position: relative;
    z-index: 1000;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.header-section.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Top Bar Styling */
.header-section .topper {
    background: linear-gradient(135deg, #f36d38 0%, #e55a2b 100%);
    padding: 8px 0;
}

.header-section .top-bar {
    min-height: 45px;
    line-height: 45px;
}

.header-section .contact-wrapper {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-section .contact-wrapper li {
    display: inline-block;
    margin-right: 25px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    transition: color 0.3s ease;
}

.header-section .contact-wrapper li:last-child {
    margin-right: 0;
}

.header-section .contact-wrapper li i {
    margin-right: 8px;
    color: #fff;
    font-size: 16px;
}

.header-section .contact-wrapper li a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-section .contact-wrapper li a:hover {
    color: #fff;
    text-decoration: none;
}

/* Social Icons */
.header-section .social-icon ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-section .social-icon ul li {
    display: inline-block;
    margin-left: 12px;
}

.header-section .social-icon ul li a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.header-section .social-icon ul li a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: #fff;
}

/* Navigation Bar */
.header-section .navbar,
.header-section .main-navigation {
    margin-bottom: 0;
    border: none !important;
    border-radius: 0;
    background: #fff !important;
    padding: 20px 0;
    transition: all 0.3s ease;
    min-height: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-section.sticky .navbar,
.header-section.sticky .main-navigation {
    padding: 12px 0;
    min-height: 70px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-section .navbar .container-fluid,
.header-section .main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.header-section .navbar-brand {
    padding: 0;
    height: auto;
    transition: transform 0.3s ease;
}

.header-section .navbar-brand:hover {
    transform: scale(1.05);
}

.header-section .navbar-brand img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.header-section.sticky .navbar-brand img {
    max-height: 50px;
}

.header-section .navbar-nav,
.header-section .main-navigation .navbar-nav {
    margin: 0;
    padding: 0;
    float: right;
    display: flex;
    align-items: center;
}

.header-section .navbar-nav > li,
.header-section .main-navigation .navbar-nav > li {
    margin-left: 0;
    margin-right: 0;
    display: inline-block;
}

.header-section .navbar-nav > li > a,
.header-section .main-navigation .navbar-nav > li > a {
    color: #333 !important;
    font-size: 15px;
    font-weight: 600;
    padding: 25px 20px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.2;
    background: transparent !important;
    border: none !important;
}

.header-section .navbar-nav > li > a:before,
.header-section .main-navigation .navbar-nav > li > a:before {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #f36d38;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.header-section .navbar-nav > li > a:hover:before,
.header-section .navbar-nav > li.active > a:before,
.header-section .main-navigation .navbar-nav > li > a:hover:before,
.header-section .main-navigation .navbar-nav > li.active > a:before {
    width: 70%;
}

.header-section .navbar-nav > li > a:hover,
.header-section .navbar-nav > li.active > a,
.header-section .main-navigation .navbar-nav > li > a:hover,
.header-section .main-navigation .navbar-nav > li.active > a {
    color: #f36d38 !important;
    background: transparent !important;
}

/* Dropdown Menu */
.header-section .dropdown-menu,
.header-section .main-navigation .dropdown-menu {
    border: none !important;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 5px;
    min-width: 250px;
    background: #fff !important;
}

.header-section .dropdown-menu > li > a,
.header-section .main-navigation .dropdown-menu > li > a {
    padding: 12px 25px;
    color: #666 !important;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.header-section .dropdown-menu > li > a:hover,
.header-section .main-navigation .dropdown-menu > li > a:hover {
    background: #f36d38 !important;
    color: #fff !important;
    padding-left: 30px;
}

.header-section .dropdown:hover .dropdown-menu,
.header-section .main-navigation .dropdown:hover .dropdown-menu {
    display: block;
}

/* ============================================
   Professional Slider Enhancements
   ============================================ */

.slider-section {
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

#mainSlider {
    width: 100%;
    position: relative;
}

#mainSlider .slider-image {
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#mainSlider .slider-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

#mainSlider .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 40px;
    z-index: 2;
}

#mainSlider .carousel-caption h2 {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    letter-spacing: 1px;
}

#mainSlider .carousel-caption p {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.6;
    animation: fadeInUp 1.2s ease;
    font-weight: 300;
}

#mainSlider .carousel-caption .btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#mainSlider .carousel-caption .btn:hover {
    background: #f36d38;
    border-color: #f36d38;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243,109,56,0.4);
}

/* Carousel Controls */
#mainSlider .carousel-control {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#mainSlider .carousel-control:hover {
    opacity: 1;
    background: rgba(243,109,56,0.9);
    transform: translateY(-50%) scale(1.1);
}

#mainSlider .carousel-control.left {
    left: 30px;
}

#mainSlider .carousel-control.right {
    right: 30px;
}

#mainSlider .carousel-control .glyphicon {
    font-size: 24px;
    color: #fff;
    line-height: 60px;
}

/* Carousel Indicators */
#mainSlider .carousel-indicators {
    bottom: 30px;
    margin: 0;
    padding: 0;
}

#mainSlider .carousel-indicators li {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid #fff;
    margin: 0 6px;
    transition: all 0.3s ease;
}

#mainSlider .carousel-indicators .active {
    background-color: #f36d38;
    width: 14px;
    height: 14px;
    border-color: #f36d38;
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mainSlider .item.active .carousel-caption h2 {
    animation: fadeInUp 1s ease;
}

#mainSlider .item.active .carousel-caption p {
    animation: fadeInUp 1.2s ease;
}

#mainSlider .item.active .carousel-caption .btn {
    animation: fadeInUp 1.4s ease;
}

/* Responsive Design */
@media (max-width: 991px) {
    .header-section .navbar-nav > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    #mainSlider .slider-image {
        min-height: 500px;
        background-attachment: scroll;
    }
    
    #mainSlider .carousel-caption {
        padding: 20px;
    }
    
    #mainSlider .carousel-caption h2 {
        font-size: 36px;
    }
    
    #mainSlider .carousel-caption p {
        font-size: 16px;
    }
    
    #mainSlider .carousel-control {
        width: 50px;
        height: 50px;
    }
    
    #mainSlider .carousel-control.left {
        left: 15px;
    }
    
    #mainSlider .carousel-control.right {
        right: 15px;
    }
}

@media (max-width: 767px) {
    .header-section .topper {
        display: none;
    }
    
    .header-section .navbar {
        padding: 10px 0;
    }
    
    .header-section .navbar-brand img {
        max-height: 45px;
    }
    
    #mainSlider .slider-image {
        min-height: 400px;
    }
    
    #mainSlider .carousel-caption h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    #mainSlider .carousel-caption p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    #mainSlider .carousel-caption .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    #mainSlider .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    #mainSlider .carousel-control .glyphicon {
        font-size: 18px;
        line-height: 40px;
    }
    
    #mainSlider .carousel-indicators {
        bottom: 15px;
    }
}

/* Smooth Transitions */
#mainSlider .item {
    transition: opacity 0.6s ease-in-out;
}

#mainSlider .item.active {
    opacity: 1;
}

/* Additional Professional Touches */
.header-section .navbar-nav > li.dropdown:hover > a {
    color: #f36d38;
}

.header-section .navbar-nav > li.dropdown > a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.header-section .navbar-nav > li.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Enhanced overlay for better text readability */
#mainSlider .slider-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    pointer-events: none;
}
