/* ============================================
   FOOTER IMPROVEMENTS
   Modern, professional footer with enhanced styling
   ============================================ */

#footer {
    position: relative;
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%),
        radial-gradient(circle at 20% 30%, rgba(1, 192, 87, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(1, 192, 87, 0.05) 0%, transparent 50%);
    color: #ffffff;
    padding: 80px 0 0;
    border-top: 1px solid rgba(1, 192, 87, 0.1);
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(1, 192, 87, 0.5), transparent);
}

/* Footer Logo Section */
.footer-logo {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1.1);
}

.footer-logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(1, 192, 87, 0.3));
}

/* Footer Info Blocks */
.footer-info-block {
    margin-bottom: 40px;
    position: relative;
    padding: 20px 0;
}

.footer-info-block h4.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 15px;
}

.footer-info-block h4.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #01c057, rgba(1, 192, 87, 0.5));
    border-radius: 2px;
}

.footer-info-block p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Footer Links */
.footer-info-block ul.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info-block ul.list-unstyled li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.footer-info-block ul.list-unstyled li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: rgba(1, 192, 87, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-info-block ul.list-unstyled li:hover::before {
    opacity: 1;
    left: -15px;
    color: #01c057;
}

.footer-info-block ul.list-unstyled li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-info-block ul.list-unstyled li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #01c057, rgba(1, 192, 87, 0.5));
    transition: width 0.3s ease;
}

.footer-info-block ul.list-unstyled li a:hover {
    color: #01c057;
    padding-left: 5px;
}

.footer-info-block ul.list-unstyled li a:hover::after {
    width: 100%;
}

/* Instagram Gallery */
.footer-info-block ul.flickr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info-block ul.flickr li {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.footer-info-block ul.flickr li::before {
    display: none;
}

.footer-info-block ul.flickr li a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.footer-info-block ul.flickr li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.9);
}

.footer-info-block ul.flickr li:hover a img {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

.footer-info-block ul.flickr li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-info-block ul.flickr li:hover a::after {
    opacity: 1;
}

/* Contact Information */
.footer-info-block ul.list-unstyled.white li a[href^="mailto:"]::before {
    content: '✉ ';
    margin-right: 5px;
    color: #01c057;
    opacity: 0.7;
}

.footer-info-block ul.list-unstyled.white li a[href^="tel:"]::before {
    content: '📞 ';
    margin-right: 5px;
    color: #01c057;
    opacity: 0.7;
}

/* Footer Bottom Section */
.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-bottom .row {
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

/* Social Media Icons - Modern Design */
.social-icon {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.social-icon li {
    margin: 0;
    padding: 0;
}

.social-icon li a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-icon li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(1, 192, 87, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon li a:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon li a i {
    position: relative;
    z-index: 1;
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon li a:hover {
    background: rgba(1, 192, 87, 0.15);
    border-color: rgba(1, 192, 87, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(1, 192, 87, 0.3),
        0 0 0 1px rgba(1, 192, 87, 0.2) inset;
}

.social-icon li a:hover i {
    color: #01c057;
    transform: scale(1.1);
}

/* Specific Social Media Colors on Hover */
.social-icon li a[href*="facebook"]:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.4);
}

.social-icon li a[href*="instagram"]:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(255, 200, 87, 0.2));
    border-color: rgba(225, 48, 108, 0.4);
}

.social-icon li a[href*="twitter"]:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.4);
}

.social-icon li a[href*="whatsapp"]:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
}

.social-icon li a[href*="linkedin"]:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: rgba(0, 119, 181, 0.4);
}

/* Scroll to Top Button */
#to-top {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#to-top a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #01c057 0%, #00a048 100%);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 
        0 4px 15px rgba(1, 192, 87, 0.4),
        0 0 0 4px rgba(1, 192, 87, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#to-top a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

#to-top a:hover::before {
    width: 100%;
    height: 100%;
}

#to-top a i {
    position: relative;
    z-index: 1;
    font-size: 24px;
    transition: transform 0.3s ease;
}

#to-top a:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(1, 192, 87, 0.5),
        0 0 0 4px rgba(1, 192, 87, 0.2);
}

#to-top a:hover i {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 991px) {
    #footer {
        padding: 60px 0 0;
    }
    
    .footer-info-block {
        margin-bottom: 35px;
    }
    
    .footer-info-block h4.widget-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .social-icon {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:first-child {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    #footer {
        padding: 50px 0 0;
    }
    
    .footer-info-block {
        margin-bottom: 30px;
        padding: 15px 0;
    }
    
    .footer-info-block h4.widget-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-info-block p {
        font-size: 14px;
    }
    
    .footer-info-block ul.list-unstyled li a {
        font-size: 14px;
    }
    
    .footer-info-block ul.flickr {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .social-icon {
        gap: 10px;
    }
    
    .social-icon li a {
        width: 40px;
        height: 40px;
    }
    
    .social-icon li a i {
        font-size: 18px;
    }
    
    .footer-bottom {
        padding: 25px 0;
        margin-top: 30px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

/* Animation for Footer Elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-info-block {
    animation: fadeInUp 0.6s ease-out;
}

.footer-info-block:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-info-block:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-info-block:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-info-block:nth-child(4) {
    animation-delay: 0.4s;
}

/* Additional Modern Effects */
.footer-info-block p {
    text-align: justify;
}

.footer-info-block ul.list-unstyled.white li a[href^="mailto:"] {
    word-break: break-all;
}

/* Hover effect for entire footer section */
#footer:hover {
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%),
        radial-gradient(circle at 20% 30%, rgba(1, 192, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(1, 192, 87, 0.08) 0%, transparent 50%);
}
