/* ============ FOOTER MAIN ============ */
.footer-main {
    background: #1a1a1a;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Footer Column */
.footer-col {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.footer-col:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-col:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-col:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-col:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-col:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.footer-col:hover h3::after {
    width: 60px;
}

/* Contact Info */
.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    color: #fff;
    transform: translateX(5px);
}

.contact-info li i {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #e74c3c;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Newsletter */
.newsletter-text {
    color: #aaa;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    background: #fff;
    border: none;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.subscribe-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.subscribe-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.subscribe-btn:active {
    transform: translateY(0);
}

/* ============ FOOTER BOTTOM ============ */
.footer-bottom {
    background: #111;
    padding: 25px 0;
    border-top: 1px solid #2a2a2a;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e74c3c;
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Copyright */
.copyright {
    color: #777;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.copyright a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #e74c3c;
}

/* Payment Icons */
.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-icon {
    height: 30px;
    width: auto;
    border-radius: 3px;
    transition: all 0.3s ease;
    filter: grayscale(0.3);
}

.payment-icon:hover {
    transform: translateY(-3px);
    filter: grayscale(0);
}

/* ============ DARK MODE TOGGLE ============ */
.dark-mode-toggle {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: #2a2a2a;
    border-radius: 30px;
    padding: 5px;
    display: flex;
    gap: 5px;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.mode-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: #fff;
    color: #1a1a1a;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .footer-col:nth-child(1) {
        grid-column: span 3;
    }

    .footer-col:nth-child(5) {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-col:nth-child(1),
    .footer-col:nth-child(5) {
        grid-column: span 1;
    }

    .footer-col h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .contact-info li {
        font-size: 15px;
    }

    .footer-links a {
        font-size: 15px;
    }

    .newsletter-text {
        font-size: 15px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-icons {
        order: 1;
    }

    .copyright {
        order: 2;
    }

    .payment-icons {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dark-mode-toggle {
        bottom: 70px;
        left: 15px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }

    .subscribe-btn {
        width: 100%;
    }

    .payment-icon {
        height: 25px;
    }
}

/* Demo content */
.demo-content {
    height: 500px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 20px;
}