/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 0, 0, 0.9);
}

header .logo img {
  height: 30px;
}

header ul {
  list-style: none;
  display: flex;
  align-items: center;
}

header ul li {
  margin-left: 1.5rem;
}

header ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease;
}

header ul li a:hover {
  color: #ffd700;
}

/* Main - Hero Section */
main section:first-child {
  text-align: center;
  padding: 2rem 1rem;
  background: url("../img/bg.png") no-repeat center center;
  background-size: cover;
  border-bottom: 5px solid rgba(255, 0, 0, 0.9);
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main section:first-child img {
  width: 250px;
  animation: fadeIn 2s ease-in-out;
}

main section:first-child p {
  font-size: 1.5rem;
  margin: 1rem 0;
}

main section:first-child input {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  width: 300px;
  max-width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Grid Section */
main section:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

main section:nth-child(2) div {
  background: rgba(249, 245, 245, 0.8);
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main section:nth-child(2) div:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

main section:nth-child(2) div img {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

main section:nth-child(2) div p:nth-child(2) {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: red;
}

main section:nth-child(2) div p:nth-child(3) {
  color: #0a0a0a;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: rgb(224, 27, 27);
  color: #fff;
  padding: 2rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

footer .footer-section {
  flex: 1 1 calc(33% - 1rem);
  margin: 0.5rem;
}

footer .footer-section h4 {
  margin-bottom: 1rem;
  color: #faf9f8;
  font-size: 1.2rem;
}

footer .footer-section ul {
  list-style: none;
}

footer .footer-section ul li {
  margin: 0.5rem 0;
}

footer .footer-section ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

footer .footer-section ul li a:hover {
  color: #ffd700;
}

footer .copyright {
  text-align: center;
  flex: 0 0 100%;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
