/* General Styles */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Header Styles */
header {
  background-color: #111;
  color: #fff;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 20px;
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

nav ul li:last-child a {
  background-color: #f44336;
}

nav ul li:last-child a:hover {
  background-color: #e53935;
}

.hero h1{
  animation: fadeInUp 1s ease-in-out forwards;
}

.hero p{
  /* animation: fadeInUp 1s ease-in-out forwards; */
  animation: fadeInUp 1s ease-in-out 0.5s forwards;
}
/* Family Section Styles with 3D Transformation */
.family-section {
  text-align: center;
}

.family-card {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.family-card > div {
  flex: 1;
  max-width: 300px;
}

.family-card h3 {
  margin-top: 10px;
}

.family-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.family-card img:hover {
  transform: rotateY(30deg) scale(1.05);
}

.family-card img:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* Hero Section Styles */
.hero {
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  /* Add animation shorthand property here */
}

.hero p {
  font-size: 24px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  opacity: 0;
  /* Add animation shorthand property here */
}

/* give @keyframes rule for animation name 'fadeInUp' below: */

/* Product Showcase Styles */
.product-showcase {
  text-align: center;
  margin-bottom: 50px;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.product-card {
  width: 250px;
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card img {
  width: 100%;
  height: auto;
}

.product-card h3,
.product-card p {
  margin: 10px;
}

.cta-button {
  text-align: center;
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  transition: bottom 0.3s ease;
}

.product-card:hover .cta-button {
  bottom: 80px;
}

.cta-button a {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.cta-button a:hover {
  background-color: #333;
}

.product-card:hover .popup {
  display: block;
}

/* Footer Styles */
footer {
  background-color: #111;
  color: #fff;
  padding: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-column h4 {
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 5px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  position: relative;
}

.footer-column ul li a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease-in-out;
}

.footer-column ul li a:hover::before {
  width: 100%;
}

.footer-column ul li a:hover {
  color: #c6c6c6;
}

.social-icons {
  display: flex;
}

.social-icons li {
  margin-right: 10px;
}

.social-icons li a {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.social-icons li a:hover {
  color: #c6c6c6;
  transform: scale(1.2);
}

footer p {
  text-align: center;
  margin-top: 20px;
}

@keyframes fadeInUp{
  0%{
    opacity: 0;
    transform: translateY(20px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
  }
}