/* Custom styles for Julia Pettay website */

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

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

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

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

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

.floating-card-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-card-slow {
    animation: float-slow 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Service card hover */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(196, 59, 59, 0.1);
}

/* Testimonial card hover */
.testimonial-card {
    border: 1px solid transparent;
}

.testimonial-card:hover {
    border-color: rgba(196, 59, 59, 0.15);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(196, 59, 59, 0.08);
}

/* Scroll reveal base state - content is ALWAYS visible */
.reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal enhanced state - only when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.visible {
        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; }
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(196, 59, 59, 0.15);
    color: #5c1b1b;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
