/* Add this to the very top of your main.css file */
@font-face {
    font-family: 'Omnes Pro';
    src: url('./fonts/Omnes Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap; /* Ensures text is visible during font loading */
}

/* Critical CSS - Above the fold styles */
body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0d2e 50%, #0a0a0a 100%);
    color: #EAEAEA;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif; /* Added fallbacks */
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keep home page with original background */
body.fouc-prevention {
    background-color: #121212;
    background-image: none;
}

/* Prevent pride flag from flashing at full size - Universal fix */
img[src*="progressflag"] {
    height: 1.5rem !important;
    width: auto !important;
    max-width: 1.5rem !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show flag after page loads */
.flag-loaded img[src*="progressflag"],
body.flag-loaded img[src*="progressflag"] {
    opacity: 1;
}

/* Enhanced Accessibility Styles */
/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #B564F7;
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced focus styles for better accessibility */
:focus-visible {
    outline: 3px solid #E83A99;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button focus states */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
.btn:focus-visible {
    outline: 2px solid #E83A99;
    outline-offset: 1px;
    box-shadow: 0 0 0 1px rgba(232, 58, 153, 0.2);
}

/* Link focus states */
a:focus-visible {
    outline: 1px solid #E83A99;
    outline-offset: 1px;
    text-decoration: underline;
}

/* Form field focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: #E83A99 !important;
    box-shadow: 0 0 0 3px rgba(232, 58, 153, 0.2);
    outline: none;
}

/* Error states for form validation */
.field-error,
.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Show content on focus for screen readers */
.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #B564F7;
    color: white;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .accent-color { 
        color: #E080FF; 
    }
    
    .heading-gradient {
        background: none;
        -webkit-text-fill-color: initial;
        color: #FFFFFF;
    }
    
    .filter-button {
        border-width: 2px;
        border-color: #FFFFFF;
    }
    
    .card-bg {
        border-color: #FFFFFF;
        border-width: 2px;
    }
}

/* Enhanced mobile menu accessibility */
#menu {
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

#menu.hidden {
    visibility: hidden;
    opacity: 0;
}

#menu.flex {
    visibility: visible;
    opacity: 1;
}

/* Mobile menu focus trap */
#menu a:focus {
    background-color: rgba(181, 100, 247, 0.2);
    outline: 2px solid #B564F7;
}

/* Performance optimization for video background */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform; /* Optimize for animations */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Custom font for bold, impactful headlines */
.font-anton {
    font-family: 'Anton', system-ui, sans-serif;
    letter-spacing: 0.05em;
}

.font-omnes-pro {
    font-family: 'Omnes Pro', system-ui, sans-serif;
}

/* Core Colour Palette Classes */
.accent-color { color: #E83A99; }
.bg-accent-color { background-color: #E83A99; }
.border-accent-color { border-color: #E83A99; }
.accent-color-secondary { color: #8B5CF6; }
.bg-accent-color-secondary { background-color: #8B5CF6; }

/* Component Styles - Optimized for performance */
.nav-cta {
    background-color: #8B5CF6; 
    color: #ffffff; 
    font-weight: bold;
    padding: 0.75rem 1.5rem; 
    border-radius: 0.5rem; 
    transition: opacity 0.3s ease, transform 0.2s ease;
    will-change: opacity; /* Optimize for transitions */
}
.nav-cta:hover { 
    opacity: 0.9;
    transform: translateY(-1px);
}
.nav-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 58, 153, 0.3);
}

.card-bg {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1.25rem; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    will-change: transform; /* Optimize for hover effects */
}

.heading-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #E83A99 50%, #8B5CF6 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    color: transparent; /* Fallback for unsupported browsers */
}

/* Fix embossed text effect on mobile */
@media (max-width: 768px) {
    .heading-gradient {
        background: none;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        background-clip: initial;
        color: #FFFFFF;
        text-shadow: none;
    }
    
    /* Improve mobile text sizing for homepage hero */
    .font-anton {
        font-weight: 900 !important;
    }
    
    /* Ensure mobile headings are bold and readable */
    h1.font-anton {
        font-weight: 900 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    /* Make homepage hero text larger on mobile (reduced by half) */
    h1.font-anton.text-8xl {
        font-size: 4rem !important; /* Reduced by half from 8rem */
        line-height: 1.1 !important; /* Better spacing */
        letter-spacing: 0.05em !important; /* Increased letter spacing */
    }
    
    /* Ensure mobile hero text is prominent but not overwhelming */
    @media (max-width: 640px) {
        h1.font-anton.text-8xl {
            font-size: 5rem !important; /* Reduced by half from 10rem */
            line-height: 1.0 !important; /* Better spacing for large text */
            letter-spacing: 0.08em !important; /* More increased letter spacing for large text */
        }
    }
}

.filter-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    will-change: background-color, color, border-color;
}
.filter-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}
.filter-button.active {
    background: linear-gradient(135deg, rgba(232, 58, 153, 0.3) 0%, rgba(232, 58, 153, 0.1) 100%);
    border-color: rgba(232, 58, 153, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(232, 58, 153, 0.3);
}
.filter-button:focus-visible {
    border-color: #E83A99;
    box-shadow: 0 0 0 3px rgba(232, 58, 153, 0.3);
}

/* Event/Venue Card Styles - Performance optimized */
.item-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.2);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}
.item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 58, 153, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.item-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    outline: 2px solid #E83A99;
}

.item-card-image-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.item-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
}

.item-card:hover .item-card-image {
    transform: scale(1.05);
}

/* Feature cards optimization */
.feature-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.2);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 58, 153, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.feature-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
    outline: 2px solid #E83A99;
}

/* Loading states and accessibility improvements */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Improve button accessibility */
button:disabled,
input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form validation styles - consolidated with .field-error above */

/* Reduce motion for accessibility */
@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;
    }
    
    .item-card:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .background-video {
        animation: none;
    }
}

/* Dark mode optimization (already dark, but for consistency) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #EAEAEA;
    }
}

/* Print styles */
@media print {
    .video-background-container,
    .background-video,
    .video-overlay {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .feature-card,
    .item-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    /* Hide interactive elements in print */
    button,
    .filter-button,
    #menu-btn {
        display: none;
    }
}

/* Performance: GPU acceleration for animations */
.item-card,
.feature-card,
.filter-button,
.background-video {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Lazy loading placeholder */
.lazy-loading {
    background-color: #2a2a2a;
    background-image: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* ===== PHASE 2: ENHANCED ANIMATIONS & MICRO-INTERACTIONS ===== */

/* Enhanced Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0d2e 50%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(181, 100, 247, 0.3));
}

.loading-text {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #B564F7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(181, 100, 247, 0.5);
}

/* Enhanced Loading Animations */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(181, 100, 247, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(181, 100, 247, 0.6));
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 15px rgba(181, 100, 247, 0.8);
    }
}

/* Enhanced Page Transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation for Cards */
.item-card,
.feature-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.item-card:nth-child(1) { animation-delay: 0.1s; }
.item-card:nth-child(2) { animation-delay: 0.2s; }
.item-card:nth-child(3) { animation-delay: 0.3s; }
.item-card:nth-child(4) { animation-delay: 0.4s; }
.item-card:nth-child(5) { animation-delay: 0.5s; }
.item-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Hover Effects */
.item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 58, 153, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.item-card-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-card:hover .item-card-image {
    transform: scale(1.03);
}

/* Enhanced Button Interactions */
.btn,
.filter-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before,
.filter-button::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 ease;
}

.btn:hover::before,
.filter-button:hover::before {
    left: 100%;
}

.btn:hover,
.filter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #B564F7, #E83A99);
    transition: width 0.3s ease;
}

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

/* Enhanced Form Interactions */
input,
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    transform: translateY(0);
    box-shadow: 
        0 0 0 2px rgba(232, 58, 153, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Loading States */
.loading-state {
    position: relative;
    overflow: hidden;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced Focus States */
:focus-visible {
    outline: 2px solid #E83A99;
    outline-offset: 1px;
    border-radius: 4px;
    transition: outline 0.2s ease;
}

/* Enhanced Mobile Interactions */
@media (max-width: 768px) {
    .item-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .btn:hover,
    .filter-button:hover {
        transform: translateY(-1px);
    }
    
    /* Touch-friendly tap targets */
    .btn,
    .filter-button,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .loading-logo,
    .loading-text,
    .loading-spinner,
    .item-card,
    .feature-card,
    .btn,
    .filter-button,
    .nav-link {
        animation: none;
        transition: none;
    }
    
    .item-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    .btn:hover,
    .filter-button:hover {
        transform: none;
    }
}

/* ===== ADDITIONAL ANIMATION CLASSES ===== */

/* Small loading spinner for buttons */
.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* Feedback messages */
.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.feedback-message.show {
    transform: translateX(0);
}

.feedback-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.feedback-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.feedback-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Touch device interactions */
.touch-device .btn,
.touch-device .filter-button,
.touch-device .nav-link {
    -webkit-tap-highlight-color: transparent;
}

.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
}

/* Menu item animations */
.menu-item-enter {
    animation: menuItemSlideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes menuItemSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header scroll effects */
header {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-scrolled {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form field animations */
input:focus,
textarea:focus,
select:focus {
    transform: translateY(0);
    box-shadow: 
        0 0 0 2px rgba(232, 58, 153, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.focused {
    border-color: #E83A99 !important;
    box-shadow: 0 0 0 2px rgba(232, 58, 153, 0.2);
}

.has-value {
    border-color: #B564F7 !important;
}

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

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

/* Parallax elements */
.parallax {
    will-change: transform;
}

/* Enhanced card hover states */
.venue-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.venue-card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 58, 153, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.venue-card-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.venue-card:hover .venue-card-image {
    transform: scale(1.02);
}

/* Enhanced button states */
.btn:active,
.filter-button:active {
    transform: translateY(0) scale(0.98);
}

/* Loading state enhancements */
.loading-state {
    position: relative;
    overflow: hidden;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

/* Enhanced focus indicators */
:focus-visible {
    outline: 2px solid #E83A99;
    outline-offset: 1px;
    border-radius: 4px;
    transition: outline 0.2s ease;
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    .feedback-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .feedback-message.show {
        transform: translateY(0);
    }
    
    .venue-card:hover {
        transform: translateY(-2px);
    }
    
    .btn:hover,
    .filter-button:hover {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .font-anton {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    button,
    .filter-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    #menu a {
        padding: 1rem;
        font-size: 1.125rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobile-specific heading gradient fix */
    .heading-gradient {
        background: none;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        background-clip: initial;
        color: #FFFFFF;
        text-shadow: 0 0 10px rgba(232, 58, 153, 0.5);
    }
}

/* Mobile-specific form improvements */
@media (max-width: 768px) {
    /* Enhanced form field visibility on mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    input[type="number"],
    textarea,
    select {
        background-color: rgba(31, 41, 55, 0.9) !important;
        border-color: #4B5563 !important;
        color: #FFFFFF !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 16px !important;
        border-width: 2px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="url"]:focus,
    input[type="date"]:focus,
    input[type="time"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus {
        background-color: rgba(31, 41, 55, 1) !important;
        border-color: #B564F7 !important;
        box-shadow: 0 0 0 3px rgba(181, 100, 247, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Better placeholder visibility */
    input::placeholder,
    textarea::placeholder {
        color: #9CA3AF !important;
        opacity: 1 !important;
    }
    
    /* Enhanced label visibility */
    label {
        color: #FADCD9 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        margin-bottom: 8px !important;
        display: block !important;
    }
    
    /* Better button visibility */
    button[type="submit"],
    button[type="button"] {
        background-color: #B564F7 !important;
        color: #FFFFFF !important;
        font-weight: 700 !important;
        padding: 16px 24px !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        border: none !important;
        box-shadow: 0 4px 8px rgba(181, 100, 247, 0.3) !important;
        min-height: 48px !important; /* Better touch target */
    }
    
    button[type="submit"]:hover,
    button[type="button"]:hover {
        background-color: #9333EA !important;
        box-shadow: 0 6px 12px rgba(181, 100, 247, 0.4) !important;
    }
    
    /* Enhanced card background for better contrast */
    .card-bg {
        background-color: rgba(17, 24, 39, 0.95) !important;
        border: 1px solid #374151 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Better spacing for mobile forms */
    .space-y-6 > * + * {
        margin-top: 1.5rem !important;
    }
    
    .space-y-4 > * + * {
        margin-top: 1rem !important;
    }
    
    /* Enhanced radio and checkbox visibility */
    input[type="radio"],
    input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        accent-color: #B564F7 !important;
        border: 2px solid #4B5563 !important;
        background-color: rgba(31, 41, 55, 0.9) !important;
    }
    
    /* Better text contrast for headings */
    h1, h2, h3 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Enhanced tooltip visibility */
    .absolute.bottom-full {
        background-color: rgba(17, 24, 39, 0.98) !important;
        border: 2px solid #4B5563 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    }
}

/* Container queries support (progressive enhancement) */
@supports (container-type: inline-size) {
    .item-card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .category-tag {
            font-size: 0.625rem;
            padding: 0.125rem 0.5rem;
        }
    }
}

/* Error message styling */
.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.success-message {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #86efac;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #B564F7;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Button Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Back button arrow movement */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back .arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back:hover .arrow {
    transform: translateX(-4px);
}

/* Forward button arrow movement */
.btn-forward {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-forward .arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-forward:hover .arrow {
    transform: translateX(4px);
}

/* Icon button micro-interactions */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon .icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover .icon {
    transform: scale(1.1);
}

/* Download button micro-interaction */
.btn-download .icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-download:hover .icon {
    transform: translateY(-2px);
}

/* Submit button micro-interaction */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::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 ease;
}

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

/* Filter button micro-interaction */
.filter-button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-button.active {
    background-color: #E83A99;
    color: white;
    transform: scale(1.05);
}

.filter-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #E83A99;
    border-radius: 1px;
}

/* Close button micro-interaction */
.btn-close {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-close::before,
.btn-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-close::before {
    transform: rotate(45deg);
}

.btn-close::after {
    transform: rotate(-45deg);
}

.btn-close:hover {
    transform: rotate(90deg);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menu button micro-interaction */
.btn-menu {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-menu .line {
    width: 20px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.btn-menu:hover .line:nth-child(1) {
    transform: translateY(2px);
}

.btn-menu:hover .line:nth-child(3) {
    transform: translateY(-2px);
}

.btn-menu.active .line:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.btn-menu.active .line:nth-child(2) {
    opacity: 0;
}

.btn-menu.active .line:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

/* Social media button micro-interactions */
.btn-social {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-social::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-social:hover::before {
    width: 100%;
    height: 100%;
}

.btn-social .icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-social:hover .icon {
    transform: scale(1.2);
}

/* Loading button micro-interaction */
.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Pulse effect for important buttons */
.btn-pulse {
    position: relative;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: inherit;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

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

/* Mobile optimizations for micro-interactions */
@media (max-width: 768px) {
    .btn-back:hover .arrow {
        transform: translateX(-2px);
    }
    
    .btn-forward:hover .arrow {
        transform: translateX(2px);
    }
    
    .btn-icon:hover .icon {
        transform: scale(1.05);
    }
    
    .btn-download:hover .icon {
        transform: translateY(-1px);
    }
    
    .btn-social:hover .icon {
        transform: scale(1.1);
    }
    
    .filter-button.active {
        transform: scale(1.02);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .btn-back .arrow,
    .btn-forward .arrow,
    .btn-icon .icon,
    .btn-download .icon,
    .btn-submit::before,
    .filter-button,
    .btn-close,
    .btn-menu,
    .btn-menu .line,
    .btn-social,
    .btn-social::before,
    .btn-social .icon,
    .btn-loading .spinner,
    .btn-pulse::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Large text mode for accessibility */
.large-text {
    font-size: 1.2em;
}

.large-text h1 {
    font-size: 2.5em;
}

.large-text h2 {
    font-size: 2em;
}

.large-text h3 {
    font-size: 1.5em;
}

.large-text p, .large-text span, .large-text div {
    font-size: 1.1em;
    line-height: 1.6;
}

.large-text .btn {
    font-size: 1.1em;
    padding: 0.875rem 1.75rem;
}

.large-text input, .large-text textarea, .large-text select {
    font-size: 1.1em;
    padding: 0.875rem;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
