/* ===== Custom Styles for Five Element Acupuncture ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020610;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}

/* ===== Floating Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(40px);
}

/* ===== Navbar Transition ===== */
#navbar.scrolled {
    background: rgba(2, 6, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== Button Hover Glow ===== */
a[href="#contact"], button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href="#contact"]:hover, button[type="submit"]:hover {
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.3) !important;
}

/* ===== Service Card Gradient Hover ===== */
.group:hover .group-hover\:bg-mint-400\/20 {
    background-color: rgba(52, 211, 153, 0.2);
}

/* ===== Form Focus States ===== */
input:focus, select:focus, textarea:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #fff;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* ===== 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;
    }
    
    .reveal[data-reveal="hidden"] {
        opacity: 1;
        transform: none;
    }
}
