/* Custom styles for Imercy Beauty Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0e213c;
}
::-webkit-scrollbar-thumb {
    background: #1e4d8c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2bb888;
}

/* Selection color */
::selection {
    background: #2bb888;
    color: #0e213c;
}

/* Base animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Floating animation for decorative elements */
.float-slow {
    animation: float 6s ease-in-out infinite;
}
.float-medium {
    animation: float 4s ease-in-out infinite;
}
.float-fast {
    animation: float 3s ease-in-out infinite;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(9, 20, 36, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(43, 184, 136, 0.1);
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(43, 184, 136, 0.05), transparent);
    transition: left 0.5s ease;
}
.service-card:hover::before {
    left: 100%;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Gallery image hover */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Input focus animation */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(43, 184, 136, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-menu.active {
    max-height: 400px;
}

/* Geometric shape animations */
.geo-rotate {
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.geo-pulse {
    animation: pulse-ring 3s ease-in-out infinite;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #8ee6c8, #2bb888, #1e966c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom focus styles */
button:focus-visible, a:focus-visible {
    outline: 2px solid #2bb888;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #ef4444;
}
input:valid:not(:placeholder-shown) {
    border-color: #2bb888;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
