/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Londrina+Solid:wght@100;300;400;900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --gutter: clamp(16px, 3vw, 40px);
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: rgb(226, 152, 68);
  --text-color: rgb(131, 110, 97);
  --white-color: rgb(242, 242, 242);
  --body-color: rgb(45, 25, 13);
  --container-color: rgb(102 57, 37);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Caveat Brush", cursive;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-italice: 200;
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--white-color);
}

span {
  font-family: "Caveat Brush", cursive;
}

h1,
h2,
h3,
h4 {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}


.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 3rem;
}

.section-title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/*=============== BUTTONS ===============*/

/*=== Fill button ===*/

.check-btn {
  font-size: var(--normal-font-size);
  background-color: var(--container-color);
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 60rem;
  position: relative;
  transition: all .5s cubic-bezier(.77, 0, .175, 1);
  text-decoration: none;
  outline: none;
  width: 150px;
}

.check-btn .text {
  color: var(--white-color);
  line-height: 1;
  position: relative;
  z-index: 5;
  margin-right: 48px;
  white-space: nowrap;
}

.circle-button {
  font-size: 20px;
  background: none;
  border: none;
  color: var(--white-color);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center;
  transition: transform .35s ease, color .35s ease;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
}


.check-btn::before {
  content: '';
  background-color: var(--first-color);
  width: 32px;
  height: 32px;
  display: block;
  position: absolute;
  z-index: 1;
  border-radius: 99px;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  transition: all .5s cubic-bezier(.77, 0, .175, 1);
}

.check-btn:hover .circle-button,
.check-btn:focus-visible .circle-button {
  transform: translateY(-50%) rotate(-45deg);
}

.check-btn:hover::before,
.check-btn:focus-visible::before {
  width: 100%;
  height: 100%;
  right: 0;
  box-shadow: 0 0 15px var(--first-color), 0 0 30px rgba(0, 0, 0, 0.2);
}

/*=== pop button ===*/

.pop-button {
  align-items: center;
  background-color: var(--container-color);
  border-radius: 60px;
  font: var(--body-font);
  box-sizing: border-box;
  color: var(--white-color);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  outline: none;
  padding: 0.5rem 0.5rem;
  text-align: center;
  transition: box-shadow .4s, background-color .4s;
  border: 2px solid transparent;
}

.pop-button:hover {
  box-shadow: 0 0 15px var(--first-color), 0 0 30px rgba(0, 0, 0, 0.2);
  background-color: var(--first-color);
}

/*=== outline button ===*/

.button-learn {
  align-items: center;
  border-radius: 60px;
  font: var(--body-font);
  box-sizing: border-box;
  color: var(--white-color);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  outline: none;
  padding: 13px 17px;
  text-align: center;
  transition: box-shadow .4s, background-color .4s, border .4s;
  border: 3px solid var(--container-color);
  line-height: 1;
}

.button-learn:hover {
  box-shadow: 0 0 15px var(--first-color), 0 0 30px rgba(0, 0, 0, 0.2);
  background-color: var(--first-color);
  border: 3px solid var(--first-color);
}



/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo,
.nav-close,
.nav-toggle,
.nav-actions {
  display: flex;
  color: var(--white-color);
  cursor: pointer;
}

.nav-logo {
  column-gap: .25rem;
  align-items: center;
  font-size: 1.25rem;
  position: relative;
}

.nav-logo img {
  width: 2rem;
  height: 2rem;
}

.nav-actions {
  font-size: 2.25rem;
  column-gap: 5rem;
  align-items: center;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(228, 24%, 6%, .2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 80%;
    height: 100%;
    padding: 6rem 3rem 0;
    transition: right .4s;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav-link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav-link:hover {
  color: var(--first-color);
}

.nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.25rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

.blur-header::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, var(--body-color) 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(19, 20, 13, 1),
      rgba(19, 20, 13, 0.9),
      rgba(19, 20, 13, 0.6),
      rgba(19, 20, 13, 0));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom,
      rgba(19, 20, 13, 1),
      rgba(19, 20, 13, 0.9),
      rgba(19, 20, 13, 0.6),
      rgba(19, 20, 13, 0));
  mask-repeat: no-repeat;
  mask-size: cover;
}

.nav-link.active-link {
  position: relative;
  color: var(--first-color);

  text-shadow: 0 0 25px var(--first-color), 0 0 20px rgba(253, 219, 58, 0.8);
  transition: color .3s ease, text-shadow .3s ease;
}

/*=============== HOME ===============*/
.home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(to bottom, rgb(35, 11, 6) 0%, rgba(35, 11, 6, 0) 50%);
}

.home>* {
  position: relative;
  z-index: 4;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1rem;
}

.home-title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 2rem;
  color: var(--white-color);
}

.home-title img {
  width: 80%;
  max-width: 320px;
  margin: 0 auto;
}

.home-description {
  font-size: var(--h2-font-size);
  color: var(--white-color);
  max-width: 32rem;
}

/* Robot under text */
.home-robot {
  width: 90%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
}

.home-description span {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

/*===== Fireflies in HOME =====*/
.home {
  position: relative;
  overflow: hidden;
}

.home .fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.home .home-text,
.home .home-title,
.home .home-description {
  position: relative;
  z-index: 2;
}

.home .firefly {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.4vw;
  height: 0.4vw;
  min-width: 4px;
  min-height: 4px;
}

.home .firefly::before,
.home .firefly::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-origin: -10vw;
}

.home .firefly::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.6;
  filter: blur(2px);
  animation: firefly-drift linear infinite;
}

.home .firefly::after {
  background: radial-gradient(circle, var(--first-color) 0%, transparent 70%);
  opacity: 0.8;
  box-shadow: 0 0 2vw 0.4vw var(--first-color);
  filter: blur(6px);
  animation: firefly-drift linear infinite, firefly-flash ease-in-out infinite;
}


@keyframes firefly-drift {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes firefly-flash {

  0%,
  30%,
  100% {
    opacity: 0;
    box-shadow: 0 0 0 0 var(--first-color);
  }

  5% {
    opacity: 1;
    box-shadow: 0 0 2vw 0.4vw var(--first-color);
  }
}

@media (prefers-reduced-motion: reduce) {

  .home .firefly::before,
  .home .firefly::after {
    animation: none !important;
  }
}


/*=============== HOME WORK DISPLAY ===============*/

.work {
  display: grid;
  overflow: hidden;
}

.my-works {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}

/* IMAGE SIDE */
.mainImage {
  transition: opacity 0.8s ease-in-out;
  opacity: 1;
}

.work__image {
  position: relative;
}

.work__image img {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  height: auto;
  max-height: 380px;
}

.work__number {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: var(--biggest-font-size);
  color: var(--white-color);
}

/* CONTENT SIDE */
.work__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.work__title {
  font-size: var(--biggest-font-size);
}

.work__desc {
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
  text-align: center;
  max-width: 500px;
}

/* TAGS */
.work__tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag,
.badge {
  background-color: rgb(54, 36, 24);
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: var(--small-font-size);
  font-family: "Caveat Brush", cursive;
  color: var(--text-color);
  border: none;
}


/* CIRCLES (now with image thumbnails) */
.work__circles {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.circle {
  width: 60px;
  height: 60px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.circle:hover {
  transform: scale(1.08);
}

.circle.active {
  border: 2px solid var(--first-color);
  box-shadow: 0 0 15px var(--first-color), 0 0 30px rgba(0, 0, 0, 0.2);
}

.work__buttons {
  display: flex;
  gap: 1rem;
}

/*=============== OTHER WORK ===============*/

.card-wrapper {
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  padding-inline: 1.5rem;
}

.other-work-subtitle {
  font-size: var(--h1-font-size);
  color: var(--white-color);
  margin-bottom: 3rem;
  text-align: center;
}

.card-list .card-item {
  list-style: none;
}

.card-list .card-item .card-link {
  position: relative;
  user-select: none;
  min-height: 280px;
  /* base height for small/medium screens */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 3rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--white-color);
  padding: 22px;
  isolation: isolate;
}

.card-list .card-item .card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg, url("../img/work-1.png"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter .35s ease, transform .35s ease;
  z-index: 0;
}

.card-list .card-item .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 10% 10%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, .3));
  opacity: .8;
  transition: opacity .35s ease;
  z-index: 0;
}

.card-list .card-item .card-link:hover::before {
  filter: blur(2px) brightness(.85);
  transform: scale(1.02);
}

.card-list .card-item .card-link:hover::after {
  opacity: 1;
}

.card-list .card-item .card-link>* {
  position: relative;
  z-index: 1;
}

.card-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number {
  color: var(--white-color);
  font-size: var(--normal-font-size);
}

.card-list .card-link .card-title {
  font-size: var(--h2-font-size);
  margin: 6px 0 0;
  color: var(--white-color);
  max-width: 26ch;
  text-wrap: balance;
}

.card-desc {
  max-width: 36ch;
  font-size: var(--normal-font-size);
  color: var(--white-color);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.card-link:hover .card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Button */
.card-list .card-link .card-button {
  height: 40px;
  width: 40px;
  color: var(--first-color);
  border-radius: 50%;
  margin-top: auto;
  /* keep it near the bottom */
  background: transparent;
  cursor: pointer;
  border: 2px solid var(--first-color);
  transition: transform .35s ease, color .35s ease, border-color .35s ease;
  display: grid;
  place-items: center;
}

.card-list .card-link:hover .card-button {
  color: var(--white-color);
  background: var(--first-color);
  border-color: var(--first-color);
  transform: rotate(-45deg);
}

/* Swiper bits */
.card-wrapper .swiper-pagination-bullet {
  height: 13px;
  width: 13px;
  opacity: 0.5;
  background: var(--container-color);
}

.card-wrapper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Move pagination dots nicely below cards */
.card-wrapper .swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

.card-wrapper .swiper-slide-button {
  color: var(--container-color);
  margin-top: -35px;
}

/* Responsiveness */

/* Small screens */
@media (max-width: 576px) {
  .card-wrapper {
    padding-bottom: 1rem;
  }

  .card-wrapper .swiper-slide-button {
    display: none;
  }

  .card-list .card-item .card-link {
    height: 300px;
    border-radius: 2rem;
    padding: 18px;
  }

  .card-list .card-link .card-title {
    font-size: var(--normal-font-size);
    max-width: 22ch;
  }

  .card-desc {
    font-size: var(--small-font-size);
    max-width: 30ch;
  }
}

/* Medium screens */
@media (min-width: 576px) {
  .card-list .card-item .card-link {
    min-height: 320px;
  }
}

/* Large screens */
@media (min-width: 992px) {
  .card-list .card-item .card-link {
    min-height: 360px;
  }

  .card-wrapper {
    padding-inline: 0rem;
  }
}


/*=============== ABOUT ===============*/
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
  overflow: visible;
  background: linear-gradient(to bottom, rgb(35, 11, 6) 0%, rgba(35, 11, 6, 0) 50%);
}


/* Layout */
.about-me {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 1.5rem;
}

/* IMAGE SIDE */
.my-image {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.my-image .mainImage,
.my-image .overlayImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.my-image .overlayImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease-in-out;
  z-index: 1;
}

.my-image .overlayImage.is-visible {
  opacity: 1;
}

/* CONTENT SIDE */
.about-paragraph {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
  text-align: center;
}

.about-desc {
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
  text-align: center;
}

.about-desc span {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}


.text-block {
  margin-bottom: 1rem;
}

/* HOBBIES */
.hobby-title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
  text-align: center;
}

/* Circles container */
.hobby-circles {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hobby-circles .circle {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--white-color);

  background-color: var(--container-color);
  border: 2px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
  transition:
    transform 0.2s ease,
    border 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.hobby-circles .circle:hover {
  background-color: var(--first-color);
  transform: scale(1.08);
}

.hobby-circles .circle.active {
  border: 2px solid var(--first-color);
  box-shadow: 0 0 15px var(--first-color), 0 0 30px rgba(0, 0, 0, 0.2);
}


.hobby-circles .circle:focus-visible {
  outline: 3px solid var(--first-color);
  outline-offset: 3px;
}

.hobby-circles .circle[aria-pressed="true"] {
  border: 2px solid var(--first-color);
  box-shadow: 0 0 15px var(--first-color), 0 0 30px rgba(0, 0, 0, 0.2);
}

/* ============  MY JOURNEY ============== */

.journey-title {
  text-align: center;
  margin: 0;
  padding: 2rem 0;
  font-size: var(--h1-font-size);
}

/* === DEFAULT: SMALL SCREENS === */

.experience-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* No side backgrounds on mobile */
.experience-bg {
  display: none;
}

.experience-section {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Center image takes full width on small screens */
.experience-section img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/*=============== CONTACT ===============*/

.contact {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  background:
    linear-gradient(to bottom, rgb(35, 11, 6) 0%, rgba(35, 11, 6, 0) 50%),
    url("../img/contact/robot.png") center bottom no-repeat;

  background-size: cover, cover;
}

/* Layout / container */
.contact-container {
  padding-top: 2rem;
  row-gap: 2rem;
}

/* Form base */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 28rem;
  margin-inline: auto;
  background: transparent;
  z-index: 1;
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  position: relative;
}

.field--textarea .form-input {
  min-height: 8rem;
  resize: none;
}

/* Inputs */
.form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: .5rem;
  border: 1px solid var(--white-color);
  background: var(--body-color);
  color: var(--white-color);
  outline: none;
  padding: .625rem 1rem;
  font-size: var(--normal-font-size);
  font: var(--body-font);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:hover {
  border-color: rgba(255, 255, 255, .6);
}

.form-input:focus {
  border-color: var(--first-color);
}

/* Error styling */
.error-txt {
  display: none;
  font-size: .8rem;
  margin-top: .25rem;
  line-height: 1.1;
  color: #b01414;
}

.field.error .error-txt {
  display: block;
}

.field.error .form-input {
  border-color: #b01414;
}

/* Visual vignette */
.contact {
  position: relative;
  z-index: 0;
}


.contact>* {
  position: relative;
  z-index: 1;
}

/* Success overlay (full-screen, transparent/frosted) */
#contact-success {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px) saturate(1.05);
}

/* Inner frosted card */
#contact-success .success-card {
  width: min(520px, 92%);
  max-width: 560px;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white-color, #fff);
  text-align: center;
  transform: translateY(-6px);
  transition: transform .22s ease, opacity .18s ease;
  opacity: 0;
  will-change: transform, opacity;
}

/* Visible state */
#contact-success.open {
  display: flex;
}

#contact-success.open .success-card {
  transform: translateY(0);
  opacity: 1;
}

/* Typography & button inside overlay */
#contact-success .success-card h3 {
  margin: 0 0 .5rem;
  font-size: var(--h1-font-size);
  color: var(--first-color);
}

#contact-success .success-card p {
  margin: 0 0 1rem;
  color: var(--white-color);
}

#contact-success .pop-btn {
  background: transparent;
  border: 1px solid var(--body-color);
  color: var(--white-color);
  padding: .5rem .75rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--body-font);
}

#contact-success .pop-btn:hover {
  background: rgba(255, 255, 255, 0.02);
}

#contact-success .pop-btn:focus {
  outline: 2px solid var(--first-color);
  outline-offset: 3px;
}

/* Ensure overlay is keyboard-focusable when not hidden */
#contact-success[aria-hidden="false"] {
  display: flex;
}

/*======= eyes =======*/

.contact .eyes {
  position: fixed;
  bottom: 0rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3rem;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
}

.contact .eye {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
}

/* pupil */
.contact .eye::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--white-color);
  border-radius: 50%;

  /* center by default */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* offsets controlled from JS */
  top: calc(50% + var(--pupil-y, 0px));
  left: calc(50% + var(--pupil-x, 0px));
}

@media (max-width: 768px) {
  .contact {
    background:
      linear-gradient(to bottom, rgb(35, 11, 6) 0%, rgba(35, 11, 6, 0) 50%),
      url("../img/contact/robot-mobile.png") center bottom no-repeat;
  }

  .contact .eyes {
    display: none;
  }
}

@media screen and (min-width: 1400px) {
  .contact .eyes {
    gap: 3.5rem;
  }

  .contact .eye {
    width: 120px;
    height: 120px;
  }
}

@media screen and (min-width: 1600px) {
  .contact .eyes {
    gap: 4rem;
  }

  .contact .eye {
    width: 150px;
    height: 150px;
  }

  .contact .eye::after {
    width: 50px;
    height: 50px;
  }
}

/*=============== FOOTER ===============*/
.footer {
  display: grid;
  place-items: center;
  padding-block: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to top, rgb(35, 11, 6) 0%, rgba(35, 11, 6, 0.9) 50%, rgba(35, 11, 6, 0) 100%);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.reach-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.reach-label {
  font-size: var(--h3-font-size);
  color: var(--first-color);
}

.footer-content {
  display: grid;
  grid-auto-flow: row;
  gap: 1.25rem;
  justify-items: center;
}

.footer-title {
  font-size: var(--normal-font-size);
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
  justify-content: center;
}

.footer-social-link i {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color .3s;
}

.footer-social-link:hover i {
  color: var(--first-color);
}

.footer-copy {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/*=============== WORK DETAILS ===============*/

.work-details {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  align-items: center;

  background:
    linear-gradient(to top, rgb(45, 25, 13) 0%, rgba(45, 25, 13, 0) 40%);
}

/* Fullscreen background video */
.work-details .bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: brightness(30%);
}

/* Mobile: hide video and use background image */
@media (max-width: 768px) {
  .work-details {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* Your content */
.work-details .intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 10rem;
  position: relative;
  z-index: 2;
}

/* ===== TITLE ===== */

.title-link {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.title-container {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}


.work-title {
  font-size: 3.25rem;
  color: var(--white-color);
  text-transform: uppercase;
  cursor: pointer;
}

.title-button {
  height: 40px;
  width: 40px;
  color: var(--first-color);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  border: 2px solid var(--first-color);
  transition: transform .35s ease, color .35s ease, border-color .35s ease;
  display: grid;
  place-items: center;
  transform-origin: center center;
}

.title-button:hover {
  color: var(--white-color);
  background: var(--first-color);
  border-color: var(--first-color);
  transform: rotate(-45deg);
}

.title-container:hover .title-button {
  color: var(--white-color);
  background: var(--first-color);
  border-color: var(--first-color);
  transform: rotate(-45deg);
}

/* ===== META ROW ===== */

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  opacity: 0.6;
  color: var(--white-color);
  text-transform: uppercase;
}

.meta-value {
  color: var(--white-color);
}

/* ===== DESCRIPTION ===== */

.work-logline {
  max-width: 750px;
  color: var(--white-color);
  text-transform: uppercase;
  padding-bottom: 3rem;
}

/* ===== ABOUT WORK ===== */

/* First composition */
.about-work1 {
  position: relative;
}

.about-subtitle1 {
  font-size: var(--h1-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
  text-align: center;
}

.about-description1 {
  font-size: var(--normal-font-size);
  color: var(--white-color);
  margin: 0 auto 2rem auto;
  max-width: 800px;
  text-align: center;
}

/* Second composition */

.about-box {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.about-text {
  width: 100%;
}

.about-subtitle2 {
  font-size: var(--h1-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.about-description2 {
  font-size: var(--normal-font-size);
  color: var(--white-color);
}

.about-picture {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  order: 2;
  margin-bottom: 1.5rem;
}

.picture-gallery1 {
  order: 1;
  width: 100%;
}


/* Third composition */


.about-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  order: 2;
  margin-bottom: 1.5rem;
}

/* ===== Responsive ===== */

@media (max-width: 720px) {
  .work {
    padding-top: 6rem;
  }

  .work-meta {
    gap: 1.5rem;
  }
}

/*Pictures*/
.picture-gallery {
  align-items: center;
  justify-content: center;
}

.picture-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.picture-container .picture-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

/* === playing cards gallery === */

.cards-icons {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 3rem auto;
}

.cards-gallery {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards-container {
  width: 100%;
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1.5rem;
  padding-bottom: 5rem;

  justify-content: center;
}

.cards-container .cards-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  border-radius: 0.5rem;
}

/*=== next project button ===*/

.next-work {
  text-align: center;
  position: relative;
}

.next-work .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 5rem;
}

.next-subtitle {
  font-size: var(--h1-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
  text-align: center;
}

.next-button {
  align-items: center;
  border-radius: 60px;
  font: var(--body-font);
  font-size: var(--biggest-font-size);
  text-transform: uppercase;
  box-sizing: border-box;
  color: var(--white-color);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  outline: none;
  padding: 20px 40px;
  text-align: center;
  transition: box-shadow .4s, background-color .4s, border .4s;
  border: 3px solid var(--container-color);
  line-height: 1;
}

.next-button:hover {
  box-shadow: 0 0 15px var(--first-color), 0 0 30px rgba(0, 0, 0, 0.2);
  background-color: var(--first-color);
  border: 3px solid var(--first-color);
}

/*=== section order ===*/

.work-details .bg-video {
  position: absolute;
  z-index: -1;
}

.about-work1,
.about-work2,
.about-work3,
.playing-cards {
  order: 2;
}

.next-work {
  order: 3;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(228, 4%, 15%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(228, 4%, 25%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 4%, 35%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  color: var(--white-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
  border-radius: 16px;
  transition: box-shadow .4s, background-color .4s;
}

.scrollup:hover {
  box-shadow: 0 0 15px var(--first-color), 0 0 30px rgba(0, 0, 0, 0.2);
  background-color: var(--first-color);

}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  /* === BUTTONS === */

  .check-btn {
    padding: 12px 16px;
    width: 120px;
    transform: scale(0.9);
  }

  .check-btn .text {
    margin-right: 36px;
    font-size: calc(var(--normal-font-size) * 0.9);
  }

  .circle-button {
    right: 18px;
    font-size: 16px;
  }

  .check-btn::before {
    width: 26px;
    height: 26px;
    right: 12px;
  }

  .button-learn {
    padding: 10px 14px;
    font-size: calc(var(--normal-font-size) * 0.9);
    border-width: 2px;
    transform: scale(0.9);
  }

  /* === HOME === */

  .home-robot {
    max-width: 250px;
    padding-top: 3rem;
    width: 100%;
  }

  .home-title img {
    width: 100%;
  }

  /*=== HOME WORK DISPLAY ===*/

  .my-works {
    gap: 1.5rem;
  }

  .work__title {
    font-size: 1.75rem;
  }

  .work__desc {
    font-size: var(--small-font-size);
    margin-inline: auto;
  }

  /*=== HOME OTHER WORK ===*/

  .other-work-subtitle {
    margin-bottom: 1rem;
  }

  .card-wrapper {
    padding-bottom: 1rem;
  }

  /*=== WORK DETAILS ===*/

  .work-title {
    font-size: 1.6rem;
  }

  .title-button {
    font-size: 20px;
    height: 30px;
    width: 30px;
  }

  .cards-icons {
    width: 70px;
    height: 70px;
    margin-bottom: 2rem;
  }

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

  .picture-container {
    justify-content: center;
  }

  .filterable-cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .filterable-cards .card {
    width: min(100%, 320px);
  }

  .portfolio-filters.container {
    text-align: center;
  }

}


/* For medium devices */
@media screen and (min-width: 576px) {

  /* === HOME === */

  .home-robot {
    max-width: 450px;
    width: 80%;
  }

  .home-title img {
    width: 100%;
  }

  .work-title {
    font-size: 4.25rem;
  }

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

}

@media screen and (min-width: 768px) {
  :root {
    --biggest-font-size: 3.25rem;
  }

  /* === HOME === */

  .home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    z-index: 0;
  }

  .home::before,
  .home::after {
    position: absolute;
    left: 0;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
  }

  .home::before {
    content: "";
    top: 0;
    height: 100%;
    background-image: url("../img/portfolio/background.png");
    z-index: -1;
  }

  .home::after {
    content: "";
    bottom: 0;
    height: 100%;
    background-image: url("../img/portfolio/bushes.png");
    z-index: 3;
  }

  .home>* {
    position: relative;
    z-index: 1;
  }

  .home-content {
    align-items: flex-start;
    text-align: left;
  }

  .home-title {
    margin-bottom: 3rem;
    margin-top: 5rem;
  }

  .home-title img {
    max-width: 300px;
  }

  .home-description {
    width: 45%;
  }

  .home-robot {
    display: none;
  }

  /*=== HOME WORK DISPLAY ===*/

  .my-works {
    grid-template-columns: 1fr 1fr;
  }

  .work__desc {
    text-align: left;
    align-items: flex-start;
  }

  .work__content {
    align-items: start;
  }

  .work__image img {
    height: 400px;
    max-height: none;
  }

  .work__number {
    align-items: start;
  }

  .work__tags {
    margin-bottom: 3rem;
  }

  .work__circles {
    margin-bottom: 2rem;
  }

  /* === ABOUT === */

  .about {
    min-height: 100vh;
  }

  .about-me {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 0 2rem;
  }

  .my-image {
    max-width: 500px;
    margin: 0;
    justify-self: center;
  }

  .about-paragraph {
    align-items: flex-start;
  }

  .about-title {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .about-desc {
    text-align: left;
    max-width: 40rem;
  }

  .hobby-title {
    text-align: left;
  }

  .hobby-circles {
    justify-content: flex-start;
  }

  /*=== MY JOURNEY ===*/

  .experience-section img {
    width: 80%;
  }

  /*=== ABOUT DETAILS ===*/

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

  /*=== PICTURE GALLERY ===*/

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

  .nav-menu {
    width: 50%;
  }

  .new-content {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
  }

  .new-card:nth-child(even) {
    transform: translateY(10rem);
  }


  .footer-container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .contribution-list {
    columns: 2;
    text-align: left;
  }
}

/* For large devices */

@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.25rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }

  .container {
    margin-inline: auto;
  }

  /*=== HOME ===*/

  .home-title img {
    max-width: 400px;
  }

  /*=== HOME WORK DISPLAY ===*/

  .work__image img {
    height: 450px;
  }

  /*=== ABOUT ===*/

  .hobby-circles .circle {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  /*=== MY JOURNEY ===*/

  .experience-wrapper {
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
  }

  .experience-bg {
    display: block;
    position: absolute;
    inset: 0;

    background-image: url("../img/about/about-left.png"),
      url("../img/about/about-right.png");
    background-position: left top, right top;
    background-repeat: no-repeat, no-repeat;
    background-size: auto 100%, auto 100%;

    z-index: 1;
    pointer-events: none;
  }

  .experience-section {
    z-index: 2;
  }

  .experience-section img {
    width: auto;
    height: 175vh;
    object-fit: contain;
  }

  /*=== WORK DETAILS ===*/

  .about-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 3rem;
    flex-direction: row;
  }

  .about-text {
    width: 50%;
  }

  .about-picture {
    width: 50%;
    height: 100%;
    object-fit: cover;
    margin-inline: 0;
    order: 0;
    margin-bottom: 0;
  }

  .about-video {
    width: 50%;
    height: 100%;
    object-fit: cover;
    margin-inline: 0;
    order: 0;
    margin-bottom: 0;
  }

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

  .picture-gallery1 {
    order: 0;
    margin-inline: 0;
  }

  .picture-container {
    grid-template-columns: repeat(3, 1fr);
    margin-inline: 0;
  }

  .about-subtitle2 {
    text-align: left;
  }

  .about-description2 {
    text-align: left;
  }

  .section {
    padding: 5rem;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* stop spreading children */
  }

  .nav-toggle,
  .nav-close {
    display: none;
  }

  .nav-logo i {
    font-size: 1.5rem;
  }

  .nav-menu {
    width: initial;
    margin-left: auto;
    display: flex;
  }

  .nav-list {
    flex-direction: row;
    column-gap: 3.5rem;
    justify-content: flex-end;
    align-items: center;
  }

  .nav-actions {
    display: none;
  }

  .new-container {
    grid-template-columns: 412px 490px;
    align-items: center;
    column-gap: 7.5rem;
  }

  .new-data,
  .new-data .section-title {
    text-align: initial;
  }

  .new-content {
    row-gap: 8.5rem;
  }

  .new-title {
    font-size: var(--h3-font-size);
  }

  .interests-container {
    grid-template-columns: 420px 420px;
    column-gap: 8rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    justify-content: center;
  }

  .interests-list {
    row-gap: 1.5rem;
  }

  .contact-container {
    grid-template-columns: 280px 480px;
    justify-content: center;
    align-items: center;
    column-gap: 8rem;
  }

  .contact-content {
    order: -1;
    text-align: initial;
    row-gap: 2.5rem;
  }

  .contact-social {
    justify-content: initial;
  }

  .contact-img {
    width: 480px;
  }

  .footer-title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }

  .footer-social {
    column-gap: 1rem;
  }

  .scrollup {
    right: 3rem;
  }

  .contribution-list {
    columns: 2;
    text-align: left;
  }


}

/*=============== CUSTOM CURSOR ===============*/

@media (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
        rgb(203, 145, 0, 0.5) 0%,
        rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 1000000;
    will-change: transform, left, top, width, height;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}