/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fefefe;
}

/* Header */
header {
  background: #111;
  padding: 1rem 2rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column; /* stack text */
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: url('textiles-factory.jpg') center/cover no-repeat;
  color: white;
  min-height: 70vh; /* flexible height */
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 1.5rem;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem); /* responsive font size */
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 1.5rem;
  color: #ffcc70;
}

.hero .btn {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: #e65700;
}

/* Section */
.section {
  padding: 3rem 2rem;
  text-align: center;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  background: #f2f2f2;
  padding: 2rem;
  border-radius: 8px;
  width: 250px;
}

/* Universal grids */
.cards, .product-grid, .process-grid, .shipping-grid, .payment-grid, .video-grid {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.process-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shipping-grid, .payment-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Product cards */
.product-card1, .product-card2, .product-card3, .product-card4 {
  position: relative;
  background-size: cover;
  background-position: center;
  width: 100%;
  max-width: 300px;
  height: 200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.product-card1 { background-image: url('casualwear1.jpg'); }
.product-card2 { background-image: url('fitnesswear.jpg'); }
.product-card3 { background-image: url('Accessories.jpg'); }
.product-card4 { background-image: url('sports-wears-banner.jpg'); }

/* Process steps */
.process-step {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  width: 100%;
  max-width: 250px;
}
.process-step img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Video */
#video { text-align: center; background: #f4f4f4; padding: 3rem 2rem; }
.video-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
#video video {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 0 auto;
}

/* Shipping & Payment */
.shipping-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  width: 220px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.shipping-card img { max-width: 100px; margin-bottom: 0.8rem; }

/* Testimonials */
.testimonials { background: #f9f9f9; padding: 3rem 2rem; }
.testimonial { max-width: 600px; margin: auto; font-style: italic; }

/* Contact */
.contact form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
  gap: 1rem;
}
.contact input, .contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact button {
  background: #28a745;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Images/Videos universal rule */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

/* Responsive nav */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  header nav {
    display: none;
    flex-direction: column;
    background: #111;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
  }
  header nav.open { display: flex; }
  nav ul { flex-direction: column; width: 100%; }
  nav ul li { width: 100%; border-bottom: 1px solid #222; }
  nav ul li a { padding: 1rem 2rem; display: block; }
}

/* Mobile */
@media (max-width: 600px) {
  .cards, .product-grid, .process-grid, .shipping-grid, .payment-grid {
    grid-template-columns: 1fr;
  }
  .video-grid { flex-direction: column; }
  .product-card1, .product-card2, .product-card3, .product-card4,
  .process-step, .shipping-card {
    width: 100% !important;
    max-width: 350px;
  }
}
