/* Main Footer Styling */
.main-footer {
    background: linear-gradient(-45deg, var(--color-white), var(--color-bg-mint-gradient-end), var(--bg-emerald-05), var(--color-white));
    background-size: 400% 400%;
    animation: footerGradient 15s ease infinite;
    padding: 100px 0 40px;
    border-top: 1px solid var(--shadow-emerald-10);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Keyframes for smooth background flow */
@keyframes footerGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating animation for decorative shapes */
@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Decorative background elements */
.main-footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--bg-emerald-08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatShape 25s ease-in-out infinite;
    filter: blur(40px);
}

.main-footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--bg-emerald-dark-06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatShape 30s ease-in-out infinite reverse;
    filter: blur(40px);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

/* Logo Column */
.footer-logo-col {
    flex: 0 0 280px;
}

.footer-logo-img {
    width: 180px;
    margin-bottom: 35px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.footer-logo-img:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 10px 15px var(--shadow-emerald-20));
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--color-white);
    color: var(--color-gray-600);
    border: 1px solid var(--color-border-gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navbar-primary-green);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    transform: scale(0.9);
    border-radius: 12px;
}

.footer-social-link:hover {
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px var(--shadow-emerald-40);
}

.footer-social-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.footer-social-link:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Links Columns */
.footer-links-col {
    flex: 1;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-size: 22px;
    /* Large Title */
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.3px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 24px;
    height: 3px;
    background: var(--color-emerald-500);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-col:hover .footer-col-title::after {
    width: 100%;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list-item {
    margin-bottom: 16px;
    position: relative;
}

.footer-link {
    color: var(--color-gray-800);
    text-decoration: none;
    font-size: 18px;
    /* Large Text */
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: var(--color-emerald-500);
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-link:hover {
    color: var(--color-emerald-500);
    padding-left: 24px;
    text-shadow: 0 0 1px var(--shadow-emerald-10);
}

.footer-link:hover::before {
    left: 0;
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--shadow-black-06);
    text-align: center;
    color: var(--color-gray-500);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Special styling for Countries Grid */
.footer-countries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.footer-countries-grid .footer-list-item {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-links-grid {
        gap: 20px;
    }
}

@media (max-width: 991.98px) {
    .main-footer {
        padding: 80px 0 30px;
    }

    .footer-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 40px;
    }

    .footer-logo-col {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 60px;
        text-align: center;
    }

    .footer-links-col {
        width: 100%;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        margin-bottom: 0;
    }

    .footer-logo-img {
        margin: 0 auto 25px;
        width: 160px;
    }

    .footer-social-links {
        justify-content: center;
        gap: 12px;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
    }

    .footer-col-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer-link {
        font-size: 16px;
        justify-content: flex-start;
    }

    .footer-link::before {
        display: none;
    }

    .footer-link:hover {
        padding-left: 0;
    }

    .footer-countries-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
        justify-items: start;
    }

    .footer-countries-grid .footer-link {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .main-footer {
        padding: 60px 0 20px;
    }

    .footer-row {
        gap: 0;
        margin-bottom: 30px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .footer-col {
        text-align: left;
    }

    .footer-col-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-col-title::after {
        left: 0;
        transform: none;
    }

    .footer-list-item {
        margin-bottom: 12px;
    }

    .footer-link {
        font-size: 14px;
    }

    .footer-logo-col {
        margin-top: 50px;
    }

    .footer-logo-img {
        width: 140px;
        margin-bottom: 20px;
    }

    .footer-social-link {
        width: 36px;
        height: 36px;
    }

    .footer-social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 30px;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .footer-links-grid {
        gap: 25px 15px;
    }

    .footer-col-title {
        font-size: 15px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-logo-img {
        width: 120px;
    }
}

/* Wave Animation in Footer */
.ocean {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--navbar-primary-green);
    z-index: 0;
}

.wave {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x;
    position: absolute;
    top: -198px;
    width: 6400px;
    height: 198px;
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    transform: translate3d(0, 0, 0);
    opacity: .07;
}

.wave:nth-of-type(2) {
    top: -175px;
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite, swell 7s ease -1.25s infinite;
    opacity: .07;
}

@keyframes wave {
    0% {
        margin-left: 0;
    }

    100% {
        margin-left: -1600px;
    }
}

@keyframes swell {

    0%,
    100% {
        transform: translate3d(0, -25px, 0);
    }

    50% {
        transform: translate3d(0, 5px, 0);
    }
}

/* Ensure footer content is above waves */
.footer-container {
    position: relative;
    z-index: 2;
}

.main-footer {
    position: relative;
    overflow: hidden;
}