* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: "Open Sans", system-ui;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: absolute;
  width: 100%;
  top: 0;
  background-color: #210cae;
}

.navbar-left a {
  margin: 0 15px;
  text-decoration: none;
  color:white;
  font-weight: bold;
  font-size: 1.25rem;
}

.logo {
  width: 100px;
  background: none;
}

.navbar-right {
  display: flex;
  align-items: center;
  background: none;
}

.search-icon {
  font-size: 24px;
  cursor: pointer;
  margin-right: 20px;
}

.email-button {
  padding: 10px 15px;
  background-color: white;
  color: #210cae;
  border: none;
  border-radius: 5px;
  text-decoration: none;
}

.email-button:hover {
  background-color: #210cae;
  color: white;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.background {
  background: url('https://images.unsplash.com/photo-1448582649076-3981753123b5?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  text-align: center;
}
h1 {
  font-size: 4rem;
  background: none;
}

p {
  font-size: 1.5rem;
  margin-top: 20px;
  background: none;
}
.explore-btn {
  background-color: #210cae;
  color: white;
  margin: 1rem;
  padding: 15px 20px;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}
.explore-btn a{
  text-decoration: none;
  color: white;
}

.explore-btn:hover {
  background-color: white;
}
.explore-btn a:hover{
  color: #210cae;
}


.product-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px 0;
}
/* Ticker tape */
.ticker-tape {
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 1.5rem;
  padding: 1rem 0;
  background-color: #210cae;
  color: white;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1000;
}

.ticker-tape .ticker-content {
  display: inline-block;
  padding-left: 100%; /* Initial offset */
  animation: ticker 10s linear infinite;
  position: relative;
}

.ticker-tape .ticker-content::after {
  content: attr(data-text); /* Repeats the ticker text */
  padding-left: 20px; /* Reduced space between original and repeated content */
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* First Div with a Single Grid for Logo */
.logo-grid {
  display: grid;
  width: 100%;
  height: 300px;
}

.logo-grid .logo {
  width: 100%;
  height: auto;
}

/* Second Div with a 4x4 Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  width: 80%;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #ddd;
}
/* Image Style */
.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Hover effect with opacity */
.grid-item:hover img {
  opacity: 0.3;
}

/* Title Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-item:hover .overlay {
  opacity: 1;
}

.title {
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  background: none;
}

/* About Section */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background-color: #210cae;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

.about-content {
  flex: 1;
  padding: 20px;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: white;
}
/* Three Columns Section */
.three-columns-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px;
  background-color: #f4f4f4;
}

.column {
  flex: 1;
  margin: 0 20px;
  padding: 20px;
  border-radius: 10px;
}

.column h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #210cae;
}

.column p {
  font-size: 1rem;
  line-height: 1.6;
  color: #210cae;
}


/* Background Image Section */
.background-section {
  position: relative;
  height: 400px; /* Adjust height as needed */
  background-image: url('https://images.unsplash.com/photo-1487452066049-a710f7296400?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-container {
  position: absolute;
  text-align: center;
}

.cta-button {
  background-color: black;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}
/* Footer Styles */
.footer {
  background-color: #210cae;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 150px;
}

.footer-nav ul {
  list-style-type: none;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-info p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.subscribe-btn {
  background-color: white;
  color: #210cae;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

.subscribe-btn:hover {
  background-color: #210cae;
  color: white;
}

/* Footer Bottom */
.footer-bottom {
  background-color: #222;
  padding: 10px 0;
  color: #bbb;
  margin-top: 30px;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}





/* Mobile Styles */
@media screen and (max-width: 768px) {
  .background h1{
    font-size: 24px;
  }
  .background p{
    font-size: 16px;
  }
  .navbar-left a {
    display: none;
  }
  .navbar .logo{
    width: 50px;
  }
  .navbar{
    background: #210cae;
  }

  .navbar-right {
    flex: 1;
    justify-content: flex-end;
  }
  .navbar-right a{
    display: none;
  }

  .hamburger {
    display: block;
    background: none;
    color: white;
  }

  #menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    flex-direction: column;
  }

  #menu a {
    display: block;
    padding: 10px;
    margin: 0;
    color: white;
    font-size: 14px;
    background-color: #210cae;
  }

  #menu a:hover {
    background-color: #ff7f50;
    color: white;
  }
  .logo-grid {
    display: grid;
    width: 100%;
    height: 150px;
  }
  
  .logo-grid .logo {
    width: 100%;
    height: auto;
  }
    .product-grid {
      grid-template-columns: repeat(3, 1fr);
      overflow: hidden;
      display: flex;
      flex-wrap: nowrap;
    }
  
    .grid-item {
      min-width: calc(100% / 3);
    }
  
    .product-grid {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
    }
  
    .grid-item {
      scroll-snap-align: center;
      flex: 0 0 calc(100% / 3);
    }
    .product-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
      flex-direction: column;
      text-align: center;
    }
  
    .about-image {
      margin-bottom: 20px;
    }
  
    .about-content h2 {
      font-size: 2rem;
    }
  
    .about-content p {
      font-size: 1rem;
    }
    .three-columns-section {
      flex-direction: column;
      padding: 20px;
    }
  
    .column {
      margin-bottom: 20px;
    }
    .footer-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-content > div {
      margin-bottom: 20px;
    }
  
  
  @media (max-width: 400px) {
    
    .product-grid {
      grid-template-columns: 1fr;
    }
  
  }
  .about-title h3{
    font-size: 16px;
  } 
  .about-content p{
    font-size: 12px;
    margin-top: -5px;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-icons {
    margin-top: 10px;
    gap: 10px;
  }
}
