/* Custom styles for Cecil Diesel */

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

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

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

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

@keyframes ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

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

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

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

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

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

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

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

.animate-ring {
    animation: ring 1s ease-in-out;
}

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

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

/* Navbar styles */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Service card hover effect */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    transition: transform 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9bb3d6;
}

/* Selection color */
::selection {
    background: #ffe980;
    color: #162236;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.15);
}

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

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #ffd93d, #f5b800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
