/* ===== Custom Styles for Robert F Gauss & Associates ===== */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fade-up {
    animation: fade-up 0.8s ease-out forwards;
}

.animate-fade-up-delay {
    animation: fade-up 0.8s ease-out 0.15s forwards;
    opacity: 0;
}

.animate-fade-up-delay-2 {
    animation: fade-up 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-up-delay-3 {
    animation: fade-up 0.8s ease-out 0.45s forwards;
    opacity: 0;
}

.animate-fade-up-delay-4 {
    animation: fade-up 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(154, 31, 48, 0.08);
}

.nav-scrolled .nav-link {
    color: #7e1a29;
}

.nav-scrolled .font-serif {
    color: #561724;
}

.nav-scrolled .text-burgundy-600 {
    color: #9a1f30;
}

/* Selection color */
::selection {
    background: #f0a8b2;
    color: #561724;
}

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

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

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

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

/* Focus styles */
*:focus-visible {
    outline: 2px solid #b82838;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a1f30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

/* Subtle gradient border on cards */
.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 1.5rem;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(240, 168, 178, 0.4), transparent, rgba(240, 168, 178, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
