/* Presentation Styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Custom scrollbar for any overflow content */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Prevent text selection */
.slide * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Ensure content doesn't overflow viewport */
.slide > div {
    max-height: 95vh;
    overflow-y: auto;
}

/* Navigation hover effects */
#prev-btn:hover,
#next-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Progress bar smooth transitions */
#progress-bar {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .slide h1 {
        font-size: 3rem !important;
    }
    
    .slide h2 {
        font-size: 2rem !important;
    }
    
    .slide h3 {
font-size: 1.5rem !important;
    }
    
    .slide p,
    .slide li {
        font-size: 1rem !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    
    .text-7xl {
        font-size: 2.5rem !important;
    }
    
    .text-6xl {
        font-size: 2rem !important;
    }
    
    .text-5xl {
        font-size: 1.75rem !important;
    }
    
    .text-8xl {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 1rem;
    }
    
    .max-w-6xl,
    .max-w-7xl {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .space-y-8 > * + * {
        margin-top: 1rem !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }
    
    .rounded-3xl {
        border-radius: 1rem !important;
    }
    
    .p-8 {
        padding: 1rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .mb-12 {
        margin-bottom: 1.5rem !important;
    }
}

/* Chart container styling */
canvas {
    background: transparent !important;
}

/* SVG diagram styling */
svg text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth transitions for all interactive elements */
button,
.cursor-pointer {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass morphism effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Enhanced focus states for accessibility */
button:focus,
.cursor-pointer:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles for handouts */
@media print {
    .slide {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        page-break-after: always;
        background: white !important;
        color: black !important;
    }
    
    .slide * {
        color: black !important;
    }
    
    .fixed {
        display: none !important;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: white !important;
    }
    
    .bg-clip-text {
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-white\/5 {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .border-white\/10 {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
    
    .text-gray-300 {
        color: #f3f4f6 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .slide,
    .transition-all,
    #progress-bar {
        transition: none !important;
    }
    
    .animate-pulse {
        animation: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode optimization */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* Loading states */
.slide[data-loading="true"] {
    pointer-events: none;
}

.slide[data-loading="true"] * {
    opacity: 0.7;
}

/* Custom gradient backgrounds for different slides */
.slide[data-slide-index="0"] {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #000000 100%);
}

.slide[data-slide-index="1"] {
    background: linear-gradient(135deg, #374151 0%, #000000 100%);
}

.slide[data-slide-index="2"] {
    background: linear-gradient(135deg, #581c87 0%, #000000 100%);
}

.slide[data-slide-index="3"] {
    background: linear-gradient(135deg, #1e40af 0%, #000000 100%);
}

.slide[data-slide-index="4"] {
    background: linear-gradient(135deg, #14532d 0%, #000000 100%);
}

.slide[data-slide-index="5"] {
    background: linear-gradient(135deg, #3730a3 0%, #000000 100%);
}

.slide[data-slide-index="6"] {
    background: linear-gradient(135deg, #134e4a 0%, #000000 100%);
}

.slide[data-slide-index="7"] {
    background: linear-gradient(135deg, #9a3412 0%, #000000 100%);
}

.slide[data-slide-index="8"] {
    background: linear-gradient(135deg, #831843 0%, #000000 100%);
}

.slide[data-slide-index="9"] {
    background: linear-gradient(135deg, #92400e 0%, #000000 100%);
}

.slide[data-slide-index="10"] {
    background: linear-gradient(135deg, #6b21a8 0%, #000000 100%);
}

.slide[data-slide-index="11"] {
    background: linear-gradient(135deg, #475569 0%, #000000 100%);
}
