/* Footer Styles */

.footer {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(15px);
    color: white;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
    position: relative;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #bdc3c7;
}

.footer-section p {
    color: #95a5a6;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Contact Info Styles */
.contact-info {
    margin: 20px 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #95a5a6;
    font-size: 0.95rem;
}

.contact-info p i {
    margin-right: 10px;
    width: 16px;
    color: #667eea;
    font-size: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-section h3 i {
    margin-right: 10px;
    color: #667eea;
    animation: rotate 3s linear infinite;
}

.footer-section h4 {
    font-size: 1.2rem;
    color: #bdc3c7;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
}

.footer-section p {
    color: #95a5a6;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 15px;
}

.footer-links a i {
    margin-right: 8px;
    width: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: #764ba2;
}

/* Newsletter */
.newsletter {
    display: flex;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: background 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-input::placeholder {
    color: #bdc3c7;
}

.newsletter-btn {
    padding: 12px 15px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    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(135deg, #5a6fd8, #6a42a0);
    transition: left 0.3s ease;
}

.newsletter-btn:hover::before {
    left: 0;
}

.newsletter-btn:hover {
    transform: scale(1.05);
}

.newsletter-btn i {
    position: relative;
    z-index: 1;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
}

/* Footer Theme Toggle Styles */
.footer-theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 3;
}

.theme-label {
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-theme-btn {
    position: relative;
    width: 40px;
    height: 22px;
    background: linear-gradient(135deg, #64748b, #94a3b8);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.footer-theme-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.footer-theme-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.footer-theme-btn:active {
    transform: scale(0.95);
}

.footer-theme-btn .theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: white;
    font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.footer-theme-btn .sun-icon {
    left: 3px;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

.footer-theme-btn .moon-icon {
    right: 3px;
    opacity: 0;
    transform: translateY(-50%) rotate(180deg);
}

/* Dark theme footer styles */
[data-theme="dark"] .footer-theme-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

[data-theme="light"] .footer-theme-btn {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

[data-theme="dark"] .footer-theme-btn .sun-icon {
    opacity: 0;
    transform: translateY(-50%) rotate(-180deg);
}

[data-theme="dark"] .footer-theme-btn .moon-icon {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

[data-theme="dark"] .theme-label {
    color: #cbd5e1;
}

/* Enhanced footer theme toggle animations */
.footer-theme-btn.theme-switching {
    animation: footerThemeToggleSwitch 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes footerThemeToggleSwitch {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.footer-theme-btn.theme-pulse {
    animation: footerThemePulse 0.6s ease-out;
}

@keyframes footerThemePulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
}

.footer-theme-btn.theme-hover {
    animation: footerThemeGlow 2s ease-in-out infinite;
}

@keyframes footerThemeGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.7); }
}

.text-red {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

.footer-bottom-links a:hover {
    color: #667eea;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 40px 20px 20px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        order: 2;
    }

    .footer-theme-toggle {
        order: 1;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter {
        max-width: 300px;
        margin: 15px auto 0;
    }

    .footer-theme-toggle {
        margin-bottom: 10px;
    }

    .theme-label {
        font-size: 13px;
    }

    .footer-theme-btn {
        width: 48px;
        height: 26px;
    }

    .footer-theme-btn .theme-icon {
        width: 18px;
        height: 18px;
        font-size: 0.75rem;
    }
}
