:root {
    --primary-orange: #FF9800;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --gray-text: #7f8c8d;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-footer: rgba(240, 240, 240, 0.8);
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #000;
    color: var(--dark-text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Video/Image Container */
.main-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER REFINE */
header {
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    z-index: 100;
    border-bottom: 2px solid #ddd;
}

.header-clock {
    flex: 0 0 180px;
    font-size: 4rem;
    font-weight: 800;
    color: #333;
    text-align: left;
}

.header-mosque {
    flex: 1;
    text-align: center;
    border-left: 2px solid #f39c12;
    /* Orange Divider */
    border-right: 2px solid #f39c12;
    /* Orange Divider */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-mosque h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
}

.header-mosque p {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.header-date {
    flex: 0 0 250px;
    text-align: right;
    padding-left: 20px;
}

.header-date .hijri {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
}

.header-date .masehi {
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
}

/* HERO SECTION */
.hero-content {
    flex: 1;
    position: relative;
    background: transparent;
    overflow: hidden;
}

/* FULL SCREEN VIDEO BACKGROUND */
#video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

#video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* More than 100vh * (16/9) */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* FLOATING BADGES */
.badge {
    position: absolute;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 200;
}

.badge-left {
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-right {
    top: 20px;
    right: 20px;
    background: #f44336;
    border-radius: 50px;
    font-size: 1.1rem;
    padding: 8px 25px;
    color: #fff;
}

/* FOOTER - PRAYER BAR */
/* PRAYER BAR REFINE (GLASS) */
.prayer-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0 10px;
    border-radius: 20px 20px 0 0;
    z-index: 100;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.prayer-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80%;
    position: relative;
}

/* Vertical Orange Dividers in Prayer Bar */
.prayer-item:not(:last-child):not(.active)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 40px;
    background: #f39c12;
    opacity: 0.6;
}

.prayer-item:has(+ .active)::after {
    display: none;
    /* We'll hide them when next to active or is active */
}

.prayer-divider {
    width: 2px;
    height: 40px;
    background: #f39c12;
    opacity: 0.6;
}

.prayer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #777;
    margin-bottom: 2px;
    text-transform: capitalize;
}

.prayer-time {
    font-size: 2.8rem;
    font-weight: 800;
    color: #222;
}

/* ACTIVE PRAYER CARD - LARGE ORANGE */
.prayer-item.active {
    background: #ff9800;
    color: white;
    height: 100% !important;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
    z-index: 110;
    min-width: 180px;
    transform: translateY(-5px);
}

.prayer-item.active .prayer-name {
    color: #fff;
    font-size: 1.3rem;
    opacity: 0.9;
}

.prayer-item.active .prayer-time {
    color: #fff;
    font-size: 3.5rem;
    line-height: 1;
}

.prayer-item.active .active-timer {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* BOTTOM DUAL BARS */
.footer-bars {
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.bar-top {
    background: #212121;
    color: #fff;
    padding: 8px 0;
    font-size: 1.1rem;
    text-align: center;
    overflow: hidden;
}

.bar-bottom {
    background: #e53935;
    /* Red as in image */
    color: #fff;
    padding: 6px 0;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
}

/* MARQUEE OVERLAY (Floating at bottom of Hero) */
.marquee-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* EVENT COUNTDOWN CARD */
.event-countdown-card {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(255, 152, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 250;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite ease-in-out;
}

.event-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.event-timer {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.event-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .header-clock {
        font-size: 2.5rem;
    }

    .prayer-time {
        font-size: 1.5rem;
    }

    .prayer-bar {
        height: 100px;
    }
}