
/* Ergonomics Assessment Enhanced Mobile Responsive Styles */

.glass-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Minimal glass effect for hero section - Mobile Optimized */
.glass-card-minimal {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.assessment-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.assessment-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.assessment-card:hover .glass-card {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Enhanced Button Styles for Mobile */
.btn-primary {
    background: linear-gradient(135deg, #0891b2, #1e40af);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* Better touch target */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0e7490, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.btn-secondary {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(71, 85, 105, 0.5);
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* Better touch target */
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 1);
    border-color: rgba(71, 85, 105, 1);
}

/* Neumorphic Elements */
.neuro-card {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    box-shadow: 
        20px 20px 60px #d1d5db,
        -20px -20px 60px #ffffff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.neuro-card:hover {
    box-shadow: 
        inset 20px 20px 60px #d1d5db,
        inset -20px -20px 60px #ffffff;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .glass-card {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .assessment-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    h1 {
        font-size: 2.75rem !important;
    }
    
    h2 {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .glass-card-minimal {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .assessment-card:hover {
        transform: translateY(-4px) scale(1.005);
    }
    
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.875rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    h4 {
        font-size: 1.125rem !important;
    }
    
    /* Button mobile adjustments */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px 24px;
        margin-bottom: 0.75rem;
    }
    
    /* Card adjustments */
    .ndis-card {
        padding: 24px 16px !important;
    }
    
    /* Process timeline mobile */
    .process-step::before {
        display: none !important;
    }
    
    /* Service cards responsive */
    .assessment-areas .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem !important;
        margin-bottom: 1rem !important;
    }
    
    h2 {
        font-size: 1.625rem !important;
    }
    
    .glass-card-minimal {
        padding: 1.5rem !important;
        margin: 0 0.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    /* Quiz modal mobile */
    .quiz-modal {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    /* Trust indicators mobile */
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    h2 {
        font-size: 1.375rem !important;
    }
    
    .glass-card-minimal {
        padding: 1rem !important;
        margin: 0 0.25rem;
    }
    
    /* Service icons smaller on mobile */
    .ndis-card .w-20.h-20 {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
    
    .ndis-card .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .ndis-card .text-2xl {
        font-size: 1.125rem !important;
    }
    
    /* Process steps mobile */
    .process-step .w-16.h-16 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .process-step .text-2xl {
        font-size: 1.125rem !important;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    h1 {
        font-size: 1.75rem !important;
    }
    
    .glass-card-minimal {
        padding: 1.5rem !important;
    }
    
    /* Adjust hero section for landscape */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0891b2, #1e40af);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0e7490, #1e3a8a);
}

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 3px solid rgba(8, 145, 178, 0.5);
    outline-offset: 2px;
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid rgba(8, 145, 178, 0.1);
    border-left: 4px solid #0891b2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Testimonial Carousel Enhancements */
.testimonial-card {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-card.inactive {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Process Timeline */
.process-step {
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #0891b2, #1e40af);
    transform: translateY(-50%);
}

.process-step:last-child::before {
    display: none;
}

/* Chat Widget Animations */
.chat-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Quiz Modal Enhancements */
.quiz-modal {
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Blog Cards */
.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-card img {
    transition: transform 0.6s ease;
}

.blog-card:hover img {
    transform: scale(1.1);
}

/* Touch device optimisations */
@media (hover: none) and (pointer: coarse) {
    .assessment-card:hover,
    .neuro-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .assessment-card,
    .neuro-card,
    .blog-card {
        transition: none;
    }
    
    /* Increase tap targets for touch devices */
    .btn-primary,
    .btn-secondary {
        min-height: 52px;
        padding: 14px 28px;
    }
    
    /* Better spacing for touch */
    .ndis-card {
        margin-bottom: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating {
        animation: none;
    }
    
    .chat-bounce {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #000;
    }
    
    .glass-card-minimal {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .glass-card {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .glass-card-minimal {
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .neuro-card {
        background: linear-gradient(145deg, #2d3748, #1a202c);
        box-shadow: 
            20px 20px 60px #1a202c,
            -20px -20px 60px #2d3748;
    }
}

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-card,
    .glass-card-minimal {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Print Styles */
@media print {
    .glass-card,
    .glass-card-minimal {
        background: #fff !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    .btn-primary,
    .btn-secondary {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}
