/* Custom styles and animations */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Apply to geometric elements */
.geometric-float {
    animation: float 6s ease-in-out infinite;
}

.geometric-pulse {
    animation: pulse-glow 4s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: #2d0a20;
}

::-webkit-scrollbar-thumb {
    background: #6b1c4e;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b2666;
}

/* Selection color */
::selection {
    background: #f59e0b;
    color: #1a0a14;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Prevent layout shift */
aspect-ratio {
    content: '';
}

/* Reduced motion */
@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;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .shadow-2xl {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

/* Print styles */
@media print {
    nav, button, form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-plum-900, .bg-plum-800 {
        background: white !important;
        color: black !important;
    }
}
