/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
    border-top: 1px solid rgba(64, 224, 208, 0.15);
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(64, 224, 208, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: rotate(360deg) scale(1.1);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #40e0d0, #20b2aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #40e0d0, #20b2aa);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 40px;
    white-space: nowrap;
}

.social-link .link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-link .link-text {
    line-height: 1;
    margin: 0;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(64, 224, 208, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
    font-style: italic;
    position: relative;
}

.footer-tagline::before,
.footer-tagline::after {
    content: '✨';
    color: #40e0d0;
    margin: 0 0.5rem;
    animation: sparkle 2s ease-in-out forwards;
}

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

/* Animation for footer elements */
.footer-logo,
.footer-nav,
.footer-social {
    opacity: 0;
    transform: translateY(20px);
    animation: footerSlideIn 0.8s ease-out forwards;
}

.footer-logo {
    animation-delay: 0.1s;
}

.footer-nav {
    animation-delay: 0.3s;
}

.footer-social {
    animation-delay: 0.5s;
}

.footer-bottom {
    opacity: 0;
    transform: translateY(20px);
    animation: footerSlideIn 0.8s ease-out 0.7s forwards;
}

@keyframes footerSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-nav a {
        font-size: 0.9rem;
    }

    .footer-social {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .social-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-height: 36px;
    }

    .footer-tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 0.8rem;
    }

    .footer-content {
        gap: 1.2rem;
    }

    .footer-logo-img {
        width: 35px;
        height: 35px;
    }

    .footer-logo-text {
        font-size: 1.3rem;
    }

    .footer-nav {
        gap: 1.2rem;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }

    .footer-social {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .social-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        flex: 0 0 auto;
        justify-content: center;
        min-height: 44px;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .footer {
        padding: 4rem 0 1.5rem;
    }

    .footer-content {
        gap: 3rem;
        margin-bottom: 2.5rem;
    }

    .footer-nav {
        gap: 2.5rem;
    }

    .footer-nav a {
        font-size: 1rem;
    }

    .footer-social {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .social-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .footer-tagline {
        font-size: 1.2rem;
    }
}

/* Special hover effects for social links */
.social-link:nth-child(1):hover {
    border-color: rgba(64, 224, 208, 0.6);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.4);
}

.social-link:nth-child(2):hover {
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.social-link:nth-child(3):hover {
    border-color: rgba(75, 0, 130, 0.6);
    box-shadow: 0 5px 15px rgba(75, 0, 130, 0.4);
}

.social-link:nth-child(4):hover {
    border-color: rgba(0, 206, 209, 0.6);
    box-shadow: 0 5px 15px rgba(0, 206, 209, 0.4);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .footer-logo,
    .footer-nav,
    .footer-social,
    .footer-bottom {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .footer-logo:hover .footer-logo-img {
        transform: none;
    }
    
    .footer-nav a:hover,
    .social-link:hover {
        transform: none;
    }
    
    .footer-tagline::before,
    .footer-tagline::after {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .footer {
        border-top-color: rgba(255, 255, 255, 0.3);
    }
    
    .footer-nav a {
        color: #ffffff;
    }
    
    .social-link {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .footer-tagline {
        color: #ffffff;
    }
    
    .footer-bottom {
        border-top-color: rgba(255, 255, 255, 0.3);
    }
}