/* Global Styles */
:root {
    --primary-color: #f8f9fa; /* Light background */
    --secondary-color: #6c757d; /* Muted text */
    --accent-color: #ff69b4; /* Hot Pink */
    --accent-color-dark: #e05c9f; /* Darker Pink */
    --primary-dark-text: #343a40; /* Dark text for headings */
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --border-radius-sm: 0.3rem;
    --border-radius-md: 0.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-dark-text);
    background-color: var(--primary-color);
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-dark-text);
}

/* Adaptive Typography */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Mobile: 24px, Tablet: ~35px, Desktop: 40px */
}

h2 {
    font-size: clamp(1.3rem, 4.5vw, 2rem); /* Mobile: ~20px, Tablet: ~30px, Desktop: 32px */
}

h3 {
    font-size: clamp(1.1rem, 4vw, 1.75rem); /* Mobile: ~17px, Tablet: ~25px, Desktop: 28px */
}

.site-title {
    font-size: clamp(1rem, 3.5vw, 1.25rem); /* Mobile: 16px, Tablet: ~20px, Desktop: 20px */
    font-weight: 700;
    color: var(--primary-dark-text);
}

.lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.text-primary-dark {
    color: var(--primary-dark-text) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-muted-custom {
    color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
}

.btn {
    text-decoration: none !important;
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

@media (max-width: 767.98px) {
    .navbar-brand .logo-img {
        height: 30px;
    }
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--primary-dark-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.navbar-toggler {
    border-color: var(--accent-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 105, 180, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas-header {
    background-color: var(--accent-color);
    color: white;
}

.offcanvas-title {
    color: white;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('static/content/trading-platform-background.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 80px; /* Adjust for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
}

.hero-section h1 {
    font-weight: 700;
    color: white;
}

.hero-section .lead {
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-icon-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.hero-icon-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.hero-icon-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* About Section */
.about-section {
    background-color: var(--primary-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

.about-section img {
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}

/* Features Section */
.features-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.feature-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3.5rem;
}

/* How It Works Section */
.how-it-works-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--primary-color);
}

.how-it-works-step {
    position: relative;
    padding-left: 70px;
}

.how-it-works-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background-color: var(--accent-color);
    z-index: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.how-it-works-step img {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Team Section */
.team-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.team-timeline-wrapper {
    max-width: 100%;
 
}

.team-timeline {
       display: flex;
    flex-wrap: wrap !important;
    gap: 30px;
    justify-content: center;
}

.timeline-item {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 300px; /* Fixed width for timeline items */
    flex-shrink: 0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

/* Stats Section */
.stats-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--primary-color);
}

.stats-card-before {
    background-color: #ffebee; /* Light red */
    border-left: 5px solid var(--bs-danger);
}

.stats-card-after {
    background-color: #e8f5e9; /* Light green */
    border-left: 5px solid var(--bs-success);
}

.stats-card-before .display-6, .stats-card-after .display-6 {
    font-size: 2rem;
}

.stats-card-before .stat-label, .stats-card-after .stat-label {
    font-weight: 500;
    flex-grow: 1;
}

.stats-card-before .stat-value-before {
    color: var(--bs-danger);
    font-size: 1.25rem;
}

.stats-card-after .stat-value-after {
    color: var(--bs-success);
    font-size: 1.25rem;
}

/* FAQ Section */
.faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.faq-bubbles-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    position: relative;
}

.question-bubble {
    width: 300px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 25px;
    border-radius: 30px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.question-bubble i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.question-bubble:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.question-bubble:hover i {
    color: white;
}

.modal-content {
    border-radius: var(--border-radius-md);
}

.modal-header {
    background-color: var(--accent-color);
    color: white;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Footer Section */
.footer-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-bar {
    background-image: url('static/content/abstract-pink-gradient.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 3rem;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.cta-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    z-index: 0;
}

.cta-bar > .container {
    position: relative;
    z-index: 1;
}

.newsletter-form {
    max-width: 500px;
}

.newsletter-form .form-control {
    border-top-left-radius: var(--border-radius-md);
    border-bottom-left-radius: var(--border-radius-md);
    border-color: var(--accent-color);
}

.newsletter-form .btn {
    border-top-right-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}

.footer-nav li a, .footer-contact li a {
    transition: color 0.3s ease;
}

.footer-nav li a:hover, .footer-contact li a:hover {
    color: var(--accent-color) !important;
}

.footer-contact i {
    color: var(--accent-color);
}

.email-break {
    word-break: break-all;
}

/* Animations */
.animate-fade-slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-slide-up.delay-1 {
    transition-delay: 0.2s;
}
.animate-fade-slide-up.delay-2 {
    transition-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.fade-in {
    transition: opacity 1s ease-out;
}

.animate-on-scroll.fade-in.visible {
    opacity: 1;
}

.animate-on-scroll.slide-up {
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays for features, how it works, team, faq */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Floating animation for FAQ bubbles */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.faq-section .question-bubble {
    animation: float 3s ease-in-out infinite;
}

.faq-section .question-bubble:nth-child(even) {
    animation-delay: 0.5s;
}
.faq-section .question-bubble:nth-child(3n) {
    animation-delay: 1s;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        margin-top: 10px;
    }

    .navbar-nav {
        align-items: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .about-section img {
        max-height: 300px;
    }

    .how-it-works-step {
        padding-left: 50px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .how-it-works-step:not(:last-child)::before {
        left: 20px;
        top: 50px;
        bottom: -20px;
    }


 
    .timeline-item {
        width: 200px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 100px;
        min-height: 500px;
    }

    .hero-icon-item {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .hero-icon-item i {
        font-size: 1.2rem;
    }

    .about-section, .features-section, .how-it-works-section, .team-section, .stats-section, .faq-section, .footer-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: var(--border-radius-md) !important;
        width: 100%;
    }

    .newsletter-form .btn {
        margin-top: 10px;
    }

    .footer-nav, .footer-contact {
        text-align: center;
    }

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

    .footer-section .row.align-items-center > div {
        text-align: center !important;
    }

    .list-inline-item {
        display: block;
        margin-bottom: 5px;
    }

    .list-inline-item:not(:last-child) {
        margin-right: 0;
    }
}
@media (max-width: 576.98px) {
 #stats .d-flex {
    flex-direction: column !important;
 }
}
section {
    overflow: hidden;
}
/* Styles for the parent container */
.consentTunnelGrid {
    padding-top: 2.5rem; /* Top padding for the content area */
    padding-left: 1.5rem; /* Left padding for the content area */
    padding-right: 1.5rem; /* Right padding for the content area */
    max-width: 1200px; /* Limit content width for better readability on large screens */
    margin-left: auto; /* Center the grid horizontally */
    margin-right: auto; /* Center the grid horizontally */
}

/* Heading styles */
.consentTunnelGrid h1 {
    font-size: 2rem; /* Moderate font size for H1 */
    line-height: 1.2; /* Good readability */
    margin-top: 2.5rem; /* Space above heading */
    margin-bottom: 1rem; /* Space below heading */
    font-weight: 700; /* Bold font weight */
}

.consentTunnelGrid h2 {
    font-size: 1.75rem; /* Moderate font size for H2 */
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.consentTunnelGrid h3 {
    font-size: 1.5rem; /* Moderate font size for H3 */
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.consentTunnelGrid h4 {
    font-size: 1.25rem; /* Moderate font size for H4 */
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.consentTunnelGrid h5 {
    font-size: 1.1rem; /* Moderate font size for H5 */
    line-height: 1.5;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

/* Paragraph styles */
.consentTunnelGrid p {
    font-size: 1rem; /* Standard paragraph font size */
    line-height: 1.6; /* Good readability for body text */
    margin-bottom: 1rem; /* Space below paragraphs */
}

/* Unordered list styles */
.consentTunnelGrid ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.5rem; /* Indentation for bullets */
}

/* List item styles */
.consentTunnelGrid li {
    font-size: 1rem; /* Inherit or set explicitly to match paragraph */
    line-height: 1.6; /* Match paragraph line height */
    margin-bottom: 0.5rem; /* Space between list items */
}

/* Remove bottom margin from the last paragraph/list item if it's the last child of the grid */
.consentTunnelGrid p:last-child,
.consentTunnelGrid ul:last-child,
.consentTunnelGrid li:last-child {
    margin-bottom: 0;
}
