/* Modern Smart Footer Design - Updated to match project theme */

:root {
    /* Use project's existing color variables */
    --footer-primary: hsl(250, 69%, 48%);
    --footer-secondary: hsl(250, 69%, 35%);
    --footer-accent: hsl(250, 69%, 25%);
    --footer-gradient: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-secondary) 50%, var(--footer-accent) 100%);
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-hover: rgba(255, 255, 255, 0.05);
    --glow-primary: rgba(84, 46, 145, 0.4);
    --glow-secondary: rgba(96, 58, 165, 0.4);
}

.footer {
    position: relative;
    background: var(--footer-gradient);
    color: var(--footer-text);
    overflow: hidden;
    padding: 0;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(84, 46, 145, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 58, 165, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(108, 70, 185, 0.1) 0%, transparent 50%);
    animation: patternFloat 20s ease-in-out infinite;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(84, 46, 145, 0.05) 0%,
        transparent 30%,
        rgba(96, 58, 165, 0.05) 70%,
        transparent 100%
    );
    animation: gradientShift 15s ease-in-out infinite alternate;
}

/* Newsletter Section */
.footer-newsletter {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    border-bottom: 1px solid var(--footer-border);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.newsletter-text {
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--footer-text);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffffff, #a0a9c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    font-size: 1rem;
    color: var(--footer-text-muted);
    margin: 0;
    line-height: 1.6;
}

.newsletter-form {
    min-width: 300px;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--footer-border);
    border-radius: 16px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(84, 46, 145, 0.5);
    box-shadow: 0 0 20px rgba(84, 46, 145, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    color: var(--footer-text);
    font-size: 0.9rem;
    border-radius: 12px;
}

.newsletter-input::placeholder {
    color: var(--footer-text-muted);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--footer-primary), var(--footer-secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 46, 145, 0.4);
}

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

/* Main Footer Layout */
.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 3rem;
    padding: 3rem 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-text);
    margin: 0 0 1rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-primary), var(--footer-secondary));
    border-radius: 2px;
}

/* Brand Section */
.footer-brand-section {
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-wrapper {
    position: relative;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--glow-primary), var(--glow-secondary));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-logo-wrapper:hover .footer-logo-glow {
    opacity: 1;
    animation: pulse 2s infinite;
}

.footer-brand-info {
    flex: 1;
}

.footer-brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--footer-text);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-tagline {
    font-size: 0.95rem;
    color: var(--footer-text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--footer-text);
    background: linear-gradient(135deg, var(--footer-primary), var(--footer-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--footer-text-muted);
    margin-top: 0.25rem;
}

/* Contact Information */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(84, 46, 145, 0.3);
    transform: translateX(-3px);
}

.contact-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(84, 46, 145, 0.2), rgba(96, 58, 165, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: var(--footer-text);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-contact-text {
    font-size: 0.95rem;
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-contact-text:hover {
    color: var(--footer-primary);
}

.contact-label {
    font-size: 0.8rem;
    color: var(--footer-text-muted);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: right 0.5s;
}

.footer-link:hover::before {
    right: 100%;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(84, 46, 145, 0.2);
    color: var(--footer-text);
    transform: translateX(5px);
}

.footer-link i {
    width: 18px;
    height: 18px;
    color: var(--footer-primary);
    flex-shrink: 0;
}

/* Social Media */
.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.footer-social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.footer-social-btn:hover::before {
    left: 100%;
}

.footer-social-btn:hover {
    transform: translateY(-3px) scale(1.02);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-social-btn i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.social-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.footer-social-btn:hover .social-tooltip {
    opacity: 1;
}

/* Social Button Colors */
.footer-social-btn.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #166fe5);
    border-color: #1877f2;
    color: white;
}

.footer-social-btn.linkedin:hover {
    background: linear-gradient(135deg, #0a66c2, #004182);
    border-color: #0a66c2;
    color: white;
}

.footer-social-btn.whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-color: #25d366;
    color: white;
}

/* Trust Badges */
.footer-trust-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    color: var(--footer-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.trust-badge i {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--footer-border);
    padding: 2rem 0;
}

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

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--footer-text);
    margin: 0;
    font-weight: 500;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal-link {
    font-size: 0.85rem;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.footer-legal-link:hover {
    color: var(--footer-primary);
    border-bottom-color: var(--footer-primary);
}

.separator {
    color: var(--footer-text-muted);
    font-size: 0.85rem;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--footer-text-muted);
}

.heart-icon {
    width: 16px;
    height: 16px;
    color: #ef4444;
    animation: heartbeat 2s ease-in-out infinite;
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(84, 46, 145, 0.1);
    border: 1px solid rgba(84, 46, 145, 0.2);
    color: var(--footer-text);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    background: rgba(84, 46, 145, 0.2);
    border-color: rgba(84, 46, 145, 0.4);
    transform: translateY(-2px);
    color: var(--footer-text);
}

.back-to-top i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Animations */
@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-10px, -5px) scale(1.02); }
    50% { transform: translate(5px, -10px) scale(0.98); }
    75% { transform: translate(-5px, 5px) scale(1.01); }
}

@keyframes gradientShift {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

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

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        order: -1;
    }
    
    .footer-contact-info {
        grid-column: 1 / -1;
        order: 1;
    }
}

@media (max-width: 768px) {
    .footer-newsletter {
        padding: 2rem 0;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        min-width: auto;
        width: 100%;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .footer-brand-section {
        text-align: center;
        order: -1;
    }
    
    .footer-brand {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .footer-contact-info {
        align-items: center;
    }
    
    .footer-social-links {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .footer-trust-badges {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-left {
        align-items: center;
    }
    
    .footer-bottom-right {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 580px) {
    .newsletter-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-btn {
        justify-content: center;
        width: 100%;
    }
    
    .footer-newsletter {
        padding: 1.5rem 0;
    }
    
    .newsletter-title {
        font-size: 1.25rem;
    }
    
    .newsletter-subtitle {
        font-size: 0.9rem;
    }
    
    .footer-main {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .footer-main {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .footer-brand {
        gap: 0.75rem;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .footer-brand-title {
        font-size: 1.2rem;
    }
    
    .footer-brand-tagline {
        font-size: 0.85rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-stat {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .footer-contact-item {
        padding: 0.5rem;
    }
    
    .contact-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .footer-social-links {
        max-width: 240px;
    }
    
    .footer-social-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .footer-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
    
    .footer-made-with {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .footer-section-title {
        font-size: 1rem;
    }
    
    .footer-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .footer-contact-text {
        font-size: 0.85rem;
    }
    
    .contact-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .footer-brand-title {
        font-size: 1.1rem;
    }
    
    .footer-brand-tagline {
        font-size: 0.8rem;
    }
    
    .footer-stats {
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .footer-social-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .footer-social-btn i {
        width: 18px;
        height: 18px;
    }
}