/* Existing styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: #161513;
  color: #c5c5c5;
}
a {
  text-decoration: none;
}
header {
  background-color: #222;
}
nav {
  display: flex;
  justify-content: space-between;
  width: 1100px;
  margin: 0 auto;
}
.logo img {
  width: 80px;
}
.navbar {
  display: flex;
}
.navbar div {
  padding: 30px 20px;
}
.navbar a {
  color: #fff;
}
.container {
  width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}
.avatar img {
  width: 251px;
}
.about {
  text-align: center;
}
.about-text {
  width: 652px;
  margin: 30px auto;
}
.about-text h1 {
  font-size: 55px;
  line-height: 1;
  color: #fff;
}
.about-text h2 {
  font-size: 55px;
  line-height: 1;
  color: #fff;
}
.about-text h1 > span {
  background: var(
    --Primary-Gradient,
    linear-gradient(116deg, #ff8660 71.79%, #9a33ff 95.51%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-text p {
  font-size: 18px;
  margin-top: 30px;
}
.about-btn {
  margin-top: 30px;
}
.btn-primary {
  width: 195px;
  height: 64px;
  border-radius: 50px;
  border: 1px solid var(--Primary-Color, #fff);
  background: linear-gradient(
      0deg,
      var(--Primary-Color, #fff) 0%,
      var(--Primary-Color, #fff) 100%
    ),
    var(--Primary-Color, #fff);
  font-size: 22px;
  margin-right: 20px;
}
.btn-secondary {
  width: 195px;
  height: 64px;
  background: none;
  border: 2px solid #fff;
  border-radius: 50px;
  font-size: 22px;
  color: #fff;
}
.experience-with {
  text-align: center;
}
.experience-with h2 {
  font-size: 20px;
}
.experience-with-lang {
  display: flex;
  width: 500px;
  margin: 50px auto;
  justify-content: space-between;
}
.experience-with-lang img {
  width: 42px;
  cursor: pointer;
}
.primary-heading {
  text-align: center;
  font-size: 35px;
}
.heading-project {
  background: var(
    --Orange-Gradient,
    linear-gradient(180deg, #ff8660 0%, #d5491d 100%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.projects {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
}
.project-item {
  background: #2a2a2a;
  margin: 20px;
  border-radius: 18px 18px 0 0;
}
.project-item img {
  width: 100%;
  border-radius: 18px 18px 0 0;
}
.project-title {
  padding: 15px;
}
.project-title h3 {
  color: #fff;
}
.project-title a {
  color: #fff;
}
.heading-experience {
  background: var(
    --Blue-Gradient,
    linear-gradient(180deg, #5badff 0%, #1373d1 100%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.experience-item {
  padding: 30px 0;
}
.experience-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.experience-title-container .date {
  margin-left: auto;
}
.experience-title {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  margin-left: 10px;
}
footer {
  background-color: #191919;
}
footer h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}
footer p {
  font-size: 15px;
}
.email-container {
  display: flex;
  align-items: center;
  margin-top: 40px;
}
.email-container img {
  margin-right: 10px;
}
.social-links {
  display: flex;
  margin-top: 40px;
}
.social-links img {
  margin-right: 20px;
}

/* Card Container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}
/* Individual Card */
.card {
  perspective: 1000px; /* Required for 3D flip effect */
  width: 400px;
  height: 430px;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.card:hover .card-inner,
.card.active .card-inner {
  transform: rotateY(180deg);
}
/* .card:active .card-inner {
  transform: rotateY(180deg);
} */
/* Card Front and Back */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Safari */
}
.card-front {
  background: #ffe5b4;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171616;
}
.card-back {
  background: #e6e6fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #666;
  transform: rotateY(180deg);
  padding: 20px;
  box-sizing: border-box;
}
.card-title {
  font-size: 1.5em;
  text-align: center;
}
.card-description {
  font-size: 1em;
  margin-bottom: 15px;
}
.card-tools {
  font-size: 0.9em;
  color: #747373;
}
/* Responsive Styles */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .navbar {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .navbar div {
    padding: 10px 0;
  }
  .container {
    width: 100%;
    padding: 20px;
  }
  .projects {
    flex-direction: column;
    align-items: center;
  }
  .project-item {
    width: 100%;
    margin: 20px 0;
  }
}
