/* ************************* */
/* GENERAL STYLES */
/* ************************* */

:root {
  --primary-color: #6366f1;
  --primary-hover-color: #4f46e5;
  --primary-focus-color: #c7d2fe;
  --background-color: #f5f5f5;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #333;
  background-color: #f5f5f5;
}

html,
body {
  overflow-x: hidden;
}

section {
  scroll-margin-top: 5rem;
}

.container {
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.heading-primary {
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.4rem;
}

.heading-secondary {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.heading-tertiary {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.social-link:link,
.social-link:visited {
  color: var(--primary-color);
  transition: all 0.3s;
}

.social-link:hover,
.social-link:active {
  color: var(--primary-hover-color);
}

.social-link-icon {
  height: 3.5rem;
  width: 3.5rem;
}

/* ************************* */
/* HEADER SECTION */
/* ************************* */

/* .header-container {
  top: 2.4rem;
  z-index: 1;
  padding: 0 3.2rem;
} */

.header {
  position: fixed;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2.4rem;
  height: 7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.logo:link,
.logo:visited {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s;
}

.logo:hover,
.logo:active {
  color: var(--primary-hover-color);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 4.8rem;
}

.nav-link:link,
.nav-link:visited {
  text-decoration: none;
  font-size: 1.8rem;
  color: #000;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-link:hover,
.nav-link:active {
  color: var(--primary-color);
}

/* ************************* */
/* HERO SECTION */
/* ************************* */

.section-hero {
  padding: 16rem 0;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
}

.hero-description {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.hero-social-link {
  display: flex;
  gap: 1.6rem;
}

.hero-lottie {
  max-width: 100%;
}

/* ************************* */
/* SKILLS SECTION */
/* ************************* */

.section-skills {
  padding: 8rem 0;
}

.skill-group > p {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2.4rem;
}

.skill-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 3.2rem;
}

.skill {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 1.4rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.skill img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.skill p {
  font-size: 1.4rem;
  font-weight: 600;
}

/* ************************* */
/* ABOUT SECTION */
/* ************************* */

.section-about {
  padding: 8rem 0;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
}

.about-img {
  grid-area: 1 / 1 / 3 / 2;
}

.about-img img {
  width: 30rem;
}

.subheading {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1.6rem;
}

.about-description {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  font-size: 1.6rem;
  line-height: 1.6;
}

.btn:link,
.btn:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 1.6rem;
  color: #fff;
  background-color: var(--primary-color);
  padding: 1.2rem 2.4rem;
  transition: all 0.3s;
}

.btn:hover,
.btn:active {
  background-color: var(--primary-hover-color);
}

/* ************************* */
/* PROJECTS SECTION */
/* ************************* */

.section-project {
  padding: 8rem 0;
}

.section-project h2 {
  margin-bottom: 8rem;
}

#projects {
  max-width: 120rem;
  margin: 0 auto;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 3.2rem;
  column-gap: 1.4rem;
  justify-items: center;
}

.project {
  display: flex;
  flex-direction: column;
  width: 33rem;
  padding-bottom: 3.6rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.project-description {
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}

.project-text-box {
  display: flex;
  flex-direction: column;
  padding: 0 2.2rem;
}

.links-and-logos {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: auto;
}

.btn-live:link,
.btn-live:visited {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  margin-right: auto;
  transition: all 0.3s;
}

.btn-live:hover,
.btn-live:active {
  background-color: var(--primary-hover-color);
}

.links-and-logos img {
  width: 34px;
  height: 34px;
}

.project-img-box {
  overflow: hidden;
  margin-bottom: 3.2rem;
}

.project-img-box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 3s;
}

.project-img-box img:hover {
  transform: scale(1.1);
}

/* ************************* */
/* CONTACT SECTION */
/* ************************* */

.section-contact {
  padding: 8rem 0;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.left {
  background-color: var(--primary-color);
  padding: 6.4rem 4.8rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.contact-heading {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.4rem;
  text-align: center;
}

.right {
  background-color: #fff;
  padding: 6.4rem 4.8rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.contact-text {
  font-size: 1.6rem;
  line-height: 1.6;
}

.contact-icon {
  margin-top: auto;
  display: flex;
  gap: 3.2rem;
}

.contact-icon a:link,
.contact-icon a:visited {
  font-size: 3rem;
  color: #fff;
  transition: all 1s;
}

.contact-icon a:hover,
.contact-icon a:active {
  transform: scale(1.1);
}

.right .contact-heading {
  color: var(--primary-color);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.2rem;
}

.contact-form label {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1.2rem;
  font-size: 1.6rem;
  border: 1px solid #333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-size: 1.4rem;
  /* color: #999; */
}

.message {
  grid-column: span 2;
}

textarea {
  width: 100%;
}

input[type='submit'] {
  grid-column: span 2;
  background-color: var(--primary-color);
  border: 1px solid #000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 1s;
  border: none;
}

input[type='submit']:hover,
input[type='submit']:active {
  background-color: var(--primary-hover-color);
}

a,
input,
textarea {
  outline: none;
}

a:focus,
input:focus,
textarea:focus {
  box-shadow: 0 0 0 4px var(--primary-focus-color);
  transition: box-shadow 0.2s ease;
}

/* ************************* */
/* FOOTER SECTION */
/* ************************* */

.section-footer {
  background-color: #333;
  height: 8rem;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ************************* */
/* RESPONSIVE DESIGN */
/* ************************* */

@media (max-width: 1220px) {
  .header {
    width: calc(100% - 4.8rem);
    padding: 0 2.4rem;
  }
}

@media (max-width: 1024px) {
  html {
    font-size: 56.25%;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .skill-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .nav-list {
    gap: 2.4rem;
  }

  .project-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .message,
  input[type='submit'] {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 1.6rem;
  }

  .skill-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-img {
    grid-area: auto;
  }

  .hero-description,
  .about-description,
  .contact-text {
    font-size: 1.6rem;
  }

  .section-hero {
    padding: 8rem 2rem;
  }

  .hero-social-link {
    justify-content: center;
  }

  .heading-primary {
    font-size: 4rem;
  }

  .heading-secondary {
    font-size: 2.8rem;
  }

  .heading-tertiary {
    font-size: 2rem;
  }

  .contact-heading {
    font-size: 2.8rem;
  }

  .project-container {
    grid-template-columns: 1fr;
  }

  .project1,
  .project2,
  .project3 {
    grid-area: auto;
  }

  .project {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo:link,
  .logo:visited {
    font-size: 1.6rem;
  }

  .social-link-icon {
    height: 2.4rem;
    width: 2.4rem;
  }

  .btn,
  .btn-live {
    font-size: 1.4rem;
    padding: 1rem 2rem;
  }

  .skill-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill p {
    font-size: 1.2rem;
  }

  .skill img {
    width: 3rem;
    height: 3rem;
  }

  .container {
    padding: 0 1rem;
  }

  .project {
    width: 100%;
  }
}

@media (max-width: 385px) {
  .nav-link:link,
  .nav-link:visited {
    font-size: 1.6rem;
  }
}
