/* Custom styles that complement Tailwind */

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

/* Ensure no layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a21caf, #d946ef);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #86198f, #c026d3);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f5d0fe;
    color: #4a044e;
}

/* Prevent text selection on decorative elements */
.no-select {
    user-select: none;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fade-in to hero content */
#hero > div {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: auto;
        padding: 100px 0 120px;
    }
}

/* Print styles */
@media print {
    .hero-gradient,
    .blob,
    .card-hover {
        animation: none !important;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Reduced motion support */
@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 support */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid #701a75;
    }
    
    .category-card {
        border: 2px solid #701a75;
    }
}

/* Dark mode support (if system prefers) */
@media (prefers-color-scheme: dark) {
    :root {
        /* Keep the plum and amber palette as specified */
    }
}
