/**
 * Modern Footer Styles for Groupe Kiva
 * Smooth animations, gradients, and attractive design
 * 
 * Author: Alex (Engineer)
 */

/* ===== FOOTER MAIN STYLES ===== */
.modern-footer {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main {
    position: relative;
    padding: 80px 0 40px;
    z-index: 1;
}

/* ===== COMPANY INFO SECTION ===== */
.footer-about {
    padding-right: 20px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.footer-brand {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: rotate(5deg) scale(1.1);
}

.footer-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    text-align: justify;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(0);
    transition: transform 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.social-link.facebook:hover {
    box-shadow: 0 10px 25px rgba(59, 89, 152, 0.5);
}

.social-link.twitter:hover {
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.5);
}

.social-link.linkedin:hover {
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.5);
}

.social-link.instagram:hover {
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.5);
}

/* ===== FOOTER SECTIONS ===== */
.footer-section {
    height: 100%;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 80px;
}

.title-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ===== CONTACT LIST ===== */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    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;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.contact-text {
    flex: 1;
    padding-top: 5px;
}

.contact-text span,
.contact-text a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #667eea;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.footer-links a:hover::before {
    transform: scaleY(1);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.footer-links a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.copyright-text,
.developer-credit {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright-link,
.developer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.copyright-link::after,
.developer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.copyright-link:hover::after,
.developer-link:hover::after {
    width: 100%;
}

.copyright-link:hover,
.developer-link:hover {
    color: #764ba2;
}

.developer-link i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.developer-link:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* ===== DECORATIVE WAVE ===== */
.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.back-to-top:active {
    transform: translateY(-5px) scale(1.05);
}

.back-to-top i {
    font-size: 20px;
    animation: bounceUpDown 2s ease-in-out infinite;
}

.back-to-top-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounceUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .footer-main {
        padding: 60px 0 30px;
    }

    .footer-about {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .footer-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 28px;
    }

    .footer-logo-img {
        height: 40px;
    }

    .footer-title {
        font-size: 18px;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top i {
        font-size: 18px;
    }

    .back-to-top-text {
        font-size: 9px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .copyright-text,
    .developer-credit {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 40px 0 20px;
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        padding: 12px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .footer-links a {
        font-size: 14px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.footer-links a:focus,
.social-link:focus,
.back-to-top:focus {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .modern-footer {
        background: #ffffff;
        color: #000000;
    }

    .back-to-top {
        display: none;
    }
}