/* ==============================================
   Modern Footer Design - High Visibility & Contrast
   ============================================== */

/* Main Footer Container */
#main-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

/* Animated Gradient Top Border */
#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #ff4757 50%, 
        #ffd700 75%, 
        #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Decorative Background Pattern */
#main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 71, 87, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer Content Grid */
#main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Section Headings */
#main-footer .footer-section h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animated Underline for Headings */
#main-footer .footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ff4757);
    border-radius: 2px;
    animation: widthPulse 3s ease-in-out infinite;
}

@keyframes widthPulse {
    0%, 100% { width: 60px; }
    50% { width: 80px; }
}

/* Section Text */
#main-footer .footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    margin-bottom: 12px;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Strong/Bold Text */
#main-footer .footer-section strong {
    color: #ff4757;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

/* Footer Lists */
#main-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#main-footer .footer-section ul li {
    margin-bottom: 15px;
}

/* Footer Links */
#main-footer .footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

/* Hover Effect with Arrow */
#main-footer .footer-section ul li a::before {
    content: '▸';
    position: absolute;
    left: -20px;
    color: #667eea;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
}

#main-footer .footer-section ul li a:hover {
    color: #667eea;
    transform: translateX(8px);
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

#main-footer .footer-section ul li a:hover::before {
    opacity: 1;
    left: -18px;
}

/* Contact Info Reveal Buttons */
#main-footer .reveal-contact {
    color: #00e5ff !important;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(102, 126, 234, 0.15));
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 229, 255, 0.3);
    display: inline-block;
    margin-left: 5px;
}

#main-footer .reveal-contact:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(102, 126, 234, 0.25));
    color: #ffffff !important;
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

#main-footer .reveal-contact.revealed {
    color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
}

/* Special Careers Link Styling */
#main-footer a[href="careers.html"],
#main-footer a[href="/careers.html"] {
    background: linear-gradient(90deg, #ff4757, #ff6b6b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold !important;
    font-size: 17px !important;
    animation: pulseGlow 2s ease-in-out infinite;
    text-shadow: none;
}

@keyframes pulseGlow {
    0%, 100% { 
        filter: brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

/* Footer Bottom */
#main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

#main-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Location Icon Enhancement */
#main-footer .footer-section p:contains("📍") {
    font-size: 16px;
    color: #ffffff;
}

/* Make all footer text more visible */
#main-footer,
#main-footer * {
    color: #ffffff !important;
}

#main-footer a:not(.reveal-contact):not([href="careers.html"]):not([href="/careers.html"]) {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Hover state for better visibility */
#main-footer a:hover {
    color: #667eea !important;
}

/* Ensure emojis are visible */
#main-footer .footer-section p {
    font-size: 16px;
}

/* Social Media Icons (if added later) */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #main-footer {
        padding: 40px 0 20px;
    }
    
    #main-footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    #main-footer .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #main-footer .footer-section ul li a::before {
        display: none;
    }
    
    #main-footer .footer-section ul li a:hover {
        transform: translateX(0);
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    #main-footer {
        background: #000000;
    }
    
    #main-footer .footer-section h3 {
        color: #ffffff;
        text-shadow: none;
    }
    
    #main-footer .footer-section p {
        color: #ffffff;
    }
    
    #main-footer a {
        color: #00e5ff !important;
    }
}

/* Print Styles */
@media print {
    #main-footer {
        background: white;
        color: black;
    }
    
    #main-footer * {
        color: black !important;
    }
    
    #main-footer::before,
    #main-footer::after {
        display: none;
    }
}
