/* Modern Footer Styles */
.footer-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form .form-control {
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    background: white;
}

.newsletter-form .btn {
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Brand */
.footer-brand h4 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #007bff, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social Links */
.social-links .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.social-links .btn:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: #007bff;
    background: #007bff;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

/* Footer Links */
.footer-links a {
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.footer-links a:hover {
    color: #007bff !important;
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: #007bff;
}

/* Section Headers */
.footer-modern h6 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-modern h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #007bff, #28a745);
    border-radius: 2px;
}

/* Contact Info */
.contact-info .contact-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.contact-info .contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.contact-icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.1rem;
}

/* Footer Badges */
.footer-badges .badge {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-badges .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-badges .bg-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
}

.footer-badges .bg-info {
    background: linear-gradient(45deg, #17a2b8, #007bff) !important;
}

.footer-badges .bg-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-section {
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        margin-bottom: 10px;
    }
    
    .footer-badges {
        justify-content: center !important;
        margin-top: 15px;
    }
    
    .social-links {
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 30px;
    }
}

/* Animation for footer elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-modern .col-lg-4,
.footer-modern .col-lg-2,
.footer-modern .col-lg-3 {
    animation: fadeInUp 0.6s ease-out;
}

.footer-modern .col-lg-4 {
    animation-delay: 0.1s;
}

.footer-modern .col-lg-2 {
    animation-delay: 0.2s;
}

.footer-modern .col-lg-3:nth-of-type(3) {
    animation-delay: 0.3s;
}

.footer-modern .col-lg-3:nth-of-type(4) {
    animation-delay: 0.4s;
}

/* Hover effects for the entire footer */
.footer-modern {
    transition: all 0.3s ease;
}

/* Custom scrollbar for newsletter input */
.newsletter-form .form-control::-webkit-scrollbar {
    display: none;
}

/* Focus states */
.footer-modern a:focus,
.footer-modern button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Text selection */
.footer-modern ::selection {
    background: rgba(0, 123, 255, 0.3);
    color: white;
}