/* Custom Styles for Passport Health West Springfield Travel Clinic */

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .font-display {
    color: #1a2636 !important;
}

.navbar-scrolled .text-midnight-700 {
    color: #3d4f63 !important;
}

.navbar-scrolled .menu-line {
    background-color: #1a2636 !important;
}

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

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

.hero-shape:nth-child(2) { animation-delay: -1s; animation-duration: 7s; }
.hero-shape:nth-child(3) { animation-delay: -2s; animation-duration: 5s; }
.hero-shape:nth-child(4) { animation-delay: -3s; animation-duration: 8s; }
.hero-shape:nth-child(5) { animation-delay: -1.5s; animation-duration: 6s; }
.hero-shape:nth-child(6) { animation-delay: -2.5s; animation-duration: 7s; }
.hero-shape:nth-child(7) { animation-delay: -0.5s; animation-duration: 9s; }

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 5s;
}

/* Service Card Hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Process Step Animation */
.process-step {
    opacity: 1;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

/* Testimonial Card */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Mobile Menu Animation */
.menu-line {
    transition: all 0.3s ease;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Back to Top Button */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#backToTop:not(.visible) {
    transform: translateY(20px);
}

/* Geometric Accent Shapes */
.geo-accent {
    position: absolute;
    pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7b8d;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    nav, #backToTop, .hero-shape, .floating-card {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-midnight-900, .bg-midnight-950 {
        background-color: #f5f5f5 !important;
        color: #000 !important;
    }
}
