/**
 * Footer Styles
 * Professional footer design for web development agency
 * Author: SarvTechs Team
 * Version: 1.0
 */

/* ==========================================
   FOOTER MAIN STYLES
   ========================================== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

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

/* ==========================================
   FOOTER TOP SECTION
   ========================================== */
.footer-top {
    padding: 80px 0 60px;
    position: relative;
}

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

/* ==========================================
   FOOTER ABOUT COLUMN
   ========================================== */
.footer-about {
    padding-right: 30px;
}

.footer-logo h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #82b536 0%, #0f3578 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ==========================================
   SOCIAL ICONS
   ========================================== */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(130, 181, 54, 0.1);
    color: #82b536;
    transition: all 0.3s ease;
    font-size: 18px;
    border: 1px solid rgba(130, 181, 54, 0.2);
}

.social-icon:hover {
    background: linear-gradient(135deg, #82b536 0%, #0f3578 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(130, 181, 54, 0.3);
    border-color: transparent;
}

/* ==========================================
   FOOTER COLUMNS
   ========================================== */
.footer-col {
    /* Base column styles */
}

.footer-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #82b536, #0f3578);
    border-radius: 2px;
}

/* ==========================================
   FOOTER LINKS
   ========================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #82b536;
    padding-left: 8px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* ==========================================
   FOOTER CONTACT INFO
   ========================================== */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #669646;
    font-size: 18px;
    border: 1px solid rgb(97 145 74 / 74%);
}

.contact-info strong {
    display: block;
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.contact-info p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-info a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #3b82f6;
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.footer-newsletter {
    background: rgba(130, 181, 54, 0.05);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.newsletter-text i {
    font-size: 3rem;
    color: #3b82f6;
    opacity: 0.8;
}

.newsletter-text h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.newsletter-text p {
    color: #cbd5e1;
    margin: 0;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 450px;
    flex: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #82b53638;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-form input:focus {
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.8);
}

.btn-subscribe {
    padding: 15px 30px;
    background: linear-gradient(135deg, #82b536 0%, #0f3578 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(130, 181, 54, 0.4);
}

.btn-subscribe i {
    margin-right: 8px;
}

/* ==========================================
   FOOTER BOTTOM
   ========================================== */
.footer-bottom {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-copyright strong {
    color: #3b82f6;
    font-weight: 600;
}

.footer-copyright i.fa-heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
}

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

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #82b536;
}

.footer-bottom-links .separator {
    color: #475569;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #82b536 0%, #0f3578 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(130, 181, 54, 0.4);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(130, 181, 54, 0.5);
}

/* ==========================================
   WHATSAPP FLOAT BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 997;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ==========================================
   RESPONSIVE DESIGN - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

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

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

/* ==========================================
   RESPONSIVE DESIGN - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .footer-top {
        padding: 50px 0 40px;
    }

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

    .footer-about {
        margin-bottom: 0;
        text-align: center;
    }

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

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

    .footer-links,
    .footer-contact {
        text-align: left;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .newsletter-form input,
    .btn-subscribe {
        width: 100%;
    }

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

    .whatsapp-float {
        bottom: 110px;
        right: 20px;
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .footer-logo h3 {
        font-size: 1.75rem;
    }

    .newsletter-text i {
        font-size: 2.5rem;
    }

    .newsletter-text h4 {
        font-size: 1.1rem;
    }

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

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

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

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .footer-newsletter,
    .back-to-top,
    .whatsapp-float {
        display: none;
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .footer * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .footer {
        background: #000000;
        border-top: 2px solid #ffffff;
    }

    .footer-links a,
    .contact-info a {
        text-decoration: underline;
    }
}
