* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    color: #fff;
}

.header {
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, rgba(15, 12, 41, 0.95), rgba(48, 43, 99, 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, 87, 34, 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, 87, 34, 0.2), rgba(255, 152, 0, 0.2));
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.icon-head:hover {
    background: linear-gradient(45deg, rgba(255, 87, 34, 0.4), rgba(255, 152, 0, 0.4));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.3);
}

.nav-links {
    margin: 0;
    display: flex;
    gap: 0.5rem;
    border-radius: 15px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: #ffeb3b;
    border: 1px solid rgba(255, 235, 59, 0.5);
    transform: translateY(-3px);
    background: rgba(255, 235, 59, 0.1);
    box-shadow: 0 6px 15px rgba(255, 235, 59, 0.2);
}

.main-content {
    margin-top: 80px;
    padding: 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: calc(100vh - 80px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 87, 34, 0.2);
    border: 1px solid rgba(255, 87, 34, 0.3);
    cursor: pointer;
    z-index: 1101;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 87, 34, 0.4);
    border-color: rgba(255, 87, 34, 0.6);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px 0;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.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(8px, -8px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(15, 12, 41, 0.98), rgba(48, 43, 99, 0.98));
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        z-index: 1100;
        padding: 0;
        border-radius: 0;
        animation: slideDown 0.3s ease-out;
        backdrop-filter: blur(10px);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        border-radius: 0;
        border-right: 3px solid transparent;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover {
        border-right-color: rgba(255, 235, 59, 0.6);
        background: rgba(255, 235, 59, 0.1);
    }

    .menu-toggle {
        display: flex;
    }

    .icon-head {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
    }

    .header {
        justify-content: space-between;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .icon-head {
        font-size: 1rem;
    }
}

/* Ramadan Section Styles */
.ramadan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.ramadan-header {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(63, 81, 181, 0.15));
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.8s ease-out;
}

.ramadan-header h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff5722, #ff9800, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ramadan-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.countdown-container {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(63, 81, 181, 0.2));
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out;
}

.countdown-container h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.countdown-item {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(255, 152, 0, 0.3));
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.4), rgba(255, 152, 0, 0.4));
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.3);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffeb3b;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.countdown-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
}

.ramadan-date-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.hijri-date, .gregorian-date {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hijri-date span, .gregorian-date span {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.ramadan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.ramadan-card {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.2), rgba(103, 58, 183, 0.2));
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ramadan-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.5s ease;
}

.ramadan-card:hover::before {
    right: 100%;
}

.ramadan-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.3), rgba(103, 58, 183, 0.3));
    box-shadow: 0 15px 40px rgba(103, 58, 183, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ramadan-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ramadan-card h3 i {
    font-size: 1.8rem;
    color: #ff5722;
}

.ramadan-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
}

.ramadan-section {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.15), rgba(103, 58, 183, 0.15));
    padding: 2.5rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.ramadan-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 87, 34, 0.5);
    padding-bottom: 1rem;
    font-weight: 700;
}

.ramadan-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 1.2rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ramadan-container {
        padding: 1rem;
    }

    .ramadan-header {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .ramadan-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .ramadan-header p {
        font-size: 0.9rem;
    }

    .countdown-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .countdown-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .countdown-item {
        padding: 1rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .ramadan-date-info {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .ramadan-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }

    .ramadan-card {
        padding: 1.5rem;
    }

    .ramadan-card h3 {
        font-size: 1.3rem;
    }

    .ramadan-card p {
        font-size: 0.95rem;
    }

    .ramadan-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .ramadan-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }

    .ramadan-section p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .ramadan-header h1 {
        font-size: 1.6rem;
    }

    .countdown-container h2 {
        font-size: 1.3rem;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .ramadan-card h3 {
        font-size: 1.2rem;
    }

    .ramadan-section h2 {
        font-size: 1.3rem;
    }

    .main-content {
        margin-top: 80px;
    }
}