@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
  scroll-behavior: smooth;
}

:root {
  --primary: #4a90e2;
  --secondary: #f5f7fa;
  --text: #2c3e50;
  --light: #ffffff;

  --primary-navbar: #ffae45;
  --light-navbar: #f8f9fa;
  --accent-navbar: #4ecdc4;
  --text-navbar: #2d3436;
  --shadow-navbar: rgba(149, 157, 165, 0.2);

  /* colors */
  --primary-100: #e2e0ff;
  --primary-200: #c1beff;
  --primary-300: #a29dff;
  --primary-400: #837dff;
  --primary-500: #1f7fb6;
  --primary-600: #504acc;
  --primary-700: #3c3799;
  --primary-800: #282566;
  --primary-900: #141233;

  --sandwich-btn-color: #0c88cf;
  --sandwich-btn-color-hover: #1c648e;
  --whatsuppButton: #40c351;
  --whatsuppButtonHover: #27a537;

  /* grey */
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  /* rest of the colors */
  --black: #222;
  --white: #fff;
  --red-light: #f8d7da;
  --red-dark: #842029;
  --green-light: #d1e7dd;
  --green-dark: #0f5132;

  /* fonts  */
  --headingFont: "Roboto", sans-serif;
  --bodyFont: "Karla";
  --smallText: 0.7em;
  /* rest of the vars */
  --backgroundColor: var(--grey-50);
  --textColor: var(--grey-900);
  --borderRadius: 0.25rem;
  --letterSpacing: 1px;
  --transition: 0.3s ease-in-out all;
  --max-width: 1120px;
  --medium-width: 800px;
  --small-width: 600px;
  --mobile-width: 400px;
  --fixed-width: 600px;

  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  color: var(--text);
  overflow-x: hidden;
  background-color: #f4f4f4;
}

a {
  text-decoration: none;
}

.btn {
  cursor: pointer;
  color: var(--white);
  background: var(--whatsuppButton);
  border: transparent;
  border-radius: 999px;
  letter-spacing: var(--letterSpacing);
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-1);
  /* transition: var(--transtion); */
  text-transform: capitalize;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 600ms;
}
.btn:hover {
  background: var(--whatsuppButtonHover);
  box-shadow: var(--shadow-3);
}

.sandwich-btn-color {
  background: var(--sandwich-btn-color);
}

.sandwich-btn-color:hover {
  background: var(--sandwich-btn-color-hover);
}

/* Navigation */
/*
=============== 
Navbar
===============
*/

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-navbar);
  color: var(--text-navbar);
  padding: 1rem 2rem;
  height: 80px;
  position: relative;
  box-shadow: 0 4px 20px var(--shadow-navbar);
  border-bottom: 2px solid rgba(108, 99, 255, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: var(--primary-navbar);
  letter-spacing: 0.5px;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
}

.nav-links li {
  position: relative;
  margin: 0 5px;
}

.nav-links a {
  color: var(--text-navbar);
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  display: block;
  transition: color 0.3s ease;
  border-radius: 8px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--primary-navbar);
  /* background-color: rgba(108, 99, 255, 0.05); */
  /* transform: translateY(-2px); */
}

.nav-links a.active {
  color: var(--primary-navbar);
  /* background-color: rgba(108, 99, 255, 0.1); */
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  /* background-color: var(--primary-navbar); */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 70%;
}

.products-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: white;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  /* transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); */
  z-index: 10;
  border-radius: 12px;
  padding: 0.8rem 0;
  margin-top: 5px;
  overflow: hidden;
}

.products-dropdown.active {
  opacity: 1;
  visibility: visible;
  /* transform: translateX(-50%) translateY(0); */
}

.products-dropdown a {
  color: var(--text-navbar);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  border-radius: 0;
  margin: 2px 5px;
  border-radius: 8px;
}

.products-dropdown a:hover {
  /* background-color: rgba(108, 99, 255, 0.05); */
  color: var(--primary-navbar);
  transform: translateX(5px);
}

.products-dropdown a::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent-navbar);
  font-size: 1.2rem;
}

.products-dropdown a::after {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* background-color: rgba(108, 99, 255, 0.1); */
  transition: all 0.3s ease;
  position: relative;
  z-index: 20;
}

.hamburger:hover {
  /* background-color: rgba(108, 99, 255, 0.2); */
}

.hamburger .bar {
  position: absolute;
  height: 2px;
  width: 20px;
  left: 10px;
  background-color: var(--primary-navbar);
  border-radius: 10px;
  transition: all 0.4s ease;
}

.hamburger .bar:nth-child(1) {
  top: 14px;
}

.hamburger .bar:nth-child(2) {
  top: 20px;
}

.hamburger .bar:nth-child(3) {
  top: 26px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background-color: var(--light-navbar);
    width: 280px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    height: 100vh;
    overflow-y: auto;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    z-index: 10;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-links a {
    padding: 1rem 0.5rem;
    width: 100%;
    text-align: left;
    border-radius: 8px;
  }

  .products-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    width: 100%;
    background-color: rgba(108, 99, 255, 0.05);
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    padding: 0;
  }

  .products-dropdown.active {
    max-height: 300px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }

  .products-dropdown a {
    padding-left: 2rem;
    margin: 2px 5px;
  }

  .hamburger.active {
    /* background-color: rgba(108, 99, 255, 0.2); */
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Image Slider */

.slider-container {
  /* max-width: 800px; */
  margin: 0 auto;
  position: relative;
  /* max-height: calc(100% - 6rem); */
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #f3f4f6;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text {
  font-family: "Poppins", sans-serif;
  position: absolute;
  /* background: rgba(255, 255, 255, 0.3); */
  font-size: 50px;
  color: #fff;
  border-radius: 12px;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  text-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.4) !important;
  /* right: 20px; */
  top: 260px;
  /* max-width: 300px; */
  right: 50%;
  transform: translateX(50%);
  text-align: center;
}

@media (max-width: 1000px) {
  .slide-text {
    top: 120px;
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .slide-text {
    top: auto;
    bottom: 40px;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .slide-text {
    right: 50%;
    transform: translateX(50%);
    bottom: 40px;
    width: 65%;
  }
}

.slide.active .slide-text {
  opacity: 1;
  transition-delay: 0.5s;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* background-color: #0c88cf; */
  background: rgba(255, 255, 255, 0.3);

  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 2;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.nav-button.prev {
  left: 16px;
}

.nav-button.next {
  right: 16px;
}

.nav-button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-style: solid;
  border-width: 2px 2px 0 0;
  border-color: white;
  display: inline-block;
}

.nav-button.prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.nav-button.next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

.dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #bd8a08;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #eeac02;
}

/* Titles */

.title {
  margin-bottom: 20px;
}

/* Hero Section */

/* .hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slider {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 10%;
  right: 10%;
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  animation: slideIn 1s ease-out;
} */

/* Stats Section */
.stats {
  padding: 5rem 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: var(--secondary);
  justify-items: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  cursor: pointer;

  background: var(--light);
  width: 300px;
  height: 300px;
  padding: inherit;
  /* padding: 2rem; */
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Vehicles Section */
.vehicles {
  padding: 5rem 10%;
}

.vehicle-card {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  gap: 2rem;
  background-color: #f8f8f8;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.vehicle-card:nth-child(even) {
  flex-direction: row-reverse;
}

.vehicle-image {
  flex: 1;
  height: 300px;
  max-width: 450px;
  overflow: hidden;
  border-radius: 10px;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-content {
  flex: 1;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-content h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-info h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #aaa;
}

/* Contact Page */
.contact-container {
  padding: 8rem 10% 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

/* PRODUCTS SECTION STARTS */
.products-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1240px) {
  .products-wrapper {
    max-width: 1000px;
  }
}

@media (max-width: 1140px) {
  .products-wrapper {
    max-width: 800px;
  }
}

@media (max-width: 840px) {
  .products-wrapper {
    max-width: 600px;
  }
}
@media (max-width: 640px) {
  .products-wrapper {
    max-width: auto;
    margin: 1rem;
  }
}
/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.header h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 4px;
  /* background: linear-gradient(to right, #6a11cb, #2575fc); */
  background: linear-gradient(to right, #a56100, #f18e2c);
  animation: lineGrow 1.5s forwards;
}

@keyframes lineGrow {
  to {
    width: 100%;
  }
}

.header p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s 0.5s forwards;
}

/* Categories Section */
.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 2rem;
}

.category-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.category-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  /* background: linear-gradient(to right, #6a11cb, #2575fc); */
  background: linear-gradient(to right, #a56100, #f18e2c);
  transition: all 0.3s ease;
  z-index: -1;
}

.category-btn:hover::before,
.category-btn.active::before {
  width: 100%;
}

.category-btn:hover,
.category-btn.active {
  color: white;
  /* transform: translateY(-3px); */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Products Grid */
.products-container {
  position: relative;
  min-height: 400px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  transform: translateY(30px);
  opacity: 0;
  animation: cardAppear 0.5s forwards;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

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

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  /* background: linear-gradient(to right, #6a11cb, #2575fc); */
  background: linear-gradient(to right, #a56100, #f18e2c);
  color: white;
  box-shadow: 0 3px 10px rgba(106, 17, 203, 0.3);
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.product-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}

.product-card {
  cursor: pointer;
}

.no-products {
  text-align: center;
  padding: 50px 0;
  font-size: 1.2rem;
  color: #666;
  display: none;
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-animation {
  animation: filterAnimation 0.5s;
}

@keyframes filterAnimation {
  0% {
    opacity: 0.5;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .categories {
    flex-direction: column;
    align-items: center;
  }

  .category-btn {
    width: 80%;
    text-align: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* PRODUCTS SECTION ENDS*/

/* WhatsApp */

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  transition: width 0.3s ease-in-out, padding 0.3s ease-in-out;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1000;
}

.whatsapp-button:hover {
  width: 240px;
  padding-left: 15px;
}

.whatsapp-button:not(:hover) {
  width: 50px;
  padding-left: 0;
}

.whatsapp-button img {
  width: 24px;
  height: 24px;
  transition: margin-left 0.3s ease-in-out;
}

.whatsapp-button:not(:hover) img {
  margin-left: 0;
}

.whatsapp-button:hover img {
  margin-left: 5px;
}

.whatsapp-button span {
  display: none;
  width: 180px;
  white-space: nowrap;
  font-size: 16px;
  margin-left: 10px;
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.whatsapp-button:hover span {
  display: block;
  animation: typeText 0.4s steps(12, end) forwards;
}

@keyframes typeText {
  0% {
    opacity: 1;
    width: 0;
  }
  100% {
    opacity: 1;
    width: 180px;
  }
}

.whatsapp-button:not(:hover) span {
  animation: deleteText 0.4s steps(12, end) forwards;
}

@keyframes deleteText {
  0% {
    opacity: 1;
    width: 180px;
  }
  100% {
    opacity: 0;
    width: 0;
  }
}
