*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  line-height: 1.5rem;
  scroll-behavior: smooth;
  /* transition-duration: 1s; */
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: white;
}

body {
  font-family: "Inria Sans", sans-serif;
  font-weight: 400;
  /* position: relative; */
}

:root {
  --primary-color: #0078ff;
  --success-color: #28a745;
  --light-color: #fff;
  --dark-color: #000;
  --grey-color: #4e4e4e;
  --gold-color: #ffd700;
  --transition-card: all 250ms ease-in;
  --transition-menu: all 350ms ease-in-out;
  --transition-contact: all 500ms ease-in-out;
  --transition-footer: all 150ms ease-in-out;
  --container-xxl: 1320px;
  --container-xl: 1140px;
  --container-lg: 960px;
  --container-md: 720px;
  --container-sm: 540px;
  --container-vsm: 100%;
}

/* NAVBAR */
#navbar {
  position: fixed;
  z-index: 1000;
  background-color: transparent;
  color: white;
  width: 100%;
  padding-top: 1.7rem;
  padding-bottom: 1.7rem;
}

#navbar.scrolled {
  background-color: var(--dark-color);
}

.navbar__wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.navbar__menu {
  font-size: 1rem;
}

.menu__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.menu__items {
  padding: 0 1.25rem;
  font-weight: 500;
}

.menu-item-border {
  visibility: hidden;
  height: 2px;
  background-color: var(--gold-color);
  margin-top: 0.4rem;
  width: 10%;
  transition: all 350ms ease-in-out;
}

.menu__items a {
  padding: 0 0.15rem;
}

.menu__items:hover .menu-item-border,
.menu__items.active {
  visibility: visible;
  width: 100%;
}

.menu__items:hover a {
  /* color: var(--primary-color); */
  color: var(--gold-color);
}

.navbar__mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
}

.mobile__menu-list__wrapper,
.hamburger-menu {
  display: none;
}

.mobile__menu-list__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 70px);
  width: 100vw;
  position: fixed;
  top: 70px;
  right: 0;
  left: 0;
  background-color: transparent;
  visibility: hidden;
}

.mobile__menu-list__wrapper.scrolled {
  background-color: #0000006e;
}

.mobile__menu-list {
  background-color: var(--light-color);
  color: var(--dark-color);
  border-radius: 10px;
  width: 70vw;
  /* z-index: 10000; */
  border: 1.5px solid #33333362;
}

.mobile-menu-item-border {
  height: 1px;
  width: 100%;
  background-color: #f4f4f4;
}

.mobile__menu-items {
  padding: 1.5rem 3rem;
  width: 100%;
}

.mobile__menu-items .menu-links {
  color: var(--grey-color);
  width: 100%;
}

.mobile__menu-items:first-of-type {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.mobile__menu-items:last-of-type {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.mobile__menu-items:hover {
  background-color: #f4f4f4;
}

.mobile__menu-items:hover .menu-links {
  color: var(--primary-color);
  font-weight: 700;
}

.mobile__menu-items .menu-links i {
  margin-right: 20px;
}

/* HERO */
#hero {
  width: 100%;
  height: 100vh;
  background: url("../images/IMG_4304.jpeg") top center/cover no-repeat;
  color: var(--light-color);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.85;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
}

.hero__container {
  height: 100%;
  width: 100%;
  padding: 2rem;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.hero__text {
  font-size: 1.7rem;
  line-height: 4rem;
  text-align: center;
  z-index: 3;

  .design {
    font-size: 3.5rem;
    /* background-image: linear-gradient(90deg, #007cf0, #00dfd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */

    font-weight: bold;
    background: linear-gradient(
      to right,
      #cb9b51 0%,
      #f6e27a 40%,
      #f6f2c0 50%,
      #f6e27a 60%,
      #cb9b51 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
  }
}

.hero__typewriter {
  font-size: 1.7rem;
  line-height: 3rem;
  text-align: center;
  z-index: 3;
  font-weight: 900;

  background-image: linear-gradient(90deg, #007cf0, #00dfd8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About */
#about {
  color: var(--dark-color);
}

.about__card {
  padding: 2rem;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-grow: 1;
  flex-basis: 1;
}

.about__right {
  width: 45%;
}

.about__left {
  width: 53%;
}

.about__img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about__img img {
  width: 250px;
}

.about__bio {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.about__details-list {
  font-size: 1.1rem;
  padding: 1rem 0;

  span {
    font-weight: 500;
  }
}

.about__skills label {
  font-weight: 600;
  font-size: 0.8rem;
  display: block;
}

.about__skill {
  padding: 0.5rem 0;
}

.skill__progressbar {
  height: 10px;
  background-color: #f4f4f4;
}

.skill__progress {
  height: 100%;
  background-color: var(--primary-color);
}

.width-100 {
  width: 100%;
}

.width-90 {
  width: 90%;
}

.width-65 {
  width: 65%;
}

.width-80 {
  width: 80%;
}

.about__right .section-header {
  align-items: flex-start;
}

.about__text {
  padding-bottom: 1rem;
  line-height: 2rem;
  font-weight: 600;
}

/* Services section */
#services {
  background-color: #f8f8f8;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  grid-auto-rows: 1fr;
}

.stretched-link {
  color: var(--dark-color);
}

.services__grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 3rem 2rem;
  background-color: var(--light-color);
  border-radius: 20px;
  border-bottom: 5px solid var(--light-color);
  transition: var(--transition-card);
}

.stretched-link {
  font-size: 1.2rem;
}

.services__grid-item:hover {
  border-bottom: 5px solid var(--primary-color);
  transform: translateY(-0.5rem);
}

.services__grid-item:hover a.stretched-link {
  color: var(--primary-color);
}

.services__card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.services__card-icon i {
  font-size: 1.9rem;
  color: var(--light-color);
}

/* Stats Section */
#stats {
  text-align: center;
  background: url("../images/stats-bg.jpg") center center/cover no-repeat
    no-repeat;
  position: relative;
  color: var(--light-color);
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.6;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
}

.stat-item {
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  z-index: 10;
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
}

.stat-description {
  font-size: 1.1rem;
  opacity: 80%;
}

/* Portfolio section */
.portfolio-nav {
  margin: 2rem auto 2rem auto;
  padding: 2rem 0 0 0;
  text-align: center;
  align-self: center;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
}

.portfolio-nav-link {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.portfolio-showcase {
  display: grid;
  /* width: 100%; */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}

.portfolio-content {
  display: block;
  position: relative;
  align-items: center;
}

.portfolio-content.hidden {
  animation-name: hide-portfolio;
  animation-duration: 350ms;
  animation-timing-function: ease-in;
  animation-delay: 0ms;
  animation-iteration-count: 1;
  animation-direction: forwards;
  animation-fill-mode: forwards;
}

.portfolio-content.show {
  animation-name: show-portfolio;
  animation-duration: 350ms;
  animation-timing-function: ease-in;
  animation-delay: 0ms;
  animation-iteration-count: 1;
  animation-direction: forwards;
  animation-fill-mode: forwards;
}

.portfolio-info {
  visibility: hidden;
  position: absolute;
  left: 50%;
  bottom: 0;
  margin: 1rem 0;
  background-color: #f4f4f4e3;
  width: 95%;
  border-radius: 10px;
  transform: translateX(-50%) translateY(15%);
  padding: 1rem 1.5rem;
  opacity: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: all 250ms ease-in;
}

.portfolio-content:hover .portfolio-info {
  visibility: visible;
  transform: translateY(0) translateX(-50%);
  opacity: 1;
}

.portfolio-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.portfolio-image img {
  width: 100%;
  height: auto;
}

.zoom-link i,
.details-link i {
  color: var(--grey-color);
  font-size: 1.2rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  row-gap: 1rem;
  column-gap: 3rem;
}

.pricing-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px var(--grey-color) dotted;
  padding: 1rem 0;
}

.pricing-text,
.price {
  font-size: 1.3rem;
  font-weight: 500;
}

.price {
  color: var(--primary-color);
}

/* Questions section */
.questions-flex {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: flex-start;
}

.questions-container {
  width: 65%;
}

.questions-intro {
  width: 35%;
  padding: 4rem;
  padding-top: 0;

  .intro-title {
    font-size: 2.2rem;
    line-height: 2.8rem;
    font-weight: 300;
    padding-bottom: 1rem;
  }

  .bold {
    font-weight: 700;
  }

  .intro-details {
    font-weight: 900;
    opacity: 0.75;
  }
}

.question-accordion {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;

  .question {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .question-text {
    display: flex;
    /* align-items: flex-start; */
    font-size: 1.2rem;
    font-weight: bolder;
  }

  .question i {
    padding: 0.5rem;
  }

  .answer {
    padding: 0 1.5rem;
    font-weight: bolder;
  }
}

.question-accordion.collapse .answer {
  display: none;
  overflow-y: hidden;
}

/* Contact Section */
.contact-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 2rem;
  /* margin-bottom: 2rem; */
}

.contact-flex-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  transition: var(--transition-contact);
}

.contact-flex-item:hover .contact-icon i {
  color: var(--light-color);
}

.contact-flex-item:hover .contact-icon {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.contact-icon {
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-contact);
}

.contact-icon i {
  color: var(--primary-color);
  transition: var(--transition-contact);
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.contact-form.container {
  margin-top: 2rem;
}

.form-group,
.form-group:nth-of-type(2) .contact-inputs,
.form-group:nth-of-type(3) .contact-inputs {
  width: 100%;
}

.form-group:first-of-type {
  gap: 2rem;
  display: flex;
  flex-direction: row;
  flex: 1;
}

.form-group:first-of-type .contact-inputs {
  width: 50%;
}

.contact-inputs {
  padding: 0.5rem 1rem;
  border: 1px solid #c0c0c0;

  &::placeholder {
    color: #c0c0c0;
  }

  &:active {
    border: 1px solid #ffbcbc;
  }
}

.form-group:last-of-type {
  position: relative;
  padding: 0.5rem 0 2rem 0;
}

.submit-btn {
  padding: 0.5rem 3rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 35px;
  border: none;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 1rem;
  transition: var(--transition-menu);
}

.submit-btn:hover {
  opacity: 0.8;
}

/* Footer section */
#footer {
  font-size: 0.85rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  width: 3rem;
  opacity: 70%;
  border: 1px solid var(--light-color);
  border-radius: 50%;
  transition: var(--transition-footer);
}

.social-icon:hover {
  opacity: 100%;
}

.footer-socials i {
  font-size: 1.2rem;
}

.footer p .text-bold {
  font-weight: 700;
}

/* Form  Response section */

#response {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #0000006e;
  width: 100vw;
  height: 100vh;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#response.show {
  /* animation-name: show-modal;
  animation-duration: 350ms;
  animation-timing-function: ease-in;
  animation-delay: 350ms;
  animation-iteration-count: 1;
  animation-direction: forwards;
  animation-fill-mode: forwards; */
  display: flex;
}

#success-message.show {
  display: block;
  /* animation-name: show-message;
  animation-duration: 350ms;
  animation-timing-function: ease-in;
  animation-delay: 0ms;
  animation-iteration-count: 1;
  animation-direction: forwards;
  animation-fill-mode: forwards; */
}

#success-message {
  background-color: var(--success-color);
  padding: 3rem 4rem;
  margin: 30px auto;
  max-width: 600px;
  text-align: center;
  color: var(--light-color);
  border-radius: 10px;
}

.success-container {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#success-message h2 {
  font-size: 2rem;
  line-height: 2.5rem;
}

#success-message p {
  font-size: 1.1em;
  line-height: 1.3;
  /* margin: 10px 0; */
}

#success-message .submit-btn {
  background-color: var(--light-color);
  color: var(--success-color);
  position: static;
  transform: translateX(0) translateY(0);
  font-size: 0.9rem;
  padding: 0.4rem 1.5rem;
  transition: var(--transition-contact);
}

#success-message .submit-btn:hover {
  transform: scale(1.1) translateX(0) translateY(0);
  opacity: 1;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
  .about__bio {
    flex-direction: column;
  }

  .about__details-list {
    padding: 0.5rem 0;
  }

  .about__img {
    width: 100%;
    align-items: flex-start;
  }

  .about__img img {
    width: 70%;
  }

  .about__details {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .hamburger-menu {
    display: block;
    font-weight: 300;
  }

  .navbar__menu {
    display: none;
  }

  .mobile__menu-list__wrapper.show {
    visibility: visible;
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-auto-rows: 1fr;
  }

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

  .portfolio-showcase {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(6, 1fr);
  }

  .questions-flex {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
  }

  .questions-intro,
  .questions-container {
    width: 100%;
  }

  .questions-intro {
    padding-left: 0;
    padding-right: 0;
  }

  .questions-container {
    margin-top: -1rem;
  }

  .answer {
    text-align: justify;
    margin-right: 0;
    padding-right: 0;
  }

  .contact-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
  }

  .contact-flex-item {
    /* padding-left: 3rem; */
    width: 100%;
  }
}

@media (max-width: 768px) {
  .about__card {
    flex-direction: column;
    gap: 3rem;
  }

  .about__left,
  .about__right,
  .about__img,
  .about__details,
  .about__img img {
    width: 100%;
    height: 100%;
  }

  .about__bio {
    padding: 0 0 1.5rem 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-auto-rows: 1fr;
  }

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

  .stat-item {
    padding: 2rem 0;
  }

  .portfolio-showcase {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 1fr;
  }

  .form-group:first-of-type {
    gap: 2rem;
    flex-direction: column;
  }

  .form-group:first-of-type .contact-inputs {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .section-pd {
    padding: 1rem;
  }

  .portfolio-nav {
    margin: -2rem auto 1.5rem auto;
    text-align: center;
    align-self: center;
    display: flex;
    flex-direction: row;
    gap: 0.9rem;
    justify-content: center;
  }

  .hero__text {
    font-size: 1.5rem;
    line-height: 4rem;
    /* padding-bottom: 1rem; */

    .design {
      font-size: 3rem;
    }
  }

  .hero__typewriter {
    font-size: 1.5rem;
  }

  .about .about__right .section-header {
    align-items: center;
  }

  .about__right .section-header .header-text {
    padding-top: 3rem;
  }

  .about__text {
    text-align: justify;
  }

  .contact-flex {
    padding: 2rem;
  }

  .form-group:first-of-type {
    gap: 1.5rem;
  }

  .contact-form {
    gap: 1.5rem;
  }

  #success-message {
    padding: 2rem 1rem;
    max-width: 600px;
  }

  #success-message h2 {
    font-size: 1.4rem;
  }

  .success-container {
    gap: 0.75rem;
  }
}

/* KEYFRAMES FOR ANIMATION */
@keyframes hide-portfolio {
  0% {
    opacity: 1;
    visibility: visible;
  }

  75% {
    opacity: 0;
    visibility: hidden;
  }

  100% {
    display: none;
    opacity: 0;
  }
}

/* @keyframes close-message {
  0% {
    border-radius: 50%;
    width: 400px;
    height: 400px;
  }

  75% {
  }

  100% {
    transform: scale(0);
    display: none;
  }
} */

/* @keyframes close-message {
  0% {
    border-radius: 50%;
    width: 400px;
    height: 400px;
  }

  75% {
  }

  100% {
    border-radius: 50%;
    transform: scale(0);
    display: none;
  }
} */

/* @keyframes show-modal {
  0% {
    display: none;
    width: 0;
    height: 0;
    border-radius: 50%;
  }

  75% {
  }

  100% {
    
  }
} */

@keyframes show-portfolio {
  100% {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  75% {
    opacity: 1;
  }

  0% {
    display: none;
    opacity: 0;
    visibility: hidden;
  }
}
