/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    direction: rtl;
    text-align: right;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231a5d1a' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a5d1a 0%, #0d3b0d 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hadith {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mission-statement {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    border-right: 3px solid #d4af37;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Counter Section */
.counter-section {
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border-bottom: 3px solid #1a5d1a;
}

.global-stats h2 {
    text-align: center;
    color: #1a5d1a;
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.global-stats h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #1a5d1a);
    border-radius: 1.5px;
}

.stats-numbers {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.current-count {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a5d1a;
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(26, 93, 26, 0.1);
    min-width: 180px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.target-count {
    font-size: 1.4rem;
    color: #666;
    text-align: center;
    background: #f5f5f5;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-width: 150px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.percentage {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    background: #fff8e1;
    padding: 15px 20px;
    border-radius: 40px;
    border: 2px solid #d4af37;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
    min-width: 140px;
    text-align: center;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cta-section {
    text-align: center;
    margin-top: 20px;
}

.cta-button {
    background: linear-gradient(135deg, #1a5d1a 0%, #0d3b0d 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(26, 93, 26, 0.3);
    position: relative;
    overflow: hidden;
    /* Add space between text and icon */
    padding-left: 50px;
    padding-right: 30px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 93, 26, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button::after {
    content: "ﷺ";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
}

.counter-info {
    margin-top: 15px;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Dhikr Section */
.dhikr-section {
    padding: 30px 0;
    background-color: #f0f7f0;
}

.dhikr-section h2 {
    text-align: center;
    color: #1a5d1a;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dhikr-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #1a5d1a);
    border-radius: 1.5px;
}

.dhikr-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dhikr-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.dhikr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.dhikr-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1a5d1a, #d4af37);
}

.dhikr-count {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a5d1a;
    margin: 15px 0;
    transition: transform 0.2s ease;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dhikr-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dhikr-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dhikr-button {
    background: linear-gradient(135deg, #1a5d1a 0%, #0d3b0d 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(26, 93, 26, 0.3);
    margin-top: 8px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dhikr-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(26, 93, 26, 0.4);
}

.dhikr-button:active {
    transform: scale(1.05) rotate(90deg);
}

/* Goal Section */
.goal-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a5d1a 0%, #0d3b0d 100%);
    color: white;
    text-align: center;
}

.goal-section h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.goal-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ffffff);
    border-radius: 1.5px;
}

.year-target {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    color: #d4af37;
    margin: 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.goal-description {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.progress-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.progress-bar {
    height: 30px;
    background-color: #0d3b0d;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f8e473);
    border-radius: 15px;
    transition: width 1.5s ease-in-out;
    position: relative;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.current-progress, .target-progress {
    font-weight: 600;
    color: #d4af37;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Benefits Section */
.benefits-section {
    padding: 40px 0;
    background-color: white;
}

.benefits-section h2 {
    text-align: center;
    color: #1a5d1a;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.benefits-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #1a5d1a);
    border-radius: 1.5px;
}

.benefits-content {
    background: #f0f7f0;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    border-right: 3px solid #1a5d1a;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auto-mode {
    text-align: center;
    padding: 20px;
    background: #fff8e1;
    border-radius: 15px;
    border-right: 3px solid #d4af37;
    box-shadow: 0 3px 15px rgba(212, 175, 55, 0.1);
}

.auto-mode h3 {
    color: #1a5d1a;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Guide Section */
.guide-section {
    padding: 40px 0;
    background-color: #f0f7f0;
}

.guide-section h2 {
    text-align: center;
    color: #1a5d1a;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guide-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #1a5d1a);
    border-radius: 1.5px;
}

.guide-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.guide-content h3 {
    color: #1a5d1a;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guide-content ul {
    list-style-type: none;
    padding: 0;
}

.guide-content li {
    padding: 15px;
    margin: 10px 0;
    background: #f8f8f8;
    border-radius: 12px;
    font-size: 1rem;
    position: relative;
    padding-right: 50px;
    transition: all 0.3s ease;
    border-right: 3px solid #1a5d1a;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guide-content li:hover {
    transform: translateX(-3px);
    background: #e8f5e9;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.guide-content li::before {
    content: "✓";
    color: #1a5d1a;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    background: #d4af37;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: #0d3b0d;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 1s infinite;
}

/* Enhanced Responsive Design */
/* Extra small devices (phones, 320px and up) */
@media screen and (min-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .hadith {
        font-size: 0.9rem;
        padding: 8px;
    }
    
    .mission-statement {
        font-size: 0.85rem;
        padding: 12px;
    }
    
    .global-stats h2,
    .dhikr-section h2,
    .goal-section h2,
    .benefits-section h2,
    .guide-section h2 {
        font-size: 1.4rem;
    }
    
    .stats-numbers {
        flex-direction: column;
        gap: 15px;
    }
    
    .current-count {
        font-size: 1.8rem;
        min-width: auto;
        padding: 12px 15px;
        width: 100%;
    }
    
    .target-count {
        font-size: 1.2rem;
        padding: 10px 15px;
    }
    
    .percentage {
        font-size: 1.5rem;
        padding: 12px 15px;
        min-width: auto;
    }
    
    .cta-button {
        padding: 12px 25px 12px 45px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .dhikr-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dhikr-card {
        padding: 15px;
    }
    
    .dhikr-count {
        font-size: 1.8rem;
        margin: 10px 0;
    }
    
    .dhikr-text {
        font-size: 1.2rem;
    }
    
    .dhikr-desc {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .dhikr-button {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .year-target {
        font-size: 2.5rem;
        margin: 15px 0;
    }
    
    .goal-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .progress-container {
        padding: 15px;
    }
    
    .progress-text {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .progress-bar {
        height: 25px;
    }
    
    .benefits-content {
        padding: 20px 15px;
        font-size: 1rem;
    }
    
    .auto-mode {
        padding: 15px;
    }
    
    .auto-mode h3 {
        font-size: 1.1rem;
    }
    
    .guide-content {
        padding: 20px 15px;
    }
    
    .guide-content h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .guide-content li {
        padding: 12px;
        font-size: 0.9rem;
        padding-right: 40px;
    }
    
    .guide-content li::before {
        width: 24px;
        height: 24px;
        font-size: 1rem;
        right: 12px;
    }
    
    .footer {
        padding: 15px 0;
        font-size: 0.9rem;
    }
}

/* Small devices (phones, 480px and up) */
@media screen and (min-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .hadith {
        font-size: 1rem;
    }
    
    .mission-statement {
        font-size: 0.9rem;
    }
    
    .current-count {
        font-size: 2rem;
        min-width: 160px;
        padding: 13px 18px;
    }
    
    .target-count {
        font-size: 1.3rem;
        min-width: 140px;
    }
    
    .percentage {
        font-size: 1.6rem;
        min-width: 130px;
    }
    
    .cta-button {
        padding: 13px 30px 13px 50px;
        font-size: 1.1rem;
        max-width: 320px;
    }
    
    .dhikr-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 18px;
    }
    
    .dhikr-count {
        font-size: 2rem;
    }
    
    .dhikr-text {
        font-size: 1.3rem;
    }
    
    .year-target {
        font-size: 3rem;
    }
    
    .goal-description {
        font-size: 1.1rem;
    }
    
    .benefits-content {
        padding: 22px;
        font-size: 1.1rem;
    }
    
    .guide-content li {
        padding: 13px;
        font-size: 0.95rem;
        padding-right: 45px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .current-count {
        font-size: 2.1rem;
        min-width: 170px;
    }
    
    .target-count {
        font-size: 1.35rem;
        min-width: 145px;
    }
    
    .percentage {
        font-size: 1.7rem;
        min-width: 135px;
    }
    
    .dhikr-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 19px;
    }
    
    .year-target {
        font-size: 3.2rem;
    }
    
    .guide-content li {
        padding: 14px;
        padding-right: 50px;
    }
}

/* Large devices (desktops, 1024px and up) */
@media screen and (min-width: 1024px) {
    .container {
        padding: 0 25px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .current-count {
        font-size: 2.2rem;
        min-width: 180px;
    }
    
    .target-count {
        font-size: 1.4rem;
        min-width: 150px;
    }
    
    .percentage {
        font-size: 1.8rem;
        min-width: 140px;
    }
    
    .dhikr-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .year-target {
        font-size: 3.5rem;
    }
    
    .stats-numbers {
        flex-direction: row;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .current-count {
        font-size: 2.5rem;
        min-width: 200px;
    }
    
    .target-count {
        font-size: 1.6rem;
        min-width: 170px;
    }
    
    .percentage {
        font-size: 2rem;
        min-width: 160px;
    }
    
    .dhikr-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Specific device optimizations */
/* iPhone SE and similar small screens */
@media screen and (max-width: 375px) and (min-width: 320px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .current-count {
        font-size: 1.6rem;
        padding: 10px 12px;
    }
    
    .dhikr-text {
        font-size: 1.1rem;
    }
    
    .dhikr-count {
        font-size: 1.6rem;
    }
    
    .cta-button {
        padding: 10px 20px 10px 40px;
        font-size: 0.9rem;
    }
}

/* iPad and tablet portrait */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .dhikr-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-numbers {
        flex-wrap: nowrap;
    }
}

/* iPad and tablet landscape */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .dhikr-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-numbers {
        flex-wrap: nowrap;
    }
}

/* High resolution displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .counter-section {
        box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    }
    
    .dhikr-card {
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .guide-content {
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .dhikr-button:hover,
    .cta-button:hover,
    .dhikr-card:hover,
    .guide-content li:hover {
        transform: none;
        box-shadow: 0 3px 10px rgba(26, 93, 26, 0.3);
    }
    
    .dhikr-button:active,
    .cta-button:active {
        transform: scale(0.95);
    }
    
    .dhikr-button,
    .cta-button {
        padding: 16px 36px;
    }
    
    /* Larger touch targets for mobile */
    .dhikr-button {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .guide-content li {
        padding: 18px;
        padding-right: 55px;
    }
    
    .guide-content li::before {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
        right: 18px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        font-size: 12pt;
    }
    
    .header,
    .footer {
        background: white;
        color: black;
    }
    
    .cta-button,
    .dhikr-button {
        background: white;
        color: black;
        border: 1px solid black;
        box-shadow: none;
    }
    
    .progress-fill {
        background: white;
        border: 1px solid black;
    }
    
    /* Hide interactive elements for print */
    .dhikr-button,
    .cta-button {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pulse {
        animation: none;
    }
    
    .dhikr-button:hover,
    .cta-button:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    body {
        background-color: #ffffff;
        color: #000000;
    }
    
    .header {
        background: #000000;
    }
    
    .current-count {
        background: #f0f0f0;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .target-count {
        background: #e0e0e0;
        color: #000000;
    }
    
    .percentage {
        background: #ffff00;
        color: #000000;
        border: 2px solid #000000;
    }
}