/* =========================================================
   اليوم الوطني السعودي 96
   Main Stylesheet - Complete & Enhanced Version
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* =========================
   ROOT VARIABLES
   ========================= */

:root {
    --green: #006c35;
    --green-dark: #003b1e;
    --green-deep: #001f11;
    --green-light: #0b8f4d;
    --green-glow: #39e883;

    --white: #ffffff;
    --off-white: #f5f7f5;
    --gold: #d7b56d;
    --gold-light: #e6c885;

    --text: #f4f7f5;
    --muted: #aab8b0;
    --dark-text: #17221c;

    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 10px 30px rgba(11, 143, 77, 0.3);

    --radius: 24px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   RESET & BASE STYLES
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    direction: rtl;
    font-family: "Cairo", sans-serif;
    background: #03140b;
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background: var(--green);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================
   CUSTOM SCROLLBAR
   ========================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #02150b;
}

::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 20px;
    border: 2px solid #02150b;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-light);
}

/* =========================
   BACKGROUND GLOW & PARTICLES
   ========================= */

.background-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.background-glow::before,
.background-glow::after {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}

.background-glow::before {
    background: #008b45;
    top: -150px;
    right: -150px;
    animation: glowMove 10s infinite alternate ease-in-out;
}

.background-glow::after {
    background: #00c86a;
    bottom: -200px;
    left: -150px;
    animation: glowMove 13s infinite alternate-reverse ease-in-out;
}

@keyframes glowMove {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(80px, 50px) scale(1.25);
    }
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: floatParticle 10s linear infinite;
}

.particles span:nth-child(1) { left: 10%; top: 80%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 25%; top: 60%; animation-delay: 2s; }
.particles span:nth-child(3) { left: 40%; top: 90%; animation-delay: 4s; }
.particles span:nth-child(4) { left: 55%; top: 70%; animation-delay: 1s; }
.particles span:nth-child(5) { left: 70%; top: 85%; animation-delay: 5s; }
.particles span:nth-child(6) { left: 85%; top: 65%; animation-delay: 3s; }
.particles span:nth-child(7) { left: 15%; top: 40%; animation-delay: 2.5s; }
.particles span:nth-child(8) { left: 35%; top: 20%; animation-delay: 4.5s; }
.particles span:nth-child(9) { left: 65%; top: 30%; animation-delay: 1.5s; }
.particles span:nth-child(10) { left: 80%; top: 15%; animation-delay: 3.5s; }

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* =========================
   NAVIGATION BAR & MOBILE MENU
   ========================= */

.navbar {
    position: fixed;
    top: 18px;
    right: 50%;
    transform: translateX(50%);
    width: min(1150px, calc(100% - 40px));
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 20, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 19px;
    color: var(--white);
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    box-shadow: 0 5px 20px rgba(0, 108, 53, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    position: relative;
    padding: 9px 15px;
    color: #c9d4ce;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(50%);
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover::after {
    width: 60%;
}

.nav-links a.active {
    color: var(--white);
    background: rgba(11, 143, 77, 0.15);
}

.nav-links a.active::after {
    width: 60%;
    background: var(--green-glow);
}

/* زر القائمة للشاشات الصغيرة */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================
   HERO SECTION
   ========================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 25px 80px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 35, 18, 0.55), #03140b 96%);
}

/* دعم صورة خلفية للهيرو إذا وُجدت */
.hero.has-bg {
    background: linear-gradient(180deg, rgba(3, 20, 11, 0.75), #03140b), url('images/hero-bg.jpg') center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(0, 135, 65, 0.28), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
}

.hero-small {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: #cbd8d0;
    font-size: 14px;
    backdrop-filter: blur(10px);
    animation: fadeDown 1s ease both;
}

.hero-small::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-glow);
    box-shadow: 0 0 15px var(--green-glow);
}

.hero h1 {
    position: relative;
    font-size: clamp(65px, 12vw, 165px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -6px;
    color: transparent;
    background: linear-gradient(180deg, #ffffff 5%, #d9eee2 40%, #53c981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: heroTitle 1.2s cubic-bezier(.2,.8,.2,1) both;
    text-shadow: 0 0 50px rgba(40, 210, 120, 0.15);
}

.hero h1 span {
    color: var(--green-light);
}

.hero-number {
    position: absolute;
    z-index: -1;
    font-size: clamp(180px, 32vw, 500px);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.025);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}

.hero p {
    font-size: clamp(16px, 2.2vw, 22px);
    color: var(--muted);
    max-width: 680px;
    margin: 25px auto 40px;
    font-weight: 500;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================
   BUTTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-light), var(--green));
    color: var(--white);
    box-shadow: 0 8px 30px rgba(11, 143, 77, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(11, 143, 77, 0.6);
    background: linear-gradient(135deg, #0da358, var(--green));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--dark-text);
    box-shadow: 0 8px 30px rgba(215, 181, 109, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(215, 181, 109, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--green-light);
    border: 2px solid var(--green-light);
}

.btn-outline:hover {
    background: var(--green-light);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-sm {
    padding: 9px 22px;
    font-size: 13px;
}

.btn-lg {
    padding: 18px 44px;
    font-size: 17px;
}

/* =========================
   SECTIONS COMMON STYLES
   ========================= */

section {
    padding: 100px 25px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 850px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--green-light);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
}

.section-desc {
    color: var(--muted);
    font-size: 16px;
    max-width: 600px;
    margin: 15px auto 0;
}

/* =========================
   STATS SECTION
   ========================= */

.stats-section {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-6px);
    background: var(--card-hover);
    border-color: rgba(215, 181, 109, 0.5);
    box-shadow: var(--shadow);
}

.stat strong {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat p {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

/* =========================
   CARDS & FEATURES SECTION
   ========================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #011008;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 31, 17, 0.88);
    border: 1px solid var(--border);
    color: var(--green-glow);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.card-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.card-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.card-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================
   TIMELINE SECTION
   ========================= */

.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--green-light), transparent);
    transform: translateX(50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-left: 40px;
    right: 0;
}

.timeline-item:nth-child(even) {
    right: 50%;
    padding-left: 0;
    padding-right: 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-glow);
    border: 4px solid #03140b;
    box-shadow: 0 0 15px var(--green-glow);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -10px;
}

.timeline-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.25);
}

.timeline-date {
    display: inline-block;
    color: var(--gold);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.timeline-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   QUIZ SYSTEM SECTION
   ========================= */

.quiz-container {
    max-width: 750px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green), var(--green-glow));
    transition: width 0.4s ease;
    border-radius: 10px;
}

.quiz-question {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.4;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.answer-btn {
    width: 100%;
    padding: 16px 20px;
    text-align: right;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.answer-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateX(-3px);
}

.answer-btn.selected {
    background: rgba(11, 143, 77, 0.2);
    border-color: var(--green-light);
    color: var(--white);
}

.answer-btn.correct {
    background: rgba(11, 143, 77, 0.35) !important;
    border-color: var(--green-glow) !important;
    color: var(--white) !important;
}

.answer-btn.wrong {
    background: rgba(217, 83, 79, 0.35) !important;
    border-color: #d9534f !important;
    color: var(--white) !important;
}

#feedback {
    min-height: 30px;
    margin-top: 15px;
    font-weight: 700;
    text-align: center;
    font-size: 16px;
}

#feedback.correct-text {
    color: var(--green-glow);
}

#feedback.wrong-text {
    color: #ff6b6b;
}

.quiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* =========================
   GALLERY / MEDIA SECTION
   ========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #011008;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(3, 20, 11, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.gallery-category {
    font-size: 12px;
    color: var(--green-glow);
}

/* =========================
   TESTIMONIALS / QUOTES
   ========================= */

.quotes-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.quote-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.quote-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.25);
}

.quote-card::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green-light);
}

.quote-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
}

.quote-info p {
    font-size: 12px;
    color: var(--muted);
}

/* =========================
   CTA SECTION
   ========================= */

.cta-section {
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.35), rgba(0, 31, 17, 0.85));
    border: 1px solid rgba(11, 143, 77, 0.4);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(57, 232, 131, 0.12);
    border-radius: 50%;
    filter: blur(60px);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-desc {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 30px;
}

/* =========================
   FOOTER & BACK TO TOP
   ========================= */

footer {
    border-top: 1px solid var(--border);
    padding: 60px 25px 30px;
    background: rgba(2, 21, 11, 0.85);
    color: var(--muted);
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-glow);
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 99;
}

.top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.top-btn:hover {
    background: var(--green-light);
    transform: translateY(-5px);
}

/* =========================
   MODAL & POPUP
   ========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #03140b;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 550px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

/* =========================
   KEYFRAMES ANIMATIONS
   ========================= */

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTitle {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 143, 77, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(11, 143, 77, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(11, 143, 77, 0);
    }
}

.pulse {
    animation: pulseGlow 2s infinite;
}

/* =========================
   MEDIA QUERIES (RESPONSIVE)
   ========================= */

@media (max-width: 992px) {
    .timeline::before {
        right: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 0;
        padding-right: 50px;
    }

    .timeline-item:nth-child(even) {
        right: 0;
        padding-right: 50px;
    }

    .timeline-dot {
        right: 10px !important;
        left: auto !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        padding: 12px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        margin-top: 12px;
        background: rgba(3, 20, 11, 0.95);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
        animation: fadeDown 0.3s ease;
    }

    .nav-links a {
        text-align: center;
        padding: 12px;
    }

    .hero {
        padding-top: 130px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .quiz-container {
        padding: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .stats-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }
}