/*  styles.css*/

body {
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

/* أنماط العداد التنازلي */
.countdown-container {
    position: relative;
    overflow: hidden;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .countdown-timer {
        gap: 0.5rem;
    }
}

.countdown-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.15));
    border-radius: 12px;
    border: 2px solid rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .countdown-item {
        padding: 0.75rem 0.5rem;
        border-radius: 8px;
    }
}

.dark .countdown-item {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.25));
    border-color: rgba(239, 68, 68, 0.4);
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

@media (max-width: 768px) {
    .countdown-value {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .countdown-value {
        font-size: 1.5rem;
    }
}

.dark .countdown-value {
    color: #f87171;
    text-shadow: 0 2px 4px rgba(248, 113, 113, 0.3);
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #991b1b;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 640px) {
    .countdown-label {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
}

.dark .countdown-label {
    color: #fca5a5;
}

.countdown-expired {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

@media (max-width: 640px) {
    .countdown-expired {
        padding: 1.5rem;
        font-size: 1.25rem;
    }
}

.pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.extended-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    animation: gentle-bounce 2s ease-in-out infinite;
}

@media (max-width: 640px) {
    .extended-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .hero-wave svg {
        height: 60px;
    }
    
    .eco-icon {
        width: 220px;
        height: 220px;
    }
    
    .service-mini-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .eco-center-icon {
        width: 80px;
        height: 80px;
    }
    
    .eco-center-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .eco-icon {
        width: 180px;
        height: 180px;
    }
    
    .service-mini-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .eco-center-icon {
        width: 65px;
        height: 65px;
    }
    
    .eco-center-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .eco-icon {
        width: 160px;
        height: 160px;
    }
    
    .service-mini-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .eco-center-icon {
        width: 55px;
        height: 55px;
    }
    
    .eco-center-icon i {
        font-size: 1.8rem;
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 75px;
}

.hero-wave .shape-fill {
    fill: #FFFFFF;
}

.dark .hero-wave .shape-fill {
    fill: #181818;
}

/* تحسين تأثيرات كروت الخدمات */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.2);
}

@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-8px);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(14, 165, 233, 0.05));
    transition: height 0.5s ease;
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

@media (max-width: 640px) {
    .service-icon-wrapper {
        width: 70px;
        height: 70px;
        margin: 0 auto 15px;
    }
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #22c55e;
    transition: all 0.4s ease;
}

@media (max-width: 640px) {
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

.dark .service-icon {
    background-color: #1e293b;
    color: #4ade80;
}

.service-card:hover .service-icon-wrapper {
    transform: rotate(360deg);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.service-card-content {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* زر "المزيد من الخدمات" الجديد */
.pulse-btn {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: -1;
}

.pulse-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* الأيقونات المتحركة */
@keyframes paper-move {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes tshirt-move {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

@keyframes bottle-move {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(-5deg); }
}

@keyframes teach-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

.service-card:hover .icon-paper {
    animation: paper-move 1s ease-in-out infinite;
}

.service-card:hover .icon-tshirt {
    animation: tshirt-move 1s ease-in-out infinite;
}

.service-card:hover .icon-bottle {
    animation: bottle-move 1s ease-in-out infinite;
}

.service-card:hover .icon-teach {
    animation: teach-move 1s ease-in-out infinite;
}

/* تنسيقات للأسئلة الشائعة */
.faq-item {
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-header {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    user-select: none;
}

@media (max-width: 640px) {
    .faq-header {
        padding: 0.75rem 1rem;
    }
}

.dark .faq-header {
    background-color: #1f2937;
    border-bottom: 1px solid #374151;
}

.faq-icon {
    transition: transform 0.3s ease;
    background-color: #dcfce7;
    color: #22c55e;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dark .faq-icon {
    background-color: #14532d;
    color: #4ade80;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.dark .faq-content {
    background-color: #111827;
}

.faq-content.active {
    max-height: 1000px;
    padding: 1rem 1.5rem;
}

@media (max-width: 640px) {
    .faq-content.active {
        padding: 0.75rem 1rem;
    }
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* تنسيقات عامة أخرى */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 300px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* تحسين التفاعلات */
.btn-hover {
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -2;
}

.btn-hover:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    z-index: -1;
}

.btn-hover:hover:before {
    width: 100%;
}

/* تأثيرات للكروت */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.2);
}

@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

/* إضافة تأثيرات للقوائم المنسدلة */
.nested-dropdown {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    min-width: 180px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .nested-dropdown {
    background-color: #1f2937;
}

.dropdown-parent:hover .nested-dropdown {
    display: block;
}

/* تأثيرات القوائم المنسدلة على الجوال */
.mobile-nested-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nested-dropdown.active {
    max-height: 500px;
}

/* أنماط صفحات المحتوى */
.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

.policy-item, .regulation-item, .financial-item, .survey-item, .member-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    transition: background-color 0.2s;
}

@media (max-width: 640px) {
    .policy-item, .regulation-item, .financial-item, .survey-item, .member-item {
        padding: 0.75rem 0;
    }
}

.dark .policy-item, .dark .regulation-item, .dark .financial-item, .dark .survey-item, .dark .member-item {
    border-bottom: 1px solid #374151;
}

.policy-item:hover, .regulation-item:hover, .financial-item:hover, .survey-item:hover, .member-item:hover {
    background-color: #f7fafc;
}

.dark .policy-item:hover, .dark .regulation-item:hover, .dark .financial-item:hover, .dark .survey-item:hover, .dark .member-item:hover {
    background-color: #374151;
}

.content-header {
    background-color: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
}

.dark .content-header {
    background-color: #1e293b;
    border-bottom: 2px solid #374151;
}

/* تأثير توهج للعناصر عند التحويل */
.nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
    right: 0;
}

.menu-glow {
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
}

/* تأثير تغيير ألوان عناصر القائمة المنسدلة */
.dropdown-item {
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.dropdown-item:hover {
    border-right-color: #22c55e;
    padding-right: 1.5rem;
}

/* تأثير نبض للزر */
@keyframes gentle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.pulse-effect {
    animation: gentle-pulse 2s infinite;
}

/* تأثير تدرج الخلفيات */
.gradient-bg {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.gradient-text {
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-light {
    background: linear-gradient(90deg, #22c55e 80%, #0ea5e9 100%);
}

/* أنماط الأيقونات الجديدة */
.eco-icon {
    display: inline-block;
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.3);
    margin: 0 auto;
}

.eco-icon-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-color: white;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .eco-icon-inner {
    background-color: #1e293b;
}

.service-mini-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.eco-icon:hover .service-mini-icon {
    transform: scale(1.2);
}

.service-mini-icon.paper {
    top: 20%;
    left: 20%;
}

.service-mini-icon.plastic {
    top: 20%;
    right: 20%;
}

.service-mini-icon.clothes {
    bottom: 20%;
    left: 20%;
}

.service-mini-icon.teach {
    bottom: 20%;
    right: 20%;
}

.eco-center-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #22c55e;
    animation: gentle-pulse 3s infinite;
}

.dark .eco-center-icon {
    background: #14532d;
}

.eco-center-icon i {
    font-size: 3.5rem;
    color: #22c55e;
}

.dark .eco-center-icon i {
    color: #4ade80;
}

/* تأثيرات خاصة للأيقونات الثانوية */
.service-feature {
    transition: all 0.5s;
    cursor: pointer;
}

.service-feature:hover {
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    .service-feature:hover {
        transform: translateY(-5px);
    }
}

.feature-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.15);
    z-index: 1;
}

@media (max-width: 640px) {
    .feature-circle {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
    }
}

.dark .feature-circle {
    background: linear-gradient(135deg, #166534, #15803d);
}

.feature-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    z-index: -1;
    transform: rotate(45deg) scale(1.5);
    transition: all 0.5s;
}

.service-feature:hover .feature-circle::before {
    transform: rotate(45deg) translate(120px, 0) scale(1.5);
}

@media (max-width: 640px) {
    .service-feature:hover .feature-circle::before {
        transform: rotate(45deg) translate(100px, 0) scale(1.5);
    }
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #22c55e;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.2);
}

@media (max-width: 640px) {
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

.dark .feature-icon {
    background-color: #1e293b;
    color: #4ade80;
}

.service-feature:hover .feature-icon {
    transform: rotate(360deg);
}

@keyframes rotate-icon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-animation {
    animation: rotate-icon 20s linear infinite;
}

/* تأثيرات دوران للأيقونات الداخلية */
@keyframes orbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

@media (max-width: 768px) {
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
    }
}

@media (max-width: 640px) {
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
    }
}

@media (max-width: 480px) {
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(40px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
    }
}

.eco-icon .paper {
    animation: orbit 15s linear infinite;
}

.eco-icon .plastic {
    animation: orbit 15s linear infinite reverse;
}

.eco-icon .clothes {
    animation: orbit 15s linear infinite;
    animation-delay: -3.75s;
}

.eco-icon .teach {
    animation: orbit 15s linear infinite reverse;
    animation-delay: -3.75s;
}

/* تحسينات إضافية للجوال */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* تحسين أحجام الخط للجوال */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    .text-3xl {
        font-size: 1.75rem !important;
    }
    
    .text-2xl {
        font-size: 1.5rem !important;
    }
    
    .text-xl {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.25rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.125rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
}

/* تحسين المساحات للجوال */
@media (max-width: 640px) {
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-12 {
        margin-bottom: 2rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1.5rem !important;
    }
}

/* تحسين النماذج للجوال */
@media (max-width: 640px) {
    input, textarea, select {
        min-height: 44px;
        font-size: 16px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* تحسين الأزرار للجوال */
@media (max-width: 640px) {
    .btn-hover {
        min-height: 44px;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .pulse-btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* تحسين القوائم للجوال */
@media (max-width: 768px) {
    #mobile-menu {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* تحسين كروت الخدمات للجوال */
@media (max-width: 640px) {
    .service-card {
        padding: 1rem !important;
    }
}

/* تحسين القوائم المنسدلة للجوال */
@media (max-width: 768px) {
    .nested-dropdown {
        position: static;
        display: block;
        min-width: auto;
        background-color: transparent;
        box-shadow: none;
        padding-right: 1rem;
    }
    
    .dropdown-parent:hover .nested-dropdown {
        display: block;
    }
}
