/* Updated Color Theme */
:root {
  --primary: #ff7f00; /* Orange - primary brand color */
  --secondary: #333333; /* Dark gray/black - secondary brand color */
  --accent: #1e88e5; /* Blue accent for contrast */
  --light: #f8f9fa; /* Light background */
  --dark: #212121; /* Dark text color */
  --light-orange: #ffe0b2; /* Light orange for backgrounds */
  --transition: all 0.5s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 0 auto;
  border-radius: 2px;
}

/* Landing Animation */
#landing-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

.animation-content {
  text-align: center;
  color: white;
}

.company-name {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.company-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
}

.tagline {
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(255, 127, 0, 0.8), rgba(51, 51, 51, 0.8)),
    url("Images/home-background-image.jpg") no-repeat center center/cover;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Services Section */
.services {
  background-color: var(--light-orange);
}

.services-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.service-tab {
  padding: 1rem 2rem;
  background: white;
  margin: 0.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-weight: 600;
}

.service-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.service-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.services-slider {
  position: relative;
  height: 700px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.8s ease, opacity 0.8s ease;
  background: white;
  padding: 2rem;
}

.service-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.service-slide.next {
  transform: translateX(100%);
  z-index: 1;
}

.service-slide.prev {
  transform: translateX(-100%);
  z-index: 1;
}

.service-content {
  text-align: center;
  max-width: 80%;
}

.service-content h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.brands-grid,
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.brand-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 150px;
  display: flex;
  flex-direction: column;
}
.location-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 180px;
  display: flex;
  flex-direction: column;
}

.brand-image {
  height: 150px;
  overflow: hidden;
  /* border: 1px solid red; */
}
.location-image {
  height: 180px;
  overflow: hidden;
}

.brand-image img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  transition: var(--transition);
}
.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.brand-info,
.location-info {
  padding: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

.brand-card:hover,
.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.brand-card:hover img,
.location-card:hover img {
  transform: scale(1.1);
}

.app-showcase {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.app-showcase img {
  max-width: 250px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 0 1rem;
  transition: var(--transition);
}

.app-showcase img:hover {
  transform: translateY(-10px);
}

/* Contact Section */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.contact-details i {
  margin-right: 10px;
  color: var(--primary);
}

.map {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icons {
  margin: 1.5rem 0;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--primary);
}

/* Floating Message Box */
.floating-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: var(--transition);
}

.floating-message:hover {
  background-color: var(--secondary);
  transform: scale(1.1);
}

.floating-message i {
  color: white;
  font-size: 1.5rem;
}

.chat-box {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 300px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.chat-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  font-size: 1.2rem;
}

.close-chat {
  cursor: pointer;
}

.chat-body {
  padding: 1rem;
  height: 200px;
  overflow-y: auto;
}

.chat-input {
  display: flex;
  padding: 0.5rem;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.chat-input button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes letterAnimation {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card i {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.product-card span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.product-card i {
  font-size: 2.5rem;
  color: #ff7f00; /* green */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 1.5rem 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .service-tab {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .services-slider {
    height: 600px;
  }

  .brands-grid,
  .locations-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .brand-card {
    height: 120px;
  }
  .location-card {
    height: 140px;
  }

  .brand-image {
    height: 120px;
    /* border: 1px solid red; */
  }
  .location-image {
    height: 220px;
    /* border: 1px solid red; */
  }

  .app-showcase {
    /* flex-direction: column; */
    align-items: center;
  }

  .app-showcase img {
    margin: 1rem 0;
    max-width: 200px;
  }

  .company-name {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.2rem;
  }
  /* 1. Company name (Landing animation + logo) */
  .company-name {
    font-size: 1.2rem; /* reduce font size on small screens */
    word-break: keep-all; /* prevent breaking words */
    white-space: normal; /* allow wrapping */
    text-align: center;
  }

  .logo h1 {
    font-size: 1.2rem; /* smaller logo text on mobile */
    word-break: keep-all;
    white-space: normal;
  }

  /* 2. Services Slider Images */
  .brands-grid,
  .locations-grid {
    display: flex; /* switch to flex for scroll */
    overflow-x: auto; /* allow horizontal scrolling */
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .brand-card,
  .location-card {
    flex: 0 0 70%; /* cards take 70% of screen */
    max-width: 300px; /* prevent too wide */
    scroll-snap-align: center;
  }

  .brand-image img,
  .location-image img {
    object-fit: contain; /* show full image without cutting */
    height: auto;
    max-height: 200px; /* keep proportionate */
  }

  /* For App showcase */
  .app-showcase {
    /* flex-direction: column; */
    gap: 10px;
    align-items: center;
  }

  .app-showcase img {
    max-width: 50%;
    margin: 0.5rem 0;
  }
  .location-info {
    padding: 1rem;
    font-weight: 600;
    font-size: 10px;
    color: var(--secondary);
  }
  .products-grid {
    display: flex; /* Switch to row layout */
    overflow-x: auto; /* Enable horizontal scroll */
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory; /* Smooth snapping */
  }

  .product-card {
    min-width: 150px;
    scroll-snap-align: center;
  }

  /* Hide scrollbar (optional) */
  .products-grid::-webkit-scrollbar {
    display: none;
  }
  .products-grid {
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
  }
  .services-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .service-tab {
    text-align: center;
    /* padding: 0.8rem 1rem; */
    /* border-radius: 8px; */
    /* background: #f5f5f5; */
    /* font-weight: 600; */
  }
}
