/* ============================================
   FOOTER.CSS - GREEN PROFESSIONAL THEME
   S.R.T. COLLEGE, DHAMRI
   Alpine.js Compatible with Menu Integration
   Tailwind CSS Compatible
   PERFORMANCE OPTIMIZED - Reduced shadows on mobile
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #00614b;
    --primary-dark: #004d3c;
    --secondary-color: #dc2626;
    --accent-color: #ea5999;
    --accent-yellow: #fbbf24;
    --dark-green: #023110;
    --text-main: #1f2937;
    --text-white: #ffffff;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    --bg-dark: #111827;
    --border-light: #e5e7eb;
    --border-dark: #374151;
}

/* ============================================
   1. FOOTER SECTION
   ============================================ */
footer {
    background: #0b0b0b;
    color: #ffffff;
    padding: 40px 20px 20px;
    border-top: 4px solid #a80348;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #a80348;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* Grid fallback for older browsers */
@supports not (display: grid) {
    .footer-content {
        display: flex;
        flex-wrap: wrap;
    }
    .footer-section {
        width: 100%;
    }
    @media (min-width: 768px) {
        .footer-section {
            width: 33.3333%;
        }
    }
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #fbbf24;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #a80348;
    border-radius: 1px;
}

.footer-section h3 i {
    margin-right: 10px;
    color: #ea5999;
}

/* ============================================
   2. FOOTER MENU LINKS
   ============================================ */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    position: relative;
}

.footer-menu li a i {
    color: #fbbf24;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-menu li a:hover {
    color: #ea5999;
    background: rgba(234, 89, 153, 0.1);
    padding-left: 18px;
    transform: translateX(5px);
}

.footer-menu li a:hover i {
    color: #ea5999;
    transform: scale(1.2);
}

.footer-menu li a.active {
    color: #fbbf24;
    font-weight: 600;
    background: rgba(251, 191, 36, 0.1);
}

.footer-menu li a.highlight {
    color: #ea5999;
    font-weight: 600;
}

.footer-menu li a.highlight:hover {
    background: rgba(234, 89, 153, 0.2);
}

/* ============================================
   3. CONTACT INFO LIST
   ============================================ */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info li i {
    color: #fbbf24;
    font-size: 16px;
    margin-top: 2px;
    min-width: 16px;
    transition: all 0.3s ease;
}

.contact-info li:hover i {
    color: #ea5999;
    transform: scale(1.15);
}

.contact-info li a,
.footer-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.contact-info li a:hover,
.footer-link:hover {
    color: #ea5999;
    padding-left: 8px;
}

.contact-info li strong {
    color: #fbbf24;
    font-weight: 600;
}

/* ============================================
   4. FOOTER MAP
   ============================================ */
.footer-map {
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid #a80348;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.footer-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(234, 89, 153, 0.4);
    border-color: #fbbf24;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-note {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.map-note i {
    margin-right: 5px;
    color: #fbbf24;
}

/* ============================================
   5. FOOTER BOTTOM
   ============================================ */
.footer-bottom {
    text-align: center;
    padding: 12px 20px;
    border-top: 2px solid #a80348;
    color: #ffffff;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
}

.copyright-text {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.developer-link {
    color: #fbbf24;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.developer-link:hover {
    color: #ea5999;
    transform: translateY(-2px);
}

.developer-link i {
    color: #ea5999;
    transition: all 0.3s ease;
}

.developer-link:hover i {
    color: #fbbf24;
    transform: rotate(360deg);
}

/* ============================================
   6. BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #ff9933;
    color: #ffffff;
    border: 3px solid #a80348;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 5px 20px rgba(168, 3, 72, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ff8800;
    border-color: #a80348;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(168, 3, 72, 0.6);
}

.back-to-top i {
    pointer-events: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.back-to-top:hover i {
    animation: none;
    transform: scale(1.2);
}

/* ============================================
   7. FIXED SOCIAL MEDIA ICONS (NO BACKGROUND)
   ============================================ */
.fixed-social-media {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    text-decoration: none;
    border: 2px solid #a80348;
    border-left: none;
    border-radius: 0 25px 25px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 20px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
}

.social-icon.facebook {
    color: #3b5998;
}

.social-icon.twitter {
    color: #1da1f2;
}

.social-icon.instagram {
    color: #e1306c;
}

.social-icon.youtube {
    color: #ff0000;
}

.social-icon.linkedin {
    color: #0077b5;
}

.social-icon.whatsapp {
    color: #25d366;
}

.social-icon:hover {
    width: 65px;
    border-color: #a80348;
    box-shadow: 5px 5px 25px rgba(168, 3, 72, 0.5);
    background: #f0f0f0;
}

.social-icon.facebook:hover {
    background: #3b5998;
    color: #ffffff;
}

.social-icon.twitter:hover {
    background: #1da1f2;
    color: #ffffff;
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: #ffffff;
}

.social-icon.youtube:hover {
    background: #ff0000;
    color: #ffffff;
}

.social-icon.linkedin:hover {
    background: #0077b5;
    color: #ffffff;
}

.social-icon.whatsapp:hover {
    background: #25d366;
    color: #ffffff;
}

/* ============================================
   8. PRINT STYLES
   ============================================ */
@media print {
    footer {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
    }
    
    footer::before {
        display: none !important;
    }
    
    .footer-section h3 {
        color: #000000 !important;
    }
    
    .footer-section h3::after {
        background: #000000 !important;
    }
    
    .footer-section h3 i,
    .contact-info li i,
    .footer-menu li a i {
        color: #000000 !important;
    }
    
    .contact-info li,
    .contact-info li a,
    .footer-link,
    .footer-menu li a {
        color: #000000 !important;
    }
    
    .footer-bottom {
        background: #f5f5f5 !important;
        border: 1px solid #000000 !important;
    }
    
    .copyright-text,
    .developer-link {
        color: #000000 !important;
    }
    
    .back-to-top,
    .fixed-social-media,
    .footer-map {
        display: none !important;
    }
}

/* ============================================
   9. RESPONSIVE - LARGE DESKTOP (1440px+)
   ============================================ */
@media (min-width: 1440px) {
    .footer-content {
        gap: 60px;
    }
    
    .footer-section h3 {
        font-size: 24px;
    }
}

/* ============================================
   10. RESPONSIVE - TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
    footer {
        padding: 35px 20px 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 19px;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ============================================
   11. RESPONSIVE - TABLET PORTRAIT (768px)
   PERFORMANCE: Reduced shadows for mobile
   ============================================ */
@media (max-width: 768px) {
    footer {
        padding: 30px 15px 15px;
    }
    
    .footer-bottom {
        margin-left: -15px;
        margin-right: -15px;
        padding: 10px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-menu li a {
        font-size: 13px;
    }
    
    .contact-info li {
        font-size: 13px;
        gap: 10px;
    }
    
    /* PERFORMANCE: Lighter shadows on mobile */
    .footer-map {
        height: 180px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }
    
    .footer-map:hover {
        box-shadow: 0 8px 20px rgba(234, 89, 153, 0.3);
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
        box-shadow: 0 4px 15px rgba(234, 89, 153, 0.3);
    }
    
    .back-to-top:hover {
        box-shadow: 0 6px 20px rgba(234, 89, 153, 0.4);
    }
    
    .fixed-social-media {
        gap: 3px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    }
    
    .social-icon:hover {
        width: 60px;
        box-shadow: 3px 3px 15px rgba(234, 89, 153, 0.3);
    }
}

/* ============================================
   12. RESPONSIVE - MOBILE (480px)
   PERFORMANCE: Further reduced shadows
   ============================================ */
@media (max-width: 480px) {
    footer {
        padding: 25px 10px 10px;
    }
    
    .footer-bottom {
        margin-left: -10px;
        margin-right: -10px;
        padding: 8px 10px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-menu li a {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .footer-menu li a:hover {
        padding-left: 12px;
    }
    
    .contact-info li {
        font-size: 12px;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .contact-info li i {
        font-size: 14px;
    }
    
    /* PERFORMANCE: Minimal shadows on small mobile */
    .footer-map {
        height: 150px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .footer-map:hover {
        box-shadow: 0 6px 16px rgba(234, 89, 153, 0.25);
    }
    
    .copyright-text {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
        box-shadow: 0 3px 12px rgba(234, 89, 153, 0.25);
    }
    
    .back-to-top:hover {
        box-shadow: 0 5px 16px rgba(234, 89, 153, 0.35);
    }
    
    .fixed-social-media {
        gap: 2px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.12);
    }
    
    .social-icon:hover {
        width: 55px;
        box-shadow: 3px 3px 12px rgba(234, 89, 153, 0.25);
    }
}

/* ============================================
   13. ACCESSIBILITY ENHANCEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    footer::before,
    .back-to-top i,
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
.footer-menu li a:focus,
.footer-link:focus,
.developer-link:focus,
.back-to-top:focus,
.social-icon:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    footer {
        border-top: 5px solid #a80348;
    }
    
    .footer-section h3::after {
        height: 4px;
    }
    
    /* Improved text contrast for accessibility */
    .contact-info li a,
    .footer-link,
    .footer-menu li a {
        color: rgba(255, 255, 255, 0.95);
    }
}

/* ============================================
   END OF FOOTER.CSS (Production Ready)
   ============================================ */