* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #1a0f35 0%, #3d1f5c 50%, #2d1b4e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

.header {
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, rgba(26, 15, 53, 0.95), rgba(61, 31, 92, 0.95));
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    right: 0;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    direction: rtl;
    border-bottom: 1px solid rgba(255, 152, 0, 0.3);
}
.icon-head {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: linear-gradient(45deg, rgba(255, 152, 0, 0.2), rgba(255, 87, 34, 0.2));
    border: 1px solid rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-head i {
    font-size: 1.5rem;
}

.icon-head:hover {
    background: linear-gradient(45deg, rgba(255, 152, 0, 0.4), rgba(255, 87, 34, 0.4));
    transform: translateY(-3px);
}
.nav-links {
    display: flex;
    gap: 1rem;
    border-radius: 10px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a i {
    font-size: 1.2rem;
}

.nav-links a:hover {
    color: #ffd700;
    border: 1px solid rgba(255, 152, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}
/* أيقونة الهامبرجر */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1101;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* إخفاء القائمة وإظهار الأيقونة في الشاشات الصغيرة */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 250px;
        background: linear-gradient(135deg, #1a0f35, #3d1f5c);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        z-index: 1100;
        padding: 1.2rem 10px;
        border-radius: 0 0 18px 18px;
        border-right: 3px solid rgba(255, 152, 0, 0.5);
        animation: slideDown 0.3s ease;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.8rem 1rem;
        border-radius: 8px;
        text-align: right;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255, 152, 0, 0.2);
        border-left: 3px solid rgba(255, 152, 0, 0.7);
    }
    
    .menu-toggle {
        display: flex;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    margin-top: 100px;
    padding: 2rem 1rem;
}

.prayer-times-container {
    max-width: 1200px;
    margin: 0 auto;
}

.prayer-times-header {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 87, 34, 0.15));
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.prayer-times-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.prayer-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.next-prayer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.next-prayer-text {
    color: rgba(255, 255, 255, 0.8);
}

.next-prayer-name {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.next-prayer .countdown {
    color: #ff9800;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(255, 152, 0, 0.5);
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.prayer-time-card {
    background: linear-gradient(135deg, rgba(61, 31, 92, 0.6), rgba(45, 27, 78, 0.6));
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 152, 0, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.prayer-time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.prayer-time-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.3);
    border-color: rgba(255, 152, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 87, 34, 0.15));
}

.prayer-time-card:hover::before {
    left: 100%;
}

.prayer-time-card:active {
    transform: translateY(-2px);
}

.prayer-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 87, 34, 0.25));
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.prayer-icon i {
    font-size: 1.8rem;
    color: #ff9800;
    text-shadow: 0 2px 10px rgba(255, 152, 0, 0.5);
    transition: all 0.3s ease;
}

.prayer-time-card:hover .prayer-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.prayer-time-card:hover .prayer-icon i {
    transform: scale(1.15);
}

.prayer-name {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.prayer-time-card:hover .prayer-name {
    color: #ffd700;
    transform: translateY(-2px);
}

.prayer-time {
    color: #e0e0e0;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.prayer-time .time-value {
    font-size: 2rem;
}

.prayer-time .time-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }

    .icon-head {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
    }

    .icon-head i {
        margin-left: 0.3rem;
    }

    .prayer-times-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .prayer-times-header h1 {
        font-size: 1.95rem;
        margin-bottom: 0.8rem;
    }

    .prayer-times-header h1 i {
        font-size: 1.7rem;
        margin-left: 0.4rem;
    }

    .prayer-subtitle {
        font-size: 1rem;
        margin-bottom: 1.3rem;
    }

    .next-prayer {
        flex-direction: column;
        text-align: center;
        padding: 1.1rem;
        gap: 0.8rem;
    }

    .next-prayer-text,
    .next-prayer-name,
    .next-prayer .countdown {
        font-size: 1.1rem;
    }

    .prayer-times-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
    }
    
    .prayer-time-card {
        padding: 1.2rem;
    }

    .prayer-icon {
        width: 58px;
        height: 58px;
    }

    .prayer-icon i {
        font-size: 1.6rem;
    }
    
    .prayer-name {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .prayer-time .time-value {
        font-size: 1.8rem;
    }

    .prayer-time .time-period {
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    @media (max-width: 600px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 80px;
            left: 0;
            width: 250px;
            background: linear-gradient(135deg, #1a0f35, #3d1f5c);
            backdrop-filter: blur(10px);
            flex-direction: column;
            gap: 0;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
            z-index: 1100;
            padding: 1.2rem 10px;
            border-radius: 0 0 18px 18px;
            border-right: 3px solid rgba(255, 152, 0, 0.5);
            animation: slideDown 0.3s ease;
        }
        
        .nav-links.show {
            display: flex;
        }
        
        .nav-links a {
            padding: 0.8rem 1rem;
            border-radius: 8px;
            text-align: right;
            transition: all 0.3s ease;
        }
        
        .nav-links a:hover {
            background: rgba(255, 152, 0, 0.2);
            border-left: 3px solid rgba(255, 152, 0, 0.7);
        }
        
        .menu-toggle {
            display: flex;
        }
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem 0.8rem;
        margin-top: 85px;
    }

    .header {
        width: 100%;
        height: auto;
        min-height: 70px;
        padding: 0.7rem 0.6rem;
        gap: 0.4rem;
        border-radius: 0 0 20px 20px;
    }

    .icon-head {
        font-size: 1.1rem;
        padding: 0.5rem 0.8rem;
        white-space: normal;
    }

    .icon-head i {
        font-size: 1.2rem;
        margin-left: 0.3rem;
    }

    .prayer-times-header {
        padding: 1.3rem;
        margin-bottom: 1.3rem;
        border-radius: 16px;
    }
    
    .prayer-times-header h1 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }

    .prayer-times-header h1 i {
        font-size: 1.5rem;
        margin-left: 0.4rem;
    }

    .prayer-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .next-prayer {
        padding: 0.9rem;
        gap: 0.7rem;
        font-size: 1rem;
    }

    .next-prayer-text,
    .next-prayer-name {
        font-size: 1rem;
    }

    .next-prayer .countdown {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem 0.9rem;
        text-align: right;
    }

    .prayer-times-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
        margin-top: 1.6rem;
    }

    .prayer-time-card {
        padding: 1.1rem;
        border-radius: 16px;
    }

    .prayer-icon {
        width: 56px;
        height: 56px;
    }

    .prayer-icon i {
        font-size: 1.5rem;
    }

    .prayer-name {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .prayer-time {
        gap: 0.25rem;
    }

    .prayer-time .time-value {
        font-size: 1.65rem;
    }

    .prayer-time .time-period {
        font-size: 0.78rem;
    }

    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
    }

    .menu-toggle span {
        width: 26px;
        height: 3.5px;
        margin: 3.5px 0;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 1.2rem 0.6rem;
    }

    .header {
        padding: 0.6rem 0.4rem;
        min-height: 65px;
        gap: 0.3rem;
    }

    .icon-head {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
        flex-shrink: 0;
    }

    .icon-head i {
        font-size: 1.1rem;
        margin-left: 0.2rem;
    }

    .prayer-times-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .prayer-times-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .prayer-times-header h1 i {
        font-size: 1.3rem;
        margin-left: 0.3rem;
    }

    .prayer-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .next-prayer {
        padding: 0.6rem;
        gap: 0.4rem;
        font-size: 0.9rem;
        flex-direction: column;
    }

    .next-prayer-text,
    .next-prayer-name {
        font-size: 0.85rem;
    }

    .next-prayer .countdown {
        font-size: 1rem;
    }

    .prayer-times-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1.2rem;
    }

    .prayer-time-card {
        padding: 0.8rem;
        border-radius: 12px;
        gap: 0.6rem;
    }

    .prayer-icon {
        width: 48px;
        height: 48px;
    }

    .prayer-icon i {
        font-size: 1.3rem;
    }

    .prayer-name {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .prayer-time {
        gap: 0.2rem;
    }

    .prayer-time .time-value {
        font-size: 1.4rem;
    }

    .prayer-time .time-period {
        font-size: 0.65rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 40px;
        height: 40px;
    }

    .menu-toggle span {
        width: 24px;
        height: 3px;
        margin: 3px 0;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prayer-time-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.prayer-time-card:nth-child(1) {
    animation-delay: 0.1s;
}

.prayer-time-card:nth-child(2) {
    animation-delay: 0.2s;
}

.prayer-time-card:nth-child(3) {
    animation-delay: 0.3s;
}

.prayer-time-card:nth-child(4) {
    animation-delay: 0.4s;
}

.prayer-time-card:nth-child(5) {
    animation-delay: 0.5s;
}

.prayer-time-card:nth-child(6) {
    animation-delay: 0.6s;
}

