/* Enhanced Footer Styles with Black Background, Motorbike SVGs, and Terrain */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Enhanced Footer Container */
.footer {
    background: #000000;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

/* Terrain Background Elements */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(251, 175, 50, 0.05) 30%,
        rgba(113, 154, 10, 0.05) 70%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: -2;
}

/* Terrain SVG Background */
.footer::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23fbaf32' fill-opacity='0.1'/%3E%3C/svg%3E") no-repeat center top;
    background-size: cover;
    z-index: -1;
    animation: terrainWave 20s ease-in-out infinite;
}

/* Motorbike SVG Elements */
.footer-motorbike {
    position: absolute;
    z-index: 0;
    opacity: 0.03;
    pointer-events: none;
}

.footer-motorbike-1 {
    top: 10%;
    right: 5%;
    width: 200px;
    height: 120px;
    animation: bikeFloat 15s ease-in-out infinite;
}

.footer-motorbike-2 {
    bottom: 20%;
    left: 3%;
    width: 150px;
    height: 90px;
    animation: bikeFloat 20s ease-in-out infinite reverse;
}

.footer-motorbike-3 {
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 180px;
    animation: centerBike 25s ease-in-out infinite;
}

/* Dust Particles Animation */
.footer-dust {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.dust-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(251, 175, 50, 0.4);
    border-radius: 50%;
    animation: dustFloat 8s ease-in-out infinite;
}

.dust-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.dust-particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 10s; }
.dust-particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 7s; }
.dust-particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 9s; }
.dust-particle:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 11s; }
.dust-particle:nth-child(6) { left: 60%; animation-delay: 3s; animation-duration: 8s; }
.dust-particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 10s; }
.dust-particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 9s; }
.dust-particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 12s; }

/* Enhanced Footer Content */
.footer > .container {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem 0;
}

/* Footer Newsletter Section */
.footer-newsletter {
    position: relative;
    z-index: 2;
}

.footer-newsletter h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fbaf32;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInLeft 1s ease-out;
}

.footer-newsletter h2 img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(251, 175, 50, 0.3);
    transition: all 0.3s ease;
}

.footer-newsletter h2:hover img {
    transform: rotate(360deg) scale(1.1);
}

.footer-newsletter p,
.footer-newsletter div {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Footer Contact Section */
.footer-contact {
    position: relative;
    z-index: 2;
}

.footer-contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fbaf32;
    margin-bottom: 1.5rem;
    position: relative;
    animation: slideInRight 1s ease-out;
}

.footer-contact h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #fbaf32, #719a0a);
    border-radius: 2px;
}

.footer-contact p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    animation: fadeInUp 1s ease-out both;
}

.footer-contact p:hover {
    background: rgba(251, 175, 50, 0.1);
    transform: translateX(10px);
    color: #fbaf32;
}

.footer-contact p i {
    color: #fbaf32;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-contact p:hover i {
    transform: scale(1.2) rotate(15deg);
}

/* Enhanced Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    animation: socialSlide 1s ease-out 0.6s both;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #fbaf32, #719a0a);
    color: #000000;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(251, 175, 50, 0.3);
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(251, 175, 50, 0.5);
}

.footer-social a:hover::before {
    left: 100%;
}

.footer-social a:nth-child(1) { animation-delay: 0.7s; }
.footer-social a:nth-child(2) { animation-delay: 0.8s; }
.footer-social a:nth-child(3) { animation-delay: 0.9s; }

/* Facebook Plugin Styling */
.fb-page {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 1s ease-out 0.4s both;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 175, 50, 0.2);
}

/* Copyright Section */
.copyright {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(251, 175, 50, 0.3);
    padding: 1.5rem 0;
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fbaf32, transparent);
}

.copyright p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
}

.copyright a {
    color: #fbaf32;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #719a0a;
    text-decoration: underline;
}

/* Keyframe Animations */
@keyframes terrainWave {
    0%, 100% {
        transform: translateX(-50px);
    }
    50% {
        transform: translateX(50px);
    }
}

@keyframes bikeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.03;
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.08;
    }
}

@keyframes centerBike {
    0%, 100% {
        transform: translateX(-50%) scale(1) rotate(0deg);
        opacity: 0.02;
    }
    50% {
        transform: translateX(-50%) scale(1.1) rotate(2deg);
        opacity: 0.05;
    }
}

@keyframes dustFloat {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes socialSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .footer-motorbike-1 {
        width: 180px;
        height: 108px;
    }
    
    .footer-motorbike-3 {
        width: 250px;
        height: 150px;
    }
}

@media (max-width: 991.98px) {
    .footer > .container {
        padding: 3rem 0 2rem 0;
    }
    
    .footer-newsletter h2 {
        font-size: 1.6rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-contact h2 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .footer-contact h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-motorbike-1,
    .footer-motorbike-2 {
        display: none;
    }
    
    .footer-motorbike-3 {
        width: 200px;
        height: 120px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .footer > .container {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .footer-newsletter h2 {
        font-size: 1.4rem;
    }
    
    .footer-contact h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .footer-contact p {
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-motorbike-3 {
        width: 150px;
        height: 90px;
        top: 60%;
    }
    
    .fb-page {
        padding: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .footer-newsletter h2 {
        font-size: 1.2rem;
    }
    
    .footer-contact h2 {
        font-size: 1.1rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .copyright p {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

/* Intersection Observer Animation Classes */
.footer-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.footer-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects for Interactive Elements */
.footer-newsletter:hover .footer-motorbike-3 {
    animation-duration: 10s;
    opacity: 0.08;
}

/* Performance Optimizations */
.footer-motorbike,
.dust-particle {
    will-change: transform, opacity;
}

/* Print Styles */
@media print {
    .footer::before,
    .footer::after,
    .footer-motorbike,
    .footer-dust {
        display: none !important;
    }
    
    .footer {
        background: #000000 !important;
        color: #ffffff !important;
    }
}