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

/* 1. Main Footer Container */
.footer-market {
    position: relative;
    background: linear-gradient(180deg, #0a0a0a, #1a1a1a);
    color: white;
    font-family: "Inter", sans-serif;
    overflow: hidden;
}

.footer-market::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Size can be as big as you want now without blur */
    width: 80%;
    height: 60%;
    
    /* Point to the new SVG file */
    background-image: url('images/brand-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    
    /* Opacity: 0.03 = 3% visible (Very subtle watermark) */
    /* Change to 0.05 or 0.10 if you want it darker */
    opacity: 0.03; 
    
    z-index: 0;
    pointer-events: none;
}

/* Background Pattern */
.footer-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0, 200, 83, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 200, 83, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

/* Custom Container for Footer */
.footer-market .container-custom {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* 2. Main Grid Layout */
.footer-main {
    display: grid;
    /* Brand | About | App | Links | Contact */
    grid-template-columns: 2fr 0.8fr 0.8fr 0.8fr 1.5fr; 
    gap: 2.5rem;
    padding: 4rem 0 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* 3. Brand Column (Logo & Socials) */
.brand-column {
    max-width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-brand-logo {
    width: 70px;
    height: 50px;
    object-fit: contain;
}

/* =========================================
   BRAND NAME GRADIENT
   ========================================= */
.footer-brand-name {
    /* 1. Define the gradient (matches your other brand gradients) */
    background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
    
    /* 2. Clip the background to the text */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* 3. Make the text transparent so the background shows through */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* 4. Ensure font is thick enough for the gradient to look good */
    font-size: 2.5rem;
    font-weight: 500;
    
    /* Optional: Ensure it displays correctly */
    display: inline-block;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* SEBI Badge */
/* .sebi-footer-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    width: fit-content;
}

.sebi-seal {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.sebi-info {
    display: flex;
    flex-direction: column;
}

.sebi-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
}

.sebi-reg {
    font-size: 1.1rem;
    font-weight: 800;
    color: #00c853;
} */


/* =========================================
   CREDENTIAL CARD STYLES (Boxed Design)
   ========================================= */
.sebi-credential-card {
    /* The Box Look */
    border: 2px solid rgba(255, 255, 255, 0.15); /* Subtle grey border */
    background: rgba(255, 255, 255, 0.03); /* Very faint background fill */
    border-radius: 8px; /* Slightly rounded corners */
    
    /* Spacing & Layout */
    padding: 12px 18px;
    margin-bottom: 2rem;
    display: inline-flex; /* Wraps tightly around the text */
    flex-direction: column;
    width: fit-content; /* Only as wide as the text */
    
    /* Hover Effect */
    transition: all 0.3s ease;
}

/* =========================================
   ANIMATION DEFINITION (Moving Gradient)
   ========================================= */
@keyframes footerBorderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.sebi-credential-card:hover {
    /* 1. Hide the physical border */
    border-color: transparent;

    /* 2. Background Layers:
       - LAYER 1 (Top): Vertical Gradient (Lighter Dark -> Darker Dark). 
         This adds a subtle "surface shine" inside the box while still blocking the border bleed.
       - LAYER 2 (Bottom): The Moving Gradient Border.
    */
    background-image: 
        linear-gradient(to bottom, #1f1f27, #0a0a0f), 
        linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    
    /* 3. Clip Logic */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    /* 4. Animation Settings */
    background-size: 100% 100%, 300% 100%;
    animation: footerBorderFlow 3s ease infinite;

    /* 5. Keep clean */
    box-shadow: none; 
    transform: translateY(-2px);
}

.credential-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.credential-value {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Tablet/Mobile Adjustment */
@media (max-width: 991px) {
    .sebi-credential-card {
        /* Ensure it stays centered on mobile */
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* Social Icons */
.social-links-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* 1. Facebook (Blue) */
.social-link[aria-label="Facebook"]:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: white;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
    transform: translateY(-3px);
}

/* 2. Twitter / X (White/Black for X Brand) */
.social-link[aria-label="Twitter"]:hover {
    background-color: #ffffff; /* White background */
    border-color: #ffffff;
    color: #000000; /* Black Icon */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* 3. LinkedIn (Corporate Blue) */
.social-link[aria-label="LinkedIn"]:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
    color: white;
    box-shadow: 0 0 15px rgba(10, 102, 194, 0.4);
    transform: translateY(-3px);
}

/* 4. Instagram (Gradient) */
.social-link[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent; /* Hide border so gradient shows */
    color: white;
    box-shadow: 0 0 15px rgba(214, 36, 159, 0.4);
    transform: translateY(-3px);
}

/* 5. Telegram (Light Blue) */
.social-link[aria-label="Telegram"]:hover {
    background-color: #0088cc;
    border-color: #0088cc;
    color: white;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
    transform: translateY(-3px);
}

/* 4. Link Columns */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gradient-1);
    transform: translateX(4px);
}

/* 5. Contact & Download Column */
.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-item-footer i {
    color: #8b5cf6; /* Gradient Purple */
    font-size: 1rem;
}

.download-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.store-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-badge-link img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.store-badge-link:hover img {
    transform: translateY(-2px);
}

/* =========================================
   INTERACTIVE CONTACT LINKS (Footer)
   ========================================= */

/* 1. Base Style for the Link Container */
a.contact-item-footer {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7); /* Default text color */
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* 2. Icon Style (Always Purple) */
a.contact-item-footer i {
    color: #8b5cf6; /* Original Purple */
    font-size: 1rem;
    /* No transition needed if color doesn't change */
}

/* 3. Text Element Style */
a.contact-item-footer span {
    transition: all 0.3s ease;
}

/* 4. HOVER EFFECTS */
a.contact-item-footer:hover {
    transform: translateX(5px); /* Slide entire link right */
}

/* Apply Gradient ONLY to the text span */
a.contact-item-footer:hover span {
    background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700; /* Optional: Makes the gradient pop more */
}

/* 6. Disclaimer Section */
.footer-disclaimer {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 152, 0, 0.2); /* Gold alpha */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9800;
    font-size: 1.5rem;
}

.disclaimer-content {
    flex: 1;
}

.disclaimer-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ff9800;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* 7. Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom-left p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-left p a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-right a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
    color: var(--gradient-1);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Chart Decoration (Bottom Right) */
.footer-chart-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES
===================================================== */

/* Tablet Layout (Landscape & Portrait) - 991px and below */
@media (max-width: 991px) {
    .footer-main {
        /* Switch to 2 columns grid */
        grid-template-columns: 1fr 1fr;
        gap: 3rem; 
        text-align: left;
    }

    /* Make Brand column span full width on Tablet */
    .brand-column {
        grid-column: 1 / -1; 
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Center align the specific elements inside Brand Column */
    .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .sebi-footer-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links-footer {
        justify-content: center;
    }

    /* Adjust Disclaimer for Tablet */
    .footer-disclaimer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .disclaimer-content {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile Layout - 576px and below */
@media (max-width: 576px) {
    .footer-main {
        /* Single column for mobile */
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .brand-column {
        grid-column: span 1;
    }

    .footer-heading {
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.5rem;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .contact-item-footer {
        justify-content: center;
    }

    .store-badges {
        justify-content: center;
    }

    /* Stack Footer Bottom links vertically on very small screens */
    .footer-bottom-right {
        gap: 0.5rem;
    }
    .separator {
        display: none;
    }
    .footer-bottom-right a {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}