/* ===================================================== */
/* COUPON THUNDER CUSTOM FOOTER - PREMIUM UPGRADE        */
/* ===================================================== */

/* Animations */
@keyframes floatMoney {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-15px) rotate(-10deg); }
}

@keyframes floatGift {
    0%, 100% { transform: translateY(0) rotate(10deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0px 4px 15px rgba(255, 140, 75, 0.3); }
    50% { text-shadow: 0px 4px 25px rgba(255, 140, 75, 0.6); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ct-custom-footer {
    background-color: var(--accent-navy-dark); /* Deeper, richer black */
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.ct-footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* --- Big Script Title --- */
.ct-footer-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.ct-footer-script-title {
    font-family: 'Pacifico', cursive;
    color: var(--primary); 
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin: 0;
    line-height: 1.1;
    
}

/* --- Main Grid Layout --- */
.ct-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Typography inside columns */
.ct-footer-col h4 {
    color: var(--primary); 
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

/* Small underline under headings */
.ct-footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.ct-footer-col:hover h4::after {
    width: 100%; /* Underline grows on hover */
}

.ct-footer-col p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* --- Social Icons --- */
.ct-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.ct-social-icons a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05); 
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s var(--bounce);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-social-icons a:hover {
    background: var(--primary-gradient);
    color: var(--text-on-primary);
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: var(--primary-glow);
}

/* --- Quick Links --- */
.ct-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-footer-links li {
    margin-bottom: 14px;
    overflow: hidden;
}

.ct-footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.ct-footer-links a::before {
    content: '›';
    margin-right: 8px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    line-height: 1;
}

.ct-footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.ct-footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================================== */
/* SLEEK NEWSLETTER FORM                                 */
/* ===================================================== */
.ct-newsletter-form {
    display: flex;
    align-items: center;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px; 
    padding: 6px; 
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ct-newsletter-form:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 140, 75, 0.2);
}

.ct-newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent; 
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.ct-newsletter-form input::placeholder {
    color: var(--text-light); 
}

.ct-newsletter-form button {
    padding: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient); 
    color: var(--text-on-primary); 
    border: none;
    border-radius: 50%; 
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s var(--bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 140, 75, 0.4);
}

.ct-newsletter-form button:hover {
    background: var(--primary-dark); 
    transform: scale(1.05) rotate(-10deg); 
    box-shadow: 0 6px 20px rgba(255, 140, 75, 0.6);
}

/* --- Tagline --- */
.ct-footer-tagline {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 20px;
}

.ct-footer-tagline h2 {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 4px 15px rgba(255, 140, 75, 0.2);
    transition: transform 0.3s ease;
}

.ct-footer-tagline:hover h2 {
    transform: scale(1.05);
}

/* --- Copyright Bar --- */
.ct-footer-copyright {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ===================================================== */
/* DECORATIVE BACKGROUND ELEMENTS                        */
/* ===================================================== */
.ct-decor-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; 
    z-index: 1;
}

/* Sale Stamp Circle */
.decor-stamp {
    position: absolute;
    top: 25%;
    right: 12%;
    width: 100px;
    height: 100px;
    border: 2px dashed rgba(255, 140, 75, 0.4); 
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 140, 75, 0.6);
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    /* Removed static rotate and added slow spin to the dashed border */
    animation: spinSlow 30s linear infinite;
}

.decor-stamp i {
    font-size: 0.9rem;
    margin-bottom: 2px;
    /* Counter-spin the icon so it stays upright */
    animation: spinSlow 30s linear infinite reverse; 
}

/* Floating Images */
.decor-img {
    position: absolute;
    opacity: 0.25; /* Increased opacity slightly */
    filter: grayscale(100%) contrast(200%) brightness(80%);
    transition: all 0.5s ease;
    z-index: 1;
}

/* Brought images closer to the center & increased sizes */
.img-money { 
    bottom: 15%; 
    right: 22%; 
    width: 140px; 
    animation: floatMoney 6s ease-in-out infinite;
}

.img-gift { 
    bottom: 28%; 
    right: 8%; 
    width: 120px; 
    animation: floatGift 7s ease-in-out infinite 1s;
}

.img-phone { 
    bottom: 5%; 
    right: 14%; 
    width: 130px; 
    animation: floatPhone 5s ease-in-out infinite 2s;
}

/* Glow effect on hover for images */
.decor-img:hover {
    opacity: 0.4;
    filter: grayscale(0%) contrast(100%) brightness(100%) drop-shadow(0 0 15px rgba(255,140,75,0.5));
}

/* ===================================================== */
/* RESPONSIVE DESIGN                                     */
/* ===================================================== */
@media (max-width: 991px) {
    .ct-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .decor-stamp { display: none; }
}

@media (max-width: 768px) {
    .ct-custom-footer {
        padding-top: 50px;
    }
    
    .ct-footer-title-wrapper {
        margin-bottom: 40px;
    }

    .ct-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ct-footer-tagline h2 {
        font-size: 1.6rem;
    }

    .decor-img {
        display: none; /* Hide complex images on mobile */
    }
    
    .ct-newsletter-form {
        max-width: 100%;
    }
}