/* Creative Animated Footer Styles */

.creative-footer {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: white;
    margin-top: 80px;
    overflow: hidden;
    padding: 0;
}

/* Animated Wave Background */
.footer-waves {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(247, 245, 243, 0.1) 0%,
        rgba(247, 245, 243, 0.3) 50%,
        rgba(247, 245, 243, 0.1) 100%);
    border-radius: 0 0 50% 50%;
    animation: wave-animation 8s ease-in-out infinite;
}

.wave1 {
    animation-delay: 0s;
    opacity: 0.7;
}

.wave2 {
    animation-delay: -2s;
    opacity: 0.5;
    transform: translateX(-25%);
}

.wave3 {
    animation-delay: -4s;
    opacity: 0.3;
    transform: translateX(-50%);
}

@keyframes wave-animation {
    0%, 100% {
        transform: translateX(-50%) translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(-10px) rotate(1deg);
    }
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out;
}

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

.footer-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #f7f5f3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #e74c3c);
    border-radius: 2px;
    animation: shimmer 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { opacity: 0.7; transform: scaleX(1); }
    100% { opacity: 1; transform: scaleX(1.2); }
}

.footer-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    position: relative;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    transform: translateX(-10px);
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3498db, #e74c3c);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

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

/* Newsletter */
.footer-newsletter {
    display: flex;
    margin-top: 1rem;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    position: relative;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Floating Elements Animation */
.footer-floating-elements {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 24px;
    animation: float-elements 6s ease-in-out infinite;
    opacity: 0.6;
}

.element-1 {
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    left: 30%;
    animation-delay: 1.5s;
}

.element-3 {
    left: 60%;
    animation-delay: 3s;
}

.element-4 {
    left: 80%;
    animation-delay: 4.5s;
}

@keyframes float-elements {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        padding: 60px 0 30px;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-newsletter {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter-input,
    .newsletter-btn {
        border-radius: 0;
    }
    
    .newsletter-btn {
        border-radius: 0 0 15px 15px;
    }
    
    .newsletter-input {
        border-radius: 15px 15px 0 0;
    }
}

/* Hover effects for entire footer sections */
.footer-section:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Glowing border effect */
.creative-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(52, 152, 219, 0.5),
        rgba(231, 76, 60, 0.5),
        rgba(155, 89, 182, 0.5),
        transparent
    );
    animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
