/* ============================================
   HalalGames.nl - Islamic Game Portal
   Design System & Styles
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Amiri:wght@400;700&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors - Islamic Palette */
    --color-emerald: #00A86B;
    --color-emerald-dark: #008555;
    --color-emerald-light: #33C48A;
    --color-gold: #D4AF37;
    --color-gold-light: #F0D060;
    --color-gold-dark: #B8960F;
    --color-navy: #0A1628;
    --color-navy-light: #132240;
    --color-navy-mid: #1A2D50;
    --color-teal: #1ABC9C;
    --color-teal-dark: #16A085;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-cream: #FFF8E7;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #E8E8E8;
    --color-gray-300: #D0D0D0;
    --color-gray-500: #888888;
    --color-gray-700: #444444;
    --color-gray-900: #1A1A1A;

    /* Semantic */
    --color-success: #27AE60;
    --color-warning: #F39C12;
    --color-danger: #E74C3C;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-arabic: 'Amiri', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-glow-emerald: 0 0 30px rgba(0, 168, 107, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-navy);
    color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-primary);
}

/* ============================================
   Geometric Background Pattern
   ============================================ */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: 
        /* Islamic geometric octagon pattern */
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg 45deg,
            var(--color-gold) 45deg 46deg,
            transparent 46deg 90deg
        );
    background-size: 80px 80px;
}

/* ============================================
   Animated Stars / Particles
   ============================================ */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-gold-light);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar__logo-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.navbar__logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar__logo-text span {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.navbar__link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-xs) 0;
    transition: var(--transition-base);
    color: rgba(255, 255, 255, 0.75);
}

.navbar__link:hover {
    color: var(--color-gold);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-base);
    border-radius: 1px;
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__cta {
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-spring);
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
}

.navbar__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 168, 107, 0.5);
}

.navbar__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.navbar__mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    overflow: hidden;
}

.hero__bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 168, 107, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(26, 188, 156, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold-light);
    margin-bottom: var(--space-xl);
    animation: fadeInDown 0.8s ease-out;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-emerald);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__title-gradient {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light), var(--color-emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 168, 107, 0.4);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 168, 107, 0.5);
}

.btn--primary::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: 0.5s;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--outline {
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: var(--color-gold-light);
    backdrop-filter: blur(10px);
    background: rgba(212, 175, 55, 0.05);
}

.btn--outline:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-gold);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero__scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: bounce-arrow 2s ease infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* ============================================
   Section Common Styles
   ============================================ */
.section {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) var(--space-xl);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 168, 107, 0.1);
    border: 1px solid rgba(0, 168, 107, 0.2);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-emerald-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-lg);
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section__description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ============================================
   Games Grid
   ============================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    background: linear-gradient(145deg, rgba(19, 34, 64, 0.8), rgba(10, 22, 40, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
    group: true;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}

.game-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-navy-mid);
}

.game-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.game-card:hover .game-card__image {
    transform: scale(1.08);
}

.game-card__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.5);
    opacity: 0;
    transition: var(--transition-base);
}

.game-card:hover .game-card__play-overlay {
    opacity: 1;
}

.game-card__play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 25px rgba(0, 168, 107, 0.5);
    transform: scale(0.8);
    transition: var(--transition-spring);
}

.game-card:hover .game-card__play-btn {
    transform: scale(1);
}

.game-card__play-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 3px;
}

.game-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 168, 107, 0.9);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card__badge--coming-soon {
    background: rgba(212, 175, 55, 0.9);
    color: var(--color-navy);
}

.game-card__body {
    padding: var(--space-lg);
}

.game-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-emerald-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.game-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.game-card__description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.game-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.game-card__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.game-card__meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* Coming Soon card */
.game-card--coming-soon {
    opacity: 0.6;
    cursor: default;
}

.game-card--coming-soon:hover {
    transform: none;
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: none;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: linear-gradient(180deg, transparent, rgba(0, 168, 107, 0.03), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-2xl);
    background: rgba(19, 34, 64, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    background: rgba(19, 34, 64, 0.6);
    border-color: rgba(0, 168, 107, 0.15);
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.15), rgba(26, 188, 156, 0.1));
    border: 1px solid rgba(0, 168, 107, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-card__icon {
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.25), rgba(26, 188, 156, 0.2));
    box-shadow: var(--shadow-glow-emerald);
}

.feature-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ============================================
   About / Mission Section
   ============================================ */
.about {
    max-width: 1100px;
    margin: 0 auto;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about__visual {
    position: relative;
}

.about__visual-card {
    background: linear-gradient(145deg, rgba(19, 34, 64, 0.8), rgba(10, 22, 40, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about__visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg 30deg,
        rgba(212, 175, 55, 0.03) 30deg 31deg,
        transparent 31deg 60deg
    );
    animation: rotate-pattern 60s linear infinite;
}

@keyframes rotate-pattern {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about__visual-emoji {
    font-size: 5rem;
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-lg);
}

.about__visual-text {
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: var(--color-gold);
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.about__visual-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--space-md);
    position: relative;
    z-index: 1;
}

.about__text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.about__text p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    font-size: 1.02rem;
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.about__value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0, 168, 107, 0.06);
    border: 1px solid rgba(0, 168, 107, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.about__value:hover {
    background: rgba(0, 168, 107, 0.1);
    border-color: rgba(0, 168, 107, 0.2);
}

/* ============================================
   Age Categories
   ============================================ */
.age-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.age-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: var(--space-2xl);
    background: linear-gradient(145deg, rgba(19, 34, 64, 0.6), rgba(10, 22, 40, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.age-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.age-card--kids::before {
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
}

.age-card--teens::before {
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.age-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.12);
}

.age-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.age-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.age-card__range {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-emerald-light);
    margin-bottom: var(--space-md);
}

.age-card--teens .age-card__range {
    color: var(--color-gold-light);
}

.age-card__text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(5, 12, 25, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer__content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: var(--space-md);
    max-width: 350px;
}

.footer__heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition-fast);
    padding: var(--space-xs) 0;
}

.footer__link:hover {
    color: var(--color-emerald-light);
    transform: translateX(4px);
}

.footer__bottom {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer__made-with {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Islamic Decorative Divider
   ============================================ */
.islamic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
    opacity: 0.3;
}

.islamic-divider__line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.islamic-divider__symbol {
    color: var(--color-gold);
    font-size: 1.2rem;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .about__content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar__links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-2xl);
        z-index: 999;
    }
    
    .navbar__links.active {
        display: flex;
    }
    
    .navbar__links .navbar__link {
        font-size: 1.3rem;
    }
    
    .navbar__mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero {
        padding: var(--space-3xl) var(--space-md);
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--space-sm);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about__values {
        grid-template-columns: 1fr;
    }
    
    .age-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .section {
        padding: var(--space-3xl) var(--space-md);
    }
}

@media (max-width: 480px) {
    .game-card {
        margin: 0;
    }
    
    .game-card__body {
        padding: var(--space-md);
    }
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-screen__icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    animation: pulse-loader 1.5s ease-in-out infinite;
}

@keyframes pulse-loader {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.loading-screen__bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-screen__bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-emerald), var(--color-gold));
    border-radius: 2px;
    animation: loading-bar 1.5s ease-in-out forwards;
}

@keyframes loading-bar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================
   Game Card — Play Button (BIG and clear)
   ============================================ */
.game-card__play-button {
    display: block;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-lg);
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition-spring);
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.game-card__play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 168, 107, 0.5);
}

.game-card__play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.game-card__play-button--disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    box-shadow: none;
}

.game-card__play-button--disabled:hover {
    transform: none;
    box-shadow: none;
}

.game-card__play-button--disabled::before {
    display: none;
}

/* ============================================
   Game Card — Featured (Available Game)
   ============================================ */
.game-card--featured {
    border-color: rgba(0, 168, 107, 0.3);
    box-shadow: 0 0 30px rgba(0, 168, 107, 0.08);
}

.game-card--featured:hover {
    border-color: rgba(0, 168, 107, 0.5);
    box-shadow: var(--shadow-lg), var(--shadow-glow-emerald);
}

/* ============================================
   Game Card — Live & Coming Soon Badges
   ============================================ */
.game-card__live-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 168, 107, 0.9);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    z-index: 2;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 168, 107, 0); }
}

.game-card__coming-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(212, 175, 55, 0.85);
    color: var(--color-navy);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    z-index: 2;
}

/* ============================================
   Game Card — Placeholder Image
   ============================================ */
.game-card__placeholder {
    background: linear-gradient(135deg, rgba(19, 34, 64, 0.9), rgba(26, 45, 80, 0.9)) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    width: 100%;
    height: 100%;
}

/* ============================================
   Steps / How It Works Section
   ============================================ */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: var(--space-2xl) var(--space-lg);
    background: rgba(19, 34, 64, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
}

.step-card:hover {
    background: rgba(19, 34, 64, 0.6);
    border-color: rgba(0, 168, 107, 0.15);
    transform: translateY(-4px);
}

.step-card__number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-navy);
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.step-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.step-card__text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.step-card__arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ============================================
   Bigger Button Variant (Hero)
   ============================================ */
.btn--lg {
    padding: var(--space-md) var(--space-3xl);
    font-size: 1.15rem;
}

/* ============================================
   Mobile Touch Improvements
   ============================================ */
@media (max-width: 768px) {
    .step-card__arrow {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .game-card__play-button {
        padding: var(--space-lg);
        font-size: 1.1rem;
        min-height: 54px;
    }

    .btn--lg {
        padding: var(--space-lg) var(--space-2xl);
        font-size: 1.1rem;
        min-height: 54px;
    }

    .navbar__cta {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .game-card__meta {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
}

/* ============================================
   Donation Section & Card Styles
   ============================================ */
.donate-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(19, 34, 64, 0.7), rgba(10, 22, 40, 0.9));
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
    position: relative;
    overflow: hidden;
}

.donate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-emerald), var(--color-gold));
}

.donate-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.donate-card__icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    animation: bounce-arrow 3s ease-in-out infinite;
}

.donate-card__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-gold-light);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.5px;
}

.donate-card__text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 680px;
}

.donate-card__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-3xl);
    background: linear-gradient(135deg, #FFDD00, #F4B400);
    color: #000000;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(244, 180, 0, 0.35);
    transition: var(--transition-spring);
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
    cursor: pointer;
}

.donate-card__button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(244, 180, 0, 0.55);
}

.donate-card__note {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: var(--color-emerald-light);
    margin-top: var(--space-sm);
    letter-spacing: 0.5px;
}

/* Mobile responsive fixes for donation card */
@media (max-width: 768px) {
    .donate-card {
        padding: var(--space-2xl) var(--space-md);
        margin: 0 var(--space-sm);
    }
    
    .donate-card__title {
        font-size: 1.3rem;
    }
    
    .donate-card__text {
        font-size: 0.95rem;
    }
    
    .donate-card__button {
        width: 100%;
        justify-content: center;
        padding: var(--space-lg);
    }
}

