.footer {
    margin-top: auto;
    background: linear-gradient(to bottom, var(--background), rgba(3, 3, 3, 0.98));
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.2;
}

.footer-section {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    position: relative;
    padding: 1rem;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent,
        rgba(110, 49, 255, 0.1),
        transparent
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section:hover::before {
    opacity: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(110, 49, 255, 0.3));
}

.footer-logo:hover img {
    transform: scale(1.1) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(110, 49, 255, 0.5));
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100%;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 8px 0;
    width: fit-content;
}

.footer-links a:hover {
    padding-left: 10px;
    color: var(--primary);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    perspective: 1000px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px) translateZ(20px) rotateY(15deg);
    box-shadow: 
        5px 5px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 15px rgba(110, 49, 255, 0.2);
}

.footer-bottom {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom animation for social icons */
@keyframes socialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 49, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(110, 49, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 49, 255, 0);
    }
}

.social-link:active {
    animation: socialPulse 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}