/* ============================================
   FOOTER - MODERN CLEAN REDESIGN
   Matches Navbar & Website Theme
   Minimal, Elegant, Glassmorphism Style
   ============================================ */

:root {
    --footer-accent: #e50914;
    --footer-bg: rgba(245, 245, 245, 0.95);
    --footer-border: rgba(0, 0, 0, 0.06);
    --footer-text: #1a1a1a;
    --footer-text-light: #666;
    --footer-shadow: rgba(0, 0, 0, 0.08);
}

/* ============================================
   FOOTER CONTAINER
   ============================================ */

footer {
    background: var(--footer-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 1px solid var(--footer-border) !important;
    padding: 60px 0 30px 0 !important;
    margin-top: 80px !important;
    box-shadow: 0 -2px 10px var(--footer-shadow) !important;
}

body.dark-mode footer {
    background: rgba(20, 20, 20, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* ============================================
   FOOTER CONTENT
   ============================================ */

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 40px !important;
    margin-bottom: 40px !important;
}

/* ============================================
   FOOTER SECTIONS
   ============================================ */

.footer-section {
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.dark-mode .footer-section {
    background: rgba(40, 40, 40, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

body.dark-mode .footer-section:hover {
    background: rgba(60, 60, 60, 0.7) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   FOOTER HEADINGS
   ============================================ */

.footer-section h3 {
    color: var(--footer-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(90deg, var(--footer-accent) 0%, transparent 100%) 1 !important;
    position: relative !important;
}

body.dark-mode .footer-section h3 {
    color: #ffffff !important;
}

/* Red dot accent on headings */
.footer-section h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--footer-accent);
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 2px;
}

/* ============================================
   FOOTER TEXT
   ============================================ */

.footer-section p {
    color: var(--footer-text-light) !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 12px !important;
}

body.dark-mode .footer-section p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-section p i {
    color: var(--footer-accent) !important;
    margin-right: 10px !important;
    width: 20px !important;
    display: inline-block !important;
}

/* ============================================
   FOOTER LINKS
   ============================================ */

.footer-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-section ul li {
    margin-bottom: 12px !important;
}

.footer-section ul li a {
    color: var(--footer-text-light) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

body.dark-mode .footer-section ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Link hover effect */
.footer-section ul li a:hover {
    color: var(--footer-accent) !important;
    background: rgba(229, 9, 20, 0.08) !important;
    padding-left: 20px !important;
    transform: translateX(5px) !important;
}

body.dark-mode .footer-section ul li a:hover {
    background: rgba(229, 9, 20, 0.15) !important;
}

/* Arrow indicator on hover */
.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: 8px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--footer-accent);
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.social {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--footer-text) !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

body.dark-mode .social a {
    background: rgba(60, 60, 60, 0.8) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Social icon hover */
.social a:hover {
    background: var(--footer-accent) !important;
    color: white !important;
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4) !important;
    border-color: var(--footer-accent) !important;
}

body.dark-mode .social a:hover {
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.6) !important;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */

.footer-bottom {
    padding: 25px 0 !important;
    margin-top: 30px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    text-align: center !important;
}

body.dark-mode .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.footer-bottom p {
    color: var(--footer-text-light) !important;
    font-size: 14px !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

body.dark-mode .footer-bottom p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Red accent in copyright text */
.footer-bottom p::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--footer-accent);
    border-radius: 50%;
    margin: 0 8px 2px 0;
}

.footer-bottom p::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--footer-accent);
    border-radius: 50%;
    margin: 0 0 2px 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    footer {
        padding: 50px 0 25px 0 !important;
        margin-top: 60px !important;
    }

    .footer-content {
        gap: 30px !important;
        margin-bottom: 30px !important;
    }

    .footer-section {
        padding: 18px !important;
    }

    .footer-section h3 {
        font-size: 17px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px 0 !important;
        margin-top: 50px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 25px !important;
    }

    .footer-section {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .footer-section h3 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 13px !important;
    }

    .social a {
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
    }

    .footer-bottom {
        padding: 20px 0 !important;
        margin-top: 20px !important;
    }

    .footer-bottom p {
        font-size: 13px !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .footer-section {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .footer-section h3 {
        font-size: 15px !important;
    }

    .social a {
        width: 40px !important;
        height: 40px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.footer-section a:focus,
.social a:focus {
    outline: 2px solid var(--footer-accent) !important;
    outline-offset: 3px !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    footer *,
    .footer-section,
    .footer-section a,
    .social a {
        transition: none !important;
        animation: none !important;
    }
}
