/**************************/
/* SECTIONS */
/**************************/
.section-wrap {
  display: flex;
  flex-direction: column;
  padding-bottom: 8rem;
  gap: 2.5rem;
}

.section-header {
  display: flex;
  max-width: 70rem;
}

.section-header:after {
  background-color: var(--muted-navy);
  content: "";
  display: block;
  height: 0.1rem;      
  margin-left: 2rem;     
  margin-top: 3.5rem;      
  width: 100%;
}

.section-title {
  font-family: NTR, sans-serif;
  color: var(--slate);
  font-size: 6rem;
  font-weight: 700;
  line-height: 6.5rem;
  text-wrap: nowrap;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 3.2rem;
    font-weight: 700;
    text-wrap: nowrap;
    line-height: 3.6rem;
  }

  .section-wrap {
    gap: 3rem;
    padding-bottom: 6rem;
  }
}

/**************************/
/* HERO SECTION */
/**************************/
.section-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 100vh;
  padding-top: 8.2rem;
}

.hero-main-content {
  align-items: center;
  justify-content: center;
  display: flex;
  flex: 1 0 auto;
}

.hero-img-box {
  flex: 1 0 40%;
}

.hero-img {
  width: 100%;
  margin-top: 1rem;
}

.hero-text-box {
  display: flex;
  flex-direction: column;
  flex: 1 0 60%;
  text-align: left;
}

.hero-btn-container {
  display: block;
  position: relative;
  flex: 1;
}

.hero-text-intro {
  color: var(--slate);
}

.intro-title {
  font-size: 9rem;
  font-weight: 700;
  display: inline-block;
}

.intro-name,
.intro-title {
  font-family: NTR, sans-serif;
  line-height: 1;
}

.intro-name {
  color: var(--cyan);
}

.intro-subtitle {
  font-size: 4rem;
  font-weight: 300;
}

.intro-description,
.intro-subtitle {
  color: var(--dark-slate);
}

.intro-description {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-family: karla, sans-serif;
  font-size: 2rem;
  max-width: 70rem;
  line-height: 1.7;
  text-align: justify;
}

.scroll-down {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lighter-navy);
  fill: var(--cyan);
  width: 100%;
  height: 7rem;
}

.scroll-down svg {
  animation: bounce 2s infinite;
  height: 3rem;
}

@media (max-width: 768px) {
  .section-hero {
    padding-top: 4.4rem;
  }

  .hero-main-content {
    width: 100%;
    flex-direction: column-reverse;
  }

  .hero-img-box {
    padding: 0 2.5rem;
    flex: 0 1 30%;
    max-width: 430px;
  }

  .hero-text-box {
    flex-grow: 0;
    align-items: center;
  }

  .hero-text-box * {
    text-align: center;
  }

  .intro-title {
    font-size: 4.5rem;
  }

  .intro-subtitle {
    font-size: 2.5rem;
    margin: 0;
  }

  .intro-description {
    font-size: 1.4rem;
    max-width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .scroll-down {
    height: 6rem;
  }

  .scroll-down svg {
    width: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .intro-title {
    font-size: 6rem;
  }
  .intro-subtitle {
    font-size: 3rem;
  }
  .intro-description {
    font-size: 1.8rem;
    line-height: 1.6;
  }
  .hero-img-box {
    flex: 1 0 45%;
  }
  .hero-text-box {
    flex: 1 0 55%;
  }
}

/* BOUNCE ANIMATION */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/**************************/
/* ABOUT ME SECTION */
/**************************/
.section-about-content {
  display: flex;
  gap: 1.5rem;
  flex: 1 1 auto;
}

.about-description {
  font-family: NTR, sans-serif;
  color: var(--dark-slate);
  font-size: 2.2rem;
  line-height: 1.6;
  margin-bottom: 2.8rem;
}

.about-img-box {
  flex: 1 0 32rem;
  text-align: center;
}

.about-img {
  width: 100%;
  border-radius: 1rem;
}

@media (max-width: 768px) {
  .section-header:after {
    display: none;
  }

  .about-description {
    font-size: 1.8rem;
    word-spacing: 0.07rem;
    margin-bottom: 1.8rem;
  }

  .about-img-box {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-description {
    font-size: 1.8rem;
    line-height: 1.6;
  }
  .about-img-box {
    flex: 1 0 25rem;
    text-align: center;
  }
}
/**************************/
/* PROJECT SECTION */
/**************************/
.project-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
}

.project-box {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-mask-image: url(#mask);
  mask-image: url(#mask);
}

svg.mask-frame {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

svg.mask-frame rect {
  rx: 2rem;
  ry: 2rem;
}

@media (max-width: 768px) {
  .project-container {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1380px) {
  .project-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-img-box {
  width: 100%;
  height: 100%;
  background-clip: content-box;
}

.project-img {
  object-fit: cover;
  height: 100%;
  margin: auto;
}

.project-overlay {
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 210%;
  background-image: linear-gradient(to top, rgba(2, 12, 27, 0.9) 60%, transparent 100%);
  transition: transform 400ms;
}

.project-box:hover .project-overlay {
  transform: translateY(-50%);
}

.project-display {
  z-index: 2;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  padding: 0.8rem 1.8rem;
}

.project-display-header {
  flex-basis: 15%;
}

.project-display-description {
  position: relative;
  flex-grow: 1;
  overflow: hidden;
}

.project-display-description .project-description-inner {
  line-height: 3rem;
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 100%;
  display: block;
  overflow: hidden;
  transition: margin-top 400ms;
  animation-direction: reverse;
}

.project-description-text {
  font-size: 1.3rem;
  text-align: center;
  padding-left: 2rem;
  padding-right: 2rem;
  line-height: 2.4rem;
}

.project-box:hover .project-description-inner {
  margin-top: 0;
}

.tech-stack-badges {
  padding: 2rem 3rem 0 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-stack-badge {
  flex-grow: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-radius: 2rem;
  height: 2.1rem;
  padding-right: 0.8rem;
  padding-left: 0.8rem;
}

.tech-stack-badge-logo {
  line-height: 0.8;
  fill: #ffffff;
}

.tech-stack-badge-logo svg {
  width: 1.3rem;
}

.tech-stack-badge-text {
  line-height: 0;
  font-size: 1.2rem;
  color: #ffffff;
}

.js-badge {
  background-color: #CFB230;
}

.html-badge {
  background-color: #DD4B25;
}

.ror-badge {
  background-color: #CC0000;
}

.css-badge {
  background-color: #379AD6;
}

.api-badge {
  background-color: #96BD16;
}

.bs-badge {
  background-color: #8C0BFD;
}

.project-display-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-display-footer {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  flex-basis: 20%;
  vertical-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-display-detail-text {
  display: flex;
  gap: 0.8rem;
}

.project-display-logo svg {
  fill: #ffffff;
  width: 2.1rem;
  aspect-ratio: 1 / 1;
  transition: width 400ms;
}

.project-box:hover .project-display-logo svg {
  width: 2.3rem;
}

.project-display-title {
  font-size: 1.8rem;
  font-family: karla, sans-serif;
  font-weight: bold;
  transition: font-size 400ms;
}

.project-box:hover .project-display-title {
  font-size: 1.9rem;
}

.project-display-subtitle {
  font-size: 1.4rem;
  font-family: karla, sans-serif;
  color: var(--dark-slate);
  display: flex;
  gap: 1rem;
  transition: font-size 400ms;
}

.project-box:hover .project-display-subtitle {
  font-size: 1.3rem;
}

.project-git-link {
  display: block;
  border: 0.25rem solid #ffff;
  border-radius: 0.6rem;
  height: 100%;
  padding: 0.6rem 0.7rem;
}

.project-git-link svg {
  fill: #ffff;
  width: 2rem;
  height: 2rem;
}

.project-git-link:hover {
  border-color: var(--cyan);
}

.project-git-link:hover svg {
  fill: var(--cyan);
}

@media (max-width: 768px) {
  .project-display-title {
   font-size: 1.5rem;
  }
  .project-box:hover .project-display-title {
    font-size: 1.6rem;
  }
  .project-display-subtitle {
    font-size: 1.2rem;
  }
}

/**************************/
/* SKILLS SECTION */
/**************************/
.skills-badge-section {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem auto 6rem auto;
  justify-content: center;
  gap: 4rem;
 
}
.skills-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 18rem;
}
.skills-badge svg {
  fill: var(--dark-slate);
  width: 4.5rem;
  height: 3.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}
.skills-badge-text {
  font-size: 1.2rem;
}
.skills-badge:hover .skills-badge-text {
  color: var(--cyan);
  transform: scale(1.1);
}

.skills-badge:hover svg {
  fill: var(--cyan);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .skills-badge {
    width: 6rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .skills-badge {
    width: 15rem
  }
}

/**************************/
/* CONTACT SECTION */
/**************************/
.contact-container {
  display: flex;
  gap: 5rem;
}

.contact-text-box {
  flex: 0 0 40%;
}

.contact-text-box p {
  font-size: 2rem;
  line-height: 2.5rem;
  font-family: NTR, sans-serif;
  color: var(--dark-slate);

}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 8rem;
}

.social-icon {
  list-style: none;
}

.social-icon svg {
  fill: var(--dark-slate);
  width: 3.5rem;
}

.social-icon:hover .social-icon-link svg {
  fill: var(--cyan);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Contact form */
.contact-form {
  flex: 1 0 auto;
}

.contact-form button[type=submit] {
  font-size: 1.6rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 1rem;
  }
}