/* Custom styles for Desert Dweller Co */

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

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

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

@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 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 7s 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.2s forwards;
    opacity: 0;
}

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

/* Primary button */
.btn-primary {
    @apply bg-plum-500 text-white px-6 py-3 rounded-xl font-medium transition-all duration-300 hover:bg-plum-600 hover:shadow-lg hover:-translate-y-0.5 inline-flex items-center gap-2;
}

/* Secondary button */
.btn-secondary {
    @apply bg-white/20 backdrop-blur-md text-white border-2 border-white/40 px-6 py-3 rounded-xl font-medium transition-all duration-300 hover:bg-white/30 hover:border-white/60 inline-flex items-center gap-2;
}

/* Service card hover effect */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation styles */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 63, 91, 0.08);
}

#navbar.scrolled .nav-text {
    color: #5A2A3C;
}

#navbar.scrolled .nav-link {
    color: #5A2A3C;
}

#navbar.scrolled .nav-link:hover {
    color: #7B3F5B;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFD966;
}

/* Mobile menu */
.mobile-nav-link {
    border-bottom: 1px solid rgba(123, 63, 91, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

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

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 63, 91, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
    background: #D8A0C0;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #E8C2D6;
    color: #3D1C28;
}

/* Image lazy loading placeholder */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
