/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2d5016, #1a2f0c);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a7c59, #6b9b7a, #a8d5ba);
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
    max-width: 300px;
}

.footer h5 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4a7c59, #6b9b7a);
    border-radius: 1px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #a8d5ba;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #a8d5ba;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: #a8d5ba;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.footer-social a:hover {
    background: #a8d5ba;
    color: #2d5016;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(168, 213, 186, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Decorative Elements */
.footer::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 213, 186, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer .container::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(107, 155, 122, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Animation for footer elements */
.footer .row > div {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.footer .row > div:nth-child(1) { animation-delay: 0.1s; }
.footer .row > div:nth-child(2) { animation-delay: 0.2s; }
.footer .row > div:nth-child(3) { animation-delay: 0.3s; }
.footer .row > div:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer h5 {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-contact p {
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer .row > div {
        margin-bottom: 30px;
    }
    
    .footer-brand {
        margin-bottom: 30px;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-contact p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, #1a2f0c, #0f1a06);
    }
}

/* Print styles */
@media print {
    .footer {
        background: #2d5016 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .footer-social,
    .footer::before,
    .footer::after,
    .footer .container::before {
        display: none !important;
    }
}
