/* ==================== 
   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: var(--accent-core, #C6F432);
    color: #000000;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 2px;
    border-top: none;
    border-bottom: none;
}

.ticker-content {
    display: inline-block;
    animation: scrollTicker 30s linear infinite;
}

.ticker-content span {
    margin: 0 20px;
}

.ticker-content .dot {
    color: #000000;
    opacity: 0.6;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 2. MEGA FOOTER LAYOUT --- */
.new-mega-footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    z-index: 5;
}

.footer-main-layout {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

/* LEFT SIDE */
.footer-left {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.footer-header-top {
    margin-bottom: 50px;
}

.ready-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.mega-email {
    font-size: 3.5rem;
    font-family: serif;
    /* Gives the classic elegant look from the reference */
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.mega-email:hover {
    color: var(--accent-core, #C6F432);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.links-col h4 {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
}

.links-col ul {
    list-style: none;
    padding: 0;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav-chevron-list i {
    font-size: 0.8em;
    margin-right: 5px;
    opacity: 0.8;
}

.highlight-blue {
    color: #C6F432 !important;
}

.links-col ul li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

/* Social icons under contact */
.social-links-small {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-links-small a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--accent-core, #C6F432);
    color: #000000 !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links-small a:hover {
    background: #ffffff;
    color: #000000 !important;
    transform: translateY(-3px);
}


/* RIGHT SIDE - FORM */
.footer-right {
    flex: 1;
    max-width: 450px;
}

.footer-contact-box {
    background: #111111;
    padding: 40px;
    border-radius: 10px;
}

.footer-contact-box h3 {
    color: var(--accent-core, #C6F432);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.form-desc {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.mega-footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mega-footer-form input[type="text"],
.mega-footer-form input[type="tel"],
.mega-footer-form input[type="email"],
.mega-footer-form textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333333;
    padding: 12px 15px;
    color: #ffffff;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.mega-footer-form input:focus,
.mega-footer-form textarea:focus {
    outline: none;
    border-color: var(--accent-core, #C6F432);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}

.form-select-group {
    margin: 10px 0;
}

.form-select-group label {
    display: block;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    accent-color: var(--accent-core, #C6F432);
}

.form-checkbox {
    margin-top: 5px;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--accent-core, #C6F432);
    text-decoration: none;
}

.submit-mega-btn {
    width: 100%;
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    padding: 15px;
    border: none;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.submit-mega-btn:hover {
    background: var(--accent-core, #C6F432);
}

/* --- 3. BOTTOM BAR --- */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding: 25px 0;
    background: transparent;
    position: relative;
    z-index: 5;
}

.bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    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: #ffffff;
}

/* --- 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);
}

/* --- GIANT TEXT REVEAL ANIMATION --- */
.giant-animated-text {
    display: inline-block;
    overflow: hidden;
}

.giant-animated-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.8s ease;
}

.footer-reveal.active .giant-animated-text span {
    transform: translateY(0);
    opacity: 1;
}

.giant-animated-text span:nth-child(1) {
    transition-delay: 0.0s;
}

.giant-animated-text span:nth-child(2) {
    transition-delay: 0.1s;
}

.giant-animated-text span:nth-child(3) {
    transition-delay: 0.2s;
}

.giant-animated-text span:nth-child(4) {
    transition-delay: 0.3s;
}

.giant-animated-text span:nth-child(5) {
    transition-delay: 0.4s;
}

.giant-animated-text span:nth-child(6) {
    transition-delay: 0.5s;
}

/* RESPONSIVE */
.footer-giant-text {
    margin-top: 60px;
    line-height: 0.8;
}

.giant-logo-link {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.giant-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 15vw, 15rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .footer-left {
        position: relative;
    }

    .footer-giant-text {
        position: absolute;
        right: -10px;
        top: 60px;
        /* Aligned roughly with the top of navs */
        margin-top: 0;
        height: 100%;
        pointer-events: none;
        /* Let clicks pass through if it overlaps slightly */
    }

    .giant-logo-text {
        writing-mode: vertical-rl;
        font-size: 3.5rem;
        /* Specific size for mobile vertical */
        letter-spacing: 1.5em;
        /* Significantly increased letter spacing */
        height: 100%;
        text-align: center;
        color: #ffffff;
    }
}

@media (max-width: 1024px) {
    .footer-main-layout {
        flex-direction: column;
        gap: 50px;
    }

    .footer-right {
        max-width: 100%;
    }

    .mega-email {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mega-email {
        font-size: 1.8rem;
    }

    .new-mega-footer {
        padding: 60px 20px;
    }

    .footer-giant-text {
        position: absolute;
        right: -10px;
        top: 110px;
        margin-top: 0;
        height: 100%;
        pointer-events: none;
    }
}