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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* منع الزوم فقط مع السماح بالتمرير العمودي */
    touch-action: pan-y;
    -webkit-touch-callout: none;
}

/* ===== الحاوي العام ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== رأس الصفحة ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* الشعار */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* قائمة الهامبرغر */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== المحتوى الرئيسي ===== */
.main {
    padding-top: 100px;
    min-height: calc(100vh - 80px);
}

/* قسم البطل */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #6b7280;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== الأزرار ===== */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* ===== قسم أنواع الشكاوى ===== */
.complaint-types-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* السلايدر */
.complaint-types-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.complaint-types-container {
    overflow: hidden;
    border-radius: 20px;
}

.complaint-types-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%;
}

/* بطاقات أنواع الشكاوى */
.complaint-type-card {
    flex: 0 0 calc(100% / 24);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.complaint-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.complaint-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(30, 58, 138, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #1e40af;
    transition: all 0.3s ease;
}

.complaint-type-card:hover .complaint-icon {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    transform: scale(1.1);
}

.complaint-type-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}

/* أزرار التنقل */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(30, 64, 175, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.5rem;
    color: #1e40af;
}

.slider-btn:hover {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    right: 10px;
}

.slider-next {
    left: 10px;
}

/* مؤشرات التنقل */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #1e40af;
    transform: scale(1.2);
}

.indicator:hover {
    background: #1e40af;
}

/* ===== ذيل الصفحة ===== */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-text {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* ===== الحركات والتأثيرات ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== التصميم المتجاوب ===== */

/* الأجهزة اللوحية */
@media (max-width: 1024px) {
    .complaint-type-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
    
    .complaint-types-slider {
        padding: 0 50px;
    }
}

/* الهواتف الكبيرة */
@media (max-width: 768px) {
    .hero-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .complaint-types-section {
        padding: 3rem 0;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .complaint-types-wrapper {
        display: flex;
        transition: transform 0.5s ease;
        width: 300%;
    }
    
    .complaint-type-card {
        flex: 0 0 calc(50% - 0.5rem);
        padding: 1rem 0.5rem;
        min-height: 140px;
        margin: 0 0.25rem;
    }
    
    .complaint-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .complaint-type-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .complaint-types-slider {
        padding: 0 40px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* الهواتف الصغيرة والمتصفحات الضيقة */
@media (max-width: 480px), (max-width: 900px) and (max-height: 600px) {
    .hero-card {
        padding: 1.5rem 1rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .complaint-types-section {
        padding: 3rem 1rem;
        margin: 1.5rem 0.5rem;
        border-radius: 25px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .complaint-types-slider {
        padding: 0 50px;
        margin-bottom: 1rem;
    }
    
    .complaint-types-container {
        border-radius: 15px;
        padding: 0.5rem 0;
    }
    
    .complaint-types-wrapper {
        display: flex;
        transition: transform 0.5s ease;
        width: 1000%; /* عرض يساوي 10 شرائح × 100% */
    }
    
    .complaint-type-card {
        flex: 0 0 calc(100% / 22); /* 22 بطاقة موزعة على 10 شرائح */
        padding: 1.5rem 1rem;
        min-height: 160px;
        margin: 0 0.25rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    .complaint-type-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    }
    
    .complaint-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
        flex-shrink: 0;
    }
    
    .complaint-type-title {
        font-size: 1.1rem;
        line-height: 1.5;
        margin: 0;
        font-weight: 600;
        color: #1f2937;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
    }
    
    .slider-btn:hover {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 12px 30px rgba(30, 64, 175, 0.35);
    }
    
    .slider-prev {
        right: 15px;
    }
    
    .slider-next {
        left: 15px;
    }
    
    .slider-indicators {
        margin-top: 2.5rem;
        gap: 0.4rem;
        flex-wrap: wrap;
        max-width: 100%;
        justify-content: center;
        padding: 0 1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        margin: 0.2rem;
    }
    
    .indicator.active {
        transform: scale(1.3);
        box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
    }
}

/* الشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .complaint-types-section {
        padding: 2rem 0.5rem;
        margin: 1rem 0.25rem;
    }
    
    .complaint-types-slider {
        padding: 0 35px;
    }
    
    .complaint-type-card {
        flex: 0 0 calc(95% - 0.5rem); /* بطاقة أكبر للشاشات الصغيرة جداً */
        padding: 1.5rem 1rem;
        min-height: 160px;
        margin: 0 0.25rem;
    }
    
    .complaint-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .complaint-type-title {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .slider-prev {
        right: 10px;
    }
    
    .slider-next {
        left: 10px;
    }
    
    .slider-indicators {
        margin-top: 2rem;
        gap: 0.3rem;
        padding: 0 0.5rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        margin: 0.1rem;
    }
}

/* الشاشات الصغيرة جداً - عمودي */
@media (max-width: 320px) {
    .complaint-types-section {
        padding: 1.5rem 0.25rem;
        margin: 0.5rem 0.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .complaint-types-slider {
        padding: 0 30px;
    }
    
    .complaint-type-card {
        flex: 0 0 calc(98% - 0.25rem);
        padding: 1.25rem 0.75rem;
        min-height: 140px;
        margin: 0 0.125rem;
        gap: 1rem;
    }
    
    .complaint-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .complaint-type-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slider-prev {
        right: 5px;
    }
    
    .slider-next {
        left: 5px;
    }
    
    .slider-indicators {
        margin-top: 1.5rem;
        gap: 0.25rem;
        padding: 0 0.25rem;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
        margin: 0.05rem;
    }
}

