/* Modern Footer Styles */

.footer {
    background: linear-gradient(135deg, #000000, #2c3e50);
    color: #fff;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #a18cd1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}


/* Footer Columns */

.footer-column {
    flex: 1;
    min-width: 220px;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecdc4;
    transition: width 0.3s ease;
}

.footer-column:hover h3::after {
    width: 80px;
}


/* Logo and About */

.footer-about {
    padding-right: 1.5rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.footer-about p {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}


/* Quick Links */

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 15px;
}

.quick-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    opacity: 0;
}

.quick-links li:hover::before {
    opacity: 1;
    transform: translateX(5px);
}

.quick-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-size: 0.95rem;
}

.quick-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #4ecdc4;
    transition: width 0.3s ease;
}

.quick-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.quick-links a:hover::after {
    width: 100%;
}


/* Contact Info */

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: #4ecdc4;
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 3px;
    min-width: 20px;
    text-align: center;
}

.contact-info a,
.contact-info span {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.contact-info a:hover {
    color: #4ecdc4;
}


/* Courses List */

.courses-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.courses-list li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.courses-list a {
    display: block;
    padding: 6px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.courses-list li:hover {
    background: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Social Icons */

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #4ecdc4;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Bottom Bar */

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.copyright a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #4ecdc4;
}

.credits {
    color: #b0b0b0;
    font-size: 0.85rem;
}

.credits a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.credits a:hover {
    color: #fff;
    text-decoration: underline;
}


/* Back to Top Button */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4ecdc4;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #3dbeb5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* Responsive Styles */

@media (max-width: 991px) {
    .footer-content {
        gap: 2.5rem;
    }
    .footer-column {
        flex: 0 0 calc(50% - 1.25rem);
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 3rem 0 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    .footer-column {
        flex: 0 0 100%;
        padding: 0;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}


/* Animation Keyframes */

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


/* Add animation to footer columns */

.footer-column {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.4s;
}