
/*
 * Finance Frontliner - MODERN FINANCE PLATFORM STYLESHEET
 *
 * Theme Colors:
 * Primary Gradient: Blue/Purple to Magenta/Pink (Modern, Energetic)
 * Secondary Gradient: Teal/Cyan to Blue (Calm, Professional)
 * Background Gradient: Subtle, multicolor animation for Hero
 */

/* --- COLOR & GRADIENT DEFINITIONS --- */
:root {
    /* Primary brand colors */
    --color-primary-start: #4B0082; /* Indigo/Purple */
    --color-primary-end: #FF1493;   /* Deep Pink/Magenta */
    --color-secondary-start: #008080; /* Teal */
    --color-secondary-end: #4169E1;   /* Royal Blue */
    
    /* Backgrounds */
    --bg-light-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --bg-dark-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 100%);

    /* Hero Animated Background */
    --hero-bg-color-1: #4e54c8;
    --hero-bg-color-2: #8f94fb;
    --hero-bg-color-3: #ff6e7f;
    --hero-bg-color-4: #bfe9ff;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* --- UTILITIES & Finance Frontliner COMPONENTS --- */

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

/* Custom Gradient Buttons */
.btn-gradient-primary {
    background-image: linear-gradient(90deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(75, 0, 130, 0.3);
}

.btn-gradient-primary:hover, .btn-gradient-primary:focus {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 20, 147, 0.5);
    color: white;
}

.btn-gradient-secondary {
    background-image: linear-gradient(90deg, var(--color-secondary-start) 0%, var(--color-secondary-end) 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.3);
}

.btn-gradient-secondary:hover, .btn-gradient-secondary:focus {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(65, 105, 225, 0.5);
    color: white;
}

header#navbar-top.btn-gradient-secondary:hover,
header#navbar-top.btn-gradient-secondary:focus {
    transform: none !important;
    /* box-shadow: none !important; */
}


.btn-gradient-learn-more {
    background-image: linear-gradient(45deg, var(--color-secondary-start), var(--color-primary-end));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
}

.btn-gradient-learn-more:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 128, 128, 0.5);
    color: white;
}

/* Icon Animation on Button Hover */
.cta-btn-anim:hover .cta-icon-anim, 
.read-article-btn:hover .read-icon-anim {
    animation: bounce-horizontal 0.6s infinite alternate;
}

@keyframes bounce-horizontal {
    from { transform: translateX(0); }
    to { transform: translateX(5px); }
}

/* --- NAVBAR STYLES --- */
#navbar-top {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Transparent initial state */
.navbar-transparent {
    background-color: transparent !important;
    backdrop-filter: none;
}

/* Logo Styling */
.logo-box {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--color-primary-start), var(--color-secondary-end));
    color: white;
    font-size: 1.1rem;
}

/* Default nav link color */
.nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

/* Hover color change */
.nav-link:hover {
    color: var(--color-primary-end) !important; /* Magenta/Pink */
}

.navbar-scrolled .nav-link:hover {
    color: var(--color-secondary-start) !important; /* Teal */
}


/* Dropdown styling */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    animation: fade-in-down 0.3s ease-out;
}
.dropdown-item:hover {
    background-color: var(--color-primary-end);
    color: white;
}

@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- HERO SECTION STYLES --- */
.hero-section {
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 3rem;
    text-align: left;
     position: relative;
      background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 500px;
     background-image: url("images/hero-1.jpg"); /* change your image name */
}

/* Dark transparent overlay */
.hero-overlay {
    background: rgba(0, 0, 0, 0.9);
}


.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    background-image: linear-gradient(135deg, rgba(75, 0, 130, 0.5) 0%, rgba(255, 20, 147, 0.1) 100%);
}

/* Glassy Card (Left) */
.glass-card {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 500px;
}

.glass-card {
    border-radius: 200px 00px 200px 00px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 500px;
    padding: 40px;
}

.hero-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-show {
    opacity: 1;
    transform: translateY(0);
}



/* Hero Badges (Right) */
.hero-badge {
    color: white;
    border-radius: 0.5rem;
    font-weight: bold;
    min-width: 150px;
    text-align: center;
    margin-left: 20px; /* Space for float effect */
    
    /* Subtle Translucency and Blur */
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Floating Animation Keyframes (Subtle) */
@keyframes float-up-down {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}
.float-anim-vertical {
    animation: float-up-down 6s ease-in-out infinite;
}

/* Badge floating animations with staggered timing */
.float-anim-1 { animation: float-up-down 7s ease-in-out infinite; }
.float-anim-2 { animation: float-up-down 6s ease-in-out infinite 0.5s; }
.float-anim-3 { animation: float-up-down 8s ease-in-out infinite 1s; }
.float-anim-4 { animation: float-up-down 6.5s ease-in-out infinite 1.5s; }


/* --- ABOUT SECTION STYLES --- */
.about-image-wrapper {
    /* Enforce aspect ratio and fill space */
    height: 100%;
    min-height: 350px; /* Min height for mobile/small screens */
}

.about-bg-image {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

/* Slower float for the image */
@keyframes float-up-down-slow {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
.float-anim-vertical-slow {
    animation: float-up-down-slow 8s ease-in-out infinite;
}


/* --- SERVICES SECTION STYLES --- */
.service-card {
    transition: all 0.3s ease-in-out;
    border-radius: 0.75rem;
}

/* Card hover lift & shadow */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animated icon with entry/hover animation */
.service-icon {
    color: var(--color-primary-start);
    transition: transform 0.4s ease-out, color 0.4s ease-out;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg) scale(1.1);
    color: var(--color-primary-end);
}

/* --- BLOG SECTION STYLES --- */
.blog-featured-card {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Ensure the content column matches image height (assisted by Bootstrap flex utilities) */
.blog-image-container, .blog-row .col-md-6:nth-child(2) {
    min-height: 300px;
}

/* --- TESTIMONIAL SECTION STYLES --- */
.testimonial-image-wrapper {
    /* Use a clip-path for a creative rounded shape */
    clip-path: circle(50% at 50% 50%);
    width: 100%;
    min-height: 300px;
    max-width: 400px; /* Keep it contained */
    margin: 0 auto;
}

/* Modal testimonial entrance animation */
@keyframes fade-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-modal-body .modal-fade-slide-anim {
    opacity: 0; /* Hide initially */
    transform: translateY(20px);
    animation: none; /* Disable until activated by JS */
}

.testimonial-modal-body .modal-fade-slide-anim.active {
    animation: fade-slide-in 0.5s ease-out forwards;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.testimonial-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-box:hover {
    background: #fafafa;
    transform: translateY(-4px);
    transition: 0.3s ease;
}

.rounded-circle-clip {
    border-radius: 50%;
}



/* --- FAQ SECTION STYLES (ACCORDION) --- */
.accordion-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
}

.accordion-button {
    background-color: white;
    font-weight: bold;
    color: #343a40;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-primary-start);
    color: white;
    box-shadow: none;
}

.accordion-button:not(.collapsed) .fa-circle-question {
    color: white !important;
}

/* Custom Animation for Answer Pane (Slide/Fade In) */
.accordion-body {
    padding-top: 0;
    overflow: hidden;
    /* Transition applied to max-height for smooth collapse in Bootstrap */
}

/* --- FOOTER STYLES --- */
.footer-dark-gradient {
    background-image: var(--bg-dark-gradient);
    color: white;
}

.footer-heading {
    color: var(--color-primary-end);
}

.footer-link:hover {
    color: var(--color-primary-end) !important;
}

.footer-logo {
    background: linear-gradient(45deg, #FFD700, #FFA500); /* Gold/Orange for contrast */
}

.footer-card-inline {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.footer-card-inline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}


/* --- TOAST/SUCCESS POPUP ANIMATION --- */
.fade-slide-in {
    /* Custom CSS to handle the slide-in/fade-in appearance */
    animation: toast-slide-in 0.5s ease-out;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* --- RESPONSIVENESS / MEDIA QUERIES --- */
@media (max-width: 991.98px) {
    /* Tablet/Mobile Adjustments */
    .hero-section {
        min-height: 80vh;
        padding-top: 8rem;
    }
    .glass-card {
        max-width: 100%;
        text-align: center;
    }
    .badge-group {
        flex-direction: row !important;
        justify-content: center;
        width: 100%;
        margin-top: 2rem;
    }
    .hero-badge {
        margin: 0 8px !important;
        min-width: 100px;
    }
    .about-image-wrapper {
        min-height: 250px;
    }
    .blog-row .col-md-6:nth-child(2) {
        min-height: auto;
    }
    .testimonial-image-wrapper {
        max-width: 300px;
    }
}


/* --- PREFERS REDUCED MOTION SUPPORT --- */
@media (prefers-reduced-motion: reduce) {
    .float-anim-vertical, .float-anim-vertical-slow,
    .float-anim-1, .float-anim-2, .float-anim-3, .float-anim-4,
    .cta-btn-anim:hover .cta-icon-anim, .read-article-btn:hover .read-icon-anim,
    .btn-gradient-primary:hover, .btn-gradient-secondary:hover, .btn-gradient-learn-more:hover,
    .service-card:hover, .service-card:hover .service-icon,
    .fade-slide-in,
    .modal-fade-slide-anim.active {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .carousel-item {
        transition: opacity 0.5s ease; /* Simplified crossfade */
    }
}