/* Custom styles beyond Tailwind */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #fff8f7;
}

::-webkit-scrollbar-thumb {
    background: #a82525;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #741a1a;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

/* Blob animations */
.blob-1 {
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    animation: float 8s ease-in-out infinite reverse;
}

.blob-3 {
    animation: float 7s ease-in-out infinite;
}

/* Geometric shapes */
.geometric-shape {
    animation: pulse 4s ease-in-out infinite;
}

.blob-1 {
    animation-delay: 0s;
}

.blob-2 {
    animation-delay: 1s;
}

.blob-3 {
    animation-delay: 2s;
}

/* Mobile menu overlay */
#mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#mobile-menu.open::before {
    opacity: 1;
    visibility: visible;
}

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

/* Print styles */
@media print {
    .hero-gradient,
    .geometric-shape,
    .blob-1,
    .blob-2,
    .blob-3 {
        display: none;
    }
    
    .btn-primary,
    .btn-secondary {
        background: #a82525 !important;
        color: white !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #741a1a;
    }
    
    .btn-secondary {
        border-color: #741a1a;
        color: #741a1a;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .card-hover:hover {
        transform: none;
    }
    
    .menu-item:hover {
        border-left-color: transparent;
        padding-left: 1rem;
    }
}
