/* ==================== 
   FOOTER STYLES 
   ==================== */

/* --- FORCE FOOTER VISIBILITY & COLORS --- */

/* 1. Reset the footer container */
.aivanta-footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}
/* 2. Force Headings to be White */
.aivanta-footer h4,
.aivanta-footer h3,
.footer-logo {
    color: #ffffff !important;
}
/* 3. Force Links to be Light Grey (So they appear on black) */
.aivanta-footer a {
    color: #cccccc !important;
    text-decoration: none;
}

.aivanta-footer a:hover {
    color: #ffffff !important;
}

/* 4. Force Paragraphs and List Items */
.aivanta-footer p,
.aivanta-footer li {
    color: #bbbbbb !important;
}

/* 5. Force Bottom Bar */
.footer-bottom p {
    color: #666666 !important;
}

/* 6. OVERRIDE HIDDEN ANIMATIONS */
/* This ensures content shows up even if the animation script fails */
.aivanta-footer .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
/* --- CANVAS STYLING --- */
#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

/* --- ENSURE CONTENT IS ON TOP --- */
.footer-ticker,
.footer-container,
.footer-bottom,
.back-to-top {
    position: relative;
    z-index: 5;
}

/* --- 1. INFINITE TICKER TAPE --- */
.footer-ticker {
    background: #ffffff;
    color: #000000;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.ticker-content {
    display: inline-block;
    animation: scrollTicker 30s linear infinite;
}

.ticker-content span {
    margin: 0 20px;
}

.ticker-content .dot {
    color: #2563eb;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- 2. FOOTER GRID (UPDATED FOR 5 COLUMNS) --- */
.footer-container {
    max-width: 1300px; /* Increased slightly to fit extra column */
    margin: 0 auto;
    padding: 80px 20px;
}

.footer-grid {
    display: grid;
    /* UPDATED: 5 Columns layout */
    /* Brand | Company | Solutions | Support | Newsletter */
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 30px;
}

/* Brand Column */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
    display: block;
    margin-bottom: 20px;
}
.footer-logo img {
    height: auto;
    width: 220px;
}

.brand-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

/* System Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Social Icons */
.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}

/* Links Columns */
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(10px);
}

/* Newsletter Column */
.newsletter-form {
    margin-top: 20px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.8rem;
}

.newsletter-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 12px 12px 12px 40px;
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-subscribe {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-subscribe:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* --- 3. BOTTOM BAR --- */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding: 25px 0;
    background: #000;
    position: relative;
    z-index: 5;
}

.bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.85rem;
}

.legal-links a {
    color: #555;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* --- 4. BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    /* On tablets, switch to 3 columns top, 2 bottom */
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }
    .brand-col {
        grid-column: span 3;
        text-align: center;
    }
    .brand-desc {
        margin: 0 auto 20px;
    }
    .social-links {
        justify-content: center;
    }
    .newsletter-col {
        grid-column: span 3;
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .brand-col,
    .newsletter-col {
        grid-column: span 1;
    }
    .bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
