@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@200;400&display=swap');

:root,
:root[data-theme='dark'] {
  --primary-color: #F0F0F0;

  --primary-bg-color: #000000;
  --secondary-bg-color: rgba(40, 41, 46, 0.4);
  /* Make semi-transparent */
  --primary-border-color: #28292E;
  --secondary-border-color: #56575A;

  --title-color: #ffffff;
  --text-color: #f0f0f0;
  --link-color: #f0f0f0;
  --icon-color: #ffffff;
}

:root[data-theme='light'] {
  --primary-color: #004aad;
  /* Darker blue for contrast on light background */

  --primary-bg-color: rgba(255, 255, 255, 0.4);
  /* More opaque for contrast */
  --secondary-bg-color: rgba(255, 255, 255, 0.6);
  --primary-border-color: #C7C8C9;
  --secondary-border-color: #9A9A9C;

  --title-color: #000000;
  /* Dark text for light mode */
  --text-color: #28292E;
  /* Dark text for light mode */
  --link-color: #004aad;
  --icon-color: #000000;
}

html[data-theme='light'] body {
  background: linear-gradient(90deg, #e0f7fa, #80deea);
  /* Light Cyan gradient for light mode */
}

html[data-theme='light'] .brand__logo {
  filter: invert(0);
  /* Don't invert if icon is already dark or if we want original color */
}

/* Ensure technologies logos are visible in light mode */
html[data-theme='light'] .technologies__logo {
  filter: none;
}

html[data-theme='dark'] .brand__logo {
  filter: invert(0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: baseline;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-bg-color) transparent;
}

body {
  background: linear-gradient(90deg, #1cb5e0, #000046);
  /* Darker Deep Ocean gradient */
  background-attachment: fixed;
  font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 2rem;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-bg-color);
  border-radius: 50rem;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

a:hover {
  color: var(--primary-color);
}

i {
  color: var(--icon-color);
}

b {
  font-weight: 400;
}

h1 {
  font-size: 2.5rem;
  font-weight: 200;
}

h2 {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.4rem;
}

h3 {
  font-size: 1.55rem;
  text-align: left;
}

h4 {
  color: var(--primary-color);
  font-weight: 400;
  font-size: 1.15rem;
  text-align: left;
}

h1,
h2,
h3 {
  font-family: 'League Spartan', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  color: var(--title-color);
  font-weight: 200;
}

p,
span,
li {
  font-size: 1rem;
}

p {
  text-align: justify;
}

.header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.5rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary-border-color);
}

.header__toggle {
  display: flex;
  justify-content: flex-end;
}

.header__brand .brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  transform: scale(2.5);
  background-color: #ffffff;
  border-radius: 0.3rem;
  padding: 0.15rem;
  box-shadow: 0px 0px 8px rgba(32, 172, 216, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.header__brand .brand__logo:hover {
  transform: scale(2.8);
  box-shadow: 0px 0px 15px rgba(32, 172, 216, 0.9);
}

.brand__link {
  display: flex;
  justify-content: center;
  align-items: center;
}

#toggleTheme {
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: ease-in-out .4s;
}


.header__toggle {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* Vertically center items */
  gap: 1rem;
  /* Space between language and theme toggle */
}

.language-select select {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-border-color);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(5px);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Add custom dropdown arrow if desired, or keep default */
}

.language-select select option {
  background: var(--secondary-bg-color);
  color: var(--text-color);
}

.menu {
  display: flex;
  align-items: center;
  background: var(--primary-bg-color);
}

.menu__item {
  width: 100%;
}

.menu__link {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.menu--mobile {
  width: 100vw;
  position: fixed;
  bottom: 0;
  left: 0;
  /* Ensure it starts from left edge */
  justify-content: space-between;
  border-top: 1px solid var(--primary-border-color);
  background: var(--primary-bg-color);
  /* Ensure background is visible */
  backdrop-filter: blur(10px);
  /* Enhance readability */
  z-index: 100;
  /* Ensure it sits above other content */
}

.menu--mobile .menu__link {
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.menu__link.active .menu__icon,
.menu__link.active .menu__text,
.menu__link:hover .menu__icon,
.menu__link:hover .menu__text {
  color: var(--primary-color);
}

.menu__icon,
.menu__text {
  color: var(--text-color);
}

.menu__icon {
  font-size: 1.5rem;
}

.menu__text {
  font-size: .75rem;
  text-transform: uppercase;
}

.header__nav {
  display: none;
}

.menu--principal {
  gap: 1rem;
  background: transparent;
}

.menu--social {
  gap: 1rem;
  background: transparent;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  background: transparent;
  border-radius: 3.125rem;
  border: none;
  padding: 0.875rem 1.5rem;
  transition: ease-in-out .3s;
  cursor: pointer;
  color: var(--primary-color);
}

.btn:hover {
  transform: scale(1.05);
  transition: ease-in-out .3s;
}

.btn span,
.btn i {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.btn--primary span {
  color: var(--primary-color);
}

.btn--primary {
  border: 1px solid var(--primary-color);
}



main,
.projects,
.about,
.contact {
  padding: 1.5rem 1rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main__content1 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.home__content {
  display: flex;
  flex-direction: column-reverse;
  /* Avatar on top */
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.home__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.home__text p {
  text-align: justify;
}

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

.home__avatar {
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-border-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.home__avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(93, 224, 230, 0.4);
  border-color: var(--primary-color);
}

.home__text,
.about__description,
.card__body,
.about__card {
  background: var(--secondary-bg-color);
  /* Add background for readability */
  padding: 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(5px);
  border: 1px solid var(--primary-border-color);
}

.technologies {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--secondary-bg-color);
  backdrop-filter: blur(5px);
  width: 100vw;
}

.technologies h2 {
  font-size: 2rem;
  text-transform: none;
  letter-spacing: normal;
  text-align: start;
}

.technologies__list {
  display: flex;
  flex-flow: row wrap;
  gap: .5rem;
}

.technologies__item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 4.8rem;
  height: 4.8rem;
  aspect-ratio: 1/1;
  border: 1px solid var(--secondary-border-color);
  border-radius: 50rem;
}

.technologies__logo {
  height: 2.4rem;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.projects__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.projects__card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card__cover {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
}

.card__gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-bg-color) transparent;
}

.card__gallery::-webkit-scrollbar {
  height: 6px;
}

.card__gallery::-webkit-scrollbar-track {
  background: transparent;
}

.card__gallery::-webkit-scrollbar-thumb {
  background: var(--secondary-border-color);
  border-radius: 3px;
}

.card__screenshot {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 2px solid var(--primary-border-color);
  scroll-snap-align: start;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card__screenshot:hover {
  transform: scale(1.03);
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(93, 224, 230, 0.3);
}

.card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1rem;
}

.card__description {
  color: var(--title-color);
}

.card__list,
.about__list {
  margin-left: 1.25rem
}

.card__item,
.about__item {
  list-style: disc;
}

.card__buttons,
.description__buttons {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.card__buttons .btn {
  padding: .65rem 1.25rem;
}

.card__buttons .btn span {
  font-size: 1rem;
}

.card__body .technologies__list {
  gap: .75rem;
}

.card__body .technologies__item {
  width: 4rem;
  height: 4rem;
}

.card__body .technologies__logo {
  height: 2rem;
}

.projects .btn {
  width: auto;
  margin: auto;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem
}

.about__content1,
.about__content2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
}

.about__photo {
  width: 70%;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 50rem;
  border: 1px solid var(--primary-border-color);
  transition: all 0.3s ease;
}

.about__photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(93, 224, 230, 0.4);
  border-color: var(--primary-color);
}

.about__description {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.about__icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about__icons i {
  font-size: 1.25rem;
}

.about__content2 .col1,
.about__content2 .col2 {
  display: flex;
  flex-direction: column;
  text-align: justify;
  gap: 1rem;
}

.about__content2 .col1 .row1,
.about__content2 .col1 .row2 {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.experience__preview {
  position: relative;
  width: 100%;
  height: 180px;
  margin-top: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--secondary-border-color);
  background: var(--secondary-bg-color);
}

.experience__preview iframe {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: 0 0;
  border: none;
  pointer-events: none;
}

.preview__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.experience__preview:hover .preview__overlay,
.preview__overlay:focus {
  opacity: 1;
}

.accordion__header {
  width: 100%;
  display: flex;
  padding: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--primary-border-color);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: ease-in-out .3s;
}

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

.accordion__header.start {
  border-radius: 0.25rem 0.25rem 0rem 0rem;
}

.accordion__header.end,
.accordion__item.active .accordion__body.end {
  border-radius: 0rem 0rem 0.25rem 0.25rem;
}

.accordion__item.active .accordion__header.end {
  border-radius: 0;
}

.accordion__header.start.end {
  border-radius: 0.25rem;
}

.accordion__item.active .accordion__header.start.end {
  border-radius: 0.25rem 0.25rem 0 0;
}

.accordion__item.active .accordion__body.start.end {
  border-radius: 0 0 0.25rem 0.25rem;
}

.accordion__body {
  display: none;
  padding: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  border: 1px solid var(--primary-border-color);
}

.accordion__item.active .accordion__header {
  background: var(--secondary-bg-color);
}

.accordion__item.active .accordion__body {
  display: flex;
}

.accordion__item.active .bi-caret-down-fill {
  transform: rotate(180deg);
}

.accordion__year {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--title-color);
  background: var(--secondary-bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 2rem;
}

.accordion__year:first-child {
  margin-top: 0;
}

.certificate__container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.certificate__icon {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.certificate__img {
  width: 120px;
  height: auto;
  border-radius: 0.5rem;
  border: 2px solid var(--primary-border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.certificate__img:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(93, 224, 230, 0.3);
}

.certificate__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--primary-color);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-top: 0.25rem;
  cursor: pointer;
}

.certificate__link:hover {
  background: var(--primary-color);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(93, 224, 230, 0.3);
}

.certificate__link i {
  font-size: 1rem;
}

.certificate__link span {
  font-size: 0.85rem !important;
  text-transform: none;
}

.courses__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 2px solid var(--primary-border-color);
  padding-left: 1rem;
}

.courses__list p {
  font-size: 0.95rem;
  text-align: left;
}

.course__description {
  font-size: 0.85rem !important;
  opacity: 0.85;
  line-height: 1.4;
  text-align: justify;
  margin-top: 0.25rem;
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--primary-border-color);
  border-bottom: 1px solid var(--primary-border-color);
}

.contact p {
  text-align: center;
}

.contact .btn {
  width: auto;
}

.contact .email {
  text-transform: lowercase;
}

footer {
  margin-bottom: 2rem;
}

footer p {
  font-size: .875rem;
  text-align: center;
  padding: 1rem;
}

.footer__ai {
  font-size: .75rem;
  opacity: 0.7;
  padding-top: 0 !important;
}

/* Responsividade */
@media (min-width: 768px) {
  .header {
    position: fixed;
    border-bottom: 1px solid var(--primary-border-color);
    padding: 1rem 6rem;
    background: transparent;
    backdrop-filter: blur(10px);
  }



  .nav--mobile {
    display: none;
  }

  .header__nav {
    display: flex;
  }

  .header__nav,
  .header__toggle {
    min-width: 30%;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3rem;
  }

  main,
  .projects,
  .about {
    padding: 6rem 4rem 3rem 4rem;
  }

  .contact {
    padding: 3rem;
  }

  .contact p {
    width: 80%;
  }

  .main__content1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .technologies {
    padding: 1rem 4rem;
    margin-top: -1rem;
  }

  footer {
    margin: 0;
  }
}

@media (min-width: 992px) {
  .projects__card {
    flex-direction: row;
  }

  .projects__card.card--reverse {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .card__cover {
    width: 55%;
  }

  .card__gallery {
    flex: 0 0 55%;
    max-width: 55%;
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }

  .card__screenshot {
    width: 30%;
    min-width: 150px;
  }

  .about {
    gap: 5rem;
  }

  .about__content1 {
    display: grid;
    grid-template-columns: 40% 60%;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4rem;
  }

  .about__content2 {
    display: flex;
    /* Changed from grid to flex column for better flow with variable heights */
    flex-direction: column;
    gap: 2rem;
    /* Add consistent gap between cards */
  }

  .about__content2 .col1,
  .about__content2 .col2 {
    width: 100%;
  }

  /* Make row4 (Skills) and row5 (Interests) span full width or sit alongside each other */
  .row4,
  .row5 {
    width: 100%;
  }

  .about__description h2 {
    text-align: left;
  }

  .description__buttons {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) {

  h2 {
    font-size: 4rem;
  }

  h3 {
    font-size: 2.5rem;
  }

  main {
    padding: 6rem 4rem 2rem;
  }

  .main__content1 .btn {
    width: auto;
  }

  .technologies {
    flex-direction: row;
    justify-content: space-between;
    padding: 3rem 6rem 1rem;
  }

  .technologies h2 {
    font-size: 3rem;
    width: 55%;
  }

  .technologies__list {
    gap: 1rem;
  }

  .technologies__item {
    width: 6rem;
    height: 6rem;
  }

  .technologies__logo {
    height: 3rem;
  }

  p,
  span,
  li {
    font-size: 1.15rem;
  }

  .card__buttons .btn,
  .description__buttons .btn {
    width: auto;
  }
}

@media (min-width: 1400px) {
  h1 {
    font-size: 6.25rem;
  }

  h2 {
    font-size: 4.5rem;
  }

  h3 {
    font-size: 3.25rem;
  }

  .header {
    padding: 1rem 8rem;
  }

  main {
    padding: 6rem 8rem 2rem;
  }

  .technologies,
  .projects,
  .about {
    padding: 4rem 8rem 2rem;
  }

}

@media (min-width: 992px) {
  .home__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
  }

  .home__text {
    width: 60%;
    align-items: flex-start;
  }

  .home__image-container {
    width: 40%;
    justify-content: center;
    align-items: center;
  }

  .home__avatar {
    width: 25rem;
    height: 25rem;
  }
}

.skills__container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill__tag {
  background: var(--secondary-bg-color);
  border: 1px solid var(--primary-border-color);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  backdrop-filter: blur(5px);
  transition: transform 0.2s, border-color 0.2s;
}

.skill__tag:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.interests__list {
  display: flex;
  flex-direction: column;
  /* Default to column for text items */
  gap: 1rem;
  margin-top: 1rem;
}

/* Specific override for contact section social links */
.contact .interests__list {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.interest__item,
.interest__item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Consistent gap */
  width: 100%;
  /* Default full width */
  text-decoration: none;
  color: var(--text-color);
}

/* Override width for contact items */
.contact .interest__item,
.contact .interest__item a {
  width: auto;
  gap: 0.5rem;
}

.interest__item {
  background: var(--secondary-bg-color);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--primary-border-color);
  transition: transform 0.2s;
}

/* Make items slightly more compact on hover/interaction */
.interest__item:hover {
  transform: translateY(-2px);
  /* Lift up instead of slide right for row layout */
  border-color: var(--primary-color);
}

.interest__item i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation-name: zoom;
  animation-duration: 0.6s;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-pdf {
  display: none;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  border: none;
  background: #fff;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  font-size: 1.2rem;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
}

/* Add pointer to clickable images */
.home__avatar,
.about__photo,
.card__cover {
  cursor: zoom-in;
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}

/* ===== ASCII Art Decorative Section ===== */
.ascii-art-section {
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  overflow: hidden;
}

.ascii-art__title {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  font-family: 'League Spartan', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 200;
  color: var(--title-color);
}

.ascii-art__container {
  max-width: fit-content;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(28, 181, 224, 0.3);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 0 30px rgba(28, 181, 224, 0.12),
    0 0 60px rgba(0, 0, 70, 0.08),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 181, 224, 0.3) transparent;
}

html[data-theme='light'] .ascii-art__container {
  background: rgba(220, 240, 245, 0.7);
  border: 1px solid rgba(0, 74, 173, 0.25);
  box-shadow:
    0 0 20px rgba(0, 74, 173, 0.08),
    0 0 40px rgba(0, 0, 70, 0.04),
    inset 0 0 30px rgba(200, 220, 240, 0.3);
}

html[data-theme='light'] .ascii-art__container:hover {
  box-shadow:
    0 0 40px rgba(0, 74, 173, 0.15),
    0 0 80px rgba(0, 0, 70, 0.08),
    inset 0 0 30px rgba(200, 220, 240, 0.3);
  border-color: rgba(0, 74, 173, 0.4);
}

html[data-theme='light'] .ascii-art__content {
  color: #001a3a;
  background: linear-gradient(135deg,
      #c2185b 0%,
      #d500f9 8%,
      #aa00ff 16%,
      #6200ea 24%,
      #304ffe 32%,
      #0091ea 40%,
      #00897b 48%,
      #2e7d32 56%,
      #f9a825 64%,
      #e65100 72%,
      #c62828 80%,
      #c2185b 88%,
      #d500f9 100%);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: asciiGradient 10s linear infinite;
  filter: drop-shadow(0 0 3px rgba(98, 0, 234, 0.4)) drop-shadow(0 0 6px rgba(197, 17, 98, 0.3));
}

.ascii-art__container:hover {
  box-shadow:
    0 0 50px rgba(28, 181, 224, 0.25),
    0 0 100px rgba(0, 0, 70, 0.15),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(28, 181, 224, 0.5);
}

.ascii-art__container::-webkit-scrollbar {
  height: 8px;
}

.ascii-art__container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.ascii-art__container::-webkit-scrollbar-thumb {
  background: rgba(28, 181, 224, 0.4);
  border-radius: 4px;
}

.ascii-art__container::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 181, 224, 0.6);
}

.ascii-art__content {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.35rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  display: inline-block;
  color: #ffffff;
  background: linear-gradient(135deg,
      #ff6ec7 0%,
      #ff3cac 8%,
      #e040fb 16%,
      #7c4dff 24%,
      #448aff 32%,
      #00e5ff 40%,
      #1de9b6 48%,
      #76ff03 56%,
      #ffea00 64%,
      #ff9100 72%,
      #ff3d00 80%,
      #ff6ec7 88%,
      #e040fb 100%);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: asciiGradient 10s linear infinite;
  filter: drop-shadow(0 0 5px rgba(28, 181, 224, 0.7)) drop-shadow(0 0 10px rgba(224, 64, 251, 0.4));
  user-select: none;
  text-shadow: none;
}

@keyframes asciiGradient {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 100%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 0%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ASCII Art Responsive adjustments */
@media (min-width: 768px) {
  .ascii-art-section {
    padding: 4rem 4rem;
  }

  .ascii-art__title {
    font-size: 3rem;
  }

  .ascii-art__content {
    font-size: 0.45rem;
    line-height: 1.05;
  }
}

@media (min-width: 1200px) {
  .ascii-art__title {
    font-size: 4rem;
  }

  .ascii-art__content {
    font-size: 0.55rem;
    line-height: 1.1;
  }
}

@media (min-width: 1400px) {
  .ascii-art-section {
    padding: 4rem 8rem;
  }

  .ascii-art__content {
    font-size: 0.65rem;
    line-height: 1.1;
  }
}