/* ===== FUTURISTIC FOOTER STYLES ===== */

.footer {
    background: linear-gradient(135deg, 
        var(--primary-bg) 0%, 
        rgba(26, 35, 126, 0.95) 50%, 
        rgba(13, 71, 161, 0.9) 100%);
    color: var(--text-primary);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, 
        transparent 0%, 
        var(--golden-yellow) 20%, 
        var(--electric-blue) 50%, 
        var(--golden-yellow) 80%, 
        transparent 100%) 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--golden-yellow) 20%, 
        var(--electric-blue) 40%, 
        var(--golden-yellow) 60%, 
        var(--electric-blue) 80%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Main Footer Section */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 4rem;
    padding: 0;
    align-items: stretch;
    justify-items: center;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Remove the before pseudo-element for cleaner look */

/* Footer Brand */
.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Remove the before pseudo-element for cleaner look */

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 3rem;
    animation: speedWithinAlgorithms 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
    letter-spacing: -0.2em;
    position: relative;
    display: inline-block;
}

@keyframes speedWithinAlgorithms {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 5px rgba(255, 193, 7, 0.3));
    }
    20% { 
        transform: scale(1.05);
        filter: brightness(1.3) drop-shadow(0 0 10px rgba(0, 150, 255, 0.5));
    }
    40% { 
        transform: scale(1.1);
        filter: brightness(1.6) drop-shadow(0 0 15px rgba(255, 193, 7, 0.7));
    }
    60% { 
        transform: scale(1.05);
        filter: brightness(1.4) drop-shadow(0 0 12px rgba(0, 150, 255, 0.6));
    }
    80% { 
        transform: scale(1.02);
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 193, 7, 0.4));
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFF00 !important;
    background: linear-gradient(45deg, #FFFF00, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1.2;
    display: block;
    opacity: 1;
    visibility: visible;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.4);
    filter: brightness(1.3);
}

.brand-tagline {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
}

.innovation-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.stat-item {
    text-align: center;
    min-width: 60px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--golden-yellow);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
    justify-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
}

/* Remove the before pseudo-element for cleaner look */

.link-column {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding: 1rem 0.5rem;
    position: relative;
    box-sizing: border-box;
}

/* Remove the after pseudo-element for cleaner look */

.link-column h4 {
    color: var(--golden-yellow);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    text-align: left;
    align-self: flex-start;
}

.link-column h4::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-blue), transparent);
    border-radius: 1px;
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.link-column li {
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 2rem;
}

.link-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.2rem;
    display: block;
    width: 100%;
    font-weight: 400;
    text-align: left;
}

.link-column a::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    color: var(--electric-blue);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.link-column a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.link-column a:hover::before {
    color: var(--golden-yellow);
}

/* Newsletter Section */
.footer-newsletter {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Remove the before pseudo-element for cleaner look */

.footer-newsletter h4 {
    color: var(--golden-yellow);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.newsletter-form {
    position: relative;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 300px;
    align-self: center;
    display: flex;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    padding-right: 7rem;
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    width: 100%;
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--electric-blue), var(--golden-yellow));
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 18px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 150, 255, 0.3);
}

.tech-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.indicator {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tech Showcase */
.tech-showcase {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.2);
    margin: 3rem 0 0 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--electric-blue) 25%, 
        var(--golden-yellow) 50%, 
        var(--electric-blue) 75%, 
        transparent 100%);
}

.tech-showcase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--golden-yellow) 25%, 
        var(--electric-blue) 50%, 
        var(--golden-yellow) 75%, 
        transparent 100%);
}

.tech-marquee {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    width: fit-content;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        var(--electric-blue), 
        var(--golden-yellow), 
        var(--electric-blue));
    opacity: 0.6;
}

.tech-icon {
    font-size: 1.2rem;
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Remove the before pseudo-element for cleaner look */

.footer-left p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--electric-blue);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--electric-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 150, 255, 0.3);
}

.footer-right {
    display: flex;
    align-items: center;
}

.innovation-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, var(--golden-yellow), var(--electric-blue));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(255, 193, 7, 0.3); }
    100% { box-shadow: 0 0 20px rgba(0, 150, 255, 0.5); }
}

.badge-icon {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        padding: 2rem 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        justify-items: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: center;
        max-width: 500px;
        padding: 1.5rem;
    }
    
    .link-column {
        min-height: 160px;
        text-align: left;
        align-items: flex-start;
        padding: 1rem 0.5rem;
    }
    
    .link-column h4 {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .link-column h4::after {
        left: 0;
        transform: none;
    }
    
    .footer-brand,
    .footer-newsletter {
        padding: 1.5rem 1rem;
    }
    
    .innovation-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        justify-content: center;
        padding: 2rem 1rem;
    }
    
    .newsletter-form {
        position: relative;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .newsletter-input {
        padding-right: 6rem;
    }
    
    .newsletter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .tech-indicators {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tech-showcase {
        margin: 2rem 0 0 0;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 1.5rem 1rem;
    }
    
    .footer-main {
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        max-width: 300px;
        padding: 1rem;
    }
    
    .link-column {
        min-height: auto;
        text-align: left;
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .link-column h4::after {
        left: 0;
        transform: none;
    }
    
    .link-column a {
        text-align: left;
        padding-left: 1.2rem;
        justify-content: flex-start;
    }
    
    .link-column a::before {
        display: block;
    }
    
    .link-column a:hover {
        padding-left: 1.2rem;
        transform: translateX(4px);
    }
    
    .footer-brand,
    .footer-newsletter {
        padding: 1rem;
    }
    
    .innovation-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .tech-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .tech-name {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
    
    .tech-showcase {
        margin: 2rem 0 0 0;
    }
}

/* Dark/Light Mode Adjustments */
.light-mode .footer {
    background: linear-gradient(135deg, 
        #f8f9fa 0%, 
        rgba(33, 150, 243, 0.1) 50%, 
        rgba(25, 118, 210, 0.15) 100%);
    color: var(--text-primary);
    border-image: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 193, 7, 0.8) 20%, 
        rgba(33, 150, 243, 0.8) 50%, 
        rgba(255, 193, 7, 0.8) 80%, 
        transparent 100%) 1;
}

.light-mode .tech-showcase {
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .tech-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .newsletter-form {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .social-link {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .indicator {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .logo-text {
    color: #B8860B !important;
    background: linear-gradient(45deg, #DAA520, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: brightness(1.1);
}
