/**
 * Header, Footer & Loader Styles
 * Version: 1.0 - Brand Identity Design
 * 
 * This file contains all CSS for:
 * - Header (Topbar + Menu + Canvas)
 * - Footer
 * - Preloader/Loader
 * 
 * Color Scheme: Red #E03032 + Blue #0078BF (Brand Identity)
 * Dependencies: theme-variables.css
 */

/* ========================================
   HEADER STYLES
   ======================================== */

/* Logo Animation */
.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-bounce:hover {
    -webkit-animation: rotate-diagonal-1 0.4s linear both;
    animation: rotate-diagonal-1 0.4s linear both;
}

@keyframes rotate-diagonal-1 {
    0% {
        transform: rotate3d(1, 1, 0, 0deg);
    }
    50% {
        transform: rotate3d(1, 1, 0, -180deg);
    }
    100% {
        transform: rotate3d(1, 1, 0, -360deg);
    }
}

/* Topbar Enhanced Styles */
.topbar-area {
    background: linear-gradient(135deg, #E03032 0%, #0078BF 100%);
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.topbar-area::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.topbar-area::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
}

.topbar-contact li,
.topbar-contact li a,
.topbar-link-color {
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.topbar-contact li {
    position: relative;
    padding: 0 15px;
}

.topbar-contact li i {
    margin-left: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.topbar-contact li a:hover {
    color: #ffffff !important;
    transform: translateX(-3px);
}

/* Topbar Right Icons */
.topbar-right li {
    position: relative;
}

.topbar-right li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.topbar-right li a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.topbar-right li a i {
    font-size: 14px;
}

/* Language Switcher Enhanced */
.topbar-right .lang-item a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.topbar-right .lang-item a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Login/Register Link */
.topbar-right .login-register {
    margin-right: 0 !important;
}

.topbar-right .login-register a {
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    width: auto;
    height: auto;
}

.topbar-right .login-register a:hover {
    background: #ffffff;
    color: #E03032 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.topbar-right .login-register i {
    margin-left: 5px;
    color: inherit !important;
}

/* Menu Area Enhanced */
.menu-area.menu-sticky {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.menu-area.menu-sticky.sticky {
    box-shadow: 0 5px 30px rgba(224, 48, 50, 0.15);
}

/* Logo Hover Effect */
.logo-part a {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-part a img {
    max-height: 60px;
    transition: all 0.3s ease;
}

.logo-part a:hover img {
    filter: drop-shadow(0 5px 15px rgba(224, 48, 50, 0.3));
}

/* Menu Items Enhanced */
.rs-menu ul.nav-menu > li > a {
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rs-menu ul.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #E03032 0%, #0078BF 100%);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.rs-menu ul.nav-menu > li:hover > a::after,
.rs-menu ul.nav-menu > li.current-menu-item > a::after {
    transform: translateX(-50%) scaleX(1);
}

.rs-menu ul.nav-menu > li:hover > a {
    color: #E03032;
}

/* Canvas Menu Enhanced */
.right_menu_togle {
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.canvas-logo {
    padding: 30px;
    border-bottom: 2px solid rgba(224, 48, 50, 0.1);
}

.offcanvas-text {
    padding: 25px;
    background: linear-gradient(135deg, rgba(224, 48, 50, 0.05) 0%, rgba(0, 120, 191, 0.05) 100%);
    margin: 20px;
    border-radius: 15px;
    border: 1px solid rgba(224, 48, 50, 0.1);
}

.offcanvas-gallery .gallery-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.offcanvas-gallery .gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.offcanvas-gallery .gallery-img img {
    transition: all 0.3s ease;
}

.offcanvas-gallery .gallery-img:hover img {
    transform: scale(1.1);
}

/* Search Icon Enhanced */
.expand-btn-inner ul li a {
    transition: all 0.3s ease;
}

.expand-btn-inner ul li a:hover {
    color: #E03032;
    transform: scale(1.1);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

/* Footer Main Style - Dark Theme */
.rs-footer.home9-style.main-home {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.rs-footer.home9-style.main-home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 48, 50, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.rs-footer.home9-style.main-home::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 120, 191, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite reverse;
}

.rs-footer .footer-top {
    position: relative;
    z-index: 1;
    padding: 80px 0 50px;
}

/* Footer Logo Animation */
.footer-logo a img {
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.footer-logo a:hover img {
    filter: brightness(1.5) drop-shadow(0 5px 15px rgba(224, 48, 50, 0.4));
}

/* Footer Widget Title */
.footer-widget h3.widget-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #E03032 0%, #0078BF 100%);
    border-radius: 2px;
}

/* Address Widget Enhanced */
.address-widget li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.address-widget li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-5px);
}

.address-widget li i {
    color: #E03032;
    font-size: 20px;
    min-width: 25px;
    margin-top: 3px;
}

.address-widget li .desc,
.address-widget li .desc a {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.address-widget li:hover .desc a {
    color: #ffffff;
}

/* Site Map Links */
.site-map li {
    margin-bottom: 12px;
}

.site-map li a {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 20px;
}

.site-map li a::before {
    content: '';
    position: absolute;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #E03032 0%, #0078BF 100%);
    transition: width 0.3s ease;
}

.site-map li a:hover {
    color: #ffffff;
    transform: translateX(-5px);
}

.site-map li a:hover::before {
    width: 15px;
}

/* Social Media Icons */
.footer_social {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.footer_social li {
    list-style: none;
}

.footer_social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer_social li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E03032 0%, #0078BF 100%);
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: -1;
}

.footer_social li a:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.footer_social li a:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(224, 48, 50, 0.3);
}

.footer_social li a i {
    position: relative;
    z-index: 1;
}

/* App Download Badges */
.counter-item .image {
    transition: all 0.3s ease;
    border-radius: 10px;
    cursor: pointer;
}

.counter-item .image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(224, 48, 50, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.copy-right-menu {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.copy-right-menu li {
    list-style: none;
    position: relative;
}

.copy-right-menu li:not(:last-child)::after {
    content: '|';
    position: absolute;
    left: -12px;
    color: rgba(255, 255, 255, 0.3);
}

.copy-right-menu li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.copy-right-menu li a:hover {
    color: #E03032;
}

/* Footer Menu Specific Styles */
.rs-menu.footer {
    float: none;
}

.menu-item-has-children.footer {
    padding: 0 !important;
}

.item-link.footer {
    padding: 0 !important;
    display: inline-block;
    text-decoration: none !important;
    outline: none !important;
}

.sub-menu.footer {
    top: -200%;
}

.rs-footer.home9-style.main-home .footer-bottom .copy-right-menu li.lang-item:before {
    display: none !important;
}

/* ========================================
   PRELOADER / LOADER STYLES
   ======================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated Background Circles */
.loader::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(224, 48, 50, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 120, 191, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Loader Icon with Animation */
.loader-icon {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

/* Logo Image */
.loader-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Spinning Ring 1 - Red */
.loader-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid transparent;
    border-top-color: #E03032;
    border-right-color: #E03032;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

/* Spinning Ring 2 - Blue */
.loader-icon::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 5px solid transparent;
    border-bottom-color: #0078BF;
    border-left-color: #0078BF;
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Orbiting Dots */
.loader-icon .orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform-origin: 75px 0;
    animation: orbit 3s linear infinite;
}

.loader-icon .orbit-dot:nth-child(1) {
    background: #E03032;
    animation-delay: 0s;
}

.loader-icon .orbit-dot:nth-child(2) {
    background: #0078BF;
    animation-delay: -1s;
}

.loader-icon .orbit-dot:nth-child(3) {
    background: #00A0E3;
    animation-delay: -2s;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(75px);
    }
    100% {
        transform: rotate(360deg) translateX(75px);
    }
}

/* Loading Text */
.loader-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 20px;
    position: relative;
}

.loader-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
    position: relative;
}

.loader-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #E03032 0%, #0078BF 50%, #00A0E3 100%);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Fade Out Animation */
.loader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 991px) {
    .topbar-contact li {
        font-size: 12px;
        padding: 0 10px;
    }

    .topbar-right li a {
        width: 28px;
        height: 28px;
    }

    .footer-widget {
        margin-bottom: 40px;
    }

    .footer-widget h3.widget-title {
        font-size: 18px;
    }

    .copy-right-menu {
        justify-content: flex-start;
    }

    .loader-icon {
        width: 120px;
        height: 120px;
    }

    .loader-icon img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 767px) {
    .topbar-area {
        padding: 8px 0;
    }

    .topbar-contact li {
        padding: 0 8px;
        font-size: 11px;
    }

    .footer-widget h3.widget-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer_social {
        gap: 10px;
    }

    .footer_social li a {
        width: 40px;
        height: 40px;
    }

    .loader-icon {
        width: 100px;
        height: 100px;
    }

    .loader-icon img {
        width: 60px;
        height: 60px;
    }

    .loader-text {
        font-size: 16px;
    }

    .loader-progress {
        width: 150px;
    }
}

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */

body.transition {
    transition: background-color 0.3s ease, color 0.3s ease, all 0.3s ease;
}

body.transition * {
    transition: background-color 0.3s ease, color 0.3s ease, all 0.3s ease;
}

/* ========================================
   HOVER EFFECTS UTILITIES
   ======================================== */

.hover\:animate-bounce {
    &:hover {
        @media (hover: hover) {
            animation: bounce 1s infinite;
        }
    }
}

