/* ===== متغيرات الألوان ===== */
:root {
    --bg-primary: #f4f7fc;
    --bg-secondary: #ffffff;
    --text-primary: #1e2a41;
    --text-secondary: #4a5b6e;
    --accent: #0b2a4f;
    --accent-light: #1c3e6b;
    --highlight: #ffb347;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,0.1);
    --footer-bg: #0a1a2f;
    --footer-text: #aab8c5;
}

/* الوضع الليلي - دافئ */
body.dark-mode {
    --bg-primary: #1e2a3a;
    --bg-secondary: #2c3e50;
    --text-primary: #f0f0f0;
    --text-secondary: #d0d0d0;
    --accent: #e67e22;
    --accent-light: #d35400;
    --highlight: #f39c12;
    --card-bg: #34495e;
    --card-shadow: rgba(0,0,0,0.5);
    --footer-bg: #0f1a24;
    --footer-text: #b0c0d0;
}

/* ===== إعادة الضبط ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* ===== زر تبديل الوضع ===== */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#theme-toggle-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: background 0.3s;
}

#theme-toggle-btn:hover {
    background: var(--highlight);
}

#theme-toggle-btn i {
    position: absolute;
    transition: opacity 0.3s;
}

body:not(.dark-mode) #theme-toggle-btn .fa-sun {
    opacity: 1;
}

body:not(.dark-mode) #theme-toggle-btn .fa-moon {
    opacity: 0;
}

body.dark-mode #theme-toggle-btn .fa-sun {
    opacity: 0;
}

body.dark-mode #theme-toggle-btn .fa-moon {
    opacity: 1;
}

/* ===== تأثير الظهور ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== الهيدر ===== */
.hero {
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 80px 0;
    border-bottom-left-radius: 100px 50px;
    border-bottom-right-radius: 100px 50px;
    margin-bottom: 60px;
    box-shadow: 0 15px 30px var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1 1 400px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--highlight);
    border-bottom: 3px solid var(--highlight);
    display: inline-block;
}

.hero-text p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--highlight);
}

.hero-image {
    flex: 1 1 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 25px 40px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.2);
}

/* ===== العناوين ===== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--accent);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--highlight);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== بطاقات الخدمات ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 40px 25px;
    box-shadow: 0 15px 30px var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 40px var(--card-shadow);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    margin: 20px 0;
    display: block;
}

.service-card .btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.service-card .btn:hover {
    background: var(--highlight);
}

/* ===== قسم النتائج ===== */
.results-section {
    background: var(--bg-secondary);
    border-radius: 80px 80px 0 0;
    padding: 80px 0;
    margin-top: 40px;
    transition: background 0.3s;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.result-item {
    background: var(--bg-primary);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--card-shadow);
    transition: transform 0.3s;
}

.result-item:hover {
    transform: scale(1.03);
}

.result-img {
    height: 250px;
    overflow: hidden;
}

.result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.result-item:hover .result-img img {
    transform: scale(1.1);
}

.result-content {
    padding: 30px;
}

.result-content h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.result-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--bg-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-badge i {
    color: var(--highlight);
}

.result-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ===== قسم واتساب ===== */
.whatsapp-block {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 100px 100px 0 0;
    margin-top: 60px;
}

.whatsapp-block h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #25d366;
    color: white;
    font-size: 2rem;
    padding: 20px 60px;
    border-radius: 70px;
    text-decoration: none;
    margin-top: 30px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    background: #20b859;
}

/* ===== تذييل ===== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: var(--highlight);
    text-decoration: none;
}

/* ===== تجاوب للجوال ===== */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    .whatsapp-button {
        font-size: 1.5rem;
        padding: 15px 30px;
    }
    .section-title {
        font-size: 2rem;
    }
    .theme-toggle {
        top: 10px;
        left: 10px;
    }
    #theme-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===== قسم الهدية المجانية ===== */
.free-gift-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 80px 0;
    margin: 60px 0;
    border-radius: 80px;
    color: white;
    box-shadow: 0 20px 40px var(--card-shadow);
}

.gift-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.gift-text {
    flex: 1 1 400px;
}

.gift-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.gift-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.gift-features {
    list-style: none;
    margin: 30px 0;
}

.gift-features li {
    margin: 15px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gift-features i {
    color: var(--highlight);
    font-size: 1.5rem;
}

.gift-note {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.8;
}

.gift-image {
    flex: 1 1 300px;
    position: relative;
    text-align: center;
}

.gift-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.2);
}

.gift-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--highlight);
    color: #1e2a41;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 15px 30px;
    border-radius: 50px;
    transform: rotate(10deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* تعديلات للوضع الليلي */
body.dark-mode .gift-badge {
    color: #0b2a4f;
}

/* تجاوب القسم */
@media (max-width: 768px) {
    .gift-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .gift-text h2 {
        font-size: 2rem;
    }
    .gift-features li {
        justify-content: center;
    }
    .gift-badge {
        font-size: 1.2rem;
        padding: 10px 20px;
        right: -5px;
    }
}
