@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Footer Styling */
footer {
    background: linear-gradient(135deg, #333333, #555555);
    color: #e0e0e0;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    transition: background 0.5s ease;
    font-family: 'Kanit', sans-serif;
    border-radius: 20px 20px 0 0;
}

footer.scrolled {
    background: linear-gradient(135deg, #555555, #777777);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
    animation: fadeIn 1.5s ease-in-out; 
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px #A67C52);
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* .footer-logo img:hover {
    transform: rotate(-10deg) scale(1.1);
    filter: drop-shadow(0 0 20px #A67C52);
} */

.footer-column {
    max-width: 300px;
    width: 100%;
    position: relative;
    animation: slideIn 1.5s ease-in-out;
}

.footer-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -15px;
    width: 2px;
    height: 100%;
    background: #A67C52;
    opacity: 0.5;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    background: linear-gradient(90deg, #A67C52, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
    animation: bounceIn 1.5s ease-in-out;
    background-clip: text;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Ensure there's no extra margin */
    display: flex;
    flex-direction: column;
    /* Stack the items vertically */
    gap: 5px;
    /* Add some spacing between items for better readability */
}

.footer-column ul li {
    margin-bottom: 0;
    /* Remove bottom margin if it’s causing misalignment */
    padding-left: 0;
    /* Make sure there's no left padding */
    line-height: 1.5;
    /* Adjust line height for better spacing */
    animation: fadeInUp 1.2s ease-in-out;
}

.footer-column ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-newsletter {
    max-width: 400px;
    width: 100%;
    background: #444;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: zoomIn 1.5s ease-in-out;
    
}

.footer-newsletter:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.footer-newsletter input[type="email"] {
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    width: calc(100% - 34px);
    font-size: 1em;
    font-family: 'Kanit', sans-serif;
}

.footer-newsletter button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #013D66, #0B6DA3);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-family: 'Kanit', sans-serif;
}

.footer-newsletter button:active {
    transform: scale(0.95);
    animation: clickEffect 0.2s;
}

.footer-newsletter button:hover {
    background: linear-gradient(135deg, #0B3A53, #0E4D75);
    transform: translateY(-5px) scale(1.05);
}

.footer-bottom {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    animation: fadeIn 1.5s ease-in-out;
}

.line-decor {
    height: 2px;
    width: 15%;
    background-color: #A67C52;
    animation: growLine 1.5s ease-in-out;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icons a {
    font-size: 1.8em;
    color: #e0e0e0;
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    animation: bounce 2s infinite;
}

.social-icons a:hover {
    transform: scale(1.3) rotate(5deg);
    color: #A67C52;
    /* box-shadow: 0 0 15px #A67C52; */
}

.footer-legal {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
    color: #b3b3b3;
    animation: fadeInUp 1.5s ease-in-out;
   
}

.footer-legal a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    text-decoration: underline;
    color: #FFFFFF;
}

.animated-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: color 0.3s ease;
}

.animated-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #A67C52;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.animated-link:hover {
    color: #FFFFFF;
}

.animated-link:hover::after {
    transform: translateX(0);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes growLine {
    0% {
        width: 0;
    }

    100% {
        width: 15%;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes clickEffect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .line-decor {
        width: 40%;
    }
}

@media screen and (max-width: 1024px) {
    .footer-newsletter {
        margin: auto;
    }
    
}