/* Footer Styles - Enhanced Professional Design */

.footer {
    background: linear-gradient(135deg, #2b2d42 0%, #1a1b2e 100%);
    color: #ecf0f1;
    padding: 60px 0 30px;
    position: relative;
    margin-top: 80px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, transparent 25%, #2b2d42 25%, #2b2d42 75%, transparent 75%);
    background-size: 40px 40px;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-logo .tagline {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links i {
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.contact-section p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-section i {
    margin-right: 15px;
    width: 20px;
    color: var(--primary-color);
}

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

.contact-section a:hover {
    color: var(--primary-color);
}

.social-heading {
    margin-top: 30px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.social-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color, #4a69bd));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.social-heading:hover::after {
    width: 100px;
}

.social-icons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color, #4a69bd));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    color: white;
    animation: pulse 1.5s infinite alternate;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.social-icon i {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
}

.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.newsletter-section h3 {
    color: #fff;
    margin-bottom: 15px;
}

.newsletter-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 0.95rem;
}

.subscribe-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    opacity: 0.9;
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    margin-bottom: 15px;
}

.legal-links a {
    color: #ecf0f1;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom .fa-heart {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb, 66, 133, 244), 0.7); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(var(--primary-color-rgb, 66, 133, 244), 0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .subscribe-btn {
        border-radius: 30px;
        padding: 12px;
    }
    
    .legal-links a {
        display: inline-block;
        margin: 5px 10px;
    }
    
    .social-icons {
        justify-content: center;
        gap: 16px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .social-heading {
        text-align: center;
    }
    
    .social-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}