:root {
    --primary-dark: #59382C;
    --primary: #D3AE98;
    --footer-bg: #1f1f1f;
    --footer-text: #e0e0e0;
    --footer-link: #bbbbbb;
    --gradient: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

footer::before,
footer::after {
    content: "";
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--gradient);
    background-size: 400% 100%;
    animation: gradientRun 8s linear infinite;
    left: 0;
}

footer::before {
    top: 0;
}

footer::after {
    bottom: 0;
}

@keyframes gradientRun {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: auto;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 220px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 40%;
    background: var(--primary-dark);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--footer-text);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-col:nth-child(3) .footer-links {
    margin-bottom: 0;
    padding-bottom: 0;
}


.footer-links li a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: var(--primary-dark);
}

.footer-contact li i {
    margin-right: 8px;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
    font-size: 18px;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--primary-dark);
    transform: scale(1.15);
}

.social-links a:active {
    transform: scale(1.1);
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}

.copyright i {
    color: #ff5555;
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 768px) {

    footer {
        padding: 40px 15px 20px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-col h3 {
        font-size: 1.2rem;
        padding-bottom: 3px;
    }

    .footer-col {
        min-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col h3::after {
        display: none;
        /* Hide the underline on small screens */
    }
}