/* =============================================
   DRIVENOW CAR RENTAL — Custom Styles
   Colors: #2563eb | #1e293b | #f0f9ff
   ============================================= */

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

html { scroll-behavior: smooth; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: #2563eb; z-index: 9999; width: 0%; transition: width 0.1s linear; }

#navbar { background: transparent; transition: all 0.3s ease; }
#navbar.scrolled { background: rgba(30,41,59,0.97); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,0.2); }

.btn-primary { background: #2563eb; color: #fff; border: 2px solid #2563eb; border-radius: 6px; cursor: pointer; transition: background 0.2s, transform 0.1s; display: inline-block; text-align: center; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); border-radius: 6px; cursor: pointer; transition: all 0.2s; display: inline-block; text-align: center; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-1px); }

.reveal-section { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-section.revealed { opacity: 1; transform: translateY(0); }

.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-menu.open { max-height: 500px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000; overflow-y: auto; padding: 2rem 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { transform: translate(-50%, -50%) scale(0.95); transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0; position: absolute; top: 50%; left: 50%; }
.modal-overlay.active .modal-content { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.carousel-slide { display: none; }
.carousel-slide.active { display: block; animation: fadeSlide 0.5s ease; }
@keyframes fadeSlide { from { opacity: 0; } to { opacity: 1; } }

.carousel-dot { width: 8px; height: 8px; border-radius: 50%; cursor: pointer; border: none; transition: all 0.3s; background: #cbd5e1; }
.carousel-dot.active { width: 24px; border-radius: 4px; background: #2563eb; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item { cursor: pointer; }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: #2563eb; color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 500; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: #1d4ed8; }

.lazy-img { filter: blur(8px); transition: filter 0.5s ease; }
.lazy-img.loaded { filter: blur(0); }

.fleet-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.fleet-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(37,99,235,0.15); }

.step-connector { flex: 1; height: 2px; background: linear-gradient(to right, #2563eb, #93c5fd); }

/* Hero animations */
.hero-tagline { animation: heroUp 0.7s ease forwards 0.3s; }
.hero-title   { animation: heroUp 0.7s ease forwards 0.6s; }
.hero-sub     { animation: heroUp 0.7s ease forwards 0.9s; }
.hero-cta     { animation: heroUp 0.7s ease forwards 1.1s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
