/* ===================================
   Apex Jeep & Auto - Custom Styles
   =================================== */

/* CSS Variables */
:root {
  --color-black: #000000;
  --color-yellow: #ffc107;
  --color-yellow-dark: #ffa000;
  --color-mud-brown: #6b4423;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray-dark: #333333;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--color-black);
  color: var(--color-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  background-color: rgb(0, 0, 0); /* transparent */
  padding: 1rem 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(255, 193, 7, 0.3);
}

.navbar-brand .logo {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand .logo {
  height: 60px;
}

.navbar-nav .nav-link {
  color: var(--color-white) !important;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 1rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--color-yellow);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: var(--color-yellow) !important;
}

.navbar-toggler {
  border-color: var(--color-yellow);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 193, 7, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--color-yellow);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  letter-spacing: 3px;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0rem;
}

.hero-description {
  font-size: 1.3rem;
  color: var(--color-gray-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 2rem;
}

.btn-primary {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-black);
  font-weight: 600;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-primary:hover {
  background-color: var(--color-yellow-dark);
  border-color: var(--color-yellow-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  font-weight: 600;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2rem;
  color: var(--color-yellow);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
  animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 1s ease-in 0.6s both;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 1s ease-in 0.9s both;
}

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

/* Services Section */
.services-section {
  background-color: var(--color-black);
  padding: 6rem 0;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-yellow);
  margin-bottom: 0rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--color-gray-light);
  margin-bottom: 3rem;
}

.service-card {
  background: linear-gradient(135deg, rgba(107, 68, 35, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
  border: 2px solid var(--color-mud-brown);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-yellow);
  box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(360deg);
}

.service-icon i {
  font-size: 2rem;
  color: var(--color-black);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  color: var(--color-gray-light);
  line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
  background: linear-gradient(180deg, var(--color-black) 0%, rgba(107, 68, 35, 0.1) 100%);
  padding: 6rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  font-size: 1rem;
  color: var(--color-white);
}

/* Contact Section */
.contact-section {
  background-color: var(--color-black);
  padding: 6rem 0;
}

.contact-info {
  background: linear-gradient(135deg, rgba(107, 68, 35, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
  border: 2px solid var(--color-mud-brown);
  border-radius: 15px;
  padding: 2.5rem;
  height: 100%;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-yellow);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--color-yellow);
  margin-right: 1.5rem;
  margin-top: 0.25rem;
  min-width: 30px;
}

.info-item h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-yellow);
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 1rem;
  color: var(--color-gray-light);
  margin: 0;
}

.social-links {
  margin-top: 2rem;
}

.social-links h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-yellow);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--color-yellow);
  color: var(--color-black);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--color-yellow-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4);
}

.contact-form {
  background: linear-gradient(135deg, rgba(107, 68, 35, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
  border: 2px solid var(--color-mud-brown);
  border-radius: 15px;
  padding: 2.5rem;
}

.contact-form h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-yellow);
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-mud-brown);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-yellow);
  color: var(--color-white);
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-select option {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Footer */
.footer {
  background-color: rgba(0, 0, 0, 0.95);
  border-top: 3px solid var(--color-yellow);
  color: var(--color-gray-light);
}

.footer-logo {
  height: 60px;
  width: auto;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--color-yellow);
  color: var(--color-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.5);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: var(--color-yellow-dark);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 193, 7, 0.7);
  color: var(--color-black);
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-nav {
    background-color: rgba(0, 0, 0, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .navbar-brand .logo {
    height: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-card,
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
}

  /* Remove blue outline on focus */
  .no-outline:focus {
    outline: none !important;
    box-shadow: none !important;
  }

/* ===================================
   Jeep Background + Netflix Slider (Fixed + Centered)
   =================================== */
.jeep-background {
  position: relative;
  width: 100%;
  min-height: 0vh;
  background: url('../images/jeep-wrangler-7023738_1920.jpg') no-repeat center bottom;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
  color: #fff;
  z-index: 0;
}

/* Fade overlay */
.jeep-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

/* Bring section content above overlay */
.jeep-background .container-fluid,
.jeep-background .gallery-slider-wrapper {
  position: relative;
  z-index: 2;
}

/* --- Netflix-style horizontal slider --- */
.gallery-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* centers slider horizontally */
  width: 100%;
  overflow: visible; /* allow scroll area to extend */
  margin: 10vh auto;
  max-width: 90vw;
}

.gallery-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

/* Each slide */
.gallery-item {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 3;
}

/* Hover overlay */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Scroll buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.left-btn { left: 2rem; }
.right-btn { right: 2rem; }

/* Section title styling */
.jeep-background .section-title,
.jeep-background .section-subtitle {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 3;
}

/* Fix mobile scaling for background */
@media (max-width: 768px) {
  .jeep-background {
    background-attachment: scroll !important;
    background-position: center center;
    background-size: cover;
    height: 65vh;
  }
  .gallery-item {
    width: 80vw;
  }
}


.services-section {
  position: relative;
  background-color: #111; /* match your theme or section color */
  color: #fff;
  padding: 5rem 0;
}

/* Bottom shaded border fade */
.services-section::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgb(255 193 6));
  z-index: 1;
  pointer-events: none;
}

.responsive-h1 {
  /* Default styles for Mobile (smallest screen) */
  font-size: 20vw; /* Scales between 3em and 6em depending on phone size */
  height: auto; /* Allow the content height to dictate the box size */
  padding: 1rem 0.5rem; /* Add padding for readability */
  text-align: center;
}

/* ------------------------------------------- */

/* Media query for Tablet screens (e.g., screens wider than 768px) */
@media (min-width: 768px) {
  .responsive-h1 {
    font-size: 20vw; /* Larger font for tablets */
    padding: 1.5rem 1rem;
  }
}

/* ------------------------------------------- */

/* Media query for Desktop screens (e.g., screens wider than 1024px) */
@media (min-width: 1024px) {
  .responsive-h1 {
    /* **Responsive Desktop Font Size (14em equivalent)** */
    /* Use 'vw' (Viewport Width) to make the text scale smoothly. */
    /* 14vw is approximately 14em on a standard 1024px desktop screen. */
    font-size: 14vw; 
    
    /* Set the required fixed height for the desktop view (30% of screen height) */
    height: 30vh;
    
    /* Center text vertically by matching line-height to height */
    line-height: 30vh;
    
    padding: 0; /* Remove padding when using fixed line-height/height for centering */
  }
}

/* Section base */
.contact-section {
  background-color: #000;
  color: #fff;
  padding: 4rem 0;
}

/* Contact info container */
.contact-info {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* True centering for each info item */
.contact-info .info-item {
  display: grid;
  place-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Icons */
.contact-info .info-item i {
  font-size: 2.2rem;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
  margin-right: 5px;
}

/* Headings and text */
.contact-info .info-item h5,
.contact-info .info-item p {
  margin: 0;
  color: #fff;
}

.contact-info .info-item h5 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Review button styling */
.btn-warning {
  background-color: #fdd835 !important;
  border: none;
  font-weight: 600;
}

.btn-warning:hover {
  background-color: #fff !important;
  color: #000 !important;
}

/* Responsive alignment */
@media (max-width: 767px) {
  .contact-info {
    text-align: center;
  }

  .contact-info .info-item {
    place-items: center;
  }
}

/* Social buttons (centered, yellow circle, white icon) */
.social-links .social-btn {
    background-color: #fdd835; /* yellow */
    color: #000 !important;    /* force icon color */
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: none; /* remove weird white shadows */
}

.social-links .social-btn i {
    color: #000 !important; /* ensure icon stays black */
}

.social-links .social-btn:hover {
    background-color: #fff;
    color: #000 !important;
}
