*,
*:before,
*:after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
input,
select,
textarea {
  background-color: transparent;
  outline: none;
}
button {
  cursor: pointer;
  background-color: transparent;
  outline: none;
  border: 0;
}
body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #080808;
  color: #ffffff;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Định nghĩa trạng thái khi phần tử xuất hiện */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#header {
  width: 100%;
  background-color: #080808;
  background-size: cover;
  background-position: center;
  margin-bottom: 50px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.logo {
  flex-basis: 8%;
  max-height: 70px;
  aspect-ratio: 1;
  cursor: pointer;
  padding-left: -40px;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: #ffffff;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s ease-in-out;
}

nav ul li a:hover::after {
  width: 100%;
}

/* header text */

.header-text p {
  font-size: clamp(16px, 3vw , 24px);
  font-weight: 400;
  padding-left: 4px;
}

.header-text h1 {
  text-align: left;
  font-size: clamp(20px, 6vw, 86px); /* Kích thước chữ sẽ thay đổi từ 24px đến 86px dựa trên viewport */
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}
/* about */
#about {
  color: #c0c5d0;
  padding: 20px 0;
  margin-bottom: 30px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-1 img {
  width: 100%;
  border-radius: 15px;
}

.about-col-2 {
  flex: 1;
}

.sub-title {
  font-size: 50px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.about-col-2 > p {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 20px;
}

.tab-links {
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background: #ffffff;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after {
  width: 100%;
}

.tab-titles {
  display: flex;
  color: #fff;
  margin-top: 12px;
  margin-bottom: 24px;
}

.tab-titles > p {
  font-size: 24px;
}

.tab-contents {
  font-size: 18px;
  display: none;
  transition: 0.5s ease-in-out; /* Thêm hiệu ứng chuyển động */
}

.tab-contents ul li {
  list-style: none;
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 16px;
  color: #c0c5d0;
  font-weight: 500;
}

.tab-contents ul li span {
  display: inline-block;
  color: #b54769;
  font-size: 16px;
  font-weight: 700;
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(80%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.tab-contents.active-tap {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
  animation: slideInFromLeft 0.5s ease-out forwards;
}

/* Portfolio 2 */
#portfolio2 {
  padding: 30px 0;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 80px
}

/* .project{
  display: grid;
  grid-template-columns: 45% 55%;
  width: 100%;
  max-height: 495px;
  gap: 28px;
  flex-direction: row;
  align-items: end;
  margin-top: 50px;
} */

.project {
  display: flex;
  gap: 40px;
  align-items: center; 
  background: #1a1a1a; 
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.project:hover {
  transform: translateY(-10px); /* Hiệu ứng "nhấc" card lên khi hover */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project:nth-child(even) {
  flex-direction: row-reverse;
}

.project-img {
  /* width: 100%;
  height: 450px;
  border-radius: 16px;
  background-color: #fff; */
  flex-basis: 48%;
  max-height: 450px; /* Giới hạn chiều cao tối đa của ảnh */
  border-radius: 12px;
  overflow: hidden; /* Đảm bảo ảnh bo góc theo container */
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: left;
  border-radius: 16px;
  overflow: hidden; */
    border-radius: 12px;
  transition: transform 0.4s ease;
}

.project:hover .project-img img {
  transform: scale(1.05); /* Hiệu ứng phóng to ảnh khi hover */
}

.project-info {
  flex-basis: 52%;
  display: flex;
  flex-direction: column;
  /* justify-content: start;
  gap: 12px;
  padding-top: 40px; */
  gap: 16px;
}

.project-title {
  /* font-size: 24px;
  font-weight: 600;
  color: #fff;
  line-height: 150%; */
  font-size: 28px; /* Tăng kích thước cho tiêu đề nổi bật hơn */
  font-weight: 700;
  color: var(--text-primary, #fff);
  line-height: 1.3;
  letter-spacing: 0.64px;
  text-transform: uppercase;
}

.project-description {
  /* font-size: 18px;
  font-style: normal;
  font-weight: 350;
  line-height: 120%; */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6; /* Tăng line-height để dễ đọc hơn */
  color: var(--text-secondary, #c0c5d0);
}

.project-links {
  padding: 8px 16px;
  cursor: pointer;
  width: fit-content;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #ff004f; /* Sử dụng màu nhấn làm viền */
  position: relative;
  overflow: hidden;
}

.project-links a {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.64px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  z-index: 2;
}

.project-icon {
  z-index: 2;
}

.layer-link {
  width: 0;
  height: 100%;
   background: #ff004f; /* Đơn giản hóa nền để đồng bộ với thiết kế */
  border-radius: 8px; 
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  transition: width 0.5s;
  z-index: 1;
  pointer-events: none;
}

.project-links {
  position: relative;
  overflow: hidden;
}

.project-links:hover .layer-link {
  width: 100%;
  pointer-events: auto;
  
}


/* portfolio */

#portfolio {
  padding: 50px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.work {
  border-radius: 10px;
  height: 365px;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004f);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 500;
  margin-bottom: 20px;
}

.layer a {
  margin-top: 20px;
  color: #ff004f;
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  background: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
}

.btn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #ff004f;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: background 0.5s;
}

.btn:hover {
  background: #ff004f;
}

/* contact */

#contact {
  margin-top: 50px;
}

.contact-left {
  flex-basis: 35%;
}

.contact-right {
  flex-basis: 60%;
}

.contact-left p {
  margin-top: 30px;
}

.contact-left p i {
  color: #ff004f;
  margin-right: 15px;
  font-size: 25px;
}

.social-icons {
  margin-top: 30px;
}
.social-icons a {
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: #ababab;
  display: inline-block;
  transition: transform 0.5s;
}

.social-icons a:hover {
  color: #ff004f;
  transform: translateY(-5px);
}

.btn.btn2 {
  display: inline-block;
  background: #ff004f;
}

.btn.btn2:hover {
  background: #f87c9b;
}

.contact-right form {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #262626;
  padding: 15px;
  margin: 15px 0;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
}

form btn2 {
  padding: 14px 60px;
  font-size: 20px;
  margin-top: 20px;
  cursor: pointer;
}

.copyright {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: #262626;
  font-weight: 300;
  margin-top: 20px;
}
nav .fas {
  display: none;
}

@media only screen and (min-width: 740px) and (max-width: 1024px) {
  body {
    padding: 20px;
  }
  #header {
    background: #080808;
    margin-bottom: 40px;
  }
  .header-text {
    font-size: 16px;
  }

  .sub-title {
    font-size: 40px;
  }
  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }
  .about-col-1 {
    margin-bottom: 30px;
  }

  .about-col-1 img {
    max-height: 600px;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .about-col-2 {
    font-size: 14px;
  }
  .tab-links {
    font-size: 16px;
    margin-right: 20px;
  }

  .project-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .project {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 14px;
    width: 100%;
  }

  .project-info{
    width: 100%;
    padding: 0;
    gap: 8px;
  }

  .project-img {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    background-color: #fff;
  }

  .project-title {
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0.64px;
  }

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

  .project-links{
    padding: 4px 8px;
  }

  .project-links a {
    font-size: 12px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }
  .copyright {
    font-size: 14px;
  }
}

@media only screen and (max-width: 739.8px) {
  body {
    margin-left: 20px;
    margin-right: 20px;
  }
  #header {
    background: #080808;
  }
  .header-text {
    font-size: 16px;
  }
  nav .fas {
    display: block;
    font-size: 25px;
  }
  nav ul {
    background: #ff004f;
    position: fixed;
    top: 0;
    margin-right: -22px;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 4;
    transition: right 0.5s;
  }
  nav ul li {
    display: block;
    margin: 25px;
  }
  nav ul .fas {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }
  .sub-title {
    font-size: 40px;
  }
  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }
  .about-col-1 {
    margin-bottom: 30px;
  }
  .about-col-2 {
    font-size: 14px;
    height: 350px;
  }

  .project-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .project {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
    width: 100%;
  }

  .project-info{
    width: 100%;
    padding: 0;
    gap: 8px;
  }

  .project-img {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    background-color: #fff;
  }

  .project-title {
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0.64px;
  }

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

  .project-links{
    padding: 4px 8px;
  }

  .project-links a {
    font-size: 12px;
  }

  .tab-links {
    font-size: 16px;
    margin-right: 20px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }
  .copyright {
    font-size: 14px;
  }
}

@media only screen and (max-width: 450px) {
  body {
    margin-left: 20px;
    margin-right: 20px;
  }
  #header {
    background: #080808;
  }
  #header nav {
    margin-bottom: 0px;
  }

  #header {
    margin-bottom: 60px;
  }
  .header-text {
    font-size: 16px;
  }
  nav .fas {
    display: block;
    font-size: 25px;
  }
  nav ul {
    background: #ff004f;
    position: fixed;
    top: 0;
    margin-right: -22px;
    right: -200px;
    width: 150px;
    height: 100vh;
    padding-top: 50px;
    z-index: 1000;
    transition: right 0.5s;
  }
  nav ul li {
    display: block;
    margin: 25px;
  }
  nav ul .fas {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }
  .sub-title {
    font-size: 40px;
  }

  #about {
    margin-bottom: 60px;
  }

  .about-col-2{
    height: 400px;
  }

  #portfolio {
    padding: 0;
    margin-bottom: 60px;
  }

  #portfolio .work {
    max-height: 350px;
  }

  .project-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .project {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
    width: 100%;
  }

  .project-info{
    width: 100%;
    padding: 0;
    gap: 8px;
  }

  .project-img {
    width: 100%;
    height: 300px;
  }

  .project-title {
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0.64px;
  }

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

  .project-links{
    padding: 2px 6px;
  }

  .project-links a {
    font-size: 12px;
  }

  #portfolio .work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }
  .about-col-1 {
    margin-bottom: 30px;
  }
  .about-col-2 {
    font-size: 14px;
  }
  .about-col-2 > h1 {
    font-size: 27x;
  }

  .about-col-2 > p {
    font-size: 16px;
  }

  .tab-titles > p {
    font-size: 20px;
  }

  .tab-links {
    font-size: 16px;
    margin-right: 20px;
  }

  #contact a {
    padding: 20px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
  }
  .copyright {
    font-size: 14px;
  }
  .btn.btn2 {
    display: flex;
    padding: 20px 40px;
    justify-content: center;
  }
}
