footer {
    background: linear-gradient(145deg, #2c3e50 0%, #1a252f 100%);
    color: #ecf0f1;
    padding: 30px 0 0;
    margin-top: auto;
    position: relative;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    /* mobile */
}

.footer-section {
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px);
}

.footer-heading {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c 0%, #3498db 100%);
    border-radius: 2px;
}

.footer-description {
    line-height: 1.8;
    opacity: 0.9;
    max-width: 320px;
    font-size: 0.95rem;
    color: #bdc3c7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.02);
}

.footer-link:hover {
    color: #fff;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.15) 0%, rgba(231, 76, 60, 0.15) 100%);
    transform: translateX(10px);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
}

.footer-link::before {
    content: '→';
    color: #3498db;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
}

.footer-bottom {
    margin-top: 10px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    /* mobile */
    clear: both;
    width: 100%;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c 0%, #3498db 100%);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
    color: #bdc3c7;
}

/* Contact Section Enhancements */
.contact-heading {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    padding-left: 0;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(8px);
}

.icon-wrapper {
    background: linear-gradient(45deg, #3498db 0%, #e74c3c 100%);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.contact-icon {
    color: #fff;
    font-size: 1.4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-detail {
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #ecf0f1 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.contact-detail:hover {
    color: #e74c3c !important;
    text-decoration: none !important;
}

/* Style for map link */
.contact-detail[href] {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-detail[href]:hover {
    color: #e74c3c;
    transform: translateX(5px);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, #3498db 0%, #e74c3c 100%);
    transform: translateY(-3px);
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.footer-section:nth-child(1) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.4s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.6s;
}

/* Mobile optimization styles */
@media screen and (max-width: 768px) {
    footer {
        padding: 3rem 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        /* mobile */
        display: flex;
        flex-direction: column;
    }

    .footer-section {
        padding: 1rem 0.5rem;
        text-align: center;
        /* mobile */
        margin-bottom: 20px;
    }

    .footer-section:hover {
        transform: translateY(-3px);
    }

    .footer-description {
        margin: 0 auto;
        font-size: 0.9rem;
    }

    .footer-heading {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer-links li {
        width: 100%;
    }

    .footer-link {
        justify-content: center;
        margin: 0.3rem 0;
        padding: 0.6rem 0.8rem;
    }

    .footer-link:hover {
        transform: translateX(5px);
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
        margin-bottom: 0.8rem;
        /* mobile */
        justify-content: flex-start;
    }

    .icon-wrapper {
        padding: 10px;
        margin-right: 0;
        /* mobile */
        flex-shrink: 0;
    }

    .contact-icon {
        font-size: 1.2rem;
    }

    .contact-info {
        text-align: left;
        /* mobile */
        flex: 1;
        overflow: hidden;
    }

    .contact-label {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .contact-detail {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding: 10px 0;
        /* mobile */
        position: relative;
        clear: both;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    /* mobile */
    .footer-contact {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* For very small screens */
@media screen and (max-width: 480px) {
    .footer-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .footer-section {
        padding: 0.8rem 0.3rem;
        /* mobile */
        margin-bottom: 15px;
    }

    .contact-item {
        padding: 0.8rem;
        /* mobile */
        flex-direction: row;
        align-items: flex-start;
    }

    .icon-wrapper {
        padding: 8px;
    }

    .contact-icon {
        font-size: 1rem;
    }

    /* mobile */
    .footer-section:last-child {
        margin-bottom: 20px;
    }
}
