:root {
    --primary-blue: #1e40af;
    --red-power: #dc2626;
    --accent-orange: #f59e0b;
    --accent-green: #036F67;
    --accent-blue: #08478F;
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --text-muted: #6b7280;
    --card-bg: rgba(25, 55, 109, 0.9);
    --gradient-1: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-2: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Account for sticky header */
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 50%, #4a90b8 100%);
    background-image: url('https://mymaktab.co.uk/mymaktab-book.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0 20px;
    height: 80px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Special styling for Log Daily Reading Now button */
.log-reading-btn {
    background: var(--gradient-2) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3) !important;
    animation: pulse 2s infinite;
}

.log-reading-btn:hover {
    background: var(--red-power) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5) !important;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(220, 38, 38, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3); }
}

.header-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.header-logo:hover {
    transform: scale(1.05);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 2s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 3s; }
.floating-icon:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 100px 0 60px 0;
    margin-bottom: 60px;
    position: relative;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 50px 40px;
    margin: 0 auto;
    max-width: 900px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 3;
}

.level-badge {
    background: var(--gradient-2);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.7);
    line-height: 1.1;
    color: var(--text-light);
}

.red-letters {
    color: var(--red-power);
    text-shadow: 3px 3px 8px rgba(220, 38, 38, 0.8);
}

.award-section {
    background: var(--accent-orange);
    color: var(--text-dark);
    padding: 18px 40px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    margin: 25px 0;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.award-section-2 {
    background: var(--accent-blue);
    color: var(--text-light);
    padding: 18px 40px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    margin: 25px 0;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(8, 71, 143, 0.4);
}

.award-section-3 {
    background: var(--accent-green);
    color: var(--text-light);
    padding: 18px 40px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    margin: 25px 0;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(3, 111, 103, 0.4);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.game-info {
    background: rgba(255,255,255,0.25);
    padding: 18px 35px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.1rem;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 60px;
    border: 1px solid rgba(255,255,255,0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.15);
}

.step-card:hover::before {
    left: 100%;
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gradient-2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.step-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.step-description {
    opacity: 0.9;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-light);
}

/* Action Section - FIXED CIRCULAR CARDS */
.action-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 60px;
    border: 1px solid rgba(255,255,255,0.2);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    justify-items: center;
}

/* CIRCULAR ACTION CARDS - CORRECTED */
.action-card-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.3);
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.action-card-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: 0.5s;
}

.action-card-circle:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.2);
    border-color: var(--accent-orange);
    color: var(--text-light);
}

.action-card-circle:hover::before {
    transform: scale(1);
}

.action-circle-content {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--accent-orange);
    display: block;
}

.action-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-light);
}

.action-description {
    opacity: 0.9;
    line-height: 1.4;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.click-indicator {
    background: var(--gradient-2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    animation: bounce-indicator 2s infinite;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

@keyframes bounce-indicator {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Leaderboard Section */
.leaderboard-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 60px;
    border: 1px solid rgba(255,255,255,0.2);
}

.leaderboard-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.15);
}

.leaderboard-card.rank-1 {
    border: 2px solid #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.leaderboard-card.rank-2 {
    border: 2px solid #c0c0c0;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.3);
}

.leaderboard-card.rank-3 {
    border: 2px solid #cd7f32;
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.3);
}

.institution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.institution-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-light);
}

.rank-badge {
    font-size: 2.8rem;
    padding: 10px;
}

.achievement-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.achievement-badge {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.achievement-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.achievement-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.achievement-label {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.8;
}

.progress-section {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    height: 15px;
    overflow: hidden;
    margin: 25px 0;
}

.progress-fill {
    background: var(--gradient-2);
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.loading-animation {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

/* Footer */
.footer {
    background: white;
    padding: 40px 0;
    color: var(--text-dark);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: var(--transition);
    background: rgba(30, 64, 175, 0.1);
    font-size: 1rem;
}

.footer-link:hover {
    color: white;
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.gdpr-notice {
    background: rgba(30, 64, 175, 0.05);
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    text-align: center;
}

.last-update {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        gap: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-container {
        padding: 0 15px;
    }

    .main-container {
        padding: 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-content {
        padding: 30px 25px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .action-card-circle {
        width: 250px;
        height: 250px;
    }

    .achievement-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .how-it-works-section,
    .action-section,
    .leaderboard-section {
        padding: 30px 25px;
    }

    .whatsapp-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .action-card-circle {
        width: 220px;
        height: 220px;
    }

    .achievement-row {
        grid-template-columns: 1fr;
    }

    .how-it-works-section,
    .action-section,
    .leaderboard-section {
        padding: 25px 20px;
    }

    .header-right {
        gap: 10px;
    }

    .whatsapp-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}