/* Modern Footer Styles */
footer {
    background: #000000;
    color: #e8e8e8;
    padding: 0 0 0 0;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #00d4ff;
    margin: 0;
    
}

/* Animated background effect */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.03), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

footer .container {
    position: relative;
    z-index: 1;
}

/* Section Headings */
footer h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #00d4ff;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #00ffb3);
    transition: width 0.4s ease;
}

footer h5:hover::after {
    width: 100%;
}

/* Contact Section */
footer p {
    line-height: 1.9;
    color: #b8b8b8;
    font-size: 0.95rem;
}

footer p i {
    color: #00d4ff;
    transition: all 0.3s ease;
    display: inline-block;
}

footer p i:hover {
    transform: scale(1.2) rotate(5deg);
    color: #00ffb3;
}

/* Quick Links */
footer ul.list-unstyled {
    padding: 0;
}

footer ul.list-unstyled li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s forwards;
}

footer ul.list-unstyled li:nth-child(1) { animation-delay: 0.1s; }
footer ul.list-unstyled li:nth-child(2) { animation-delay: 0.2s; }
footer ul.list-unstyled li:nth-child(3) { animation-delay: 0.3s; }
footer ul.list-unstyled li:nth-child(4) { animation-delay: 0.4s; }
footer ul.list-unstyled li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

footer ul.list-unstyled li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00d4ff;
    transition: all 0.3s ease;
}

footer ul.list-unstyled li:hover::before {
    left: 5px;
    color: #00ffb3;
}

footer ul.list-unstyled li a {
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

footer ul.list-unstyled li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00ffb3);
    transition: width 0.3s ease;
}

footer ul.list-unstyled li a:hover {
    color: #00d4ff;
    padding-left: 8px;
}

footer ul.list-unstyled li a:hover::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #00ffb3);
    transform: scale(0);
    transition: transform 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-8px) rotate(360deg);
    border-color: #00d4ff;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
    color: #1a1a2e;
}

.social-icons a:hover::before {
    transform: scale(1);
}

/* Copyright Section */
.text-center.mt-3 {
    margin-top: 50px !important;
    padding: 25px 0;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    background: #000000;
    margin-bottom: 0 !important;
}

/* Ensure no space below footer */
body {
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
}

.text-center.mt-3 p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00d4ff, #00ffb3);
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#backToTop:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
    animation: none;
}

#backToTop.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 0 0;
    }

    footer h5 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    footer .col-md-4 {
        margin-bottom: 35px;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 30px 0 0 0;
    }

    footer p {
        font-size: 0.9rem;
    }

    .text-center.mt-3 {
        margin-top: 30px !important;
        padding: 20px 0;
    }
}

/* Fade-in animation on scroll */
footer.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

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