/* ================================
   Footer Section
================================ */
.footer {
    background: linear-gradient(180deg, #0f0c29 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 0;
}

.footer-content {
    position: relative;
    z-index: 2;
}

/* Background Shapes */
.footer-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.footer-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    right: -200px;
}

.footer-shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -150px;
    left: -150px;
}

/* Footer Top */
.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

/* Footer Column */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Footer About */
.footer-about {
    max-width: 380px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Title */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a::before {
    content: '◀';
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #667eea;
    padding-right: 8px;
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-contact li svg {
    width: 22px;
    height: 22px;
    color: #667eea;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact li > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #667eea;
}

/* Newsletter */
.footer-newsletter {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.newsletter-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Newsletter Form */
.newsletter-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    gap: 12px;
}

.newsletter-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter-input-wrapper svg {
    position: absolute;
    right: 18px;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.newsletter-input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.newsletter-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.newsletter-btn svg {
    width: 18px;
    height: 18px;
}

/* Newsletter Success */
.newsletter-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #10b981;
    font-size: 0.95rem;
    animation: slideInRight 0.4s ease;
}

.newsletter-success svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Trust Badges */
.footer-badges {
    display: flex;
    gap: 16px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

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

/* ================================
   Responsive Design
================================ */

/* Large Tablet */
@media (max-width: 1024px) {
    .footer {
        padding: 60px 0 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-about {
        max-width: 100%;
    }

    .newsletter-content {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding: 35px;
    }

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

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

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

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

    .footer-newsletter {
        padding: 40px 0;
    }

    .newsletter-content {
        padding: 30px 25px;
    }

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

    .newsletter-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-badges {
        flex-direction: column;
        width: 100%;
    }

    .trust-badge {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .footer-logo span {
        font-size: 1.1rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .newsletter-title {
        font-size: 1.3rem;
    }

    .newsletter-content {
        padding: 25px 20px;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom-links .separator {
        display: none;
    }
}
