/* =====================
   GLOBAL THEME
===================== */
:root {
  --bg-dark: hsl(260, 40%, 10%);
  --text-light: hsl(0, 0%, 98%);
  --primary: hsl(25, 90%, 65%);
  --accent: hsl(280, 60%, 40%);
  --muted: rgba(255,255,255,0.6);
  --card-bg: rgba(255,255,255,0.06); /* Slightly more visible */
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(130,90,255,0.08), transparent 20%),
    radial-gradient(circle at 80% 80%, rgba(255,140,80,0.04), transparent 20%),
    linear-gradient(180deg, var(--bg-dark), hsl(260 40% 6%));
  color: var(--text-light);
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* THIS CENTERS EVERYTHING ON PC */
}

/* =====================
   NAVIGATION (Centered)
===================== */
.nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: clamp(15px, 4vw, 36px);
    padding: 14px 32px;
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav a {
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    transition: 0.3s;
}

.nav a:hover { color: #f4a261; }

/* =====================
   AYAH SECTION (serr)
===================== */
.serr {
    width: 100%;
    max-width: 800px; /* Prevents it from being too wide on PC */
    margin: 0 auto 50px auto;
    font-family: 'Amiri', serif;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.8;
    text-align: center;
    padding: 20px 40px;
    position: relative;
}

.serr:before, .serr:after {
    color: var(--primary);
    font-size: 1.5em;
    vertical-align: middle;
}

/* =====================
   STATISTICS (The Container)
===================== */
main {
    width: 100%;
    max-width: 1000px; /* Keeps the stats boxes from spreading too far */
    display: flex;
    justify-content: center;
}

.container {
    display: flex;
    width: 100%;
    gap: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 15px;
    transition: 0.3s ease;
}

.item:hover { background: rgba(255,255,255,0.1); }

/* =====================
   DONATION CTA
===================== */
section {
    width: 100%;
    max-width: 1000px; /* Matches the container width */
    margin-top: 40px;
}

.donation-cta {
    padding: 50px 30px;
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.donate-btn {
    display: inline-block;
    padding: 16px 50px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(255,140,80,0.3);
}

/* =====================
   THE "FIX IT" MOBILE CODE
===================== */
@media (max-width: 768px) {
    body { padding: 20px 15px; }
    
    .nav ul { gap: 15px; padding: 10px 20px; }

    .container {
        flex-direction: column; /* Stacks the cards on top of each other */
        padding: 15px;
    }

    .item { width: 100%; }

    .serr { padding: 15px; }

    .donate-btn { width: 100%; } /* Big button for thumb tapping */
}