/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 20px;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Navigation Bar */
.navbar {
  position: fixed; /* Makes it stay at the top */
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent initially */
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000; /* Ensures it stays above other elements */
}

/* Make Navbar Solid on Scroll */
.navbar.scrolled {
  background-color: white; /* Becomes solid when scrolling */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Logo & Branding */
.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: blue;
}

/* Get Started Button */
.get-started {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.get-started:hover {
  background-color: #0056b3;
}

/* Hero Section */
.hero {
  background: url('https://images.pexels.com/photos/792199/pexels-photo-792199.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
  height: 100vh;
  color: #080808;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  margin: 0;
}

.hero p {
  font-size: 1.5rem;
  margin: 20px 0;
}

.hero .btn {
  background: #ffdd57;
  color: #333;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: #ffcc00;
}

/* Section Styles */
.section {
  padding: 60px 0;
}

.section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #0078d7;
  margin-bottom: 20px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  max-width: 100%;
  border-radius: 10px;
}

.product-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 15px 0 10px;
}

.product-card p {
  color: #666;
}

/* Contact Section */
#contact ul {
  list-style: none;
  padding: 0;
}

#contact ul li {
  margin-bottom: 10px;
}

#contact a {
  color: #0078d7;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 0;
}

.center-card {
  grid-column: span 2; /* Span 2 columns to center the last two cards */
  justify-self: center; /* Center the cards horizontally */
}

.center-cards {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between the two cards */
  margin: 20px 0; /* Add some margin above and below */
}

/* Button Container */
.button-container {
  text-align: center; /* Center the button */
  margin-top: 30px; /* Add some space above the button */
}

/* View All Products Button */
.view-all-btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #0078d7; /* Blue background */
  color: #fff; /* White text */
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
}

.view-all-btn:hover {
  background-color: #005bb5; /* Darker blue on hover */
  transform: translateY(-3px); /* Slight lift effect */
}

.view-all-btn:active {
  transform: translateY(0); /* Reset lift effect on click */
}

/* About Us Section */
#about {
  background: #f9f9f9; /* Light background */
  padding: 60px 0;
}

.about-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px; /* Added gap between sections */
}

.about-intro {
  flex: 2;
}

.about-intro h2 {
  font-size: 2.5rem;
  color: #0078d7;
  margin-bottom: 20px;
}

/* About Us Section - Stats Alignment Fix */
.about-stats {
  flex: 3;
  text-align: left; /* Align stats to the left */
  margin-top: 20px; /* Add spacing above stats */
}

.stat {
  display: inline-block;
  text-align: left; /* Align stat content to the left */
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  margin: 10px 0; /* Add spacing between stats */
  width: 100%; /* Full width for better alignment */
}

.stat h3 {
  font-size: 2.5rem;
  color: #0078d7;
  margin-bottom: 10px;
}

.stat p {
  font-size: 1.1rem;
  color: #666;
}

.stats-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-top: 20px; /* Space between stats and description */
  text-align: left; /* Align description to the left */
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
  .about-stats {
    text-align: center; /* Center-align stats on smaller screens */
  }

  .stat {
    text-align: center; /* Center-align stat content on smaller screens */
    width: 100%; /* Full width for better alignment */
  }

  .stats-description {
    max-width: 100%; /* Center-align description on smaller screens */
  }
}

.about-details {
  max-width: 100%;
}

/* About Us Section - Paragraph Alignment Fix */
.about-details p {
  font-size: 1.1rem; /* Consistent font size */
  line-height: 1.8; /* Consistent line height */
  color: #333; /* Consistent text color */
  margin-bottom: 20px; /* Consistent spacing between paragraphs */
  text-align: left; /* Left-align text */
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
  .about-details p {
    text-align: justify; /* Justify text on smaller screens for better readability */
  }
}

/* Contact Section */
#contact {
  background-color: #f9f9f9;
  padding: 40px 0;
}

/* First Row: Contact Details and Form */
.contact-details-form-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

/* Left Side: Contact Details with Line */
.contact-details {
  flex: 1;
  position: relative;
  padding-left: 20px;
}

.contact-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 80%;
  background-color: #007BFF;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details ul li {
  margin-bottom: 15px;
  font-size: 16px;
}

.contact-details ul li strong {
  display: inline-block;
  width: 80px;
}

/* Right Side: Contact Form */
.contact-form {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form textarea {
  height: 150px;
}

.contact-form button {
  background-color: #007BFF;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* Second Row: Location and Map */
.location-map-container {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

/* Left Side: Location Details */
.location-info {
  flex: 1;
}

.location-info h3 {
  margin-bottom: 15px;
}

.location-info ul {
  list-style: none;
  padding: 0;
}

.location-info ul li {
  margin-bottom: 10px;
}

/* Right Side: Map */
.map {
  flex: 1;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
}

/* Fix for Contact Form Textboxes Going Outside Grey Layout */
@media (max-width: 768px) {
  .contact-details-form-container {
    background-color: #f9f9f9; /* Match the grey background */
    padding: 20px; /* Add padding to keep content inside */
    border-radius: 10px; /* Match the rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Match the shadow */
  }

  .contact-form {
    width: 100%; /* Ensure the form takes full width */
    margin-top: 20px; /* Add spacing between contact details and form */
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%; /* Ensure inputs and textarea take full width */
    box-sizing: border-box; /* Include padding and border in the width */
    margin-bottom: 15px; /* Add spacing between fields */
    padding: 10px; /* Add padding for better touch interaction */
    border: 1px solid #ccc; /* Add border for better visibility */
    border-radius: 5px; /* Match the rounded corners */
  }

  .contact-form button {
    width: 100%; /* Make the button full width */
    padding: 12px; /* Adjust padding for better touch interaction */
    background-color: #007BFF; /* Match the button color */
    color: white; /* Match the button text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Match the rounded corners */
    cursor: pointer; /* Add pointer cursor */
  }

  .contact-form button:hover {
    background-color: #0056b3; /* Match the hover color */
  }
}

/* Responsive Navbar Styles */
@media (max-width: 768px) {
  /* Navbar Container */
  .navbar {
    width: 90%; /* Reduce width for smaller screens */
    padding: 10px 20px; /* Reduce padding */
    top: 10px; /* Adjust top position */
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align items to the left */
    background-color: rgba(255, 255, 255, 0.95); /* Slightly more opaque background */
    border-radius: 10px; /* Adjust border radius */
  }

  /* Logo */
  .logo {
    font-size: 18px; /* Reduce logo font size */
    margin-bottom: 10px; /* Add spacing below logo */
  }

  /* Navigation Links */
  .nav-links {
    display: none; /* Hide links by default */
    flex-direction: column; /* Stack links vertically */
    gap: 10px; /* Space between links */
    width: 100%; /* Full width */
    margin-top: 10px; /* Spacing below the logo */
  }

  .nav-links.active {
    display: flex; /* Show links when menu is toggled */
  }

  .nav-links li a {
    font-size: 14px; /* Reduce link font size */
    padding: 8px 0; /* Add padding for better touch interaction */
  }

  /* Get Started Button */
  .get-started {
    width: 100%; /* Full width button */
    text-align: center; /* Center button text */
    padding: 10px; /* Adjust padding */
    font-size: 14px; /* Reduce button font size */
    margin-top: 10px; /* Add spacing above button */
  }

  /* Mobile Menu Toggle Button */
  .menu-toggle {
    display: block; /* Show on smaller screens */
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other elements */
  }
}

/* For Mobile Devices (480px and below) */
@media (max-width: 480px) {
  /* Navbar Container */
  .navbar {
    width: 95%; /* Further reduce width */
    padding: 10px 15px; /* Further reduce padding */
  }

  /* Logo */
  .logo {
    font-size: 16px; /* Further reduce logo font size */
  }

  /* Navigation Links */
  .nav-links li a {
    font-size: 13px; /* Further reduce link font size */
  }

  /* Get Started Button */
  .get-started {
    font-size: 13px; /* Further reduce button font size */
  }
}