/* ============================================================
   AutoAds — style.css
   Fonts: Syne (headings) + DM Sans (body)
   Theme: Dark ink bg + Saffron orange accent
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --saffron:       #FF6B00;
  --saffron-light: #FF8C38;
  --saffron-dim:   rgba(255, 107, 0, 0.12);
  --ink:           #0D0D0D;
  --ink2:          #141414;
  --smoke:         #F5F2EE;
  --muted:         #7A7570;
  --white:         #FFFFFF;
  --card-bg:       #1A1A1A;
  --border:        rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--saffron);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--saffron);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0.6;
}

/* ── SCROLL PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1000;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), #FFB347);
  width: 0%;
  transition: width 0.1s linear;
}

/* Auto rickshaw progress icon */
#auto-icon {
  position: fixed;
  top: -8px;
  left: 0%;
  z-index: 1001;
  font-size: 26px;
  transform: translateX(-50%) scaleX(-1);
  transition: left 0.1s linear;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 0, 0.8));
  line-height: 1;
  pointer-events: none;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(13, 13, 13, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--border);
  padding: 14px 32px;
  border-radius: 60px;
  transition: background 0.3s;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
}

.nav-logo span {
  color: var(--saffron);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--saffron);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--saffron-light);
  transform: scale(1.04);
}

/* ── SHARED UTILITIES ── */
.section-tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title em {
  color: var(--saffron);
  font-style: normal;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.btn-primary {
  background: var(--saffron);
  color: var(--white);
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--saffron-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }
.d5 { transition-delay: 0.50s; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 107, 0, 0.18) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-road {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(255, 107, 0, 0.06), transparent);
  border-top: 1.5px dashed rgba(255, 107, 0, 0.2);
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron-dim);
  border: 0.5px solid rgba(255, 107, 0, 0.35);
  padding: 7px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--saffron-light);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.hero-title em {
  color: var(--saffron);
  font-style: normal;
}

.hero-title .line2 {
  display: block;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.75;
  position: relative;
  z-index: 2;
  margin-bottom: 44px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Animated auto driving across hero */
.hero-auto {
  position: absolute;
  bottom: 68px;
  left: -80px;
  font-size: 52px;
  z-index: 3;
  animation: driveAcross 8s linear infinite;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 0, 0.5));
  pointer-events: none;
  transform: scaleX(-1);
}

@keyframes driveAcross {
  0%   { left: -80px; }
  100% { left: calc(100% + 80px); }
}

/* ── STATS ── */
#stats {
  background: var(--ink2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 72px 40px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-item {
  text-align: center;
  padding: 24px 20px;
  border-right: 0.5px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 54px;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ── GALLERY ── */
#gallery {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-inner { width: 100%; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-top: 0;
}

.gallery-main,
.gallery-small {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  cursor: pointer;
}

.gallery-main {
  height: 500px;
}

.gallery-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-small {
  height: 242px;
}

.gallery-main img,
.gallery-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.9);
}

.gallery-main:hover img,
.gallery-small:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-main:hover .gallery-overlay,
.gallery-small:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  #gallery { padding: 80px 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 280px; }
  .gallery-small { height: 200px; }
  .gallery-side { flex-direction: row; }
}

/* ── ABOUT ── */
#about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card-main {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.about-auto-big {
  font-size: 100px;
  display: block;
  margin-bottom: 16px;
}

.about-card-main h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-card-main p {
  font-size: 14px;
  color: var(--muted);
}

.about-float {
  position: absolute;
  background: var(--card-bg);
  border: 0.5px solid rgba(255, 107, 0, 0.3);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.float1 {
  top: -20px;
  right: -20px;
}

.float2 {
  bottom: -20px;
  left: -20px;
}

/* ── WHY CHOOSE US ── */
#why {
  background: var(--ink2);
  border-top: 0.5px solid var(--border);
  padding: 120px 40px;
}

.why-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--ink);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--saffron-dim);
  border: 0.5px solid rgba(255, 107, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── TESTIMONIALS ── */
#testimonials {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 40px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.testi-card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
}

.testi-card:hover {
  border-color: rgba(255, 107, 0, 0.25);
  transform: translateY(-3px);
}

.stars {
  color: var(--saffron);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testi-quote {
  font-size: 48px;
  color: var(--saffron);
  line-height: 1;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  margin-bottom: 14px;
  opacity: 0.5;
}

.testi-text {
  font-size: 16px;
  color: var(--smoke);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 28px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 0.5px solid var(--border);
  padding-top: 20px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--saffron-dim);
  border: 0.5px solid rgba(255, 107, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.testi-name {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 3px;
}

.testi-role {
  font-size: 13px;
  color: var(--muted);
}

/* ── CONTACT ── */
#contact {
  background: var(--ink2);
  border-top: 0.5px solid var(--border);
  padding: 120px 40px;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--ink);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(255, 107, 0, 0.5);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field select option {
  background: var(--ink2);
  color: var(--white);
}

.btn-submit {
  width: 100%;
  background: var(--saffron);
  color: var(--white);
  padding: 17px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--saffron-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.3);
}

.success-msg {
  display: none;
  background: rgba(255, 107, 0, 0.1);
  border: 0.5px solid rgba(255, 107, 0, 0.4);
  border-radius: 12px;
  padding: 16px 24px;
  color: var(--saffron-light);
  font-size: 15px;
  margin-top: 12px;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 0.5px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.footer-brand {
  color: var(--saffron);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #about {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 24px;
  }

  .about-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  #navbar {
    gap: 16px;
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  #stats {
    padding: 56px 24px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
    padding: 20px 16px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  #why,
  #testimonials,
  #contact {
    padding: 80px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .float1, .float2 {
    display: none;
  }
}
