/* Global Reset & Base */
* {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: #04242e;
  background-color: #fdfdfd;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.logo {
  width: 20vh;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;
  background-color: rgba(59, 163, 248, 0.15);
  padding: 10px 20px;
  border-radius: 12px;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: rgb(4, 36, 46);
  font-weight: bold;
}

.navbar a:hover {
  color: rgba(84, 41, 97, 0.8);
}

/* Titles */
.page-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 30px 10px;
}

.sub-title {
  text-align: center;
  font-size: 1.7rem;
  margin: 30px 0 15px;
}

/* Paragraphs */
p {
  text-align: center;
  margin: 10px auto;
  max-width: 800px;
  letter-spacing: 0.5px;
  font-size: 1rem;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

input[type='email'],
input[type='text'],
textarea {
  width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 10px;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #f1dc16;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: rgb(170, 133, 2);
}

/* Why Us Section */
.why-us > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 30px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.why-us p {
  text-align: left;
  padding: 10px;
  background-color: #f7f7f7;
  border-left: 4px solid #f1dc16;
  border-radius: 8px;
}

.why-us i {
  color: #3ba3f8;
  margin-right: 8px;
}

/* Watch Section */
.watch hr {
  margin: 20px auto;
  width: 60%;
  border: 1px solid #ccc;
  opacity: 0.4;
}

.watch-tiktok {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding: 25px 15px;
}

.watch-tiktok blockquote {
  flex: 1 1 350px;
  max-width: 600px;
}

.reviews {
  flex: 1 1 300px;
  max-width: 500px;
}

.reviews h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.reviews p {
  background-color: #f9f9f9;
  padding: 15px;
  border-left: 4px solid #3ba3f8;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: left;
}

.last {
  font-style: italic;
  font-family: 'Georgia', serif;
}

/* Order Section */
.order {
  padding: 40px 20px;
  text-align: center;
}

.order-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.order-form input,
.order-form textarea {
  width: 90%;
  max-width: 500px;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.order-form textarea {
  resize: vertical;
}

.order-form button {
  background-color: #3ba3f8;
  color: white;
  font-weight: bold;
}

.order-form button:hover {
  background-color: #227cc7;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f1f1f1;
  color: #555;
  font-size: 0.9rem;
  margin-top: 30px;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 10px;
  color: #25d366;
  font-weight: bold;
  text-decoration: none;
}

.whatsapp-btn i {
  margin-right: 5px;
}

/* Samples Section - REVISED for 2 Rows, Horizontal Scroll, and Vertical Containment */

/* Basic container for the entire samples section */
.sample-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* The gallery container for the images */
.sample-gallery {
  display: grid;

  /* Define 2 rows. '1fr' ensures they share space available within max-height. */
  grid-template-rows: repeat(2, 1fr);
  
  /* This sets the actual height of each row implicitly created by grid-auto-flow. */
  grid-auto-rows: 350px; /* Each row will effectively be 350px tall */
  
  /* Make items flow into columns first. When 2 rows are filled, new columns are created. */
  grid-auto-flow: column;
  
  /* Defines the width of columns that are created automatically.
     minmax(300px, 1fr) ensures columns are at least 300px wide. */
  grid-auto-columns: minmax(300px, 1fr); 

  gap: 30px; /* Consistent pixel gap between grid items */
  padding: 20px; /* Padding inside the scrollable area */
  width: 100%; /* Take full width of parent */
  max-width: 100vw; /* Ensure it doesn't spill past viewport width */
  margin: 0 auto; /* Center the gallery */

  /* *Crucial for limiting vertical size and forcing horizontal scroll:* */
  /* Calculate max-height: (2 rows * 350px/row) + (1 * 30px gap) + (2 * 20px padding) = 700px + 30px + 40px = 770px
     Adjust padding as needed or combine into total height if more precise.
     Let's simplify for now to focus on image and gap height. */
  max-height: calc(2 * 350px + 30px + 40px); /* 2 rows height + 1 gap + top/bottom padding */


  /* Enable horizontal scrolling if content overflows */
  overflow-x: auto;
  overflow-y: hidden; /* Hide vertical scrollbar */

  /* Optional: Hide scrollbar for a cleaner look (vendor prefixes for cross-browser) */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari) */
.sample-gallery::-webkit-scrollbar {
  display: none;
}


/* Individual sample item containers */
.sample {
    margin: 0;
    padding: 0;
}


/* Styles for the images inside the gallery */
.sample-gallery img {
  width: 100%; /* Image fills its parent .sample div */
  height: 100%; /* Image fills the height of its parent grid cell (which is 350px tall) */
  border-radius: 8px;
  object-fit: cover; /* Crops the image to fit without distortion */
  transition: transform 0.3s ease;
  display: block; /* Ensures images behave predictably within grid cells */
}

.sample-gallery img:hover {
  transform: scale(1.05);
}

/* Responsive Design - Adjusted */
@media screen and (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .logo {
    width: 140px;
  }

  .why-us > div {
    grid-template-columns: 1fr;
  }

  .watch-tiktok {
    flex-direction: column;
  }

  input[type='email'],
  input[type='text'],
  textarea {
    width: 90%;
  }

  /* Adjust grid for smaller screens: a single row, smaller items */
  .sample-gallery {
    grid-template-rows: 1fr; /* Single row for mobile scroll */
    grid-auto-rows: 250px; /* Mobile row height */
    grid-auto-columns: minmax(200px, 1fr); /* Smaller min column width for mobile */
    gap: 20px; /* Smaller gap on mobile */

    /* Max height for single row on mobile */
    max-height: calc(1 * 250px + 2 * 20px); /* 1 row height + top/bottom padding */
    /* If you also have a gap inside the single row if items wrap, you'd account for it.
       But with grid-auto-flow: column, they won't wrap to a second row here. */
  }

  .sample-gallery img {
    height: 100%; /* Image fills its parent grid cell (which is 250px tall) */
  }
}
