body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  margin: 1rem auto;
  padding: 0;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
}

ul li a {
  position: relative;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

ul li a::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 8px;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

ul li a:hover::after {
  width: calc(100% - 32px);
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  margin: auto;
  padding: 3rem 2rem;
}

a {
  color: rgb(251, 250, 250);
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
}
a:hover {
    text-decoration: underline;
    transition: width 0.3s ease;
}
.intro .text {
  flex: 1;
  color: white;
}

.intro h1 {
  font-size: 3rem;
  color: white;
}

.intro p {
  font-size: 1.25rem;
  line-height: 1.6;
}
.profile-link {
  display: block;
  border-radius: 50%;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.profile-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.intro img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
}
.flip-card {
  height: 340px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #ade1f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.flip-body {
  padding: 1rem;
  overflow-y: auto;
}

.project-section {
  width: 100%;
  height: 100%;
  max-width: 1600px;
  box-sizing: border-box;
  margin: 3rem auto;
  padding: 0 1rem;
}

.project-heading {
  margin-bottom: 1.5rem;
  color: white;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.project-type {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.project-text {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

#footer {
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  color: white;
}

@media (max-width: 600px) {

  ul {
    margin: 0;
    border-radius: 0;
    flex-wrap: wrap;          
    justify-content: center;
  }

  ul li a {
    padding: 12px 10px;
    font-size: 0.95rem;
  }

  ul li a::after {
    left: 10px;                
    width: 0;
  }

  ul li a:hover::after {
    width: calc(100% - 20px);
  }


  .intro {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .intro p {
    font-size: 1.1rem;
  }

  .intro img {
    width: 250px;
    height: 250px;
  }

  .profile-link {
    align-self: center;
  }
}