﻿
body {
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}



/* navbar - edited */

.navbar-nav .nav-link {
    font-weight: bold;
    color: #198754 !important; /* أخضر */
    padding: 8px 14px;
    border-radius: 6px; /* نعومة عند الهوفر */
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #fff !important; /* النص أبيض */
        background-color: #198754 !important; /* الخلفية خضراء */
    }


/* ======= Hero Section ======= */
.parallax {
    background: url('asesst/bg1.png') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-text h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,.6);
}

.hero-text h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    color: #4CAF50;
    margin-top: 15px;
}

.audio-btn {
    margin-top: 20px;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background: #28a745;
    color: #fff;
    width: 100%;
    max-width: 300px;
}

    .audio-btn:hover {
        background: #218838;
    }

/* صورة p1 */
.side-image {
    position: absolute;
    bottom: 0;
    right: 0;
    max-height: 70vh;
    width: auto;
    z-index: 5;
    pointer-events: none;
}

/* صورة جانبية لسطح المكتب */
.side-image {
    position: absolute;
    bottom: 0;
    right: 0;
    max-height: 70vh;
    width: auto;
    z-index: 5;
    pointer-events: none;
}

/* نسخة الجوال مخفية افتراضياً */
.p1-mobile {
    display: none;
    text-align: center; /* خلي الصورة بالوسط */
}

/* عند الشاشات الصغيرة (جوال) */
@media (max-width: 768px) {
    .side-image {
        display: none;
    }
    /* أخفي نسخة الكمبيوتر */
    .p1-mobile {
        display: block;
    }
        /* أظهر نسخة الجوال تحت زر الصوت */
        .p1-mobile img {
            max-width: 220px;
            height: auto;
        }
    /* حجم مناسب للجوال */
}

/* ======= Parallax-2 Section (مع الفقاعات) ======= */
.parallax-2 {
    background: url('asesst/bg13.png') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}
/* فقاعات */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 50px;
    opacity: 0.8;
    animation: floatBubble 15s infinite;
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-60vh) scale(1.2);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-120vh) scale(1);
        opacity: 0;
    }
}

.bubble:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    left: 25%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.bubble:nth-child(3) {
    left: 40%;
    animation-duration: 15s;
    animation-delay: 6s;
}

.bubble:nth-child(4) {
    left: 60%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.bubble:nth-child(5) {
    left: 75%;
    animation-duration: 17s;
    animation-delay: 5s;
}

.bubble:nth-child(6) {
    left: 90%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.parallax-2 .hero-text {
    position: relative;
    z-index: 2;
}

/* ======= Quiz Section ======= */
.quiz-section {
    background: url('asesst/bg14.png') center/cover no-repeat fixed;
    padding: 60px 20px;
    color: #fff;
    position: relative;
    z-index: 10; /* مهم عشان يطلع فوق أي عناصر */
}

.quiz-card {
    max-width: 400px;
    margin: 0 auto;
    background: #64b47d;
    backdrop-filter: blur(4px);
    border: 1px solid #95a0ab33;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px #00000055;
}

.progress-wrap {
    width: 100%;
    height: 10px;
    background: white;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #28a745;
    transition: width .35s ease;
}

.question {
    background: #01343a;
    border-radius: 14px;
    padding: 18px;
    margin: 18px 0;
}

    .question h3 {
        font-size: 15px;
    }

.choices {
    display: grid;
    gap: 10px;
}

.choice {
    background: #fff;
    color: #1a1818;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
}

    .choice.correct {
        border: 2px solid #4caf50;
    }

    .choice.wrong {
        border: 2px solid #e53935;
    }

.result {
    text-align: center;
    margin-top: 20px;
}

    .result img {
        max-width: 200px;
        height: auto;
    }

/* ======= Messages Section ======= */



/* الحاوية العامة */
#comments-section {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

/* صندوق التعليقات */
#cusdis_thread {
    width: 100%;
    max-width: 850px;
    background: rgba(255, 255, 255, 0.9); /* خلفية شبه شفافة */
    border: 2px solid #006c35; /* أخضر غامق */
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-family: 'Cairo', sans-serif;
}

    /* تعديل الروابط */
    #cusdis_thread a {
        color: #006c35 !important;
        font-weight: 600;
    }

    /* تعديل العناوين */
    #cusdis_thread h1,
    #cusdis_thread h2,
    #cusdis_thread h3 {
        color: #004d26 !important;
    }

/* النصوص */
#cusdis_thread {
    color: #1a1818;
    font-size: 15px;
}

    /* أزرار */
    #cusdis_thread button {
        background-color: #006c35 !important;
        color: #fff !important;
        border-radius: 10px;
        padding: 8px 14px;
        font-weight: 600;
    }

        #cusdis_thread button:hover {
            background-color: #004d26 !important;
        }
/* تحسين الخطوط */
#cusdis_thread {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #1a1818;
}

    /* الحقول */
    #cusdis_thread input,
    #cusdis_thread textarea {
        border-radius: 10px !important;
        border: 1px solid #95a0ab !important;
        padding: 10px !important;
    }

    /* الأزرار */
    #cusdis_thread button {
        background-color: #006c35 !important;
        color: #fff !important;
        border-radius: 8px !important;
        font-weight: 600;
        padding: 8px 16px;
    }

        #cusdis_thread button:hover {
            background-color: #004d26 !important;
        }


/* this section for the messages */

.emoji {
    cursor: pointer;
    transition: transform 0.2s;
}

    .emoji:hover {
        transform: scale(1.2);
    }

.title-text {
    color: #28a745;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

/* for mobiless*/


@media (max-width: 576px) {
    #comments-section .card {
        max-width: 100% !important;
        margin: 0 15px;
    }

    .emoji {
        width: 40px !important;
    }
}


