body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

.navbar-right{
    margin-right: 3%;
}

/* Sign In Button */
.btn-signin {
    background: transparent;
    border: 2px solid #999;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.btn-signin:hover {
    background: #ddd;
    color: #000;
}

/* Free Trial Button */
.btn-signup {
    background: linear-gradient(90deg, #9911d8, #b266ff);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.btn-signup:hover {
    background: linear-gradient(90deg, #e0559a, #9a55e0);
}

.navbar{
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0); 
    background: #f7f7f7;
    padding: 12px 25px;
    border-bottom: 1px solid gainsboro;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
    color: #9b59b6;
}

/* Center Section (Nav Links) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

.nav-links a.active {
    color: #9b59b6;
    border-bottom: 3px solid #9b59b6;
}

.nav-links a:hover {
    color: #9b59b6;
}

.btn {
    background: #9b59b6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #8e44ad;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3% 10%;
    background: #f7f7f7;
}

.hero-text h1 {
    font-size: 36px;
    color: #590992;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.hero-images img {
    width: 100%;
    border-radius: 10%;
    margin: 10px;
    transition: transform 0.3s ease;
}

.hero-images img:hover {
    transform: scale(1.1);
}

/* Trusted Section */
.trusted {
    text-align: center;
    background: linear-gradient(180deg, #a669e4, #e072e4);
}

.trusted span {
    font-weight: bold;
    color: #6a0dad;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.logos img {
    width: 100px;
    height: auto;
}

.stats-numbers {
    display: flex;
    justify-content: space-around;
}

.stats-numbers p {
    font-size: 18px;
    color: #f7f7f7;
}

.stats-numbers strong {
    font-size: 26px;
    color: #f7f7f7;
    display: flex;
    flex-direction: column;
}

/* Statistics Section */
.stats {
    display: flex;
    justify-content: space-between;
    padding: 2% 13%;
    background: #f7f7f7;
    text-align: center;
}

.stats-content{
    margin-top: 6%;
}
.stats-content h2 {
    font-size: 28px;
    color: #590992;
    margin-bottom: 20px;
}

.stats-content ul {
    list-style: none;
    padding: 0;
    margin: 2%;

}

.stats-content ul li {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

@media (max-width: 780px) {
    .stats {
        flex-direction: column;
        text-align: center;
    }
    .stat-img {
        max-width: 90%;
        margin-bottom: 20px;
    }
    .stats-content {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .stats-content h2 {
        font-size: 1.8rem;
    }
    .stats-content ul li {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

}

/* Features Section */
.features {
    text-align: center;
    padding: 50px;
    background: linear-gradient(180deg, #a669e4, #e072e4);
}

.features h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
}

.feature-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 30px;
    color: #6a0dad;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 20px;
    color: #590992;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: #666;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #a669e4, #e072e4);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

footer p {
    margin: 0;
}

/* Carousel Section */
.quiz-carousel {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, #a669e4, #e072e4);
}

.quiz-carousel h2 {
    font-size: 28px;
    color: #f0ecec;
    margin-bottom: 20px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 950px;
    margin: auto;
}

.carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.card {
    min-width: 280px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.card img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
}

.card h3 {
    font-size: 20px;
    color: #6a0dad;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.card .btn {
    background: #9b59b6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.card .btn:hover {
    background: #8e44ad;
}

.carousel-btn {
    background: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: #eee;
}

.left-btn {
    left: -40px;
}

.right-btn {
    right: -40px;
}

.info-section {
    background-color: #F5F1EB;
    padding: 35px 7%;
}

.info-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-container.reverse {
    flex-direction: row-reverse;
}

.info-text {
    max-width: 45%;
}

.info-text h2 {
    font-size: 2rem;
    color: #590992;
    font-weight: bold;
}

.info-text p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 10px;
}

.info-image {
    max-width: 40%;
}

.info-image img {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        text-align: center;
    }
    .info-container.reverse {
        flex-direction: column;
    }
    .info-text, .info-image {
        max-width: 100%;
    }
}

/* Footer Styles */
.footer {
    background-color: #6C63FF;
    color: white;
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 30px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer Links */
.footer-links {
    flex: 2;
    min-width: 250px;
    text-align: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links ul li {
    display: inline;
}

.footer-links ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #FFD700;
}

/* Footer Social Icons */
.footer-social {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #FFD700;
}

/* Footer Copyright Text */
.footer-text {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* 🔹 Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        margin-bottom: 15px;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .footer-social {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .footer-logo h2 {
        font-size: 1.2rem;
    }

    .footer-links ul li a {
        font-size: 0.9rem;
    }

    .footer-social a {
        font-size: 1.3rem;
    }
}


/* ===== Scroll Animation Styles ===== */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-animate="fade-in"] {
    transform: translateY(30px);
}

[data-animate="slide-left"] {
    transform: translateX(-50px);
}

[data-animate="slide-right"] {
    transform: translateX(50px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0);
}

/* Delay classes for staggered animations */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Gradient Animation for Sections */
.trusted, .features, .quiz-carousel, .footer {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Add this to ensure smooth animation retriggering */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease-out;
    will-change: transform, opacity; /* Optimize for performance */
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0);
}

/* Reset transform properties when not animated */
[data-animate="fade-in"]:not(.animated) {
    transform: translateY(30px);
}

[data-animate="slide-left"]:not(.animated) {
    transform: translateX(-50px);
}

[data-animate="slide-right"]:not(.animated) {
    transform: translateX(50px);
}

@media (max-width: 992px) {

    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .navbar{
        padding: 9px 12px;
    }
    .navbar-right {
        display: flex;
        gap: 5px;
    }
    
    .btn-signin, .btn-signup {
        padding: 6px 12px;
        font-size: 12px;
    }
}


@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 5%;
        text-align: center;
    }
    
    .hero-images img {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        margin-top: 15%;
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .stats{
        padding: 7% 10%;
        padding-left: 16%;
    }
 
    .stats-content h2 {
        font-size: 24px;
        margin-top: 0%;
    }
    
    .stats-content ul li {
        font-size: 16px;
    }

    .stats-content ul{
        padding-bottom: 3%;
    }
}


@media (max-width: 768px) {
    .features {
        padding: 30px 20px;
    }
    
    .feature-box {
        gap: 15px;
    }
    
    .feature {
        width: 45%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .feature {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .info-section {
        padding: 30px 5%;
    }
    
    .info-text h2 {
        font-size: 1.5rem;
    }
    
    .info-text p {
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .quiz-carousel {
        padding: 40px 10px;
    }
    
    .carousel-container {
        max-width: 100%;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .carousel {
        padding: 10px 20px;
    }
    
    .card {
        min-width: 250px;
    }
}


@media (max-width: 768px) {
    .stats-numbers {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .stats-numbers p {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .stats-numbers strong {
        font-size: 22px;
    }
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.container-class, 
section, 
.hero, 
.stats, 
.features, 
.info-section, 
.quiz-carousel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 3. Specifically fix your hero section */
.hero {
    max-width: 100%;
    overflow: hidden;
}

/* 5. Fix navbar width */
.navbar {
    width: 100vw;
    max-width: 100%;
    position: fixed;
    left: 0;
    right: 0;
}
