/* Custom styles and overrides */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #b53030;
    outline-offset: 2px;
}

/* Custom selection color */
::selection {
    background-color: #b53030;
    color: white;
}

/* Reduce motion for users who prefer it */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #mobile-menu-btn, #close-menu-btn {
        display: none !important;
    }
    
    body {
        color: #1a1a1a;
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .menu-card {
        border: 1px solid currentColor;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Better form styling */
input::placeholder,
textarea::placeholder {
    color: #b0b0b0;
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}

/* Tablet and desktop optimizations */
@media (min-width: 768px) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .menu-card:hover {
        transform: translateY(-8px);
    }
}
