/* ============================================
   CJ's Automotive and Tires — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Geometric Background Shapes --- */
.geo-shapes { z-index: 0; }

.geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(245, 166, 35, 0.08);
}
.geo-circle--1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  animation: geoFloat 20s ease-in-out infinite;
}

.geo-diamond {
  position: absolute;
  width: 120px; height: 120px;
  background: rgba(107, 47, 91, 0.3);
  transform: rotate(45deg);
  border: 1px solid rgba(245, 166, 35, 0.1);
}
.geo-diamond--1 {
  top: 30%; left: 5%;
  animation: geoFloat 15s ease-in-out infinite reverse;
}

.geo-triangle {
  position: absolute;
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(245, 166, 35, 0.06);
}
.geo-triangle--1 {
  bottom: 20%; right: 8%;
  animation: geoFloat 18s ease-in-out infinite;
}

.geo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 166, 35, 0.06);
}
.geo-ring--1 {
  width: 200px; height: 200px;
  top: 60%; left: 10%;
  animation: geoSpin 30s linear infinite;
}

.geo-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.2);
}
.geo-dot--1 { top: 25%; left: 15%; animation: geoPulse 3s ease-in-out infinite; }
.geo-dot--2 { top: 70%; right: 20%; animation: geoPulse 3s ease-in-out infinite 1.5s; }

.geo-square {
  position: absolute;
  width: 40px; height: 40px;
  background: rgba(107, 47, 91, 0.2);
  border: 1px solid rgba(245, 166, 35, 0.08);
}
.geo-square--1 {
  top: 45%; right: 5%;
  transform: rotate(20deg);
  animation: geoFloat 12s ease-in-out infinite;
}

.geo-arc {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(245, 166, 35, 0.1);
  border-right-color: rgba(245, 166, 35, 0.05);
}
.geo-arc--1 {
  bottom: 30%; left: 3%;
  animation: geoSpin 25s linear infinite reverse;
}

@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes geoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes geoPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* --- Hero Gradient --- */
.hero-gradient {
  background: radial-gradient(ellipse at 30% 50%, rgba(107, 47, 91, 0.9) 0%, rgba(39, 15, 36, 0.95) 50%, rgba(20, 8, 24, 1) 100%);
}
.hero-ring--1 { animation: heroRingFloat 12s ease-in-out infinite; }
.hero-ring--2 { animation: heroRingFloat 16s ease-in-out infinite reverse; }
.hero-ring--3 { animation: heroRingFloat 10s ease-in-out infinite; }
@keyframes heroRingFloat {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* --- Navigation --- */
.nav {
  background: rgba(20, 8, 24, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav.scrolled {
  background: rgba(20, 8, 24, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: #F5A623;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* --- Mobile Menu --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.mobile-menu.open {
  max-height: 400px;
  padding: 0.5rem 0;
}
.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
}

/* --- Buttons --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F5A623 0%, #e09010 100%);
  color: #1a0a10;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
  transition: all 0.3s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}
.btn-cta--lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 14px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 166, 35, 0.5);
  transform: translateY(-2px);
}
.btn-outline--lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 14px; }

/* --- Section Common --- */
.section-header { position: relative; z-index: 1; }
.section-tag { font-size: 0.75rem; letter-spacing: 0.15em; }
.section-title { color: #fff; }
.section-desc { color: rgba(255,255,255,0.6); }

/* --- Service Cards --- */
.services { padding-top: 6rem; padding-bottom: 6rem; }
.services-grid { position: relative; z-index: 1; }

.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card:hover .service-card-inner {
  box-shadow: 0 20px 60px rgba(245, 166, 35, 0.15);
}

.service-card-inner {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover .service-card-inner {
  border-color: rgba(245, 166, 35, 0.3);
}

.service-card-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F5A623, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover .service-card-accent { opacity: 1; }

.service-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(245, 166, 35, 0.05) 100%);
  border: 1px solid rgba(245, 166, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5A623;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.25) 0%, rgba(245, 166, 35, 0.1) 100%);
  transform: scale(1.05);
}

.service-title { color: #fff; }
.service-desc { line-height: 1.7; }

/* --- About --- */
.about { position: relative; }
.about-bg { background: linear-gradient(180deg, rgba(39, 15, 36, 0.5) 0%, transparent 100%); }
.about-img-main { border-radius: 24px; }
.about-img-float { border-radius: 20px; }
.about-float-badge { font-family: 'Space Grotesk', sans-serif; }

.about-feature { }
.about-feature-icon { transition: all 0.3s ease; }
.about-feature:hover .about-feature-icon { background: rgba(245, 166, 35, 0.15); transform: scale(1.05); }

/* --- Why Us --- */
.why-us { padding-top: 6rem; padding-bottom: 6rem; }
.reason-card {
  position: relative;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}
.reason-card:hover {
  border-color: rgba(245, 166, 35, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}
.reason-card-inner { position: relative; z-index: 1; }
.reason-icon { transition: all 0.3s ease; }
.reason-card:hover .reason-icon { transform: scale(1.1); }

/* --- CTA Banner --- */
.cta-banner { position: relative; }
.cta-circle { animation: ctaCircleFloat 8s ease-in-out infinite; }
.cta-circle--1 { animation-delay: 0s; }
.cta-circle--2 { animation-delay: 2s; }
@keyframes ctaCircleFloat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* --- Contact --- */
.contact { padding-top: 6rem; padding-bottom: 6rem; }
.contact-icon { transition: all 0.3s ease; }
.contact-item:hover .contact-icon { background: rgba(245, 166, 35, 0.15); transform: scale(1.05); }

.contact-form-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.form-row { gap: 1rem; }

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.form-input:focus {
  border-color: rgba(245, 166, 35, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}
.form-input:hover:not(:focus) { border-color: rgba(255, 255, 255, 0.2); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option { background: #270f24; color: #fff; }

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  text-align: center;
  padding: 2rem;
  animation: fadeInUp 0.5s ease;
}
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.1);
  border: 2px solid rgba(245, 166, 35, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

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

/* --- Footer --- */
.footer { background: rgba(10, 4, 16, 0.5); }
.footer-bottom { }

/* --- Animations (Scroll Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }
.reveal-delay-9 { transition-delay: 0.9s; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 2.25rem; }
  .about-img-float { width: 36px; height: 36px; bottom: -12px; right: -12px; }
  .about-float-badge { padding: 0.75rem 1rem; }
  .about-float-badge .font-heading { font-size: 1.25rem; }
  .contact-form-card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .reason-card { padding: 2rem 1.25rem; }
  .reason-number { font-size: 4rem !important; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-title { font-size: 4rem; }
  .section-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 5.5rem; }
}
