/* Modern Footer CSS - Add this to override existing footer styles */

/* Reset old footer styles */
footer {
    padding: 0 !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    background: transparent !important;
}

footer p {
    color: unset !important;
}

footer a {
    display: unset !important;
    justify-content: unset !important;
    color: unset !important;
    background: unset !important;
    padding: unset !important;
    border-radius: unset !important;
}

footer a i {
    font-size: unset !important;
    color: unset !important;
}

/* Modern Footer Styles */
.modern-footer {
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(219, 30, 233, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 0 2rem;
    border-bottom: 1px solid rgba(219, 30, 233, 0.2);
}

/* Footer Brand Section */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-logo .logo-highlight {
    color: var(--hover-color);
    text-shadow: var(--font-neon-text-shadow);
}

.footer-description {
    color: var(--light-black-text);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 45px !important;
    height: 45px;
    background: var(--card-gradient) !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(219, 30, 233, 0.3), transparent);
    transition: left 0.5s ease;
}

.footer-social a:hover {
    border-color: var(--hover-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(219, 30, 233, 0.3);
}

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

.footer-social a i {
    font-size: 1.2rem !important;
    z-index: 1;
    color: var(--text-color) !important;
}

/* Footer Links Sections */
.footer-links h4,
.footer-contact h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--hover-color);
    border-radius: 2px;
}

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

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--light-black-text) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: inline !important;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--hover-color);
    transition: width 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--hover-color) !important;
    padding-left: 20px !important;
}

.footer-links ul li a:hover::before {
    width: 10px;
}

/* Footer Contact Section */
.footer-contact {
    max-width: 280px;
}

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

.contact-item i {
    color: var(--hover-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item div span {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.contact-item div a,
.contact-item div p {
    color: var(--light-black-text) !important;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: color 0.3s ease;
    margin: 0;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
}

.contact-item div a:hover {
    color: var(--hover-color) !important;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
}

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

.footer-copyright p {
    color: var(--light-black-text) !important;
    font-size: 0.9rem;
    margin: 0;
}

.footer-tagline {
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
}

.footer-tagline i {
    color: var(--hover-color) !important;
    margin: 0 2px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: var(--hover-color) !important;
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 30, 233, 0.3);
    justify-content: center !important;
}

.footer-btn:hover {
    background: #ff1ee9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 30, 233, 0.5);
}

.back-to-top {
    width: 45px !important;
    height: 45px;
    background: var(--card-gradient) !important;
    border: 2px solid var(--hover-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    color: var(--hover-color) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hover-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 0;
}

.back-to-top:hover::before {
    transform: scale(1);
}

.back-to-top:hover {
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(219, 30, 233, 0.4);
}

.back-to-top i {
    font-size: 1.2rem !important;
    z-index: 1;
    position: relative;
    color: inherit !important;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-contact {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links ul li a:hover {
        padding-left: 0 !important;
    }
    
    .footer-links ul li a::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 3%;
    }
    
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-social a {
        width: 40px !important;
        height: 40px;
    }
    
    .footer-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem;
    }
    
    .back-to-top {
        width: 40px !important;
        height: 40px;
    }
}
