/* Footer with Solid Design */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add decorative top border with pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,
        var(--primary-color) 0%,
        var(--secondary-color) 33%,
        var(--accent-color) 66%,
        var(--primary-color) 100%);
}

/* Add a decorative wave pattern */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 10%),
        radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 10%),
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.015) 0%, transparent 15%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 12%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

footer p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

/* Add decorative quotes to copyright text */
footer p::before,
footer p::after {
    content: '•';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--accent-color);
    opacity: 0.5;
}

footer p::before {
    left: -5px;
}

footer p::after {
    right: -5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.8rem 0;
    position: relative;
}

/* Add decorative divider */
.footer-links::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.footer-links::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.footer-links a {
    color: white;
    margin: 0 1.2rem 0.5rem;
    opacity: 0.75;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

/* Add solid box on hover */
.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transform: scale(0);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-light);
    transform: translateY(-3px);
}

.footer-links a:hover::before {
    transform: scale(1);
}

/* Staggered hover effect for footer links */
.footer-links a:nth-child(1):hover {
    transition-delay: 0s;
}

.footer-links a:nth-child(2):hover {
    transition-delay: 0.05s;
}

.footer-links a:nth-child(3):hover {
    transition-delay: 0.1s;
}

.footer .social-icons {
    margin-bottom: 1.8rem;
}

.footer .social-icons a {
    width: 45px;
    height: 45px;
    margin: 0 0.7rem;
    position: relative;
    overflow: visible;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* Create unique shapes for social icons */
.footer .social-icons a:nth-child(1) {
    border-radius: 50%;
}

.footer .social-icons a:nth-child(2) {
    border-radius: 10px;
}

.footer .social-icons a:nth-child(3) {
    border-radius: 5px;
    transform: rotate(45deg);
}

.footer .social-icons a:nth-child(3) i {
    transform: rotate(-45deg);
}

/* Add decorative border */
.footer .social-icons a::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer .social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(77, 109, 227, 0.25);
}

.footer .social-icons a:nth-child(3):hover {
    transform: translateY(-5px) scale(1.1) rotate(45deg);
}

.footer .social-icons a:hover::before {
    opacity: 1;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
}

/* Extra decorative elements */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

/* Create floating shapes at the bottom */
footer .container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 15%;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    animation: float 8s ease-in-out infinite;
}

footer .container::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 10%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    animation: float 6s ease-in-out infinite reverse;
}