/* Additional custom styles for S.E.R Garage */

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

/* Custom selection color */
::selection {
    background-color: #af4f4f;
    color: white;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #af4f4f;
    outline-offset: 2px;
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #af4f4f 0%, #c97272 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pulse animation for status indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hover scale effect for cards */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Custom checkbox style */
.custom-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    position: relative;
}

.custom-checkbox:checked {
    background-color: #af4f4f;
    border-color: #af4f4f;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.125rem;
    width: 0.5rem;
    height: 0.75rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .font-serif {
        font-size: 2.625rem;
        line-height: 3rem;
    }
}

@media (min-width: 1025px) {
    .font-serif {
        font-size: 3rem;
        line-height: 3.5rem;
    }
}
