/* Hero Section */
.hero-section {
    height: 100vh; /* Full viewport height */
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative; /* Changed from absolute to relative */
    overflow: hidden;
    z-index: 1; /* Ensure it stays above other content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg {
    background: url("../assets/background/Rectangle-153.webp") center/cover
        no-repeat; /* Background image */
    position: absolute;
    background-position: center;
    left: 0;
    background-attachment: fixed;
    right: 0;
    z-index: -1;
    height: 100vh;
    top: 5rem;
    /* background-size: 100% 100%; */
}

.hero-content {
    max-width: 800px; /* Limit content width for better readability */
    margin: 0 auto; /* Center the content */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.cta-button {
    background-color: #0b7c7c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #046d6d;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 60px 20px;
    background-color: #0e2440;
    color: #f0f8ff;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
}

/* User Stats */
.counters {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    margin: 0 0 1.5rem;
}

.counters .cnt_icon_num {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
    text-align: center;
}

.counters .cnt_icon_num .fas {
    margin: 0 0 0.5rem;
    color: #4086fc;
    font-size: 3rem;
}

.counters .cnt_icon_num .value {
    font-size: 1.5rem;
    color: #f0f8ff;
}

.counters .cnt_icon_num p {
    font-size: 1rem;
    color: #f0f8ff;
    text-align: center;
}

/* Cards Container */
.cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Hide scrollbar */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.card {
    position: relative;
    flex: 0 0 300px;
    background: #0e2440;
    padding: 20px;
    text-align: center;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    background-color: #0e2440;
    clip-path: polygon(
        0 0,
        100% 0,
        0 100%
    ); /* Creates the triangle cut-out shape */
}

.why-choose-us .card {
    background: #1e3c72;
}

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

.card-icon {
    font-size: 3rem;
    color: #4086fc;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card-description {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 20px;
}

.card-cta {
    background-color: #0b7c7c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.card-cta:hover {
    background-color: #046d6d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cards-container {
        gap: 15px;
    }

    .card {
        flex: 0 0 280px;
    }

    .counters .cnt_icon_num .fas {
        font-size: 2rem;
    }

    .counters .cnt_icon_num .value {
        font-size: 1rem;
    }

    .counters .cnt_icon_num p {
        font-size: 0.75rem;
    }
}

/* What Sets Us Apart Section */
.what-sets-us-apart {
    font-family: "Arial", Helvetica, sans-serif !important;
    font-weight: lighter !important;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 2; /* Ensure it stays above the hero section */
}

.what-sets-us-apart .section-title {
    text-align: left;
    color: #f0f8ff;
    font-size: 4.5rem;
    margin: 0 auto 1rem; /* Adjusted margin */
}

.section-title span {
    color: #4086fc;
    font-stretch: expanded;
}

.scroll-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    margin: 2rem auto; /* Adjusted margin */
}

/* Scroll Indicator */
.scroll-indicator {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    width: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure the parent container has a height */
}

.indicator-bar {
    width: 2px;
    height: 20%; /* Full height of the section */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #ddd 20%,
        #ddd 80%,
        transparent 100%
    ); /* Faded ends */
    position: absolute;
    top: 0;
    left: 3%;
    transform: translateX(-50%);
    z-index: 1; /* Ensure it's above other elements */
}

.indicator-dots {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 2; /* Ensure dots are above the line */
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.3;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.dot.active {
    opacity: 1;
    background-color: #4086fc;
    transform: scale(1.5);
}

/* Content Items */
.content-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.content-item {
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0.3;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-item.active {
    opacity: 1;
    transform: translateY(0);
    color: #f0f8ff;
}

.item-content {
    display: flex;
    text-align: left;
    align-items: flex-start;
    gap: 2rem;
    margin: 12rem 0;
}

.item-number {
    width: 20%;
    font-size: 7.5rem !important;
}

.item .item-title {
    font-size: 3.5rem;
}

.item .item-description {
    font-size: 1rem;
    color: #666;
}

.item-icon {
    font-size: 3rem;
    transform: perspective(500px) rotateY(0deg);
    transition: transform 0.5s ease;
    width: 30%;
    padding: 2rem;
    margin: 0 1.2rem 0 0;
    background: #0e2440;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px #4502ffb5;
    border: none;
}

.what-sets-us-apart .fas.fa-desktop,
.what-sets-us-apart .fas.fa-wallet,
.what-sets-us-apart .fas.fa-hand-holding-usd,
.what-sets-us-apart .fas.fa-chart-bar,
.what-sets-us-apart .fas.fa-graduation-cap,
.what-sets-us-apart .fas.fa-headset,
.what-sets-us-apart .fas.fa-rocket,
.what-sets-us-apart .fas.fa-shield-alt {
    font-size: 10rem;
    color: #4086fc;
}

.content-item.active .item-icon {
    transform: perspective(500px) rotateY(360deg);
}

.small-text {
    font-size: 0.8rem;
    color: #999;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-text {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Scroll Animations */
.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bg {
        top: 4rem;
    }

    .what-sets-us-apart .section-title {
        font-size: 4rem;
    }

    .indicator-bar {
        left: 1%;
    }

    .indicator-dots {
        left: 10%;
    }

    .item-number {
        font-size: 5.5rem !important;
    }

    .item .item-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 767px) {
    .what-sets-us-apart .fas.fa-desktop,
    .what-sets-us-apart .fas.fa-wallet,
    .what-sets-us-apart .fas.fa-hand-holding-usd,
    .what-sets-us-apart .fas.fa-chart-bar,
    .what-sets-us-apart .fas.fa-graduation-cap,
    .what-sets-us-apart .fas.fa-headset,
    .what-sets-us-apart .fas.fa-rocket,
    .what-sets-us-apart .fas.fa-shield-alt,
    .fab.fa-bitcoin,
    .fas.fa-chart-line,
    .fas.fa-exchange-alt,
    .fas.fa-tachometer-alt,
    .fas.fa-lock,
    .fas.fa-headphones-alt,
    .fas.fa-user-check {
        font-size: 6rem;
    }

    .bg {
        top: 4rem;
    }

    .what-sets-us-apart .section-title {
        font-size: 3.5rem;
    }

    .indicator-bar {
        left: 1%;
    }

    .item-number {
        font-size: 5.5rem !important;
    }

    .item .item-title {
        font-size: 2.5rem;
    }

    .scroll-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        position: relative;
        margin: 2rem auto;
        overflow-x: hidden; /* Hide horizontal overflow */
        width: 100%;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        display: none;
    }

    .indicator-bar {
        display: none;
    }

    .indicator-dots {
        display: none;
    }

    /* Content Items */
    .content-items {
        display: flex;
        flex-direction: row; /* Horizontal layout for sliding */
        overflow-x: auto; /* Enable horizontal scrolling */
        scroll-snap-type: x mandatory; /* Snap to each item */
        width: 100%;
        gap: 0; /* No gap between items */
        scrollbar-width: none; /* Hide scrollbar */
        -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    }

    .content-items::-webkit-scrollbar {
        display: none; /* Hide scrollbar in WebKit browsers */
    }

    .content-item {
        flex: 0 0 100%; /* Each item takes full width */
        scroll-snap-align: start; /* Snap to the start of each item */
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
        opacity: 0.3;
        transform: translateY(50px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        text-align: center;
        padding: 0 20px; /* Add padding for spacing */
    }

    .content-item.active {
        opacity: 1;
        transform: translateY(0);
        color: #f0f8ff;
    }

    .item-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
        margin: 4rem 0;
    }

    .item-number {
        font-size: 5rem !important; /* Adjust as needed */
    }

    .item-title {
        font-size: 1.5rem; /* Adjust as needed */
    }

    .item-description {
        font-size: 0.9rem; /* Adjust as needed */
        color: #666;
    }

    .item-icon {
        font-size: 2rem; /* Adjust as needed */
        padding: 1rem;
        background: #0e2440;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 5px #4502ffb5;
        border: none;
        width: 45%;
    }

    .content-item.active .item-icon {
        transform: perspective(500px) rotateY(360deg);
    }
}

/* About Section */
.about-section {
    padding: 60px 20px;
    background-color: #0e2440;
    color: #f0f8ff;
    text-align: center;
}

.about-content p {
    font-size: 1rem;
    margin-bottom: 4rem;
    width: 80%;
    margin: auto;
}

.about-content .why-trade-futures {
    margin: 0 0 1.5rem;
}

.about-content .cards-container {
    margin: 4rem 0 1rem;
}

.about-content .card-icon {
    color: #0e2440;
}

.about-content .why-trade-futures .card {
    background: #f0f8ff;
}

.about-content .why-trade-futures .card-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #046d6d;
}

.about-content .card-description {
    font-size: 0.8rem;
    color: #1e3c72;
    margin-bottom: 20px;
}

/* Call to Action Section */
.cta-section {
    padding: 60px 20px;
    background-color: #046d6d;
    color: #f0f8ff;
    text-align: center;
}

.text-paragraph {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap; /* Ensure responsiveness */
}

.text-paragraph .cta-description,
.text-paragraph .cta-compliance-info {
    width: 100%; /* Full width on small screens */
    max-width: 500px; /* Max width for text blocks */
    margin: 0 auto; /* Center text blocks */
}

.cta-section .cta-button {
    background: #f0f8ff;
    color: #0e2440;
    padding: 12px 25px; /* Add padding for better button appearance */
    font-size: 1.1rem;
    border-radius: 5px; /* Slightly rounded edges */
    transition: all 0.3s ease; /* Smooth hover effect */
}

.cta-section .cta-button:hover {
    background-color: #1e3c72;
    color: #f0f8ff;
    cursor: pointer; /* Show pointer cursor */
}

.text-paragraph i {
    color: #0e2440; /* Icon color */
    margin-right: 10px; /* Increase spacing */
    font-size: 1.4rem; /* Slightly larger icons */
}

.text-paragraph .cta-description i,
.text-paragraph .cta-compliance-info i {
    font-size: 1.4rem; /* Larger icon size */
}

.text-paragraph p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #f0f8ff; /* Ensure readability */
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .cta-button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .text-paragraph {
        flex-direction: column; /* Stack the text blocks vertically */
        gap: 1rem; /* Reduce gap between the blocks */
    }

    .text-paragraph .cta-description,
    .text-paragraph .cta-compliance-info {
        width: 80%; /* Allow text blocks to take up more space on small screens */
    }

    .cta-section .cta-button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .text-paragraph i {
        font-size: 1.3rem; /* Smaller icons on mobile */
    }
}
