/* Custom styles and animations */
:root {
    --coral-500: #ff4d7d;
    --coral-400: #ff7a9d;
    --charcoal-900: #1a1a1f;
    --charcoal-800: #3a3a41;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback for browsers without JS - ensure content is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Geometric decorations */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1f;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #ff7a9d;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, transform;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}

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

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

/* Button hover effects */
button, a {
    position: relative;
    overflow: hidden;
}

button::after, a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::after, a:hover::after {
    width: 300px;
    height: 300px;
}
