/* ===================================
   Flores Professional Maintenance
   Custom Styles
   =================================== */

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

/* Base font sizes */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Navbar transition */
.nav-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #1a1410;
}

#navbar.scrolled .navbar-bg {
    background: rgba(250, 245, 239, 0.95);
    backdrop-filter: blur(10px);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero floating card animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

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

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

.floating-card-2 {
    animation: float-medium 5s ease-in-out infinite 0.5s;
}

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered reveal delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9d4b8;
    color: #1a1410;
}

/* Reduce motion preference */
@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;
    }
    
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        display: none;
    }
}
