* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: #0A0A0A;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #121212;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #E63946 0%, #F25C54 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E63946;
}

/* Text Selection */
::selection {
    background-color: #E63946;
    color: white;
}

/* Animated Gradient - Simplified */
@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

/* Blob Animation - Simplified */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.animate-blob {
    animation: blob 15s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Hover Lift Effect - Optimized */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -10px rgba(230, 57, 70, 0.3);
}

/* Button Transitions */
button, a {
    transition: all 0.3s ease;
}

/* Carousel */
#carouselTrack {
    transition: transform 0.5s ease;
}

/* Carousel Indicators */
.carousel-indicator {
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 32px;
    background: linear-gradient(90deg, #E63946, #F25C54);
}

/* Fade Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #E63946;
    outline-offset: 2px;
}

/* Prevent Layout Shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image Transitions */
img {
    transition: transform 0.5s ease;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-blob,
    .animate-gradient {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Loading Performance */
.lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-img.loaded {
    opacity: 1;
}

/* Instructor Photo - Zoom to fill circle */
.instructor-photo {
    background-size: 120% !important;
    background-position: center center !important;
}

/* Lightbox - Maximum Z-Index */
#lightbox {
    z-index: 99999 !important;
    position: fixed !important;
    inset: 0 !important;
}

body.lightbox-open {
    overflow: hidden !important;
}

/* Esconder todos os elementos exceto o lightbox quando aberto */
body.lightbox-open > *:not(#lightbox) {
    visibility: hidden !important;
}

body.lightbox-open #lightbox {
    visibility: visible !important;
}

/* Garantir que elementos do lightbox estejam visíveis */
#lightbox button,
#lightbox img,
#lightbox div,
#lightbox p,
#lightbox svg {
    visibility: visible !important;
}
