/* Custom styles for Pause Reflexology Services */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

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

::-webkit-scrollbar-track {
    background: #0A2540;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #7DE8BC;
}

/* Scroll indicator animation */
@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(200%);
        opacity: 0;
    }
}

.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Navigation */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(94, 234, 212, 0.1);
}

/* Hamburger menu */
.hamburger-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 1.5px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-line.top {
    top: 28%;
}

.hamburger-line.middle {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger-line.bottom {
    top: 72%;
}

#menu-btn.active .hamburger-line.top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#menu-btn.active .hamburger-line.middle {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
}

#menu-btn.active .hamburger-line.bottom {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Service cards */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(94, 234, 212, 0.08);
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Image hover */
img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        transform: none;
        opacity: 1;
    }
    
    .animate-scroll-down {
        animation: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Subtle gradient overlay for hero on load */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 37, 64, 0.3) 0%,
        transparent 30%,
        transparent 70%,
        rgba(10, 37, 64, 0.5) 100%
    );
    z-index: 1;
    pointer-events: none;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

/* Floating card animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.absolute.bottom-8.left-8.bg-white {
    animation: float 4s ease-in-out infinite;
}
