:root{
    --primary:#6366f1; 
    --primary-dark:#4f46e5;
    --secondary:#1e1b4b; 
    --accent:#f43f5e; 
    --bg:#f8fafc;
    --text:#1e293b;
    --muted:#64748b;
    --border:#e2e8f0;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Tajawal', sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.8;
    text-align:right;
    direction:rtl;
}

/* Material Symbols global fix */
.material-symbols-rounded {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* container */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* navbar */
.navbar{
    position:sticky;
    top:0;
    z-index:999;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(10px);
    border-bottom:1px solid #edf2f7;
    box-shadow:0 4px 20px rgba(0,0,0,0.03);
}

.nav-flex{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 0;
    gap:20px;
    flex-wrap:wrap;
    flex-direction:row-reverse;
}

.logo{
    font-size:1.6rem;
    font-weight:900;
    color:var(--secondary);
    white-space:nowrap;
    letter-spacing: -0.5px;
}

.logo span{
    color:var(--primary);
}

.nav-links{
    display:flex;
    gap:28px;
    flex-wrap:wrap;
    direction:rtl;
    flex-direction:row-reverse;
}

.nav-links a{
    text-decoration:none;
    color:#334155;
    font-weight:700;
    transition:0.2s;
    white-space:nowrap;
}

.nav-links a:hover{
    color:var(--primary);
}

.btn-small{
    background:var(--primary);
    color:white;
    padding:10px 22px;
    border-radius:50px;
    text-decoration:none;
    font-weight:700;
    transition:0.3s;
    white-space:nowrap;
}

.btn-small:hover{
    background:var(--primary-dark);
}

/* buttons */
.btn-primary{
    background:var(--primary);
    color:white;
    padding:14px 34px;
    border:none;
    border-radius:50px;
    text-decoration:none;
    display:inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight:800;
    transition:0.3s;
    cursor:pointer;
    font-family:inherit;
}

.btn-primary:hover{
    background:var(--primary-dark);
    transform:translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-outline{
    border:2px solid white;
    color:white;
    padding:12px 30px;
    border-radius:50px;
    text-decoration:none;
    display:inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight:800;
    transition:0.3s;
    background:transparent;
    font-family:inherit;
}

.btn-outline:hover{
    background:white;
    color:var(--secondary);
}

/* hero */
.hero{
    background:linear-gradient(135deg, var(--secondary) 0%, #312e81 100%);
    color:white;
    padding:140px 0;
    text-align:center;
    position:relative;
    overflow:hidden;
}

.hero h1{
    font-size:3.5rem;
    line-height:1.3;
    margin-bottom:24px;
    font-weight:900;
}

.hero p{
    max-width:850px;
    margin:auto;
    font-size:1.3rem;
    opacity:0.9;
    font-weight: 500;
}

.hero-buttons{
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:16px;
    flex-wrap:wrap;
    flex-direction:row-reverse;
}

/* sections */
.section{
    padding:100px 0;
}

.section-alt{
    background:white;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
    font-size:2.6rem;
    font-weight:900;
    color:var(--secondary);
}

.section-title span{
    color:var(--primary);
}

/* grids */
.grid-3{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.grid-2{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:28px;
}

/* cards */
.card{
    background:white;
    border-radius:32px;
    padding:35px 30px;
    border:1px solid #edf2f7;
    box-shadow:0 12px 30px rgba(0,0,0,0.04);
    transition:0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: right;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.card .icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.card .icon-box .material-symbols-rounded {
    font-size: 34px;
    font-variation-settings: 'FILL' 1, 'wght' 500;
}

.price-card{
    text-align:center;
    position:relative;
}

.popular-badge{
    position:absolute;
    top:-14px;
    left:50%;
    transform:translateX(-50%);
    background:var(--accent);
    color:white;
    padding:8px 18px;
    border-radius:40px;
    font-size:0.85rem;
    font-weight:800;
    box-shadow: 0 4px 6px -1px rgba(244, 63, 94, 0.3);
}

.highlight{
    border:2px solid var(--primary);
}

.package-badge{
    background:#e0e7ff;
    color:var(--primary-dark);
    display:inline-block;
    padding:8px 16px;
    border-radius:50px;
    font-size:0.9rem;
    font-weight:800;
    margin-bottom:20px;
}

.price{
    font-size:3rem;
    font-weight:900;
    color:var(--secondary);
    margin:18px 0 8px;
}

.price small{
    font-size:1.1rem;
    font-weight:700;
}

/* features */
.feature-list{
    list-style:none;
    margin:28px 0;
    text-align:center;
}

.feature-list li{
    display:block;
    padding:12px 0;
    border-bottom:1px solid #f1f5f9;
    color:var(--text);
    font-weight:600;
}

.feature-list li:last-child {
    border-bottom: none;
}

.package-btn{
    width:100%;
    text-align:center;
}

/* steps */
.steps{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:24px;
}

.step-box{
    background:white;
    border-radius:24px;
    padding:35px 28px;
    text-align:center;
    border:1px solid #e2e8f0;
    transition: 0.3s;
}

.step-box:hover {
    border-color: var(--primary);
    background: #fcfdff;
}

.step-number{
    width:65px;
    height:65px;
    background:var(--primary);
    color:white;
    border-radius:50%;
    margin:auto auto 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.6rem;
    font-weight:900;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* testimonials */
.testimonial-card{
    background:#f8fafc;
    border-right:5px solid var(--primary);
    border-radius:24px;
    padding:32px;
    text-align:right;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.testimonial-card p {
    font-style: italic;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.testimonial-card span {
    color: var(--primary);
    font-weight: 800;
}

/* faq */
.faq-container{
    max-width:850px;
    margin:auto;
}

.faq-item{
    background:white;
    border-radius:24px;
    padding:24px;
    margin-bottom:18px;
    border:1px solid #e2e8f0;
    text-align:right;
}

.faq-question{
    font-weight:800;
    margin-bottom:10px;
    color:var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question .material-symbols-rounded {
    color: var(--primary);
    font-size: 26px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
}

.faq-answer{
    padding-right: 38px;
    font-weight: 500;
}

/* form */
.form-card{
    background:white;
    border-radius:40px;
    padding:40px;
    max-width:800px;
    margin:auto;
    box-shadow:0 20px 40px rgba(0,0,0,0.05);
}

.form-group{
    margin-bottom:24px;
}

label{
    display:block;
    margin-bottom:10px;
    font-weight:800;
    text-align:right;
    color: var(--secondary);
}

input,
select,
textarea{
    width:100%;
    padding:16px 18px;
    border:1px solid #cbd5e1;
    border-radius:22px;
    font-family:inherit;
    font-size:1rem;
    text-align:right;
    direction:rtl;
    background: #fdfdfd;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}

.btn-block{
    width:100%;
}

.form-note{
    margin-top:25px;
    text-align:center;
    font-size:1rem;
    color:var(--muted);
    font-weight: 600;
}

/* footer */
footer{
    background:var(--secondary);
    color:#e2e8f0;
    text-align:center;
    padding:80px 20px;
}

footer h2{
    color: white;
    margin-bottom: 20px;
    font-weight: 900;
}

footer h2 span{
    color: var(--primary);
}

.footer-desc{
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.8;
    font-weight: 500;
}

.footer-wa{
    font-weight: 800;
    color: white;
    font-size: 1.1rem;
}

.footer-bottom{
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
    opacity: 0.6;
}

/* whatsapp */
.whatsapp-float{
    position:fixed;
    bottom:25px;
    right:25px;
    background:#22c55e;
    width:65px;
    height:65px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    text-decoration:none;
    box-shadow:0 10px 25px rgba(34, 197, 94, 0.3);
    z-index:999;
    transition:0.3s;
}

.whatsapp-float:hover{
    transform:scale(1.1) rotate(10deg);
}

/* about helper */
.about-content{
    max-width:850px;
    margin:auto;
    text-align:center;
}

.about-badges{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin-top:50px;
    flex-direction:row-reverse;
}

.badge-item{
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    border: 1px solid #e2e8f0;
}

.badge-item span{
    color: var(--primary);
    font-size: 24px;
}

/* disclaimer */
.disclaimer{
    margin-top:40px;
    text-align:center;
    color:#64748b;
    font-size:0.95rem;
    line-height:2;
    font-weight: 500;
}

/* responsive */
@media(max-width:768px){
    .hero h1{ font-size:2.5rem; }
    .section{ padding:70px 0; }
    .section-title{ font-size:2rem; }
    .nav-flex{ flex-direction:column-reverse; }
    .hero-buttons{ flex-direction:column-reverse; }
    .btn-primary, .btn-outline{ width:100%; }
    .nav-links{ flex-direction:column; gap:12px; width:100%; text-align: center; }
    .nav-links a { display: block; padding: 5px 0; }
    .about-badges{ gap: 10px; }
}
