/* ===================================
   FOOTER - MODERN BLUE DESIGN
   =================================== */

.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 80px 0 32px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(92, 182, 249, 0.3) 50%, 
        transparent 100%
    );
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

/* Branding Section */
.footer-branding {
    max-width: 350px;
}

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

.footer-logo img {
    height: 66px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(92, 182, 249, 0.5));
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 24px;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 18px;
}

.social-icon:hover {
    background: var(--gradient-primary);
    border-color: var(--blue-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(92, 182, 249, 0.3);
}

/* Footer Sections */
.footer-section h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section li {
    margin: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--blue-light);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-section a:hover::before {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--gradient-primary);
}

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

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

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

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

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

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

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .footer {
        padding: 60px 0 32px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-branding {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-section h4::after {
        left: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-branding {
        grid-column: 1;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-logo img {
        height: 56px;
    }

    .footer-description {
        text-align: center;
        max-width: 100%;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul {
        align-items: center;
    }

    .footer-section a:hover {
        transform: translateX(0) scale(1.05);
    }

    .footer-bottom {
        padding-top: 24px;
    }

    .footer-bottom p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 32px;
    }

    .footer-logo img {
        height: 48px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-section a {
        font-size: 14px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ===================================
   ADDITIONAL FOOTER ELEMENTS
   =================================== */

/* Newsletter Section (Optional) */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.footer-newsletter h5 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

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

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 15px;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--blue-light);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 182, 249, 0.3);
}

/* Trust Badges (Optional) */
.footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--blue-light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(35, 61, 255, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(35, 61, 255, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-trust {
        flex-wrap: wrap;
        gap: 16px;
    }
}
