:root
{
  --black: #333;
  --green: hsl(0, 82%, 41%);
  --white: #fff;
  --white2: rgb(255, 0, 0);
  --black2: #333;
}
.dark
{
  --black: #fff;
  --white: #181818;
  --black2: #c01313;
  background-color: #181818;
}

section
{

  width: 100%;
  min-height: 100vh;
  padding: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
}
header
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo
{
  position: relative;
  max-width: 70px;
}

header ul
{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
header ul li
{
  list-style: none;
  display: flex;
  margin-left: 30px;
}
header ul li a
{
  display: inline-block;
  color: var(--black);
  font-weight: 500;
  text-decoration: none;
}
.themeSwitch
{
  margin: 17px;
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  background: var(--black);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.themeSwitch:before
{
  content: '\f186';
  font-family: fontAwesome;
  color: var(--white);
  font-size: 20px;
}
.themeSwitch.active:before
{
  content: '\f185';
}
.dark a
{
  /* cambiar a blanco en caso de cambiar color de header */
  color: #000000;
}
.container .imgBox
{
  position: relative;
  width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container .imgBox:before
{
  content: '';
  position: absolute;
  clip-path: circle(175px at center);
  background: var(--green);
  width: 350px;
  height: 350px;
}
.container .imgBox img
{
  position: relative;
  z-index: 1;
  max-width: 350px;
}

@media (max-width: 991px)
{

  .dark .toggle
  {
    filter: invert(0);
  }
  .toggle.active
  {
    position: fixed;
    right: 20px;
    width: 80px;
    height: 80px;
    background: url(close.png);
    background-size: 50px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
  }
  header ul li 
  {
    margin: 10px 0;
    margin-left: 0;
  }
  header ul li a
  {
    font-size: 2.5em;
    font-weight: 300;
  }
  .container .imgBox
  {
    max-width: 100%;
  }
  .container .imgBox:before
  {
    clip-path: circle(125px at center);
  }
  .container .imgBox img
  {
    max-width: 250px;
  }
}
/* ROOT VARIABLES */
:root {
  --color-white: #fff;
  --color-light: #f4f4f4;
  --color-dark: #525252;
  --color-black: #141415;
  --color-primary: #c01313;
  --color-primary-light: hsl(14, 89%, 53%, 12%);
  --color-success: #29f5a6;
  --color-warning: #3191ff;

  --transition: all 300ms ease;
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

/* CUSTOM SCROLLBAR IN CHROME */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-primary-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  background: var(--color-white);
  font-family: "Montserrat", sans-serif;
  color: var(--color-dark);
  max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--color-black);
  line-height: 1.2;
}

h1 {
  font-size: 3.8rem;
  color: #c01313;
}

h2 {
  font-size: 2.6rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 0.86rem;
}

p {
  line-height: 1.8;
}

.container {
  width: 80%;
  margin: 0 auto;
}

section {
  padding: 10rem 0 7rem;
  max-width: 100vw;
  overflow-x: hidden;
}

section h1 {
  text-align: center;
  display: block;
  margin-bottom: 5rem;
}

img {
  width: 100%;
}

.btn {
  padding: 1.4rem 3.4rem;
  font-size: 1.1rem;
  color: var(--color-black);
  background: var(--color-white);
  display: inline-block;
  margin: 2rem 0;
  transition: var(--transition);
}

.btn:hover {
  box-shadow: 0 2rem 2rem var(--color-primary-light);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 5rem;
}

/* ====================== NAVBAR =================== */
nav {
  /* ====================== Quitar en caso de querer negro =================== */
  background: #c01313;
  width: 100%;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--color-light);
}

nav.show-box-shadow {
  box-shadow: 0 0.6rem 1rem var(--color-primary-light);
  border: none;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  /* ====================== cambio de colores =================== */
  background: var(--color-primary);
}

nav button {
  display: none;
}

nav h3 {
  color: var(--color-primary);
}

nav .container ul {
  display: flex;
  height: 100%;
}
ul li a
{
  display: inline-block;
  color: var(--black);
  font-weight: 500;
  text-decoration: none;
}
nav .container ul li a {
  height: 100%;
  width: 9rem;
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
  transition: var(--transition);
}

nav .container ul li a:hover {
  /* ========================== cambia el color de letra de header ======================= */
  color: var(--color-white);
}

nav .container ul li a.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================== LANDING SECITON ======================= */
section.landing {
  display: grid;
  place-items: center;
  position: relative;
  top: 5rem;
  padding-bottom: 14rem;
}

section.landing .container {
  display: grid;
  grid-template-columns: 5rem auto 26rem;
  gap: 2rem;
}

section.landing .socials {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 5rem;
}

section.landing .socials a {
  font-size: 1.1rem;
  background: var(--color-light);
  color: var(--color-dark);
  padding: 0.3rem;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

section.landing .socials a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

section.landing .info h1 {
  text-align: left;
  margin: 0;
}

section.landing h3 {
  margin: 2.4rem 0 1rem;
  color: var(--black);
}

section.landing .info p {
  width: 35rem;
}

section.landing .profile-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

section.landing .profile-area .outer-circle {
  width: 26rem;
  height: 26rem;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  position: relative;
  background: var(--color-primary);

}

@keyframes move {
  to {
    transform: rotate(360deg);
  }
}



section.landing .profile-area .inner-circle {
  position: absolute;
  width: 24rem;
  height: 26rem;
  overflow: hidden;
  border-radius: 2rem;
}

/* ===================== ABOUT SECTION ======================== */
section.about {
  background: var(--color-light);
}

section.about .container {
  display: grid;
  grid-template-columns: 26rem auto;
  gap: 5rem;
}

section.about p {
  margin-bottom: 1rem;
}

section.about .container .read-more-content {
  display: none;
}

/* toggle read more content using JS */
section.about .container .read-more-content.show-content {
  display: block;
}

section.about .container .read-more {
  display: block;
  margin: 1rem 0 2rem;
  color: var(--color-primary);
  cursor: pointer;
}

section.about .container .read-more:hover {
  text-decoration: underline;
}

/* ===================== SKILLS SECTION ======================= */
section.skills .container {
  width: 50%;
}

section.skills .container .skill {
  margin-bottom: 1rem;
}

section.skills .skill .head {
  background: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-white);
  padding: 1.6rem;
  cursor: pointer;
}

section.skills .skill .head h4 {
  color: var(--color-white);
}

section.skills .skill .head .left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

section.skills .skill .items {
  display: none;
}

/* for javascript show/hide items */
section.skills .container .skill .items.show-items {
  display: block;
}

section.skills .skill .item {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1rem;
  padding: 1.6rem;
  background: var(--color-light);
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

/* FOR JAVASCRIPT */
section.skills .container .skill .items.show-items {
  display: block;
}

section.skills .skill .item:hover {
  background: var(--color-white);
}

section.skills .skill .progress-area {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

section.skills .item .progress-bar {
  width: 100%;
  height: 1rem;
  background: var(--color-primary-light);
}

section.skills .item .progress {
  height: 100%;
  width: 92%;
  background: var(--color-primary);
}

section.skills .item:nth-child(2) .progress {
  width: 88%;
}

section.skills .item:nth-child(3) .progress {
  width: 75%;
}

/* ======================= SERVICES ========================= */
section.services {
  background: var(--color-light);
}

section.services .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

section.services .container .service {
  background: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  cursor: default;
  transition: var(--transition);
}

section.services .container .service:hover {
  box-shadow: 0 3rem 3rem var(--color-primary-light);
}

section.services .container .service span {
  background: var(--color-primary);
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-white);
}

section.services .container .service:nth-child(2) span {
  background: var(--color-warning);
}

section.services .container .service:nth-child(3) span {
  background: var(--color-success);
}

/* ====================== RECENT WORK (PORTFOLIO) ====================== */

section.recent-work h1 {
  text-align: left;
  margin: 3rem 0 1rem;
  width: 65%;
}

section.recent-work .projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

section.recent-work .projects .project {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section.recent-work .projects .project .action {
  display: flex;
  gap: 2rem;
}

section.recent-work .projects .project .action a {
  color: var(--color-primary);
}

section.recent-work .projects .project .action a:hover {
  text-decoration: underline;
}

/* ========================== TESTIMONIAL SECTION ========================== */
section.testimonials {
  background: var(--color-light);
}

section.testimonials .container {
  width: 44rem;
}

section.testimonials .carousel {
  display: flex;
  align-items: center;
}

section.testimonials .testimonial {
  background: var(--color-white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

section.testimonials .testimonial .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

section.testimonials .testimonial .head .profile-area {
  display: flex;
  gap: 1rem;
}

section.testimonials .testimonial .head .profile-area .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
}

section.testimonials .testimonial .head .stars {
  color: var(--color-primary);
}

section.testimonials .testimonial .head .stars span {
  font-size: 1.2rem;
}

/* ============================= CONTACT =========================== */
section.contact {
  background: url("./images/background-image.jpg") no-repeat center center/cover;
  padding: 0;
  max-width: 100vw;
}

section.contact .overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 10rem 0 7rem;
}

section.contact .container {
  width: 40%;
}

section.contact .container h1 {
  margin: 0;
  color: var(--color-white);
}

section.contact .container p {
  text-align: center;
  color: var(--color-white);
  opacity: 0.8;
  margin-top: 0.5rem;
}

section.contact form {
  margin-top: 3rem;
}

section.contact form input,
section.contact form textarea {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 1.6rem;
  border: 1px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  transition: var(--transition);
}

section.contact form textarea {
  height: 10rem;
}

section.contact form input:focus,
section.contact form textarea:focus {
  background: var(--color-white);
  color: var(--color-black);
}

section.contact form input::placeholder,
section.contact form textarea::placeholder {
  color: var(--color-white);
}

section.contact form .btn {
  width: 14rem;
  border: none;
  background: var(--color-white);
  color: var(--color-black);
  margin: 2rem auto 0;
}

section.contact form .btn:hover {
  background: var(--color-primary);
  cursor: pointer;
  color: var(--color-white);
}

/* ============================ FOOTER ============================== */
footer {
  padding-top: 5rem;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .container ul {
  display: flex;
  gap: 3rem;
}

footer .container ul a {
  color: var(--color-white);
  transition: var(--transition);
}

footer .container ul a:hover {
  color: var(--color-black);
}

footer .container .socials {
  display: flex;
  gap: 2rem;
}

footer .container .socials a {
  background: var(--color-light);
  color: var(--color-dark);
  padding: 0.3rem;
  border-radius: 50%;
  transition: var(--transition);
}

footer .container .socials a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

footer .copyright {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  margin-top: 0rem;
  padding: 2rem 0;
  font-size: 0.8rem;
}

/* ========================== MEDIA QUERIES (PHONES) ============================ */
@media screen and (max-width: 600px) {
  .dark a
{
  /* cambiar a blanco en caso de cambiar color de header */
  color: #ffffff;
}
  h1 {
    font-size: 2.2rem;
    color: #c01313;
  }
  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1rem;
  }

  h5 {
    font-size: 0.68rem;
  }

  .container {
    width: 94%;
  }

  /* =================== NAV BAR ======================== */
  nav h3 {
    margin-left: 1rem;
  }

  nav .container {
    width: 100%;
  }

  nav .container ul {
    position: fixed;
    top: 0;
    flex-direction: column;
    z-index: 3;
    width: 16rem;
    height: 100vh;
    background: var(--white);
    box-shadow: 1rem 0 2rem var(--color-primary-light);
    display: none;
  }

  nav ul li {
    height: 4.6rem;
    width: 100%;
  }

  nav .container ul li a {
    width: 100%;
    justify-content: start;
    padding-left: 2rem;
  }

  nav .container ul li a:hover {
    padding-left: 3rem;
    color: var(--color-primary);
  }

  nav button {
    display: inline-block;
    cursor: pointer;
    background: transparent;
    color: var(--black);
    margin-right: 1rem;
  }

  nav button#close-btn {
    display: none;
  }

  /* ================== LANDING SECTION ================ */
  section.landing {
    margin-top: -3.4rem;
    padding-bottom: 7rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  section.landing .container {
    grid-template-columns: 1fr;
    grid-template-rows: 20% 50%;
    text-align: center;
    row-gap: 5rem;
  }

  section.landing .container .socials {
    display: none;
  }

  section.landing .container .info {
    width: 90%;
    margin: 0 auto;
    color: var(--black);
  }

  section.landing .container .info h1 {
    text-align: center;
    color: var(--black);
  }

  section.landing .container .info p {
    margin: 0 auto;
    width: 92%;
    color: var(--black);
  }

  section.landing .container .profile-area {
    grid-row: 1;
    width: 94%;
    margin: 0 auto;
  }

  section.landing .container .outer-circle {
    width: 16rem;
    height: 16rem;
  }

  section.landing .container .inner-circle {
    width: 19rem;
    height: 12rem;
  }



  /* =================== ABOUT SECTION ======================= */
  section.about .container {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  /* =================== SKILLS  SECTION ======================= */
  section.skills .container {
    width: 94%;
  }

  /* =================== SERVICES  SECTION ======================= */
  section.services .container {
    grid-template-columns: 1fr;
  }

  /* =================== PORTFOLIO  SECTION ======================= */
  section.recent-work .container .projects {
    grid-template-columns: 1fr;
  }

  section.recent-work .container h1 {
    width: 94vw;
    margin: 1.4rem 0 1rem;
  }

  /* =================== TESTIMONIALS  SECTION ======================= */
  section.testimonials .container {
    grid-template-columns: 1fr;
    width: 94vw;
  }

  section.testimonials .container .testimonial .head .stars span {
    font-size: 0.8rem;
  }

  /* =================== CONTACT  SECTION ======================= */
  section.contact .container {
    width: 94vw;
  }

  section.contact .container P {
    width: 80vw;
    margin: 0.5rem auto 0;
  }

  /* =================== FOOTER  SECTION ======================= */
  footer .container {
    flex-direction: column;
    gap: 3rem;
  }

  footer .container ul {
    flex-direction: column;
    text-align: center;
    gap: 1.4rem;
  }
}
