/* ---------- Hero Section ---------- */
#online-store {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#online-store img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: block;
}

#online-store::after {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.online-store-text {
  position: absolute;
  top: 40%;
  left:29%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #fff;
  z-index: 2;
  max-width: 500px;
}

.online-store-text h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: rgb(200,153,0);
}

.online-store-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 20px;
  color: #fff;
}

.online-store-btn {
  background: rgb(200, 153, 0);
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 15px;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Fade Up Animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px); /* start slightly lower */
  }
  100% {
    opacity: 1;
    transform: translateY(0);   /* final position */
  }
}

/* Apply fade-up to heading, paragraph, and button */
.online-store-text h1,
.online-store-text p,
.online-store-btn {
  opacity: 0; /* start hidden */
  animation: fadeUp 1s ease-out forwards;
}

/* Stagger animations for smooth sequential effect */
.online-store-text h1 {
  animation-delay: 0.2s;
}

.online-store-text p {
  animation-delay: 0.5s;
}

.online-store-btn {
  animation-delay: 0.8s;
}

.online-store-btn:hover {
  background: #000840;
  transform: scale(1.05);
}

/* ---------- Company Section ---------- */
.online-store-company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 10%;
  background-color: #f4f9fc;
  gap: 30px;
  flex-wrap: wrap;
}

.online-store-company-content {
  flex: 1 1 500px;
  text-align: left;
}

.online-store-company-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #19375c;
  line-height: 1.3;
  position: relative;
}

.online-store-company-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #fdb813;
  margin-top: 10px;
  border-radius: 2px;
}

.online-store-company-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #555;
}

.online-store-company-image {
  flex: 1 1 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
}

.online-store-company-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.online-store-company-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* ---------- Services Section ---------- */
.online-store-services {
  text-align: center;
  padding: 80px 20px;
  background-color: #f9f9f9;
  font-family: 'Arial', sans-serif;
}

.online-store-services h2 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 20px;
  font-weight: 700;
}

.online-store-services p {
  font-size: 0.95rem;
  color: #555555;
  max-width: 650px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.online-store-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.online-store-card {
  background-color: #ffffff;
  border-radius: 12px;
  width: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden;
}

.online-store-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.online-store-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.online-store-card-content {
  padding: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.online-store-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 600;
}

.online-store-card-content p {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Responsive Media Queries ---------- */

/* Tablets (landscape, mid-size screens) */
@media (max-width: 1024px) {
  .online-store-text h1 {
    font-size: 1.8rem;
  }
  .online-store-text p {
    font-size: 0.85rem;
  }
  .online-store-company-content h2 {
    font-size: 1.8rem;
  }
  .online-store-company-content p {
    font-size: 0.85rem;
  }
  .online-store-services h2 {
    font-size: 1.8rem;
  }
  .online-store-services p {
    font-size: 0.9rem;
  }
}

/* Tablets & large phones (portrait) */
@media (max-width: 768px) {
  .online-store-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
  }
  .online-store-text h1 {
    font-size: 1.6rem;
  }
  .online-store-text p {
    font-size: 0.8rem;
  }
  .online-store-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
  .online-store-company {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
  }
  .online-store-company-content h2 {
    font-size: 1.6rem;
  }
  .online-store-company-content p {
    font-size: 0.8rem;
  }
  .online-store-services h2 {
    font-size: 1.6rem;
  }
  .online-store-services p {
    font-size: 0.85rem;
  }
  .online-store-cards {
    flex-direction: column;
    align-items: center;
  }
  .online-store-card {
    width: 90%;
  }
}

/* Small mobile (under 480px) */
@media (max-width: 480px) {
  .online-store-text h1 {
    font-size: 1.3rem;
  }
  .online-store-text p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .online-store-btn {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
  .online-store-company-content h2 {
    font-size: 1.4rem;
  }
  .online-store-company-content p {
    font-size: 0.75rem;
  }
  .online-store-services h2 {
    font-size: 1.4rem;
  }
  .online-store-services p {
    font-size: 0.8rem;
  }
  .online-store-card-content h3 {
    font-size: 1rem;
  }
  .online-store-card-content p {
    font-size: 0.8rem;
  }
}
