@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

/* Footer Styles */

body {
    font-family: 'Montserrat', sans-serif;
}
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-logo span {
    background: linear-gradient(120deg, #00ffff 0%, #0080ff 50%, #00ffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease-in-out infinite;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 280px;
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, rgba(0, 255, 255, 0.3));
    border-radius: 1px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    padding: 6px 0;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-column a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #00ffff;
    transition: width 0.3s ease;
}

.footer-column a:hover {
    color: #00ffff;
    transform: translateX(4px);
}

.footer-column a:hover::before {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 300;
    margin: 0;
}

.footer-bottom a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #00e6e6;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }

    .footer .container {
        padding: 0 20px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-links {
        gap: 25px;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }
}

/* Animation for gradient text */
@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hover effect for footer sections */
.footer-column:hover h4 {
    color: #00ffff;
    transition: color 0.3s ease;
}

.footer-column:hover h4::after {
    width: 50px;
    transition: width 0.3s ease;
}

/* Focus states for accessibility */
.footer-column a:focus {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-logo:focus {
    outline: 2px solid #00ffff;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Loading animation for footer */
.footer-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.footer-brand {
    animation-delay: 0.1s;
}

.footer-links .footer-column:nth-child(1) {
    animation-delay: 0.2s;
}

.footer-links .footer-column:nth-child(2) {
    animation-delay: 0.3s;
}

.footer-links .footer-column:nth-child(3) {
    animation-delay: 0.4s;
}

.footer-bottom {
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Dark theme support */
[data-theme="light"] .footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer::before {
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.3), transparent);
}

[data-theme="light"] .footer-logo {
    color: #212529;
}

[data-theme="light"] .footer-brand p {
    color: rgba(33, 37, 41, 0.7);
}

[data-theme="light"] .footer-column h4 {
    color: #212529;
}

[data-theme="light"] .footer-column a {
    color: rgba(33, 37, 41, 0.6);
}

[data-theme="light"] .footer-column a:hover {
    color: #007bff;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-bottom p {
    color: rgba(33, 37, 41, 0.5);
}

[data-theme="light"] .footer-bottom a {
    color: #007bff;
}

[data-theme="light"] .footer-bottom a:hover {
    color: #0056b3;
}
