/* ========================================
   STUDIO EMS - CUSTOM CSS
   ======================================== */

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navigation Styles */
#navbar {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-menu-active {
    display: block !important;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(17, 24, 39, 1);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(17, 24, 39, 1);
    border: 2px solid rgba(75, 85, 99, 1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: rgb(234, 179, 8);
    background: rgba(0, 0, 0, 0.8);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgb(156, 163, 175);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
    transform: translateY(-2rem) scale(0.8);
    color: rgb(234, 179, 8);
    background: black;
    padding: 0 0.5rem;
}

.form-error {
    color: rgb(239, 68, 68);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-success {
    color: rgb(34, 197, 94);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, rgb(234, 179, 8), rgb(245, 158, 11));
    color: black;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgb(245, 158, 11), rgb(234, 179, 8));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3);
}

.btn-secondary {
    border: 2px solid rgb(234, 179, 8);
    color: rgb(234, 179, 8);
    background: transparent;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-secondary:hover {
    background: rgb(234, 179, 8);
    color: black;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: rgb(234, 179, 8);
}

/* Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: rgb(234, 179, 8);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.1), transparent);
    transition: left 0.5s ease;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgb(234, 179, 8);
}

/* Team Card Styles */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgb(234, 179, 8);
}

.team-card img {
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgb(234, 179, 8);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(234, 179, 8, 0.3);
    border-radius: 50%;
    border-top: 2px solid rgb(234, 179, 8);
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.gradient-text {
    background: linear-gradient(135deg, rgb(234, 179, 8), rgb(245, 158, 11));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Media Queries */
@media (max-width: 768px) {
    .gallery-item {
        height: 250px;
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .form-input, .form-textarea {
        padding: 0.875rem;
    }
}

@media (max-width: 640px) {
    .gallery-item {
        height: 200px;
    }
    
    .counter {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn-primary, .btn-secondary {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-300 {
        color: #e5e7eb !important;
    }
    
    .border-gray-800 {
        border-color: #374151 !important;
    }
}

/* Reduced Motion - force AOS elements to be visible */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    *:not([data-aos]), *:not([data-aos])::before, *:not([data-aos])::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Image Positioning */
.trainer-image-ola {
    object-position: center 10% !important;
}

/* About page team thumbnails */
.team-thumbnail-ola {
    object-position: center 10% !important;
}

.team-thumbnail-rafal {
    object-position: center 30% !important;
} 