/* Stress Rx — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040d0a;
}
::-webkit-scrollbar-thumb {
    background: #1a5c45;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d7a5f;
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #f5f0e8;
}

/* Body background pattern */
body {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(26, 92, 69, 0.08) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(4, 13, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 92, 69, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.service-card:hover::after {
    opacity: 1;
}

/* Gold shimmer animation for hero badge */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Fade in from bottom for scroll reveals */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .service-card::after {
        display: none;
    }
    @keyframes shimmer {
        0% { background-position: -200% center; }
        100% { background-position: 200% center; }
    }
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a2520 inset !important;
    -webkit-text-fill-color: #f5f0e8 !important;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact-form, .service-card::after {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
