* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  line-height: 1.6;
  font-size: 16px;
  padding: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: #000;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0;
}

.hero-link:hover::after,
.hover-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.under-line {
  text-decoration: none;
}
.under-line-custom {
  font-weight: 500;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px); /* slightly smaller movement */
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-hello,
.hero-title,
.social-links {
  opacity: 0;
  animation: slide-down 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-hello {
  animation-delay: 0.1s;
}

.hero-title {
  animation-delay: 0.45s;
}

.social-links {
  animation-delay: 0.85s;
}

.hero-section {
  display: flex;
  margin: 10rem auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-hello,
.hero-link,
.link-slash {
  font-size: 1.2rem;
}

.hero-link {
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.hero-link:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 700px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-section {
    margin: 10rem auto;
  }
}

@media (max-width: 550px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-hello,
  .hero-link,
  .link-slash {
    font-size: 1rem;
  }
}

@media (max-width: 460px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-hello,
  .hero-link,
  .link-slash {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-hello,
  .hero-link,
  .link-slash {
    font-size: 0.7rem;
  }
}

/* Projects */

.projects-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project {
  max-width: 100%;
}

.project:nth-child(odd) {
  transform: translateY(-50px);
}

@media (max-width: 1050px) {
  .projects-section {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .project:nth-child(odd) {
    transform: none;
  }
}

.glass-card {
  background: rgba(190, 190, 190, 0.15);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;

  box-shadow: inset 0px 0px 10px -4px rgba(0, 0, 0, 0.15);

  padding: 1rem;
  color: #000;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.image-wrapper {
  overflow: hidden;
  border-radius: inherit; /* keeps rounded corners */
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center top;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.glass-card:hover .image-wrapper img {
  transform: scale(1.05);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-position: center top;
}

.project-info {
  display: flex;
  justify-content: space-between;
  margin: 1.3rem 1.7rem;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: baseline;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  margin-bottom: 0.7rem;
  white-space: nowrap;
  transition: margin-left 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project:hover .project-title {
  margin-left: 10px;
}

.project-description {
  font-size: 1rem;
  font-weight: 300;
  color: #444;
  margin: 0;
  line-height: 1.5;
  max-width: 90%;
}

.project-tags {
  font-size: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-right: 0.8rem;
  justify-content: left;
  margin-top: 1.4rem;
}

.tag {
  font-size: 0.875rem;
  font-weight: 400;
  border: 1px solid #000;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: #000;
  white-space: nowrap;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 550px) {
  .tag {
    font-size: 0.8rem;
  }

  .glass-card {
    padding: 0.8rem;
  }

  .project-info {
    flex-direction: column;
  }

  .project-tags {
    justify-content: left;
  }
}

@media (max-width: 470px) {
  .tag {
    font-size: 0.6rem;
  }

  .glass-card {
    padding: 0.5rem;
  }

  .project-info {
    margin: 0.5rem;
    margin-top: 1rem;
    gap: 0.6rem;
  }
}

/* About */

.about-section {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.about-text {
  display: flex;
  gap: 2rem;
}

.about-left {
  font-size: 1.5rem;
  width: 51%;
}

.about-right {
  font-size: 1.3rem;
  width: 49%;
}

@media (max-width: 1050px) {
  .about-text {
    flex-direction: column;
  }

  .about-left,
  .about-right {
    width: 100%;
  }
}

.under-line {
  text-decoration-line: underline;
  color: #000;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    margin-left 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.project.reveal.active .project-description,
.project.reveal.active .project-tags {
  transition-delay: 0.4s;
}

.project:hover .project-title {
  margin-left: 10px;
}

.hero-title span {
  background: linear-gradient(90deg, #000000, #555555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-title span:hover {
  transform: scale(1.02);
}

.hero-link,
.hover-underline {
  position: relative;
  text-decoration: none !important;
  display: inline-block;
}

.hero-link::after,
.hover-underline::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #000;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.glass-card {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2),
    inset 0px 0px 15px -4px rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.15);
}

.tag {
  transition: all 0.3s ease;
  cursor: default;
}

.tag:hover {
  background-color: #000;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
