/* ANVA Website - Enhanced CSS with 4K Support */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
.nav-link {
    @apply text-gray-700 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200;
}

.mobile-nav-link {
    @apply text-gray-700 hover:text-blue-600 block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200;
}

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

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-slide-up {
    animation: slide-up 1s ease-out 0.3s both;
}

/* Training Cards */
.training-card {
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design for 4K and High DPI */
@media (min-width: 2560px) {
    .max-w-7xl {
        max-width: 120rem;
    }
    
    .text-5xl {
        font-size: 4rem;
    }
    
    .text-6xl {
        font-size: 5rem;
    }
    
    .text-4xl {
        font-size: 3rem;
    }
    
    .py-20 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Fullscreen Presentation Styles */
.presentation-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto; /* Enable scrolling in fullscreen */
}

.presentation-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.presentation-fullscreen:hover .presentation-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slide-counter {
    color: white;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

/* Enhanced Slide Navigation - Remove conflicting styles */
.slide-iframe {
    border: none;
    background: #000;
    z-index: 9998;
    overflow-y: auto; /* Enable vertical scrolling within iframe */
}

/* 4K Scaling */
@media (min-width: 3840px) {
    .presentation-controls {
        bottom: 40px;
        padding: 15px 30px;
    }
    
    .control-btn {
        padding: 12px 18px;
        font-size: 16px;
    }
    
    .slide-counter {
        padding: 12px 18px;
        font-size: 16px;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .presentation-controls {
        bottom: 10px;
        padding: 8px 15px;
        gap: 5px;
    }
    
    .control-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .slide-counter {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .training-card {
        backface-visibility: hidden;
        transform: translateZ(0);
    }
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.mobile-nav-link:focus,
.control-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .presentation-controls,
    nav,
    footer {
        display: none !important;
    }
    
    .slide-iframe {
        height: 100vh;
        page-break-inside: avoid;
    }
}

