/* ========================================
   ENHANCED FOOTER PREMIUM STYLING
   Modern, Professional, and Visually Stunning
   ======================================== */

/* Footer Top Border Animation */
.footer-top-border {
    height: 4px;
    background: linear-gradient(90deg,
            #B92C32 0%,
            #d4af37 20%,
            #B92C32 40%,
            #d4af37 60%,
            #B92C32 80%,
            #d4af37 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Footer Background */
.footer-premium {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    /* Remove excess top margin */
}

/* Wave Background Effect */
.footer-wave-bg {
    position: relative;
    background:
        radial-gradient(circle at 20% 50%, rgba(185, 44, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    padding: 60px 0 30px;
    /* Reduced top/bottom padding */
}

.footer-wave-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.5) 50%,
            transparent 100%);
}

/* Enhanced Footer Content Layout */
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    /* Adjusted grid: About (1.5fr), Links (0.8fr), Programs (1fr), Contact (1.2fr) */
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 40px;
    /* Reduced gap */
    position: relative;
    z-index: 2;
    padding: 0 20px;
    /* Ensure content doesn't touch screen edges on small screens */
}

/* Footer Logo Section */
.footer-logo-section {
    margin-bottom: 30px;
    text-align: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-college-name {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-tagline {
    color: #d4af37;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 20px 0;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.footer-description {
    margin-bottom: 30px;
}

.footer-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Enhanced Social Media Section */
.footer-social h5 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* Enhanced Section Titles */
.footer-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
}

.footer-section-title i {
    color: #d4af37;
    font-size: 1.2rem;
}

.footer-section-title h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #B92C32);
    border-radius: 1px;
}

/* Enhanced Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 4px 0;
    border-radius: 4px;
}

.footer-links a i {
    color: #d4af37;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
    transform: translateX(5px);
    background: rgba(212, 175, 55, 0.1);
    padding-left: 8px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Enhanced Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Reduced gap */
}

.contact-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    /* Reduced padding */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    align-items: center;
    /* Center align vertically */
}

.contact-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    /* Reduced size */
    height: 36px;
    background: linear-gradient(135deg, #B92C32, #d4af37);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.9rem;
    /* Slightly smaller icon */
    flex-shrink: 0;
}

.contact-details h5 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    font-family: 'Poppins', sans-serif;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.contact-details a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ffffff;
}

/* Enhanced Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    position: relative;
}

.footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    line-height: 1.5;
}

.footer-tag {
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.85rem;
    font-style: italic;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #d4af37;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Enhanced Back to Top FAB */
.fab.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #B92C32, #d4af37);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(185, 44, 50, 0.3);
    border: none;
    font-size: 1.2rem;
}

.fab.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(185, 44, 50, 0.5);
}

.fab.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 20px;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        /* 2 columns tablet layout */
        gap: 30px;
        padding: 0 20px;
    }

    .footer-wave-bg {
        padding: 50px 0 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        /* Stacked layout for mobile */
        gap: 30px;
        padding: 0 20px;
    }

    .footer-wave-bg {
        padding: 40px 0 20px;
    }

    .footer-logo {
        height: 50px;
    }

    .footer-college-name {
        font-size: 1.3rem;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .fab.back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-premium {
        margin-top: 60px;
    }

    .footer-wave-bg {
        padding: 30px 0 15px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .fab.back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Footer Animation on Scroll */
.footer-premium {
    opacity: 0;
    transform: translateY(50px);
    animation: footerFadeIn 1s ease forwards;
}

@keyframes footerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects for Footer Columns */
.footer-column {
    transition: transform 0.3s ease;
}

.footer-column:hover {
    transform: translateY(-5px);
}