/* Footer Styles */
.footer-main {
    position: relative;
    margin-top: 80px;
}

.footer-top {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3d0516 0%, #5a0a22 100%);
    color: #ffffff;
    padding: 60px 20px;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    filter: brightness(1.1);
}

.widget-body p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 16px;
}

.address-item {
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.address-item:hover {
    transform: translateX(5px);
}

.address-item i {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.address-item p {
    color: #ffffff;
    margin: 0;
    font-size: 14px;
}

.footer_social h6 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
}

/* Enhanced social media icons with better spacing */
.social-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to new line */
    gap: 15px;
    margin: 0 auto;
    max-width: 400px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    color: white;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Hover effects with smooth transitions */
.social-link:hover {
    background: #ffc107;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 193, 7, 0.5);
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.youtube:hover {
    background: #ff0000;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

.social-link.whatsapp:hover {
    background: #25d366;
}

.widgets_container h6 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
}

.widgets_container h6 i {
    color: #ffc107;
    margin-right: 8px;
}

.footer_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_menu li {
    margin-bottom: 12px;
}

.footer-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.footer-link:hover {
    color: #ffc107;
    transform: translateX(5px);
    text-decoration: none;
}

.footer-link i {
    color: #ffc107;
    margin-right: 8px;
    font-size: 12px;
}

.footer-bottom {
    background: #2a0410;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: #ffffff;
    margin: 0;
    font-size: 14px;
}

.footer-copyright a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #ffffff;
}

.footer-bottom-links a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffc107;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3d0516, #5a0a22);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #5a0a22, #7a0f2e);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 10, 34, 0.5);
    color: white;
}

.scroll-to-top i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-top {
        padding: 40px 15px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 15px;
        text-align: center;
    }

    .footer-bottom-links a {
        display: block;
        margin: 5px 0;
    }

    .social-link {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        padding: 30px 15px;
    }

    .footer-logo img {
        max-width: 150px;
    }

    .widgets_container {
        margin-bottom: 30px;
    }
}

/* Animation for footer elements */
.footer-single-widget,
.widgets_container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Hover effects for address items */
.address-item {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.address-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Fallback icons for social media */
.fallback-icon {
    display: none;
    font-weight: bold;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

/* Enhanced social media icons */
.social-link i {
    font-size: 18px;
    color: white;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
    color: white;
}

/* Responsive design for social icons */
@media (max-width: 576px) {
    .social-icons-container {
        gap: 10px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 16px;
    }
}

/* Ensure social icons stay in one row */
.social-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to new line */
    gap: 15px;
    margin: 0 auto;
    max-width: 400px;
    overflow-x: auto; /* Allow horizontal scroll if needed */
    padding: 10px 0;
}

/* Custom scrollbar for social icons container */
.social-icons-container::-webkit-scrollbar {
    height: 4px;
}

.social-icons-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.social-icons-container::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.5);
    border-radius: 2px;
}

.social-icons-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.8);
}
