/* Custom styles for LA Body & Scar */

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

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

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

::-webkit-scrollbar-thumb {
    background: #2c5282;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a3254;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-scrolled .font-serif {
    color: #0d1a2e !important;
}

.nav-scrolled a:not(.px-10) {
    color: #1a3254 !important;
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Image hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #4ade80;
    outline-offset: 2px;
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all text is readable */
.text-midnight-900 {
    color: #0d1a2e;
}

.text-midnight-800 {
    color: #142642;
}

.text-midnight-700 {
    color: #1a3254;
}

.text-midnight-600 {
    color: #214166;
}

.text-midnight-500 {
    color: #2c5282;
}

.text-midnight-300 {
    color: #7694c0;
}

.text-midnight-200 {
    color: #a3b8d4;
}

.text-mint-900 {
    color: #14532d;
}

.text-mint-800 {
    color: #166534;
}

.text-mint-700 {
    color: #15803d;
}

.text-mint-600 {
    color: #16a34a;
}

.text-mint-500 {
    color: #22c55e;
}

.text-mint-400 {
    color: #4ade80;
}

.text-mint-200 {
    color: #bbf7d0;
}

.text-mint-100 {
    color: #dcfce7;
}

/* Background colors */
.bg-midnight-950 {
    background-color: #060e17;
}

.bg-midnight-900 {
    background-color: #0d1a2e;
}

.bg-midnight-800 {
    background-color: #142642;
}

.bg-midnight-700 {
    background-color: #1a3254;
}

.bg-midnight-600 {
    background-color: #214166;
}

.bg-midnight-500 {
    background-color: #2c5282;
}

.bg-midnight-100 {
    background-color: #d0dce8;
}

.bg-midnight-50 {
    background-color: #f0f4f8;
}

.bg-mint-500 {
    background-color: #22c55e;
}

.bg-mint-400 {
    background-color: #4ade80;
}

.bg-mint-200 {
    background-color: #bbf7d0;
}

.bg-mint-100 {
    background-color: #dcfce7;
}

.bg-mint-50 {
    background-color: #f0fdf4;
}

/* Ensure form success message is visible */
#form-success {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
