* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
    color: #333;
}

html, body {
    overflow-x: hidden;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    background: transparent; /* Optional, because by default it's transparent */
    box-shadow: none; /* Just to be 100% sure there's no shadow */
}


section {
    padding: 10px 0;
    box-sizing: border-box;
}

header {
    background-image: url('images/bg1.jpeg'), linear-gradient(180deg, #6a1b9a 0%, #d81b60 100%);
    background-size: cover, 100% 100%;
    background-position: center, top;
    background-repeat: no-repeat, no-repeat;
    color: #fff;
    position: relative;
    text-align: center;
    padding-bottom: 60px;
    overflow: hidden;
}

.header-icons {
    position: absolute;
    width: 100%;
    top: 24px;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.header-icons img {
    width: 28px;
    height: 28px;
}

.header-logo {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
}

.header-logo img {
    width: 38px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 90px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    text-align: center;
}

.hero-subtext {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 28px;
    max-width: 420px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Larger screen styles */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtext {
        font-size: 1.1rem;
        max-width: 600px;
    }
}

.mobile-preview {
    display: block;
    margin: 0 auto 28px auto;
    width: 100%;
    max-width: 650px;
    height: auto;
    padding: 0 10px;
}


.download-btn-img, .download-btn-img2 {
    display: block;
    width: 100%;
    height: 64px;
    margin: 32px auto;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
    text-indent: -9999px;
    cursor: pointer;
}

.download-btn-img {
    background-image: url('images/purple btn.png');
}

.download-btn-img2 {
    background-image: url('images/white btn download.png');
}

.why-section {
    background: #fff;
    text-align: center;
    overflow: hidden;
    padding: 40px 16px;
}

.why-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: black;
    margin-bottom: 8px;
}

.why-underline {
    width: 48px;
    height: 4px;
    background: red;
    border-radius: 4px;
    margin: 0 auto 18px;
}

.why-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: black;
    font-weight: 500;
    margin-bottom: 24px;
}

/* Larger screen adjustments */
@media (min-width: 768px) {
    .why-title {
        font-size: 1.6rem;
    }

    .why-text {
        font-size: 1rem;
        max-width: 700px;
        margin: 0 auto 24px;
    }
}


.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 30px;
    z-index: 1;
    position: relative;
    padding: 0 16px;
}

.feature {
    text-align: center;
    max-width: 200px;
}

.feature img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.feature p {
    font-size: 0.6rem;
    color: black;
    font-weight: 400;
    margin: 0;
}

/* Larger screen styles */
@media (min-width: 768px) {
    .feature img {
        width: 64px;
        height: 64px;
    }

    .feature p {
        font-size: 0.95rem;
    }
}


.study-companion *, .kids-section * {
    font-family: 'Segoe UI', Arial, sans-serif;
}

.study-title, .kids-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: black;
    margin-bottom: 8px;
}


.study-underline, .kids-underline {
    width: 48px;
    height: 4px;
    background: #e6007e;
    border-radius: 4px;
    margin: 0 auto 18px auto;
}

.study-content, .kids-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-content {
    flex-direction: row;
}

.kids-content {
    flex-direction: row-reverse;
}

.study-image, .kids-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.study-image img, .kids-image img {
    width: 50%;
    max-width: none;
    height: auto;
    transform-origin: center;
    overflow: visible;
}


.study-text, .kids-text {
    flex: 2;
    text-align: center;
}

.study-desc, .kids-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    max-width: 700px;
    color: black;
    margin-bottom: 24px;
    text-align: center;
}

@media (max-width: 700px) {
    /*    .study-content, .kids-content { flex-direction: column; gap: 28px; }*/
    /*    .study-title, .kids-title { text-align: center; }*/
    /*    .study-underline, .kids-underline { margin: 0 auto 18px auto; }*/
    /*    .study-desc, .kids-desc { text-align: center; }*/
    /*}*/
    .study-image img, .kids-image img {
        width: 100%;
    }
}

.about-section {
    position: relative;
    background: url('images/about.png') center/cover no-repeat;
    text-align: center;
    color: #fff;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(55, 43, 64, 0.6);
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.about-underline {
    width: 48px;
    height: 10px;
    background: #e6007e;
    border-radius: 4px;
    margin: 0 auto 18px auto;
}

.about-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.about-list {
    font-weight: bold;
    margin: 10px 0;
}

.vision-section {
    background: #fff;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.vision-title {
    color: #d81b60;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.vision-text {
    color: black;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.levelup-section {
    color: #fff;
    background-image: url('images/bg1.jpeg'), linear-gradient(180deg, #6a1b9a 0%, #d81b60 100%);
    background-size: cover, 100% 100%;
    background-position: center, top;
    background-repeat: no-repeat, no-repeat;
    text-align: center;
}

.levelup-title {
    font-family: 'Arial BlackPoppins', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 18px;
}

.levelup-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 24px;
}

footer {
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.progress-section {
    background: #fff;
    padding: 60px 0;
}

.progress-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    text-align: center;
}

.progress-row.reverse {
    flex-direction: row-reverse;
}

.progress-image img {
    width: 200px;
    height: auto;
}

.progress-text {
    max-width: 420px;
    padding: 0 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}

.progress-icon-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.progress-icon {
    width: 36px;
    height: auto;
    margin-bottom: 8px;
}


.progress-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: black;
    margin-bottom: 8px;

}

.progress-desc {
    font-size: 0.7rem;
    color: black;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;

}

@media (max-width: 768px) {
    .progress-row,
    .progress-row.reverse {
        text-align: center;
    }

    .progress-text {
        max-width: 420px;
        padding: 0 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    .progress-image img {
        margin: 0 auto;
        width: 120px;

    }
}

/* Default styles for titles */
h1, h2, h3, .hero-title, .kids-title, .about-title, .vision-title, .levelup-title, .progress-title {
    font-weight: 600;
    transition: font-family 0.2s ease;
}

/* English font */
.font-en h1,
.font-en h2,
.font-en h3,
.font-en .hero-title,
.font-en .why-title,
.font-en .study-title,
.font-en .kids-title,
.font-en .about-title,
.font-en .vision-title,
.font-en .levelup-title,
.font-en .progress-title {
    font-family: 'Poppins', sans-serif;
}

/* Arabic font */
.font-ar h1,
.font-ar h2,
.font-ar h3,
.font-ar .hero-title,
.font-ar .why-title,
.font-ar .study-title,
.font-ar .kids-title,
.font-ar .about-title,
.font-ar .vision-title,
.font-ar .levelup-title,
.font-ar .progress-title {
    font-family: 'Cairo', sans-serif;
}

/* Par défaut (desktop/tablette) — on cache tout */
.decorative-circle,
.decorative-circle2,
.decorative-circle3,
.decorative-circle4 {
    display: none;
}

/* Sur mobile (écrans max 768px) — on les montre */
@media (max-width: 582px) {
    .decorative-circle,
    .decorative-circle2,
    .decorative-circle3,
    .decorative-circle4 {
        display: block;
    }
}


.decorative-circle {
    position: absolute;
    top: 1100px;
    width: 150px;
    right: 0;
}


.decorative-circle2 {
    position: absolute;
    left: 0;
    width: 55px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.decorative-circle3 {
    position: absolute;
    width: 90px;
    right: 0;
    top: -126px;
}

.decorative-circle4 {
    position: absolute;
    width: 200px;
    left: 0;
    top: 100px;
}

/* Menu button */
.menu-button {
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Menu container */
.mobile-nav {
    position: relative;
}

/* Menu content */
.nav-links {
    position: absolute;
    top: 60px;
    right: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    list-style: none;
    display: none;
    flex-direction: column;
    z-index: 1000;
    width: 220px;
    animation: slideDown 0.3s ease;
}

/* Menu items */
.nav-links li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.nav-links li:last-child {
    border-bottom: none;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #4caf50;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}


.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    color: #2d0c57;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 40px;
    background: #f6f4ff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    list-style: none;
    z-index: 999;
    width: 160px;
}

.lang-menu li {
    color: black;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-menu li:hover {
    background-color: #ece8ff;
}

.lang-menu img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
