/* GENERAL */

picture {
  display: contents;
}

@font-face {
  font-family: SignatureFont;
  src: url("./assets/DarlingtonDemo-z8xjG.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: SignatureFont2;
  src: url("./assets/beautiful-kisses.regular.ttf") format("truetype");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: rgb(250, 248, 244);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: rgb(250, 248, 244);
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

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

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2.25rem;
  font-family: SignatureFont;
  color: rgb(16, 147, 207);
}

a.logo:hover {
  color: rgb(12, 125, 178);
  text-decoration: none;
  cursor: pointer;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
  gap: 4rem;
  height: 80%;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 4.25rem);
  height: 80vh;
}

#profile .section__pic-container {
  width: var(--site-hero-photo-size, 17.5rem);
  height: var(--site-hero-photo-size, 17.5rem);
  flex-shrink: 0;
}

.section__pic-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 2.2rem;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  transition: color 280ms ease, text-shadow 280ms ease, transform 280ms ease;
}

.title:hover {
  color: rgb(16, 147, 207);
  text-shadow: 0 2px 18px rgba(16, 147, 207, 0.22);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .title {
    transition: color 200ms ease;
  }

  .title:hover {
    transform: none;
    text-shadow: none;
  }
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

.about-detail-icon {
  height: 2.5rem;
  width: auto;
  cursor: default;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
  padding-top: calc(4vh + clamp(2.25rem, 7vh, 5rem));
}

#about .section-container {
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
}

.about-containers,
.about-details-container {
  display: flex;
}

#about .section__pic-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  padding: 0.65rem;
  box-sizing: border-box;
  border-radius: 1rem;
  border: 0.1rem solid rgb(163, 163, 163);
  background: linear-gradient(
    165deg,
    rgba(16, 147, 207, 0.06) 0%,
    rgb(255, 255, 255) 55%
  );
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.045);
}

#about .about-pic {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.65rem;
}

.arrow {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: clamp(1.25rem, 3.5vh, 2.5rem);
  transform: translateX(-50%);
  z-index: 5;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.arrow.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.details-container {
  padding: 1rem;
  flex: 1;
  background: white;
  border-radius: 1rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

#about .about-containers,
#experience .about-containers {
  justify-content: center;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

#about .about-containers {
  max-width: min(54rem, 100%);
}

#experience .about-containers {
  max-width: 38rem;
}

#about .about-containers .details-container,
#experience .about-containers .details-container {
  flex: 1 1 auto;
  max-width: 17.5rem;
  min-width: 0;
  padding: 0.65rem 0.85rem;
}

#about .details-container h3 {
  margin: 0;
}

#experience .article-container img {
  width: var(--site-hero-photo-size, 17.5rem);
  height: var(--site-hero-photo-size, 17.5rem);
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  box-sizing: border-box;
}

#projects .article-container .project-img {
  width: var(--site-hero-photo-size, 17.5rem);
  height: var(--site-hero-photo-size, 17.5rem);
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 1.65rem;
  box-sizing: border-box;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
  align-items: center;
  justify-content: center;
}

.text-container {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  max-width: 32rem;
  margin: 0 auto;
  text-align: left;
  padding: 0.95rem 1.1rem 0.95rem 1.05rem;
  border-left: 3px solid rgba(16, 147, 207, 0.45);
  border-radius: 0 10px 10px 0;
  background-color: rgba(16, 147, 207, 0.06);
}

.text-container p {
  margin: 0;
}

.text-container p + p {
  margin-top: 1.1em;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

#experience .experience-sub-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  min-height: 96vh;
  height: auto;
  box-sizing: border-box;
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
}

#projects .arrow {
  bottom: clamp(1rem, 2.5vh, 1.85rem);
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

#projects .about-containers {
  width: 100%;
  gap: clamp(1.25rem, 2.8vw, 2.5rem);
  max-width: min(72rem, 100%);
  margin-left: auto;
  margin-right: auto;
  justify-content: space-evenly;
}

#projects .color-container {
  flex: 1 1 240px;
  max-width: 22rem;
  min-width: min(100%, 15rem);
  padding: 0.85rem 0.75rem;
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

#projects .project-img {
  border-radius: 1.65rem;
}

.project-title {
  margin: 1rem;
  color: black;
}

#projects .project-title {
  margin: 0.75rem 0.45rem 0.4rem;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-phone-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

#contact .contact-phone-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgb(100, 100, 100);
  line-height: 1.35;
  max-width: 14rem;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* WHATSAPP FLUTUANTE */

.whatsapp-float {
  position: fixed;
  left: calc(1.25rem + env(safe-area-inset-left, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.42);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.whatsapp-float:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
  outline: 2px solid rgb(16, 147, 207);
  outline-offset: 3px;
}

.whatsapp-float__icon {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* SCROLL TO TOP */

.scroll-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0.1rem solid rgb(163, 163, 163);
  border-radius: 50%;
  background: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 280ms ease, visibility 280ms ease, transform 280ms ease,
    border-color 200ms ease, color 200ms ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  border-color: rgb(16, 147, 207);
  color: rgb(16, 147, 207);
}

.scroll-to-top:focus-visible {
  outline: 2px solid rgb(16, 147, 207);
  outline-offset: 3px;
}

.scroll-to-top__icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}
