/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  font-size: 20px;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: white;
  background: linear-gradient(90deg, #2c3e50, #4a6a88);
}

p {
  margin: 0;
  padding: 0;
}

header {
  background: linear-gradient(90deg, #2c3e50, #4a6a88);
  color: #ecf0f1;
  padding: 15px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  height: 70px;
}

.navbar {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #ecf0f1;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 16px;
  padding: 0 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  color: #3498db;
  transform: translateY(-2px);
}

#hamburger {
  display: none;
  cursor: pointer;
  height: 40px;
}

#menuBox {
  background: #fff;
  color: #333;
  position: fixed;
  height: 100vh;
  width: 70%;
  top: 0;
  right: 0;
  z-index: 999;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

#menuBox ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80%;
}

#menuBox ul li {
  list-style: none;
  padding: 15px;
}

#menuBox ul li a {
  text-decoration: none;
  color: #333;
  font-size: 24px;
  transition: color 0.3s ease;
}

#menuBox ul li a:hover {
  color: #3498db;
}

.closeBtnContainer {
  display: flex;
  justify-content: end;
  margin: 20px 20px 0 0;
}

.closeBtn {
  cursor: pointer;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Home Page */
.homeMain {
  max-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.homeSection {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 0;
}

.hero {
  flex: 1;
  padding: 20px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto 20px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #2980b9;
  transform: scale(1.1);
}

.hero-image-container {
  flex: 1;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.heroImage {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.heroImage:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.description {
  text-align: center;
  font-size: 18px;
  margin: 20px 0;
}

.description a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.description a:hover {
  text-decoration: underline;
}

/* Gallery */
.gallerySection {
  width: 80%;
  margin: 40px auto;
  text-align: center;
}

.gallerySection h2 {
  font-size: 32px;
  color: white;
  margin-bottom: 10px;
}

.gallerySection p {
  font-size: 18px;
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
}

.thumbnail {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}

.thumbnail:hover {
  transform: scale(1.05);
  opacity: 0.9;
  filter: drop-shadow(6px 6px 12px rgba(0, 0, 0, 0.5));
}

figcaption {
  font-size: 16px;
  margin-top: 5px;
}

.enlarged-image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#enlargedImage {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.close-enlarged {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

/* Blog Page */
.blogHeader {
  text-align: center;
  padding: 40px 0;
  color: #ecf0f1;
}

.blogHeader h1 {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.blogHeader p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 20px;
  font-style: italic;
  opacity: 0.9;
}

.blogFilter {
  text-align: center;
  margin-bottom: 30px;
}

.blogFilter select {
  margin-top: 20px;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #3498db;
  border-radius: 8px;
  background-color: #fff;
  color: #2c3e50;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blogFilter select:focus {
  outline: none;
  border-color: #2980b9;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.blogCardContainer {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 280px);
  padding: 20px;
}
.blogCardContainer a{
  text-decoration: none;
  
}
.blogCard {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 250px;
}

.blogCard h2 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: black;
}

.badge {
  display: inline-block;
  background-color: #6aa84f;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.blogCard p {
  margin: 0 0 10px 0;
  flex-grow: 1;
  color: black;
  font-size: 16px;
}

.blogMeta {
  font-size: 0.8rem;
  color: #555;
}

.blogCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.badge:hover {
  background-color: #219653;
}

.cardContainer a {
  text-decoration: none;
  color: black;
}

/* Products Page */
.productHeader {
  text-align: center;
  padding: 60px 20px;
  color: #ecf0f1;
}

.productHeader h1 {
  font-size: 40px;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.productHeader p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

.productFilter {
  text-align: center;
  margin: 40px 0 20px;
}

.productFilter select {
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #3498db;
  border-radius: 8px;
  background-color: #fff;
  color: #2c3e50;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.productFilter select:focus {
  outline: none;
  border-color: #2980b9;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.productCardContainer {
  display: grid;
  height: auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 30px;
  margin-bottom: 60px;
  align-items: start;
}

.productCard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 350px;
  border-radius: 15px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.productCard {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 15px 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: space-between;
}

.productCard img {
  width: 100%;
  height: 160px;          
  object-fit: contain;
  border-radius: 10px;
  margin: 15px 0;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
}


.productCard h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
}

.productCard p {
  font-size: 14px;
  color: #555;
  flex-grow: 1;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.productCard .price {
  font-size: 18px;
  color: #27ae60;
  font-weight: 600;
  margin-top: auto;
}

/* Testimonials */
.testimonialHeader {
  text-align: center;
  padding: 40px 0;
  color: #ecf0f1;
}

.testimonialHeader h1 {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.testimonialHeader p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.testimonialImg {
  width: auto;
  height: 300px;
  border-radius: 15px;
  filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.testimonialImg:hover {
  transform: scale(1.02);
}

.testimonialContent {
  text-align: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-container {
  margin-bottom: 10px;
  height: auto;
  position: relative;
  overflow: hidden;
}

.testimonial {
  display: none;
  font-size: 18px;
  color: #333;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-in;
}

.testimonial.active {
  display: block;
}

.next-btn {
  padding: 12px 25px;
  font-size: 16px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.next-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contact Page */
.contactHeader {
  text-align: center;
  padding: 40px 0;
  color: #ecf0f1;
}

.contactHeader h1 {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.contactHeader p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.contactImage {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 15px;
  margin-bottom: 20px;
  filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.contactImage:hover {
  transform: scale(1.02);
}

.contactForm {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 20px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border: 1px solid #d32f2f;
}

.error-message {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form-feedback {
  margin-top: 10px;
  font-size: 14px;
}

.form-feedback.error {
  color: #d32f2f;
  display: block
}

.form-feedback.success {
  color: #2e7d32;
  display: block;
}

.submit-btn {
  padding: 12px 25px;
  font-size: 16px;
  background-color: #27ae60;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
  background-color: #219653;
  transform: translateY(-2px);
}

.mapContainer {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 20px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contactDetails {
  text-align: center;
  font-size: 16px;
  margin-bottom: 20px;
}

.contactDetails a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contactDetails a:hover {
  color: #2980b9;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #2c3e50, #4a6a88);
  color: #ecf0f1;
  text-align: center;
  padding: 15px 0;
}

.social-links {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 1em;
}

.social-links a {
  color: #333;
  text-decoration: none;
}

.social-links a:hover {
  color: #007bff;
}

/* Cart */
#cartButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#cartButton:hover {
  background-color: #34495e;
}

#cartCount {
  background-color: #e74c3c;
  border-radius: 50%;
  padding: 2px 8px;
  margin-left: 8px;
  font-weight: bold;
}

.cartTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.cartTable th,
.cartTable td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

.cartTable th {
  background-color: #f5f5f5;
  color: black;
}

.cartTable img {
  max-width: 60px;
  height: auto;
  vertical-align: middle;
  margin-right: 10px;
}

.cartSummary {
  margin-top: 30px;
  text-align: right;
}

/* Media Queries */
@media only screen and (max-width: 1200px) {
  .homeSection {
    flex-direction: column;
  }
  .hero {
    order: 1;
  }
  .hero-image-container {
    order: 2;
  }
  .blogCardContainer {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 992px) {
  #hamburger {
    display: flex;
  }
  nav {
    display: none;
  }
  .blogHeader h1 {
    font-size: 30px;
  }
  .blogCardContainer {
    grid-template-columns: repeat(2, 1fr);
  }
  .productHeader h1 {
    font-size: 30px;
  }
}

@media only screen and (max-width: 768px) {
  #menuBox {
    width: 100%;
  }
  .hero h1 {
    font-size: 36px;
  }
  .blogHeader {
    padding: 30px 0;
  }
  .blogHeader h1 {
    font-size: 24px;
  }
  .blogHeader p {
    font-size: 16px;
  }
  .blogCardContainer {
    grid-template-columns: 1fr;
  }
  .blogCard {
    height: auto;
  }
  .blogFilter select {
    padding: 10px 15px;
  }
  .productHeader {
    padding: 30px 0;
  }
  .productHeader h1 {
    font-size: 24px;
  }
  .productHeader p {
    font-size: 16px;
  }
  .productCard {
    height: auto;
  }
  .productFilter select {
    padding: 10px 15px;
  }
  .testimonialHeader {
    padding: 30px 0;
  }
  .testimonialHeader h1 {
    font-size: 24px;
  }
  .testimonialHeader p {
    font-size: 16px;
  }
  .testimonial {
    font-size: 16px;
    padding: 15px;
    max-width: 100%;
  }
  .next-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .contactHeader {
    padding: 30px 0;
  }
  .contactHeader h1 {
    font-size: 24px;
  }
  .contactHeader p {
    font-size: 16px;
  }
  .contactForm {
    padding: 15px;
  }
  .form-group input,
  .form-group textarea {
    font-size: 13px;
  }
  .submit-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .contactDetails {
    font-size: 14px;
  }
}

@media only screen and (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 16px;
  }
}
