* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

/*Root { have more specifity > html-tag } */
:root {
  --color-primary: #156bd4;
  --color-primary-variant: rgba(21, 107, 212, 0.5);
  --color-gray-0: #fff;
  --color-gray-50: #edecec;
  --color-gray-100: #e6e5ee5;
  --color-gray-200: #c0c0c0;
  --color-gray-300: #a1a1a1;
  --color-gray-400: #919191;
  --color-gray-500: #7b7b7b;
  --color-gray-600: #545454;
  --color-gray-700: #313131;
  --color-gray-800: #1f1f1f;
  --color-gray-900: #0e0e0e;

  --container-w-lg: 74%;
  --container-w-sm: 94%;

  --transition: all 350ms ease;
}

/*Dark theme variables for JavaScript */

.dark-theme-variables {
  --color-gray-0: #0e0d14;
  --color-gray-50: #211f2e;
  --color-gray-100: #252233;
  --color-gray-200: #545454;
  --color-gray-300: #7b7b7b;
  --color-gray-400: #919191;
  --color-gray-500: #a1a1a1;
  --color-gray-600: #c0c0c0;
  --color-gray-700: #e6e5e5;
  --color-gray-800: #fafafa;
  --color-gray-900: #fff;
}

html {
  scroll-behavior: smooth;
}
/* Scrollbar right*/
::-webkit-scrollbar {
  background: rgba(215, 217, 223, 0.796);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  background-color: var(--color-gray-0);
  font-size: 0.9rem;
  color: var(--color-gray-700);

  user-select: none; /* more info of this ?*/
}

.container {
  width: var(--container-w-lg);
  margin-inline: auto;
}

.container_title {
  animation: heartbeat 3s infinite;
  border-bottom: 1px solid var(--color-gray-0);
  transition: var(--transition);
  }
  @keyframes heartbeat {
    0% {
      transform: scale(1);
      
      opacity: 1;
    }
    50% {
      transform: translateX(10px);
      border-bottom: 1px solid var(--color-primary);
      opacity: 0.9;
      color: var(--color-primary);
    }
    100% {
      
      transition: var(--transition);
      transform: scale(1);
      opacity: 1;
    }
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  color: var(--color-gray-900);
  font-weight: 900;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.8rem;
}

a {
  transition: var(--transition);
}

.btn {
  background: var(--color-gray-50);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn.primary {
  color: var(--color-gray-50);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: 1rem;
}

.btn:hover {
  background-color: var(--color-primary-variant);
  border-color: transparent;
}

section {
  background-color: var(--color-gray-50);
  padding: 2rem 0;

}

section:nth-child(even) {
  background: var(--color-gray-100);
}

section > h1, section > p {
  text-align: center;
  margin-top: 0.5rem;
  width: 30rem;
  margin-inline: auto;
}

/*====== NAVBAR section .sccs deploy ======*/

nav {
  background: var(--color-primary);
  width: 100vw;
  height: 3rem;
/*====== grid + center =======*/
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  z-index: 9999999;
}

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__container a {
  color: #eee;
  font-weight: 500;
  font-size: 1.1rem;
}

.nav__theme-btn {
  background: transparent;
  color: #eee;
  font-size: 1.3rem;
  cursor: pointer;
}

/*Floating NAV*/
.floating__nav {
  position: fixed;
  left: 50%;
  bottom: -3rem;
  transform: translateX(-50%) scale(0);
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  width: fit-content;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem;
  border-radius: 2.2rem;
  z-index: 9;

  opacity: 1;

  animation: animateFloatingNav 1s ease forwards;
}

@keyframes animateFloatingNav {
  to {
    bottom: 1.5rem;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/*Background for dark THEME floatin NAVIGATION*/
.dark-theme-variables .floating__nav {
  background: rgba(0, 0, 0, 0.1);
}


.floating__nav a {
  color: var(--color-gray-700);
  width: 3.2rem;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1rem;
}

.floating__nav a.active {
  background: var(--color-primary);
  color: #eee;
}

/*====== grid + center =======*/

.header {
    margin-top: 2rem;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: baseline;
    background: var(--color-gray-0);
}

.dark-theme-variables {
 background: linear-gradient( var(--color-gray-100)); 
}

.header__container {
  width: 36rem;
  text-align: center;
}

/*======= HEADER IMG STYLES=========*/

.header__image {
  width: 12rem;
  height: 14rem;
  border-radius: 6rem 6rem 2rem 2rem;
  overflow: hidden;
  margin-inline: auto;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.header__text {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.header__img img {
  height: 100%;
}

.header__container h1 {
  font-weight: 700;
  margin: 0.8rem 0 0.1rem;
  padding: 5px;
}

.header__container h1 span {
  color: var(--color-primary);
  font-weight: 750;
  font-style: italic;
}

.header__container .h1_main {
  color: var(--color-gray-900);
  font-weight: 750;
  border-bottom: 2px solid var(--color-primary);
}


.header__cta {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  font-size: 2rem;
  margin-inline: auto;
  width: fit-content;
}

.header__social {
  position: absolute;
  top: 10%;
  right: 32%;
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.header__social a {
  font-size: 1.5rem;
  background: var(--color-gray-50);
  color: var(--color-primary);
  width: 2.2rem;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.6rem;
  transition: var(--transition); 
}

.header__socials a:hover {
  background: var(--color-primary-variant);
  color: var(--color-gray-100);
}

 /*=== RESUME SECTION === */

 .resume {
  background: var(--color-gray-300);
 }

 .resume__container {
  display: grid;
  grid-template-columns: 14rem auto;
  gap: 2rem;
 }

 .resume__left p {
  margin: 0.5rem 0 1rem;
 }

 .resume__left menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
 }

 .resume__left menu button {
  border-color: var(--color-gray-50);
 }

 .resume__right h4 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
 }

 .resume__right > p {
  margin-bottom: 1.5rem;
 }

 .resume__right ul {
  display: grid;
 }

 .resume__right ul li {
  background: var(--color-gray-50);
  padding: 1.5rem;
  border: 0.4rem solid var(--color-gray-0);
  transition: var(--transition);
  cursor: default;
 }

 .resume__right ul li:hover {
  background: transparent;
 }

 .resume__right  li h6 {
  color: var(--color-gray-500);
 }

 .resume__right  li h5 {
  color: var(--color-primary);
  margin: 0.8rem 0;
 }

 /* ---=== RESUME ===--- */


 /* Education section */
 
 .resume__right.education ul {
  grid-template-columns: 1fr;
  color: #313131;
 }

 .resume__right.education li h5 {
  margin-top: 0;
 }

 .resume__right.education li h5 {
  margin-top: 0;
  color: #167af5;
 }

  /* Skills section */
 
  .resume__right.skills ul {
    grid-template-columns: 1fr;
    color: (--color-primary);
   }
  
   .resume__right.skills ul>li {
    margin-top: 0;
    color: var(--color-primary);
   }
  
  
  
/* Projects */
.projects {
  display: flex;
  flex-direction: column;
}

.projects h2 {
  margin: auto;
}

.projects__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 3rem 0 2.5rem;
}

.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 4rem;
  background: var(--color-gray-100);
}

.project {
  background: var(--color-gray-50);
  transition: var(--transition);
  padding-bottom: 0.5rem;
  border: 0.5rem solid var(--color-gray-100);
}

.project:hover {
  background: transparent;
}

.project__img {
  max-height: 12rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.project h5 {
   padding: 0 1.2rem;
}

.project p {
  margin: 0.5rem 0 1.5rem;
  padding: 0 1.2rem;
  font-size: 0.8rem;
}

/*Links projects*/

.project__cta {
  padding: 0 1.2rem;
  display: flex;
  gap: 1rem;
}

.projects_cta a {
  font-size: 1.3rem;
  padding: 0.6rem 1rem;
}

/*Swiper section */

#swiper>h2 {
  text-align: center;
  margin: 0 auto;
}

.swiper-wrapper {
  margin-top: 4rem;
  /*Push down paggination*/
  padding-bottom: 1rem;
}

.swiper-slide {
  background: transparent;
  border: 0.5rem solid var(--color-gray-0);
  cursor: default;
  transform: var(--transition);
}

.swiper-slide:hover {
  background: var(--color-gray-100);
}

.swiper-slide figcaption {
  font-weight: 500;
  font-size: 1rem;
  padding: 1.2rem;
}

.swiper__client {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper__client-avatar img {
  align-items: center;
  width: 200px;
  height: 200px;
  padding-right: 1rem;
  padding-bottom: 0.5rem;
}

/* F A Q */

.faq_section {

}

.faq__title {
  text-align: center;
}

.faqs__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 5rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.faqs__item {
  background: var(--color-gray-50);
  padding: 1.5rem;
  border-left: 0.5rem solid var(--color-primary);
  cursor: pointer;
}

.faqs__item div {
  display: grid;
  grid-template-columns: 3rem auto;
  align-items: center;
}

.faqs__item i {
  font-style: 1.5rem;
}

.faqs__item p {
  margin-top: 0.7rem;
  /* off screen P text > make a JS accordeon */
  display: none;
}

/*Styles JS*/
p.show {
    display: block;
}

/* Contact section / email send */

#contact {
  height: 100vh;
  background: var(--color-gray-50);
}

.contact__container {
  width: 36%;
}

.contact__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: fit-content;
  margin-inline: auto;
  gap: 1.2rem;
  padding-bottom: 2rem;
}

.contact__options a {
  background: var(--color-gray-0);
  color: var(--color-primary);
  padding: 1.2rem;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact__options a:hover {
  background: var(--color-primary);
  color: #fffffff7;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;

  
}

form input, form textarea {
  padding: 1.2rem;
  resize: none;
  background: var(--color-gray-0);
  border: 0.5px solid black;
  color: var(--color-gray-900);
}

/* Media QUERIES for responsive (Small screen) */
@media screen and (max-width: 720px) {
  .header__social {
    position: absolute;
    top: 10%;
    right: 5%;
  }
}

@media screen and (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: var(--container-w-sm);
  }

  .section > h1, section > p {
    width: var(--container-w-sm);
  }

  nav {
    height: 4rem;
  }

  .header__container {
    padding-top: 20px;
    width: 90%;
  }

  .header__container h1 {
    font-size: 1.4rem;
  }

  .header__container p {
    margin-top: 0.4rem;
    font-size: 1.1rem;
  }

  .resume__container {
    grid-template-columns: 1fr;
  }

  .resume__left menu {
    gap: 0.7rem;
  }

  .resume__right.skills ul {
    grid-template-columns: repeat(1fr,);
    gap: 1.2rem;
  }

  .projects__categories {
    gap: 1.5rem;
  }

  .swiper-wrapper {
    margin-top: 3rem;
  }

  .faqs__container {
    grid-template-columns: 1fr;
  }

  form button { 
    width: 100%;
  }

  .header__social {
    position: absolute;
    top: 10%;
    right: 5%;
  }
}