@import url('https://fonts.googleapis.com/css2?family=Chivo:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --rent-primary: #e42025;
    --rent-primary-hover: #cc1a1f;
    --rent-dark: #2b2b2a;
    --rent-dark-hover: #1a1a19;
    --rent-bg: #ffffff;
    --rent-bg-subtle: #f4f4f5;
    --rent-text: #2b2b2a;
    --rent-text-secondary: #52525b;
    --rent-text-muted: #a1a1aa;
    --rent-border: #e4e4e7;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--rent-bg);
    color: var(--rent-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Chivo', sans-serif;
}

/* Custom Selection */
::selection {
    background-color: var(--rent-primary);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--rent-bg-subtle);
}

::-webkit-scrollbar-thumb {
    background: var(--rent-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rent-primary);
}

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

.glass-dark {
    background: rgba(43, 43, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Button Styles */
.btn-primary {
    background-color: var(--rent-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--rent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 32, 37, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--rent-border);
    color: var(--rent-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--rent-bg-subtle);
}

/* Input Focus */
.input-focus:focus {
    outline: none;
    border-color: var(--rent-primary);
    box-shadow: 0 0 0 3px rgba(228, 32, 37, 0.1);
}

/* Card Styles */
.car-card {
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Spec Badge */
.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--rent-bg-subtle);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--rent-text-secondary);
}

/* Price Tag */
.price-tag {
    font-weight: 700;
    color: var(--rent-primary);
}

/* Trust Badge */
.trust-badge {
    padding: 2rem;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.trust-badge:hover .feature-icon {
    background-color: var(--rent-primary);
}

.trust-badge:hover .feature-icon svg {
    color: white;
}

/* Calculator Section */
.calculator-section {
    background: linear-gradient(135deg, var(--rent-dark) 0%, #1a1a19 100%);
    position: relative;
}

.calculator-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(180deg, rgba(43, 43, 42, 0.3) 0%, rgba(43, 43, 42, 0.8) 100%);
}

/* Navigation Link */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Aspect Ratio for Cars */
.aspect-car {
    aspect-ratio: 4/3;
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e4e4e7;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rent-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(228, 32, 37, 0.3);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rent-primary);
    cursor: pointer;
    border: none;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: var(--rent-primary);
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
