/* 
==================================================
   Political Info - Premium Reveal.js Theme (Main Project Sync)
==================================================
*/

:root {
    /* Synced from main project globals.css */
    --primary-bg: #ffffff; /* White background for presentation */
    --secondary-bg: #f8f9fa;
    --color-primary: #DC143C; /* Crimson Red */
    --color-primary-dark: #C41E3A;
    --gradient-start: #DC143C;
    --gradient-mid: #e83858;
    --gradient-end: #ff4d6d;
    --text-main: #1a1a1a; /* Dark text for readability on white */
    --text-muted: #495057;
    --font-main: 'Inter', sans-serif;
    --font-title: 'Poppins', sans-serif;
}

/* Base Overrides for Reveal.js */
.reveal {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: transparent !important;
}

/* Elegant Background Pattern - Dark Mode Sync */
.reveal-viewport, body {
    background-color: var(--primary-bg) !important;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(220, 20, 60, 0.03) 0%, transparent 50%),
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px !important;
    background-attachment: fixed !important;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    color: var(--text-main) !important;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
    font-family: var(--font-title);
    color: var(--text-main);
    text-transform: none;
    font-weight: 700;
}

/* Typography & Colors */
.text-primary {
    color: var(--color-primary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px !important;
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
}

.slide-title {
    font-size: 2.5rem !important;
    margin-bottom: 50px !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.slide-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.title-slide .slide-title::after { display: none; }

.brand-logo {
    font-size: 5rem;
    margin-bottom: 20px;
    text-align: center;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.3));
}

.main-heading {
    font-size: 4.5rem !important;
    letter-spacing: 2px;
    margin-bottom: 15px !important;
    text-align: center;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
}

.sub-heading {
    font-size: 2rem !important;
    font-family: var(--font-main) !important;
    font-weight: 300 !important;
    margin-bottom: 25px !important;
    text-align: center;
    color: var(--text-muted);
}

.tagline {
    font-size: 1.4rem !important;
    font-style: italic;
    margin-bottom: 50px !important;
    text-align: center;
    letter-spacing: 1px;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.quick-stats .stat {
    background: rgba(0,0,0,0.03);
    backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 30px;
    border: 1px solid rgba(220, 20, 60, 0.4);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Split Layout */
.text-left-slide {
    text-align: left !important;
}

.text-left-slide .slide-title {
    text-align: left !important;
    display: block;
}

.text-left-slide .slide-title::after {
    left: 0;
    transform: none;
}

.split-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    margin: 0 auto;
    gap: 50px;
}

.col-left {
    flex: 1.2;
}

.col-right {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Visual Graphics */
.visual-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220,20,60,0.15) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(220,20,60,0.3);
}

.visual-graphic::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50%;
    animation: rotateSlow 20s linear infinite;
}

.visual-icon-lg {
    font-size: 7rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(220,20,60,0.4));
}

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

/* Feature List Large */
.feature-list-large {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list-large li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(90deg, rgba(0,0,0,0.03) 0%, transparent 100%);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    transition: transform 0.3s ease;
}

.feature-list-large li:hover {
    transform: translateX(10px);
    background: linear-gradient(90deg, rgba(220,20,60,0.1) 0%, transparent 100%);
}

.feature-list-large i {
    font-size: 1.8rem;
    margin-top: 5px;
    width: 40px;
    text-align: center;
}

.feature-list-large p {
    margin: 0 !important;
    font-size: 1.25rem !important;
    color: var(--text-main);
    line-height: 1.5;
}

/* Glassmorphism Cards synced to main project dark card */
.glass-card {
    background: var(--secondary-bg);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(220, 20, 60, 0.1);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 95%;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.4rem !important;
    margin-bottom: 15px !important;
}

.service-card p {
    font-size: 1rem !important;
    color: var(--text-muted);
    margin: 0 !important;
    line-height: 1.5;
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 90%;
    margin: 0 auto;
}

.impact-card {
    text-align: left;
    border-top: 5px solid var(--color-primary);
    background: linear-gradient(180deg, rgba(220,20,60,0.05) 0%, var(--secondary-bg) 100%);
}

.impact-header {
    margin-bottom: 20px;
}

.impact-header h3 {
    margin: 0 !important;
    font-size: 1.8rem !important;
    color: var(--color-primary);
}

.impact-card p {
    margin: 0 !important;
    font-size: 1.2rem !important;
    color: var(--text-main);
    line-height: 1.6;
}

/* Contact Slide */
.contact-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 70%;
    margin: 0 auto;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child { border-bottom: none; }

.contact-item i {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.contact-item h4 {
    margin: 0 0 5px 0 !important;
    font-size: 1.4rem !important;
}

.contact-item p {
    margin: 0 !important;
    font-size: 1.2rem !important;
    color: var(--text-muted);
}

.thank-you {
    margin-top: 60px;
    text-align: center;
}

.thank-you h3 {
    font-family: var(--font-title);
    font-size: 3rem !important;
    letter-spacing: 2px;
}

/* Language Switcher */
.presentation-controls {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
}

.lang-switcher {
    display: flex;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.4);
    border-radius: 30px;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(0,0,0,0.1);
}

.lang-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

/* =========================================
   MODERN AUTO-STAGGER ANIMATIONS
========================================= */

section .anim-title,
section .anim-left,
section .anim-right,
section .anim-grid-item,
section .anim-list-item,
section .anim-group-1,
section .anim-group-2,
section .anim-group-3,
section .anim-group-4,
section .anim-group-5,
section .anim-center,
section .anim-bottom {
    opacity: 0;
    visibility: hidden;
}

/* Ensure past and future slides are truly hidden to prevent overlaps */
section.present {
    z-index: 10 !important;
}

section.past, section.future {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); visibility: visible; }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); visibility: visible; }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); visibility: visible; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); visibility: visible; }
}

section.present .anim-title { animation: fadeInDown 0.6s ease forwards 0.1s; }
section.present .anim-left { animation: fadeInRight 0.8s ease forwards 0.3s; }
section.present .anim-right { animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s; }

/* Reset animations when slide is not present to prevent ghosting */
section.past .anim-title, section.future .anim-title,
section.past .anim-left, section.future .anim-left,
section.past .anim-right, section.future .anim-right,
section.past .anim-grid-item, section.future .anim-grid-item,
section.past .anim-list-item, section.future .anim-list-item,
section.past .anim-group-1, section.future .anim-group-1,
section.past .anim-group-2, section.future .anim-group-2,
section.past .anim-group-3, section.future .anim-group-3,
section.past .anim-group-4, section.future .anim-group-4,
section.past .anim-group-5, section.future .anim-group-5,
section.past .anim-center, section.future .anim-center,
section.past .anim-bottom, section.future .anim-bottom {
    animation: none !important;
}

section.present .anim-grid-item:nth-child(1) { animation: fadeInUp 0.6s ease forwards 0.2s; }
section.present .anim-grid-item:nth-child(2) { animation: fadeInUp 0.6s ease forwards 0.4s; }
section.present .anim-grid-item:nth-child(3) { animation: fadeInUp 0.6s ease forwards 0.6s; }
section.present .anim-grid-item:nth-child(4) { animation: fadeInUp 0.6s ease forwards 0.8s; }
section.present .anim-grid-item:nth-child(5) { animation: fadeInUp 0.6s ease forwards 1.0s; }
section.present .anim-grid-item:nth-child(6) { animation: fadeInUp 0.6s ease forwards 1.2s; }

section.present .anim-list-item:nth-child(1) { animation: fadeInRight 0.6s ease forwards 0.4s; }
section.present .anim-list-item:nth-child(2) { animation: fadeInRight 0.6s ease forwards 0.6s; }
section.present .anim-list-item:nth-child(3) { animation: fadeInRight 0.6s ease forwards 0.8s; }
section.present .anim-list-item:nth-child(4) { animation: fadeInRight 0.6s ease forwards 1.0s; }

section.present .anim-group-1 { animation: zoomIn 0.8s ease forwards 0.1s; }
section.present .anim-group-2 { animation: fadeInUp 0.8s ease forwards 0.3s; }
section.present .anim-group-3 { animation: fadeInUp 0.8s ease forwards 0.5s; }
section.present .anim-group-4 { animation: fadeInUp 0.8s ease forwards 0.7s; }
section.present .anim-group-5 { animation: fadeInUp 0.8s ease forwards 0.9s; }

section.present .anim-center { animation: zoomIn 0.8s ease forwards 0.3s; }
section.present .anim-bottom { animation: fadeInUp 0.8s ease forwards 0.8s; }

@media screen and (max-width: 768px) {
    .split-layout { flex-direction: column; gap: 30px; }
    .col-right { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; }
    .main-heading { font-size: 3rem !important; }
    .sub-heading { font-size: 1.5rem !important; }
}

@media print {
    /* Hide presentation controls/language switcher in PDF */
    .presentation-controls {
        display: none !important;
    }

    /* Force all animated elements to be fully visible and laid out */
    section .anim-title,
    section .anim-left,
    section .anim-right,
    section .anim-grid-item,
    section .anim-list-item,
    section .anim-group-1,
    section .anim-group-2,
    section .anim-group-3,
    section .anim-group-4,
    section .anim-group-5,
    section .anim-center,
    section .anim-bottom {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
    }
}

