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

:root {
    --primary: #E53935;
    --primary-dark: #C62828;
    --primary-light: #FFEBEE;
    --accent: #0F172A;
    --surface: rgba(255,255,255,0.7);
    --success: #10B981;
    --text-muted: #64748B;
}

/* ======================================= */
/*  REVEAL BASE OVERRIDES                  */
/* ======================================= */
.reveal {
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
}

/* Gorgeous gradient background */
.reveal .slide-background-content {
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 40%, #f1f5f9 100%) !important;
}

/* Subtle dot pattern overlay */
.reveal .slides::before {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none; z-index: -1;
}

/* ======================================= */
/*  TYPOGRAPHY — LARGE & BEAUTIFUL         */
/* ======================================= */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    text-transform: none !important;
    color: var(--accent) !important;
}

.reveal h2 {
    font-size: 2.4em !important;
    margin-bottom: 50px !important;
    position: relative;
    display: inline-block;
}
.reveal h2::after {
    content: '';
    position: absolute;
    bottom: -12px; left: 0;
    width: 80px; height: 7px;
    background: var(--primary);
    border-radius: 10px;
}

.reveal p, .reveal li {
    font-family: 'Outfit', sans-serif !important;
    line-height: 1.6 !important;
}

/* ======================================= */
/*  GLASSMORPHISM CARDS                    */
/* ======================================= */
.g-card {
    background: var(--surface) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,255,255,0.4) inset !important;
    border-radius: 28px !important;
    padding: 40px !important;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}
.g-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.5) inset !important;
}

/* Red top accent variant */
.g-card--red { border-top: 6px solid var(--primary) !important; }
.g-card--green { border-top: 6px solid var(--success) !important; }
.g-card--left-red { border-left: 8px solid var(--primary) !important; border-top: none !important; }
.g-card--left-green { border-left: 8px solid var(--success) !important; border-top: none !important; }

/* ======================================= */
/*  LAYOUT HELPERS                         */
/* ======================================= */
.cols-2 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.cols-3 { display: grid !important; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: stretch; }
.cols-4 { display: grid !important; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 25px; }

.icon-big { font-size: 3.2em; display: block; margin-bottom: 15px; }

.list-arrows { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.list-arrows li { position: relative; padding-left: 35px; margin-bottom: 18px !important; font-size: 1em; font-weight: 500; }
.list-arrows li::before { content: '→'; color: var(--primary); position: absolute; left: 0; font-weight: 900; font-size: 1.3em; }

.pill { display: inline-block; padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 0.85em; }
.pill--red { background: var(--primary-light); color: var(--primary-dark); }
.pill--green { background: #D1FAE5; color: #047857; }
.pill--dark { background: var(--accent); color: white; }

/* ======================================= */
/*  SLIDE 0: BISMILLAH                     */
/* ======================================= */
.bismillah-img { width: 550px !important; margin-bottom: 30px !important; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08)); }
.bismillah-text { color: var(--text-muted); font-size: 1.3em !important; font-weight: 600; letter-spacing: 3px; }

/* ======================================= */
/*  SLIDE 1: TITLE PAGE                    */
/* ======================================= */
.academic-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.55em; color: var(--text-muted); margin-bottom: 30px; }
.logo-box { border: 2px dashed #CBD5E1; padding: 18px 35px; border-radius: 14px; background: rgba(255,255,255,0.5); font-weight: 600; }
.title-logo { width: 200px !important; filter: drop-shadow(0 15px 30px rgba(229,57,53,0.2)); margin-bottom: 15px !important; }
.title-main { font-size: 4.5em !important; color: var(--primary) !important; margin: 0 !important; letter-spacing: -3px !important; }
.title-sub { font-size: 1.2em !important; font-weight: 600; color: #475569; margin: 15px 0 30px !important; }
.authors-bar { display: flex; justify-content: center; gap: 80px; margin-top: 30px; font-size: 0.65em; }
.author-col { text-align: center; }
.author-col small { display: block; text-transform: uppercase; letter-spacing: 2px; color: #94A3B8; font-weight: 700; font-size: 0.85em; margin-bottom: 8px; }
.author-col strong { font-size: 1.6em; color: var(--accent); }

/* ======================================= */
/*  SLIDE 2: PLAN                          */
/* ======================================= */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; font-size: 0.85em; }
.plan-item { display: flex; align-items: center; padding: 22px 30px !important; font-weight: 700; font-size: 1.15em; }
.plan-num { background: var(--accent); color: white; min-width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 14px; margin-right: 20px; font-weight: 900; font-size: 1.1em; flex-shrink: 0; }

/* ======================================= */
/*  SLIDE 4: OBJECTIFS                     */
/* ======================================= */
.obj-card { text-align: center; padding: 35px 25px !important; }
.obj-card h4 { margin: 12px 0 8px !important; font-size: 1.15em !important; }
.obj-card p { font-size: 0.85em !important; color: var(--text-muted); margin: 0 !important; }

/* ======================================= */
/*  SLIDE 5: BENCHMARK TABLE               */
/* ======================================= */
.table-card { padding: 15px !important; overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.75em; }
.table-card th { background: var(--accent); color: white; padding: 18px 25px; font-weight: 700; font-size: 1.1em; }
.table-card td { padding: 18px 25px; border-bottom: 1px solid rgba(0,0,0,0.06); font-weight: 500; }
.table-card .hl-row { background: var(--primary-light) !important; }
.table-card .hl-row td { font-weight: 800; color: var(--primary-dark); }

/* ======================================= */
/*  SCREENSHOTS                            */
/* ======================================= */
.screen-grid { display: flex; gap: 30px; justify-content: center; align-items: stretch; }
.screen-card { text-align: center; padding: 20px !important; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.screen-card img { max-height: 480px !important; border-radius: 16px; margin-bottom: 15px !important; box-shadow: 0 8px 20px rgba(0,0,0,0.08); object-fit: contain; }
.screen-label { font-weight: 800; font-size: 0.75em; background: var(--primary-light); color: var(--primary-dark); padding: 8px 20px; border-radius: 50px; display: inline-block; }

/* ======================================= */
/*  IA SLIDE                               */
/* ======================================= */
.formula-block { background: #1E293B; color: #10B981; font-family: 'JetBrains Mono', monospace; padding: 20px 25px; border-radius: 16px; font-size: 1em; margin-bottom: 25px !important; font-weight: 700; text-align: center; line-height: 1.8; }
.tag-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.tag { background: var(--primary-light); color: var(--primary-dark); padding: 10px 18px; border-radius: 50px; font-weight: 800; font-size: 0.85em; }

/* ======================================= */
/*  SCRUM                                  */
/* ======================================= */
.scrum-card { margin-bottom: 30px; font-size: 0.8em; }
.scrum-card h3 { font-size: 1.5em !important; margin-bottom: 18px !important; }

/* ======================================= */
/*  TESTS                                  */
/* ======================================= */
.test-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; font-size: 0.72em; }
.test-item { position: relative; padding: 25px 25px 25px 35px !important; }
.test-item::before { content: ''; position: absolute; top: 0; left: 0; width: 8px; height: 100%; background: var(--success); border-radius: 28px 0 0 28px; }
.test-check { position: absolute; top: 18px; right: 18px; background: #D1FAE5; color: var(--success); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3em; }
.test-item h4 { font-size: 1.3em !important; margin-bottom: 10px !important; }
.test-item p { color: var(--text-muted); margin: 0 !important; font-size: 1em; }

/* ======================================= */
/*  MERCI SLIDE                            */
/* ======================================= */
.merci-logo { width: 280px !important; margin-bottom: 30px !important; filter: drop-shadow(0 20px 40px rgba(229,57,53,0.25)); }
.merci-heading { font-size: 4em !important; color: var(--primary) !important; margin-bottom: 20px !important; letter-spacing: -2px !important; }
.merci-bar { width: 180px; height: 8px; background: var(--accent); margin: 0 auto 35px; border-radius: 10px; }

/* ======================================= */
/*  REVEAL CONTROLS BRANDING               */
/* ======================================= */
.reveal .controls { color: var(--primary) !important; }
.reveal .progress { color: var(--primary) !important; height: 6px !important; }
.reveal .progress span { background: var(--primary) !important; }
.reveal .slide-number { font-family: 'Outfit', sans-serif !important; font-weight: 700 !important; font-size: 14px !important; color: var(--text-muted) !important; background: transparent !important; }

/* ======================================= */
/*  CSS ARCHITECTURE DIAGRAM               */
/* ======================================= */
.css-arch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
}
.arch-tier {
    background: var(--surface);
    border: 2px solid rgba(229,57,53,0.3);
    border-radius: 20px;
    padding: 20px;
    width: 80%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.tier-frontend { border-top: 6px solid #3b82f6; }
.tier-backend { border-top: 6px solid #f59e0b; }
.tier-ai { border-top: 6px solid var(--success); }

.tier-title {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tier-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.arch-box {
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.arch-arrow {
    font-size: 1.5em;
    color: var(--primary);
    font-weight: 900;
}

/* Custom Scrollbar for Lightbox */
.lightbox-content::-webkit-scrollbar {
    width: 14px;
}
.lightbox-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
}
.lightbox-content::-webkit-scrollbar-thumb {
    background: #E53935;
    border-radius: 10px;
    border: 3px solid rgba(15, 23, 42, 0.9);
}
.lightbox-content::-webkit-scrollbar-thumb:hover {
    background: #C62828;
}
