/* Custom Styles for Taxi Express Waldems */

/* Hero Video Styles */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    object-fit: cover;
}

/* Header Styles */
#header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--taxi-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Hover Effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover-effect:hover::before {
    left: 100%;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--taxi-yellow);
}

/* Service Accordion */
.service-item {
    transition: all 0.3s ease;
}

.service-question {
    transition: background-color 0.3s ease;
}

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

.service-answer.show {
    max-height: none;
    padding: 1.5rem;
}

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

.service-question[aria-expanded="true"] .service-icon {
    transform: rotate(180deg);
}

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

.faq-question {
    transition: background-color 0.3s ease;
}

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

.faq-answer.show {
    max-height: 300px;
    padding: 1.25rem;
}

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

/* Body scroll lock */
body.modal-open {
    overflow: hidden;
    height: 100vh;
    overscroll-behavior: contain;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 50;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-footer {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-content.show {
    transform: translateY(0);
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.form-group {
    position: relative;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 228, 115, 0.3);
}

.form-label {
    transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.5rem) scale(0.8);
    color: var(--taxi-yellow);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    #hero-video {
        min-height: 120%;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .modal-content {
        margin: 2rem 1rem;
        max-height: calc(100vh - 4rem);
    }

    .modal-overlay {
        padding: 2rem 1rem;
    }

    .faq-answer.show {
        max-height: 350px;
    }

    .faq-question {
        padding: 1.25rem;
    }

    .service-answer.show {
        max-height: none;
        padding: 1.25rem;
    }

    .service-question {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .modal-content {
        margin: 3rem 0.75rem;
        max-height: calc(100vh - 6rem);
    }

    .modal-overlay {
        padding: 3rem 0.75rem;
    }

    .modal-body {
        max-height: calc(100vh - 12rem);
    }

    .faq-answer.show {
        max-height: 400px;
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-question span {
        line-height: 1.4;
        word-wrap: break-word;
    }

    .service-answer.show {
        max-height: none;
        padding: 1rem;
    }

    .service-question {
        padding: 1rem;
    }

    .service-question h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .service-question p {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--taxi-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--taxi-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #hero-video {
        animation: none;
    }
}
