/* Footer Styles */

/* Modern Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9b0013, #e74c3c, #9b0013);
    z-index: 1;
}

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

/* Footer Logo */
footer .navbar-brand,
footer a.h2 {
    transition: var(--transition);
    display: inline-block;
}

footer .navbar-brand:hover,
footer a.h2:hover {
    transform: scale(1.05);
}

footer img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.footer-logo-img {
    max-width: 80px;
    height: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.footer-logo h5 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer Links */
footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-light);
    text-decoration: none;
    transform: translateY(-2px);
}

.link-light {
    color: var(--text-light) !important;
    font-weight: 500;
}

.link-light:hover {
    color: var(--accent-light) !important;
}

.link-info {
    color: #17a2b8;
    transition: var(--transition);
}

.link-info:hover {
    color: var(--accent-light);
    transform: scale(1.1);
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-links a:hover {
    color: #e74c3c;
    text-decoration: none;
}

/* Enhanced Social Media Icons */
.d-inline-flex a {
    padding: 0.75rem;
    margin: 0 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.d-inline-flex a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.d-inline-flex a:hover {
    background: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(155, 0, 19, 0.3);
    border-color: var(--primary-color);
}

.d-inline-flex a:hover::before {
    opacity: 1;
}

.d-inline-flex svg {
    transition: var(--transition);
}

.d-inline-flex a:hover svg {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #b8c5d1;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #9b0013, #e74c3c);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(155, 0, 19, 0.3);
}

.social-link i {
    font-size: 1rem;
}

/* Footer Text Content */
footer p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

footer .mb-4 a {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Premium HR styling */
footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

footer hr::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Copyright Section */
footer .text-center p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

/* Footer Contact Info Animation */
footer .mb-4 {
    position: relative;
}

footer .mb-4::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
    opacity: 0;
    transition: var(--transition);
}

footer .mb-4:hover::before {
    opacity: 1;
}

.contact-info {
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    color: #e74c3c;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.contact-item a {
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: #e74c3c;
    text-decoration: none;
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    footer img {
        width: 80% !important;
    }
    
    .d-inline-flex a {
        padding: 0.5rem;
        margin: 0 0.25rem;
    }
    
    footer p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    footer .mb-4 {
        text-align: center;
        margin-bottom: 2rem !important;
    }
    
    footer .row > div {
        text-align: center;
    }

    .footer-logo {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-logo-img {
        max-width: 70px;
    }
    
    footer h6 {
        text-align: center;
        margin-top: 2rem;
    }
    
    footer h6::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 3rem 0 2rem;
    }
    
    footer img {
        width: 70% !important;
    }
    
    .d-inline-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .d-inline-flex a {
        padding: 0.4rem;
        margin: 0.2rem;
    }
    
    footer hr {
        margin: 2rem 0 1rem;
    }
    
    footer .text-center p {
        font-size: 0.85rem;
    }

    .footer-logo h5 {
        font-size: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

footer h6 {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #9b0013, #e74c3c);
}

footer .small {
    color: #8a9ba8;
    line-height: 1.5;
}

footer .small strong {
    color: #e74c3c;
    font-weight: 600;
}

/* Mobile-First Footer Design */
@media (max-width: 767px) {
    footer {
        text-align: center;
        padding: 3rem 0 2rem;
    }
    
    .footer-logo {
        margin-bottom: 2.5rem;
    }
    
    .footer-logo-img {
        max-width: 70px;
        margin-bottom: 1rem;
    }
    
    .footer-logo h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer h6 {
        text-align: center;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }
    
    footer h6::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links,
    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-links li {
        margin-bottom: 1rem;
    }
    
    .footer-links a {
        display: inline-block;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
        min-width: 120px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        background: rgba(231, 76, 60, 0.2);
        transform: translateY(-2px);
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        margin-bottom: 2rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        flex-direction: column;
    }
    
    .contact-item i {
        margin-bottom: 0.75rem;
        margin-right: 0;
        font-size: 1.25rem;
        color: #e74c3c;
    }
    
    .contact-item a,
    .contact-item span {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contact-item a {
        padding: 0.5rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .contact-item a:hover {
        background: rgba(231, 76, 60, 0.1);
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 12px;
    }
    
    /* Bottom section mobile optimization */
    footer hr {
        margin: 3rem 0 2rem;
    }
    
    footer .row.align-items-center {
        text-align: center;
    }
    
    footer .col-md-8,
    footer .col-md-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    footer .small {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    /* Contest details on mobile */
    .col-md-8 p {
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
}

/* Small mobile phones */
@media (max-width: 576px) {
    footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-logo-img {
        max-width: 60px;
    }
    
    footer h6 {
        margin-top: 2.5rem;
        font-size: 0.85rem;
    }
    
    .footer-links a {
        min-width: 100px;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    footer .small {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .col-md-8 p {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Touch improvements for all mobile */
@media (hover: none) and (pointer: coarse) {
    .footer-links a,
    .contact-item a,
    .social-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-links a {
        min-width: 140px;
    }
    
    .social-link {
        min-width: 48px;
        min-height: 48px;
    }
}