/* Custom styles for Mediterranean Sun Spa */

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

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

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

::-webkit-scrollbar-thumb {
    background: #1e2f82;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d43b8;
}

/* Selection color */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #f0f4ff;
}

/* Service card image container */
.service-card .h-48 {
    position: relative;
}

.service-card .h-48 img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 222, 128, 0.08);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 15, 46, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
.mobile-menu-open {
    max-height: 400px !important;
}

.mobile-menu-closed {
    max-height: 0 !important;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Button hover glow effects */
a[href="#contact"] {
    position: relative;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(-12deg); }
    50% { transform: translateY(15px) rotate(-12deg); }
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .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; }
}

/* 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;
    }
}

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(135deg, #0f1a4a 0%, #1e2f82 100%);
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4ade80 !important;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

/* Custom select styling */
select option {
    background: #0f1a4a;
    color: #f0f4ff;
}

/* Print styles */
@media print {
    header, footer, button, .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
    }
}
