@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    height: 90px;
    background: linear-gradient(90deg, rgba(26, 15, 53, 0.98) 0%, rgba(61, 31, 92, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 0 0 25px 25px;
}

.icon-head {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.icon-head:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

/* ===== NAVIGATION ===== */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 152, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover {
    color: #FFD700;
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.25);
    background: rgba(255, 193, 7, 0.1);
}

.nav-links a:hover::before {
    left: 100%;
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle:hover span {
    background: #FFD700;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background: #FFD700;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #FFD700;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 110px;
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRAYER INFO ===== */
.prayer-info {
    background: linear-gradient(135deg, rgba(26, 15, 53, 0.6), rgba(61, 31, 92, 0.6));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.prayer-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    animation: shine 6s infinite;
}

@keyframes shine {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.prayer-info h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.next-prayer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.next-prayer-text,
.countdown {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.next-prayer-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

/* ===== SCHOLARS BAR ===== */
.scholars-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scholars-bar::-webkit-scrollbar {
    height: 6px;
}

.scholars-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.scholars-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.scholars-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scholar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.15), rgba(103, 58, 183, 0.15));
    border: 2px solid rgba(63, 81, 181, 0.2);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
    min-width: 280px;
    width: 280px;
}

.scholar-profile:hover {
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(255, 193, 7, 0.2);
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.25), rgba(103, 58, 183, 0.25));
}

.scholar-image {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 193, 7, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scholar-profile:hover .scholar-image {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.3);
    transform: scale(1.1);
}

.scholar-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.scholar-profile:hover .scholar-name {
    color: #FFD700;
}

/* ===== FEATURED SCHOLAR - MINSHAWY ===== */
.scholar-profile.featured-scholar {
    min-width: 180px;
    width: 180px;
    padding: 1.8rem;
    transform: scale(1.15);
}

.scholar-profile.featured-scholar .scholar-image {
    width: 120px;
    height: 120px;
    border-width: 4px;
    box-shadow: 0 12px 48px rgba(255, 193, 7, 0.4);
}

.scholar-profile.featured-scholar .scholar-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.scholar-profile.featured-scholar:hover {
    transform: scale(1.25) translateY(-12px);
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3);
}

/* ===== QURAI SECTION ===== */
.qurai {
    background: linear-gradient(135deg, rgba(26, 15, 53, 0.6), rgba(61, 31, 92, 0.6));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qurai a {
    width: 100%;
    text-decoration: none;
    display: block;
}

/* ===== SOCIAL ICONS ===== */
.socal-icon-fixed {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 500;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.1);
    color: #FFD700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    transform: scale(1.15) translateY(-5px);
    background: rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.social-link.tiktok {
    color: #00f7ef;
    border-color: rgba(0, 247, 239, 0.3);
    background: rgba(0, 247, 239, 0.1);
}

.social-link.tiktok:hover {
    background: rgba(0, 247, 239, 0.25);
    border-color: rgba(0, 247, 239, 0.6);
    box-shadow: 0 8px 25px rgba(0, 247, 239, 0.3);
}

.social-link.facebook {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.3);
    background: rgba(24, 119, 242, 0.1);
}

.social-link.facebook:hover {
    background: rgba(24, 119, 242, 0.25);
    border-color: rgba(24, 119, 242, 0.6);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .main-content {
        margin-top: 110px;
        padding: 1.5rem 1rem;
    }

    .scholars-bar {
        gap: 0.8rem;
        padding: 0.8rem 0;
    }

    .scholar-profile {
        min-width: 260px;
        width: 260px;
        padding: 1.4rem;
    }

    .scholar-image {
        width: 105px;
        height: 105px;
    }

    .scholar-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: 80px;
        padding: 0 1rem;
        border-radius: 0 0 20px 20px;
    }

    .icon-head {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        right: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(26, 15, 53, 0.98) 0%, rgba(61, 31, 92, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        z-index: 999;
        padding: 0.5rem 0;
        border-bottom: 2px solid rgba(255, 193, 7, 0.3);
        animation: slideDown 0.4s ease;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 1.5rem;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: flex-end;
    }

    .nav-links a:hover {
        background: rgba(255, 193, 7, 0.15);
        transform: translateX(-8px);
        box-shadow: none;
    }

    .menu-toggle {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-content {
        margin-top: 130px;
        padding: 1.5rem 1rem;
    }

    .prayer-info {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .prayer-info h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .next-prayer {
        gap: 1rem;
        flex-direction: column;
    }

    .next-prayer-text,
    .countdown {
        font-size: 1rem;
    }

    .next-prayer-name {
        font-size: 1.5rem;
    }

    .scholars-bar {
        gap: 0.8rem;
        padding: 0.8rem 0;
        overflow-x: auto;
    }

    .scholar-profile {
        min-width: 250px;
        width: 250px;
        height: auto;
        padding: 1.3rem;
    }

    .scholar-image {
        width: 100px;
        height: 100px;
    }

    .scholar-name {
        font-size: 0.9rem;
    }

    .socal-icon-fixed {
        bottom: 1rem;
        left: 1rem;
        gap: 0.8rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 0.8rem;
        height: 75px;
    }

    .icon-head {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }

    .main-content {
        margin-top: 115px;
        padding: 1rem 0.8rem;
    }

    .prayer-info {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .prayer-info h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .next-prayer-name {
        font-size: 1.3rem;
    }

    .scholars-bar {
        gap: 0.6rem;
        padding: 0.6rem 0;
        overflow-x: auto;
    }

    .scholar-profile {
        min-width: 240px;
        width: 240px;
        padding: 1.2rem;
    }

    .scholar-image {
        width: 90px;
        height: 90px;
    }

    .scholar-name {
        font-size: 0.8rem;
    }

    .socal-icon-fixed {
        bottom: 0.8rem;
        left: 0.8rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch friendly */
@media (hover: none) and (pointer: coarse) {
    .scholar-profile {
        border-color: rgba(255, 193, 7, 0.3);
    }

    .scholar-profile:active {
        transform: scale(0.98) translateY(-5px);
    }
}
