/* Qasima Plus Presentation Styles */

:root {
    --qasima-primary: #1B4F72;
    --qasima-secondary: #2874A6;
    --qasima-accent: #3498DB;
    --qasima-success: #27AE60;
    --qasima-gold: #F39C12;
    --slide-bg: #FFFFFF;
    --slide-dark: #0F1419;
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
}

/* Base Styles */
body {
    overflow: hidden;
    background: var(--slide-dark);
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

/* Presentation Container */
.presentation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slide-bg);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    overflow-y: auto;
    padding: 3rem;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

/* Slide Content */
.slide-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 1rem;
    max-height: 88vh;
    overflow-y: auto;
}

/* Typography for Presentations */
.slide h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--qasima-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--qasima-secondary);
    margin-bottom: 1.2rem;
}

.slide h3 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.slide p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.slide .subtitle {
    font-size: 1.8rem;
    color: var(--qasima-accent);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Landing Slide */
.slide-landing {
    background: linear-gradient(135deg, var(--qasima-primary) 0%, var(--qasima-secondary) 100%);
    color: white;
}

.slide-landing h1 {
    font-size: 5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.slide-landing .subtitle {
    color: #E8F8F5;
    font-size: 2.5rem;
}

.slide-landing .tagline {
    font-size: 1.8rem;
    color: var(--qasima-gold);
    font-weight: 600;
    margin-top: 2rem;
}

/* Use blue logo for white background slides */
.slide:not(.slide-landing) .logo-container img {
    content: url('../images/Qasima-blue.svg');
}

/* Fix for specific slides that need blue logo */
.slide[data-slide="9"] .logo-container img {
    content: url('../images/Qasima-blue.svg') !important;
}

/* Logo */
.logo-container {
    margin-bottom: 3rem;
}

.logo-container img {
    max-width: 400px;
    height: auto;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: #F8F9FA;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--qasima-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--qasima-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Features List */
.features-list {
    text-align: right;
    max-width: 800px;
    margin: 2rem auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #E9ECEF;
    transform: translateX(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--qasima-accent);
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.5rem;
    color: var(--qasima-primary);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Partners Section */
.partners-section {
    margin: 1rem 0;
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 1rem;
}

.partners-label {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.partners-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.partner-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--qasima-primary);
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 0.5rem;
    border: 2px solid var(--qasima-accent);
}

.partner-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.partner-logo:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* CTA Section */
.cta-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--qasima-primary);
    color: white;
    border-radius: 1rem;
}

.cta-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    background: var(--qasima-gold);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Navigation */
.presentation-nav {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 1rem));
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.presentation-nav:hover,
.presentation-nav:focus-within {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Navigation hover trigger area */
.nav-hover-trigger {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 80px;
    z-index: 999;
    cursor: pointer;
}

.nav-hover-trigger:hover + .presentation-nav,
.presentation-nav:hover {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: var(--qasima-primary);
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--qasima-secondary);
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slide Indicators - Moved to presentation.html inline styles for better customization */

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1100px;
}

.challenge-card {
    background: #FEF5E7;
    border: 2px solid #F8C471;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: right;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.challenge-icon {
    font-size: 3rem;
    color: #E67E22;
    margin-bottom: 1rem;
}

.challenge-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1100px;
}

.solution-card {
    background: #E8F8F5;
    border: 2px solid #58D68D;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.solution-icon {
    font-size: 3rem;
    color: var(--qasima-success);
    margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
    background: #F8F9FA;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item i {
    color: var(--qasima-accent);
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .slide h1 { font-size: 2.5rem; }
    .slide h2 { font-size: 2rem; }
    .slide h3 { font-size: 1.8rem; }
    .slide p { font-size: 1.2rem; }
    .stat-number { font-size: 2rem; }
    .logo-container img { max-width: 250px; }
    .presentation-nav { 
        bottom: 0.5rem; 
        padding: 0.4rem 0.75rem;
        gap: 0.3rem;
    }
    .nav-btn { 
        padding: 0.4rem 0.8rem; 
        font-size: 0.9rem;
    }
    .partner-logo {
        width: 80px;
        height: auto;
    }
    .partners-list {
        gap: 0.8rem;
    }
    .challenges-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.1);
    z-index: 1001;
}

.progress-fill {
    height: 100%;
    background: var(--qasima-accent);
    transition: width 0.3s ease;
}

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

.slide.active .animate-item {
    animation: fadeInUp 0.8s ease forwards;
}

.slide.active .animate-item:nth-child(1) { animation-delay: 0.1s; }
.slide.active .animate-item:nth-child(2) { animation-delay: 0.2s; }
.slide.active .animate-item:nth-child(3) { animation-delay: 0.3s; }
.slide.active .animate-item:nth-child(4) { animation-delay: 0.4s; }
.slide.active .animate-item:nth-child(5) { animation-delay: 0.5s; }

/* Fullscreen Mode - Moved to presentation.html inline styles */
/* Home Button - Moved to presentation.html inline styles */

/* Hide home button in fullscreen mode */
:fullscreen .home-btn,
:-webkit-full-screen .home-btn,
:-moz-full-screen .home-btn,
:-ms-fullscreen .home-btn {
    display: none;
}

