/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 20px 0;
}

/* Sticky Header */
header {
  background: #222;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

header h1 {
  margin: 0;
}

/* Nav */
nav ul {
  display: flex;
  gap: 15px;
  list-style: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

/* Cart */
.cart {
  position: relative;
}

.cart img {
  width: 24px;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 15px;
  list-style: none;
}

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

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #222;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 99;
  }

  .nav-links.show {
    display: flex;
  }

  nav ul li {
    display: block;
    margin: 10px 0;
  }
}

/* Hero Section */
#hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.slideshow img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 30px;
  left: 50px;
  color: white;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
}

@media (max-width: 768px) {
  .caption {
    font-size: 18px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 8px;
  }
}

/* Bio Section */
#bio {
  background: #fff;
  margin-top: 30px;
  padding: 20px;
  border-radius: 5px;
}

#bio h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

#bio p {
  font-size: 16px;
  margin-bottom: 10px;
}

/* Services Section */
#services {
  margin-top: 30px;
}

/* Flexbox Grid */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  flex: 1 1 280px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  min-height: 280px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: 15px;
}

.service-card button {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}

.service-card button:hover {
  background: #218838;
}

@media (max-width: 768px) {
  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
   
.service-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 5px 5px 0 0;
  margin-bottom: 15px;
}


/* Contact Section */
#contact {
  margin-top: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

#contact-form input,
#contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#contact-form button {
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

#contact-form button:hover {
  background: #0056b3;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

@media (max-width: 480px) {
  nav ul li {
    font-size: 16px;
  }

  .service-card button {
    font-size: 14px;
    padding: 8px;
  }
}


/* Carousel Styles for Mobile */
.carousel-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}

.carousel-track .service-card {
  scroll-snap-align: center;
  flex: 0 0 85%;
  max-width: 85%;
}

@media (min-width: 769px) {
  .carousel-container {
    overflow: visible;
  }

  .carousel-track {
    flex-wrap: wrap;
    justify-content: center;
  }

  .carousel-track .service-card {
    flex: 1 1 280px;
    max-width: 300px;
  }
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-arrow {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  padding: 8px 12px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
}

.left-arrow {
  left: 5px;
}

.right-arrow {
  right: 5px;
}

/* Hide arrows on large screens */
@media (min-width: 769px) {
  .carousel-arrow {
    display: none;
  }
}


