/* Light Theme Footer */

/* Color Variables (matching navigation theme) */
:root {
    --primary: #151644; /* Professional blue */
    --secondary: #2563eb; /* Darker blue */
    --accent: #3b82f6; /* Light blue accent */
    --light: #1f2937; /* Dark text for light theme */
    --lighter: #ffffff; /* Pure white */
    --surface: #f8fafc; /* Light gray surface */
    --border: #e2e8f0; /* Light border */
    --gray: #6b7280; /* Medium gray text */
    --light-gray: #94a3b8; /* Light gray text */
    --darker: #f1f5f9; /* Light background instead of dark */

    --hover-bg: rgba(37, 99, 235, 0.05); /* Light blue hover */
}

/* Footer Styles */
footer {
    background: var(--darker);
    padding: 3rem 5%;
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.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; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    border-bottom-color: var(--border);
    padding-left: 10px;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
    border-radius: 4px;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary);
    background: var(--hover-bg);
    padding: 0.25rem 0.5rem;
    transform: translateX(5px);
}

.footer-section p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.footer-section .contact-item:hover {
    background: var(--hover-bg);
    color: var(--primary);
    transform: translateX(5px);
}

.footer-section .contact-icon {
    font-size: 1.2rem;
    color: var(--primary);
    min-width: 24px;
    text-align: center;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--gray);
    transition: all 0.3s ease;
    background: var(--lighter);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: left 0.5s ease;
    opacity: 0.1;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--lighter);
    background: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(21, 22, 68, 0.3);
}

/* Individual social platform colors on hover */
.social-links a.facebook:hover {
    background: #3b5998;
    border-color: #3b5998;
}

.social-links a.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-links a.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-links a.instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    border-color: #e1306c;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--gray);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Newsletter Signup (if applicable) */
.newsletter-signup {
    background: var(--lighter);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(21, 22, 68, 0.08);
}

.newsletter-signup h5 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.newsletter-signup .input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.newsletter-signup input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--lighter);
}

.newsletter-signup input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 22, 68, 0.1);
}

.newsletter-signup button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--lighter);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-signup button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 22, 68, 0.3);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 2rem 3%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .newsletter-signup .input-group {
        flex-direction: column;
    }

    .newsletter-signup button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 3%;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #f1f5f9;
        --surface: #334155;
        --border: #475569;
    }
}
