@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
}

body {
  background: url(/images/homePage/backgound.jpg) no-repeat center center/cover;
  background-attachment: fixed;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  background-color: rgba(235, 245, 249, 0.9);
  backdrop-filter: blur(5px);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 20px;
}

.navbar img {
  max-width: 120px;
}

.navbar .user {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid #3b0066;
  object-fit: cover;
}

.navbar ul {
  display: flex;
  gap: 40px;
  align-items: center;
}

.active {
  border-bottom: 5px solid rgb(4, 4, 182);
  border-radius: 4px;
  padding-bottom: 2px;
}

.active:hover {
  border-bottom: 5px solid rgb(183, 5, 5);
  border-radius: 4px;
  padding-bottom: 2px;
}

.navbar ul li {
  list-style: none;
}

.navbar ul li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: rgb(4, 4, 182);
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: rgb(183, 5, 5);
}

.goal {
  margin-top: 50px;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1400px;
}

.card {
  width: 100%;
  height: 500px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  cursor: pointer;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: rotateY(180deg);
}

.front-page,
.back-page {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.card-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
}

.card-title {
  font-size: 26px;
  font-weight: bold;
}

.card-subtitle {
  font-size: 16px;
  margin-top: 5px;
  color: #0fbcf9;
}

.back-page {
  background: linear-gradient(135deg, #1e272e, #2c3e50);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  padding: 20px;
}

.card-content {
  text-align: center;
  max-width: 280px;
}

.card-content h3 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-description {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-button {
  background-color: #0fbcf9;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-button:hover {
  background: transparent;
  color: #0fbcf9;
  border: 1px solid #0fbcf9;
}

.about-ceo {
  width: 100%;
  background: #222;
  padding: 20px;
  text-align: center;
}

.about-ceo h2 {
  color: #222;
  margin-bottom: 15px;
}

.ceo-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.ceo-img {
  width: 330px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #f1c40f;
}

.about-ceo p {
  color: #555;
}

.label p {
  font-weight: bold;
  color: #f1c40f;
  font-size: 20px;
  margin-top: 10px;
}

.footer {
  background: #222;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.footer h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #f1c40f;
}

.footer p,
.footer a {
  font-size: 14px;
  color: #ccc;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #f1c40f;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 6px;
}

.footer hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #444;
}

.footer-contact p {
  margin: 6px 0;
}

.footer .copyright {
  font-size: 13px;
  color: #777;
}

/* ========== Tablet========== */
@media (max-width: 768px) {
  .navbar ul {
    gap: 20px;
  }

  .goal {
    flex-direction: column;
    padding: 30px 10px;
    gap: 15px;
  }

  .wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 95%;
    margin: 0 auto;
  }

  .card {
    height: 400px;
  }

  .card-content h3 {
    font-size: 22px;
  }

  .card-description {
    font-size: 14px;
  }

  .card-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .ceo-images {
    flex-direction: column;
    align-items: center;
  }

  .ceo-img {
    width: 250px;
    height: 300px;
  }

  .label p {
    font-size: 18px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== Mobile========== */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .user {
    display: none;
  }

  .navbar img {
    max-width: 90px;
    margin-bottom: 10px;
  }

  .navbar ul {
    display: flex;
    gap: 20px;
  }

  .active {
    border-bottom: 3px solid rgb(4, 4, 182);
    border-radius: 4px;
    padding-bottom: 2px;
  }

  .active:hover {
    border-bottom: 3px solid rgb(183, 5, 5);
    border-radius: 4px;
    padding-bottom: 2px;
  }

  .navbar ul li a {
    font-size: 14px;
  }

  .goal {
    padding: 20px 5px;
  }

  .card {
    height: 300px;
  }

  .card-content h3 {
    font-size: 18px;
  }

  .card-description {
    font-size: 12px;
  }

  .card-button {
    font-size: 12px;
    padding: 8px 16px;
  }

  .ceo-img {
    width: 180px;
    height: 220px;
  }

  .label p {
    font-size: 16px;
  }

  .footer h3 {
    font-size: 16px;
  }

  .footer p,
  .footer a {
    font-size: 12px;
  }
}