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

:root {
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    font-family: var(--font-body);
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #000000;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

.navbar, .section-title, button, .btn, .font-bold, .font-semibold, .tracking-wider {
    font-family: var(--font-heading);
}

p, span, li, td, th, label, input, textarea, select, a {
    font-family: var(--font-body);
    word-break: break-word;
}

/* UI Components */
.car-price-display {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.car-price-display > span {
    font-size: 10px !important;
    font-weight: 400 !important;
}

.category-badge {
    transform: none !important;
    display: inline-block !important;
    background: transparent !important;
    color: #e10600 !important;
    padding: 0 !important;
}

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

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

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

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

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

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

.scroll-reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 9999;
    pointer-events: none;
}

.floating-actions > * {
    pointer-events: auto;
}

.scroll-top-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    position: relative;
    border: none;
    padding: 0;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.scroll-top-btn .progress-circle {
    fill: none;
    stroke: #e10600;
    stroke-width: 4;
    stroke-dasharray: 282.74;
    stroke-dashoffset: 282.74;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-top-btn .icon {
    font-size: 20px;
    color: #000;
    z-index: 1;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    font-size: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5d;
    color: white;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .scroll-top-btn, .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .scroll-top-btn .icon {
        font-size: 14px;
    }
}
