/* --- Premium "Nocturnal Sakura" Footer --- */

.footer-wrapper {
    position: relative;
    background-color: var(--section-dark-bg);
    color: #fff;
    overflow: visible; /* Allow CTA card to overlap */
    padding-top: 8rem; /* Extra space for the floating card */
    margin-top: 0; /* CRITICAL FIX: Removes the gap above the footer, allowing the card to overlap correctly. */
    font-family: 'Poppins', sans-serif;
}

/* 1. The Floating CTA Card (Overlaps the footer top) */
.footer-cta-card {
    position: absolute;
    top: -80px; /* Pull it up to overlap the section above */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: linear-gradient(135deg, var(--brand) 0%, #881337 100%);
    border-radius: 1.5rem; /* Slightly larger radius for a modern look */
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); /* More defined shadow */
    z-index: 20; /* Ensure it's above all other page content */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease; /* Smooth transition for hover/AOS */
}

.footer-cta-content h3 {
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-cta-content p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.footer-cta-btn {
    background: white;
    color: var(--brand);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.footer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    background: var(--gold);
    color: var(--section-dark-bg);
}

/* Wrapper for background elements to prevent overflow */
.footer-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* 2. Background Effects */
.footer-bg-watermark {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 600px;
    opacity: 0.03;
    filter: grayscale(100%);
    transform: rotate(-15deg);
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(190, 18, 60, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 40%);
}

/* 3. Main Footer Content */
.footer-main-content {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.footer-brand-col p {
    color: var(--text-muted-light);
    line-height: 1.7;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--gold);
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-tagline {
    font-size: 0.65rem;
}

/* 4. Interactive Links */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.8rem;
}

.footer-link-item {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    position: relative;
}

.footer-link-item:hover {
    color: white;
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.footer-link-item::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--gold);
    transition: all 0.3s ease;
}

.footer-link-item:hover::before {
    left: 0;
    opacity: 1;
}

/* 5. Social Icons */
.footer-social-gap {
    gap: 1rem;
}

.social-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(190, 18, 60, 0.3);
}

/* 6. Glassmorphism Bottom Bar */
.footer-bottom-bar {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom-link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 1.5rem;
}

.footer-bottom-link:hover {
    color: var(--gold);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .footer-wrapper {
        padding-top: 6rem;
    }
    .footer-cta-card {
        position: relative;
        top: -4rem;
        width: 95%;
        text-align: center;
        justify-content: center;
        padding: 2rem;
        margin-bottom: -2rem;
    }
}