/* General Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

/* Header */
header {
  background-color: #0b0a0a;
  color: #f5f4f4;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  gap: 0.5rem;
}

.logo-img {
  height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: #faf8f8;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  height: 100vh;
  color:black;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideshow 15s infinite;
  background-size: cover;
  background-position: center;
}

@keyframes slideshow {
  0% { background-image: url('images/bg1.PNG'); }
  33% { background-image: url('images/bg2.PNG'); }
  66% { background-image: url('images/bg3.PNG'); }
  100% { background-image: url('images/bg4.png'); }
}

.hero h1 {
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* Sections */
section {
  padding: 2rem;
  background-color: #fff;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
  margin-bottom: 1rem;
  color: #000;
  font-size: 2rem;
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
}

/* About Section */
#about {
  background-color: #b9d5f5;
}
#about p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

#about ul {
  list-style-type: square;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

#about li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  padding: 1rem;
}

.product-item {
  background-color: #f5f5f5;
  padding: 1rem;
  border: 1px solid #000;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  color: #000;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.product-item p {
  font-size: 1rem;
  margin: 0;
}

/* Contact Form */
#contact {
  background-color: #f9f9f9;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#contact h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

#contact p {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #333;
}

#contact iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

#contact a.button-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #000102;
  color: rgb(249, 249, 249);
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#contact a.button-link:hover {
  background-color: #0056b3;
}

.contact-info {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
  color: #444;
}

.contact-info p {
  margin: 0.25rem 0;
}
.center-button {
  text-align: center;
  margin-top: 1.5rem;
}


/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #000;
  color: white;
  margin-top: 2rem;
}
/* bearing*/
/* Product List Container */
.bearing-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  list-style: none;
}

/* Each Product Item */
.bearing-list li {
  width: 220px;
  height: 250px;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.bearing-list li:hover {
  transform: scale(1.05);
}

/* Product Image */
.bearing-img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto;
}

/* Product Name */
.bearing-list p {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
}


.thank-you-section {
  text-align: center;
  padding: 60px 20px;
}

.thank-you-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.thank-you-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.thank-you-section .button {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.thank-you-section .button:hover {
  background-color: #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav ul {
    gap: 0.5rem;
  }

  .product-item img {
    height: 160px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
    justify-content: center;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding-left: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .product-item img {
    height: 140px;
  }

  iframe {
    height: 300px !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-item img {
    height: 120px;
  }

  footer {
    font-size: 0.9rem;
  }
}
