/* ============================================
   Modern Footer Styles
   Code Node (pvt) ltd - 2024
============================================ */

:root {
    --primary-color: #262262;
    --secondary-color: #6366f1;
    --accent-color: #6366f1;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --text-light: #ffffff;
    --text-gray: #9ca3af;
}

/* ============================================
   Call to Action Section
============================================ */

.footer-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* ============================================
   Main Footer
============================================ */

.modern-footer {
    position: relative;
    margin-top: 50px;
}

.footer-main {
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--primary-color) 100%);
    padding: 80px 20px 40px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* ============================================
   Footer Columns
============================================ */

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ============================================
   Logo Section
============================================ */

.footer-logo {
    margin-bottom: 20px;
}

.logo-animation {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    font-size: 18px;
    animation: letterBounce 2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.letter:nth-child(1) { --i: 0; }
.letter:nth-child(2) { --i: 1; }
.letter:nth-child(3) { --i: 2; }
.letter:nth-child(4) { --i: 3; }

@keyframes letterBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.footer-logo h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 10px;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ============================================
   Social Links
============================================ */

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.2;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon i {
    font-size: 20px;
    z-index: 1;
}

.facebook { background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); }
.whatsapp { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); }
.linkedin { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.instagram { background: linear-gradient(135deg, var(--secondary-color) 0%, #4f46e5 100%); }
.twitter { background: linear-gradient(135deg, #4f46e5 0%, var(--secondary-color) 100%); }

/* ============================================
   Footer Links
============================================ */

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

/* ============================================
   Contact Info
============================================ */

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 18px;
    width: 20px;
}

.contact-info a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

/* ============================================
   Newsletter
============================================ */

.newsletter {
    margin-top: 25px;
}

.newsletter h5 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: var(--text-gray);
}

.newsletter-form input:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* ============================================
   Footer Bottom
============================================ */

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

.footer-bottom-links span {
    color: var(--text-gray);
}

/* ============================================
   Wave Animation
============================================ */

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave path {
    fill: var(--darker-bg);
}

/* ============================================
   Fixed Action Buttons
============================================ */

.fixed-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 900;
    transition: all 0.3s ease;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    font-size: 14px;
}

.action-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.action-btn i {
    font-size: 20px;
}

.action-btn.whatsapp {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4f46e5 100%);
}

.action-btn.offers {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.action-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* ============================================
   Responsive Design
============================================ */

@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        text-align: left;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-column h4::after {
        left: 0;
        transform: none;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-links a {
        justify-content: flex-start;
    }
    
    .contact-info li {
        justify-content: flex-start;
    }
    
    .logo-animation {
        justify-content: flex-start;
    }
    
    .footer-bottom .footer-container {
        justify-content: center;
        text-align: center;
    }
    
    .fixed-actions {
        right: 15px;
        bottom: 15px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn {
        width: 55px;
        height: 55px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .footer-cta {
        padding: 40px 15px;
    }
    
    .footer-main {
        padding: 60px 15px 30px;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 14px 25px;
        font-size: 1rem;
    }
}

/* ============================================
   Accessibility
============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
