body {
    margin: 0;
    padding: 0;
    background-color: #1a1d21; 
    color: #ffffff;
}
header, footer {
    background: #1a1d21;
    color: #ffffff;
    padding: 15px;
    text-align: center;
}
p, h2, h3, h1 {
    direction: rtl; 
    unicode-bidi: embed;
    text-align: justify; 
}

.no-style {
    direction: rtl !important; 
    unicode-bidi: normal !important; 
    text-align: center !important; 
}
footer p, footer h2, footer h3, footer h1 {
    direction: unset !important; 
    unicode-bidi: unset !important; 
    text-align: unset !important; 
}
.text-center {
    text-align: center !important; 
    direction: rtl;
    unicode-bidi: embed; 
}

@keyframes moveUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features .feature {
    direction: rtl;
    unicode-bidi: embed;
    text-align: justify;
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s;
}

.feature.show {
    opacity: 1; 
    transform: translateY(0); 
}

.features .feature:nth-child(odd) {
    animation-delay: 0s;
}

.features .feature:nth-child(even) {
    animation-delay: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
.features.container {
    min-height: 500px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.features.container .feature {
    min-height: 150px;
}
#line1, #line2 {
    min-height: 50px;
}
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-top: 30px;
}
.feature {
    background: linear-gradient(145deg, #3b4b51, #1a1d21); 
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
    background-color: #5a6d74;
}

.feature h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #3a9ad9; 
}
.feature p {
    font-size: 1.2em; 
    color: #d1d5db;
}
.features:last-child {
    justify-content: center;
}
.about {
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.about.show {
    opacity: 1;
    transform: translateY(0); 
}
.about h2 {
    font-size: 2.2em; 
    margin-bottom: 25px;
    color: #3a9ad9; 
}
.about p {
    font-size: 1.3em; 
    color: #d1d5db; 
    text-align: center; 
    line-height: 1.8;
    margin: 0 auto;
    max-width: 1200px; 
}
.main-banner {
    text-align: center;
    padding: 60px 20px;
    color: #3a9ad9; 
    opacity: 0; 
    transform: translateY(-20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; 
}
.main-banner.show {
    opacity: 1;
    transform: translateY(0); 
}

.hidden, .feature, .cta, .about, .main-banner {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.show, .feature.show, .cta.show, .about.show, .main-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: none;
    transform-origin: left;
    transform: scaleX(0);
    animation: typing 0.5s steps(30, end) forwards;
    will-change: transform; 
    min-width: fit-content;
    min-height: 50px;
}

@keyframes typing {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #3a9ad9; }
}

.main-banner h1 {
    font-size: 2.8em; 
    margin-bottom: 20px;
}
.main-banner p {
    font-size: 1.3em; 
    margin-bottom: 35px;
    color: #d1d5db; 
}
.main-banner button {
    background-color: #3a9ad9;
    color: #1a1d21;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(145deg, #3b4b51, #1a1d21); 
    font-size: 1.2em; 
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.cta.show {
    opacity: 1;
    transform: translateY(0);
}

.cta h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #3a9ad9; 
}
.cta button {
    background-color: #3a9ad9;
    color: #1a1d21;
    border: none;
    padding: 18px 35px; 
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cta button:hover {
    background-color: #2978b5;
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}
.main-banner button:hover, .cta button:hover {
    background-color: #2978b5;
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

#line2 {
    display: block;
    max-width: 95%; 
    margin: 0 auto; 
    font-size: 1.5em; 
    text-align: center; 
    word-wrap: break-word; 
    white-space: normal; 
}

@media (min-width: 320px) and (max-width: 850px) {
    .features {
        grid-template-columns: 1fr; 
    }
    .feature {
        max-width: 100%;
        margin: 0 auto; 
    }
    .main-banner h1 {
        font-size: 1.5em;
        text-align: center;
        line-height: 1.4; 
    }

    #line2 {
        font-size: clamp(0.8em, 4vw, 1.2em); 
    }

    .main-banner button {
        padding: 10px 20px;
        font-size: 0.9em; 
        width: 80%; 
        max-width: 300px; 
        margin: 20px auto;
        display: block;
    }

}
