/**
 * Crazy Style Footer CSS
 * Modern, animated footer with creative design
 */

/* Footer Main Container */
.crazy-footer {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    overflow: hidden;
}

/* Animated Background */
.footer-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), rgba(249, 25, 66, 0.3));
    animation: float-around 20s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 35s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 30%;
    animation-delay: -15s;
    animation-duration: 20s;
    animation-direction: reverse;
}

.shape-5 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 10%;
    animation-delay: -20s;
    animation-duration: 40s;
}

@keyframes float-around {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(100px) translateY(-50px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateX(200px) translateY(0) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateX(100px) translateY(50px) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translateX(0) translateY(0) rotate(360deg);
        opacity: 0.3;
    }
}

/* Main Footer Content */
.footer-main {
    position: relative;
    z-index: 2;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    color: white;
}

/* Brand Section */
.footer-brand {
    animation: slideInLeft 1s ease-out;
}

.brand-logo {
    margin-bottom: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(45deg, white, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 30px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--social-color);
    transform: translateY(-5px) rotate(360deg) scale(1.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-link i {
    font-size: 1.2rem;
}

/* Footer Sections */
.footer-section {
    animation: slideInUp 1s ease-out;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 100%;
}

/* Newsletter Section */
.footer-newsletter {
    animation: slideInRight 1s ease-out;
}

.newsletter-text {
    color: #cbd5e1;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.newsletter-form {
    margin-bottom: 30px;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-btn {
    background: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: #d5163a;
    transform: scale(1.1);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.bottom-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-link:hover {
    color: white;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(249, 25, 66, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #d5163a;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(249, 25, 66, 0.6);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        border-radius: 15px;
    }
    
    .newsletter-btn {
        width: 100%;
        height: 45px;
        border-radius: 10px;
    }
}