/* Professional 3D Footer Animations */

/* Footer Container with 3D Background */
.footer {
    position: relative;
    overflow: hidden;
}

/* Animated Wave Divider at Top of Footer */
.footer-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
}

.footer-wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-wave-top .shape-fill {
    fill: rgba(225, 6, 0, 0.1);
    animation: waveFlow 8s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(-25px) scaleY(1.1);
    }
}

/* Floating Background Shapes */
.footer-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.footer-shape {
    position: absolute;
    opacity: 0.08;
    transform-style: preserve-3d;
    animation-timing-function: ease-in-out;
}

/* Large Background Circles */
.footer-circle-1 {
    width: 300px;
    height: 300px;
    border: 3px solid #E10600;
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: rotateCircle 20s linear infinite;
}

.footer-circle-2 {
    width: 250px;
    height: 250px;
    border: 3px solid #E10600;
    border-radius: 50%;
    bottom: -80px;
    right: -80px;
    animation: rotateCircle 25s linear infinite reverse;
}

.footer-circle-3 {
    width: 200px;
    height: 200px;
    border: 2px solid #E10600;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseCircle 15s ease-in-out infinite;
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseCircle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.05;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Geometric Shapes Floating */
.footer-shape-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), rgba(225, 6, 0, 0.05));
    border-radius: 15px;
    top: 20%;
    right: 10%;
    animation: floatBox 12s ease-in-out infinite;
    transform: rotateX(45deg) rotateZ(45deg);
}

.footer-shape-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(225, 6, 0, 0.08);
    top: 60%;
    left: 15%;
    animation: floatTriangle 14s ease-in-out infinite;
}

.footer-shape-diamond {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), transparent);
    transform: rotate(45deg);
    bottom: 30%;
    left: 20%;
    animation: spinDiamond 16s linear infinite;
}

@keyframes floatBox {
    0%, 100% {
        transform: translateY(0) rotateX(45deg) rotateZ(45deg);
    }
    50% {
        transform: translateY(-30px) rotateX(225deg) rotateZ(225deg);
    }
}

@keyframes floatTriangle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
}

@keyframes spinDiamond {
    0% {
        transform: rotate(45deg) scale(1);
    }
    50% {
        transform: rotate(225deg) scale(1.2);
    }
    100% {
        transform: rotate(405deg) scale(1);
    }
}

/* Floating Particles in Footer */
.footer-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.footer-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #E10600;
    border-radius: 50%;
    opacity: 0;
    animation: particleRise 6s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.6);
}

.footer-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.footer-particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.footer-particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.footer-particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.footer-particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.footer-particle:nth-child(6) { left: 60%; animation-delay: 0.5s; }
.footer-particle:nth-child(7) { left: 70%; animation-delay: 1.5s; }
.footer-particle:nth-child(8) { left: 80%; animation-delay: 2.5s; }
.footer-particle:nth-child(9) { left: 90%; animation-delay: 3.5s; }
.footer-particle:nth-child(10) { left: 15%; animation-delay: 4.5s; }

@keyframes particleRise {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0);
    }
    25% {
        opacity: 1;
        transform: translateY(50px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Animated Grid Pattern */
.footer-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(225, 6, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 6, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Footer Content - Ensure above animations */
.footer .container {
    position: relative;
    z-index: 2;
}

/* Animated Footer Brand Logo */
.footer-brand {
    position: relative;
    display: inline-block;
    animation: brandFloat 4s ease-in-out infinite;
}

@keyframes brandFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) rotateY(5deg);
    }
}

.footer-brand::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #E10600, transparent);
    animation: underlineGlow 3s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes underlineGlow {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(225, 6, 0, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(225, 6, 0, 0.8);
    }
}

/* Animated Footer Links */
.footer-links li {
    position: relative;
    transition: all 0.3s ease;
}

.footer-links li::before {
    content: '▸';
    position: absolute;
    left: -20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #E10600;
}

.footer-links li:hover {
    transform: translateX(10px);
}

.footer-links li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* 3D Social Icons Animation */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.2), rgba(225, 6, 0, 0.1));
    border: 2px solid rgba(225, 6, 0, 0.3);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.social-link:hover {
    transform: perspective(1000px) rotateX(-10deg) rotateY(10deg) translateY(-5px);
    background: linear-gradient(135deg, #E10600, #FF4444);
    border-color: #E10600;
    box-shadow: 0 15px 30px rgba(225, 6, 0, 0.4);
}

.social-link i {
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.social-link:hover i {
    transform: scale(1.2) rotateZ(360deg);
}

/* Animated pulse effect for social icons */
.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(225, 6, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s ease;
}

.social-link:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

/* Animated Footer Divider */
.footer-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E10600, transparent);
    background-size: 200% 100%;
    animation: dividerFlow 3s ease-in-out infinite;
    margin: 2rem 0;
    position: relative;
    overflow: visible;
}

@keyframes dividerFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.footer-divider::before,
.footer-divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #E10600;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.8);
}

.footer-divider::before {
    left: 0;
}

.footer-divider::after {
    right: 0;
    animation-delay: 1s;
}

/* Copyright Text Animation */
.footer-copyright {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-wave-top {
        height: 60px;
    }
    
    .footer-wave-top svg {
        height: 60px;
    }
    
    .footer-circle-1,
    .footer-circle-2,
    .footer-circle-3 {
        width: 150px;
        height: 150px;
    }
    
    .footer-shape-box {
        width: 50px;
        height: 50px;
    }
    
    .footer-shape-triangle {
        border-left-width: 25px;
        border-right-width: 25px;
        border-bottom-width: 45px;
    }
    
    .footer-shape-diamond {
        width: 40px;
        height: 40px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    .footer-particle {
        width: 2px;
        height: 2px;
    }
    
    .footer-grid-pattern {
        background-size: 30px 30px;
    }
}

@media (max-width: 480px) {
    .footer-wave-top {
        height: 40px;
    }
    
    .footer-wave-top svg {
        height: 40px;
    }
    
    .footer-circle-1,
    .footer-circle-2 {
        display: none;
    }
    
    .footer-circle-3 {
        width: 100px;
        height: 100px;
    }
    
    .footer-shape-box,
    .footer-shape-triangle,
    .footer-shape-diamond {
        opacity: 0.04;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 0.9rem;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .footer-wave-top svg,
    .footer-shape,
    .footer-particle,
    .footer-brand,
    .footer-divider,
    .social-link,
    .footer-grid-pattern {
        animation: none !important;
        transition: none !important;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* Performance Optimization */
.footer-bg-shapes,
.footer-particles,
.footer-grid-pattern {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.footer-shape,
.footer-particle,
.social-link {
    will-change: transform, opacity;
    transform: translateZ(0);
}

































