/* Custom animations and overrides */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

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

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite 0.5s;
}

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

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

.float-medium {
    animation: float 4s ease-in-out infinite 0.5s;
}

.float-fast {
    animation: float 3s ease-in-out infinite 1s;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(107, 47, 91, 0.1);
}

.nav-scrolled .nav-link {
    color: #6B2F5B !important;
}

.nav-scrolled .nav-logo-text {
    color: #6B2F5B !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-close {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(107, 47, 91, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial card */
.testimonial-card {
    transform: translateY(0);
}

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

/* Input focus */
input:focus, textarea:focus, select:focus {
    border-color: #A3457E !important;
    box-shadow: 0 0 0 4px rgba(163, 69, 126, 0.1) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #A3457E;
}

/* Selection */
::selection {
    background: #E8A838;
    color: #2A1224;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-float,
    .animate-float-delayed,
    .animate-float-fast {
        animation: none;
    }
}
