@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;500;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: #493461;
  background-color: #d6b8ee;
  background-image: url(./images-compressed/watercolor-1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

a:link,
a:visited {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: #ff008c;
}

section {
  min-height: 100vh;
  scroll-margin-top: 8rem; /* Adjust this value to match the height of your fixed navbar */
}

section:before {
  content: "";
  display: block;
  height: 2rem;
  margin-top: -1rem; /* Negative margin to offset the scroll position */
  visibility: hidden;
}

section h2 {
  padding-top: 4.8rem;
}

.githubLink {
  font-size: 1.6rem;
  text-align: center;
  width: 420px;
  margin: 0 auto;
  margin-bottom: 42px;
}

/* *** END DARK THEME STYLES *** */

h2 {
  font-size: 3.6rem;
  font-weight: 300;
  margin-top: 3.2rem;
  margin-bottom: 3.2rem;
  /* text-align: center; */
  text-transform: uppercase;
}

/* nav styles */
.header {
  background-color: #eba5fcbe;
  width: 100%;
  height: 8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.8rem;

  position: fixed;
  z-index: 1000;
}

.header a:link,
.header a:visited {
  color: #ff008c;
}

.header a:hover,
.header a:active,
#colorToggle:hover {
  color: #7ae649;
}

a.header-link-home:link,
a.header-link-home:visited,
.main-nav-list li a:link,
.main-nav-list li a:visited {
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold",
    sans-serif;
  font-size: 2.4rem;
  text-decoration: none;
}

.main-nav-list {
  display: flex;
  gap: 36px;
  padding: 12px;
  margin-bottom: 0;
}

.main-nav-list li {
  list-style: none;
}

.main-nav-list li a.main-nav-link:link,
.main-nav-list li a.main-nav-link:visited {
  text-decoration: none;
}

.btn-mobile-nav {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;

  display: none;
}
.btn-mobile-nav .icon-mobile-nav {
  height: 48px;
  width: 48px;
  color: #ff008c;
}

.icon-mobile-nav-close {
  height: 48px;
  width: 48px;
  display: none;
  color: #ff008c;
}

.nav-open .icon-mobile-nav {
  display: none;
}

.nav-open .icon-mobile-nav-close {
  display: block;
}

.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  background-color: #040330b2;
  height: 70px;
  padding-top: 0;
  padding-bottom: 0;
  z-index: 999;
}

/* hero */
button#colorToggle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  cursor: pointer;
  background: transparent;
  /* background-color: rgb(57, 31, 246); */
  border: none;
  color: #ff008c;
  /* padding: 8px 12px; */

  /* position: absolute; */
  /* right: 5%; */
  /* top: 5%; */
}

#colorToggle .color-theme-icon {
  background: transparent;
}

#hero {
  position: relative;
  height: 100vh;
  min-height: 64rem;
  background-image: linear-gradient(
      to bottom,
      rgba(232, 231, 239, 0.651),
      rgba(206, 199, 222, 0.486)
    ),
    url(./images-compressed/watercolor-1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding-top: 4rem;
}

.hero-flex {
  width: 80%;
  max-width: 120rem;
  /* height: 100%; */
  /* display: flex; */
  /* flex-direction: column; */
  /* justify-content: center; */
  /* gap: 2.4rem; */
  /* padding-top: 6.4rem;
  padding-bottom: 6.4rem; */

  margin: 0 auto;
  /* text-align: center; */
  transform: translateY(50%);
}

.hero-flex h1 {
  color: #ff008c;
  display: inline-block;
  font-size: 9.6rem;
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold",
    sans-serif;
  font-weight: 700;
  /* word-spacing: -1.6rem; */
}

#hero p {
  color: rgb(22, 5, 146);
}

.project h3 {
  color: rgb(57, 31, 246);
}

.hero-paragraph {
  width: 80%;
  max-width: 48rem;
  font-size: 2.4rem;
  margin-bottom: 3.2rem;
  color: #493461;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-flexbox {
  display: flex;
  justify-content: flex-start;
  gap: 3.2rem;
  align-items: center;
  max-width: 60rem;
}

.btn.hero-btn:link,
.btn.hero-btn:visited {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 2rem;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.3s ease;
  background-color: #a541ac;
  display: flex;
  padding: 1.6rem 2.4rem;
  justify-content: center;
  align-items: center;
  border-radius: 32px;
  border: 1px solid #fff;
  width: 50%;
  text-wrap: nowrap;
}

.btn.hero-btn:hover,
.btn.hero-btn:active {
  color: #7ae649;
  border-color: #7ae649;
  background-color: #3d1640;
  /* background-color: rgb(194, 7, 194); */
}

section h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 4.8rem;
  text-align: center;
}
/* PROJECTS SECTION */
#projects,
#about {
  /* background: #170211cf; */
  width: 100%;
  max-width: 120rem;
  background: #12023d78;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.projects-flexgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2.4rem;
  padding: 4.8rem;
}

.project {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.4rem;
  /* background-color: #f3e8ff; */
  border-radius: 0.5rem;
  border: 3px solid #c966da;
  box-shadow: 0px 4px 4px 0px #00000040;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 24rem;

  display: flex;
  justify-content: center;
  align-items: center;
}

.btn.project:hover {
  border: 2px solid lime;
}

.project h3 {
  font-size: 2.4rem;
  color: #eee;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* first project div needs background-image */
.project:nth-child(1) {
  background-image: linear-gradient(to bottom, #232323a0, #03030390),
    url(./images-compressed/mybenefits_home.png);
}
.project:nth-child(2) {
  background-image: linear-gradient(to bottom, #232323a0, #03030390),
    url(./images-compressed/nmpsia_authform.png);
}
.project:nth-child(3) {
  background-image: linear-gradient(to bottom, #232323a0, #03030390),
    url(./images-compressed/nmpsia_contact_db.png);
}
.project:nth-child(4) {
  background-image: linear-gradient(to bottom, #232323a0, #03030390),
    url(./images-compressed/wildfire-form-scrnsht.png);
}
.project:nth-child(5) {
  background-image: linear-gradient(to bottom, #232323a0, #03030390),
    url(./images-compressed/packngo.png);
}
.project:nth-child(6) {
  background-image: linear-gradient(to bottom, #232323a0, #03030390),
    url(./images-compressed/new-nmpsia-home-proto.png);
}
.project:nth-child(7) {
  background-image: linear-gradient(to bottom, #232323a0, #03030390),
    url(./images-compressed/new-nmpsia-home-proto.png);
}

.github-link {
  text-align: center;
  font-size: 1.6rem;
  margin-top: 5.4rem;
  padding-bottom: 4.2rem;
}

.modal {
  font-size: 1.8rem;
}

.modal-dialog {
  max-width: 80rem;
  margin: 0 auto;
  margin-top: 3.2rem;
  margin-bottom: 3.2rem;
}

.modal-content {
  background-color: #240d2ddc;
  padding: 0.4rem 1.2rem;
  color: #f7dcfc;
}

.modal-header {
  border-bottom: 1px solid #c966da7a;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0.8rem;
}

.modal-header button.btn-close {
  background-color: transparent;
  border: none;
  color: #f7dcfc;
  font-size: 2.4rem;
}

.modal-header h1 {
  font-size: 3.2rem;
  line-height: 1;
}

.project-description {
  /* font-size: 2rem; */
  line-height: 1.2;
  margin-bottom: 1.6rem;
}

.modal-footer {
  border-top: 1px solid #c966da7a;
  margin-top: 1.2rem;
  padding: 1.6rem 0;
}

.modal-footer .btn {
  font-size: 1.8rem;
  background-color: #ff008c;
  color: #fff;
  cursor: pointer;
  border: none;
  padding: 1.2rem 2.4rem;
}
/* ABOUT SECTION */

#about .flex-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6rem;
}

.about-headshot {
  width: 50%;
  max-width: 36rem;
}

#about .text-side {
  width: 50%;
}

#about .blurb {
  /* text-indent: 0.8rem; */
  font-size: 2rem;
  line-height: 1.4;
  margin: 0 auto;
}

/* CONTACT SECTION */
#contact {
  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.8)
    ),
    url(./images/paper_plane.png);
  background-repeat: no-repeat;
  background-size: fit;
  background-attachment: fixed;
  background-position: bottom;
  padding: 4rem 0;
  border-radius: 1.2rem;
  margin: 2rem auto;
  max-width: 120rem;
  box-shadow: 0px 4px 4px 0px #00000040;
}
#contact img {
  width: 42rem;
  max-width: 600px;
}

#contact .blurb {
  display: inline-block;
  font-size: 1.8rem;
  max-width: 66rem;
  text-align: center;
}

#contact h2 {
  text-align: center;
  margin-bottom: 5.6rem;
}

#contact .flex-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3.6rem;
  padding-bottom: 4.8rem;
}

#contact h3 {
  font-size: 3.2rem;
  margin-bottom: 1.6rem;
  text-align: right;
}

#contact p.contact-blurb {
  text-align: right;
  font-size: 2.4rem;
  margin-bottom: 1.6rem;
}

button.btn.portal {
  font-family: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold",
    sans-serif;
  font-size: 2.4rem;
  background-color: #ff008c;
  color: #fff;

  cursor: pointer;
  border: none;
  padding: 1.2rem 2.4rem;
  margin: 0 auto;
  width: 100%;
  transition: all 0.3s ease;
}

button.btn.portal:hover {
  background-color: rgb(230, 9, 230);
  transform: translateY(-2px);
}

.captcha-box {
  display: none;
}

#bot-msg {
  width: 100%;
  font-size: 1.8rem;
  color: #a663cc;
}

.captcha-box p {
  font-size: 1.6rem;
  text-align: right;
  margin-top: 1.4rem;
}

#iLuvTech {
  font-size: 2rem;
  font-style: italic;
}

.captcha-box .form {
  /* background-color: #b9faf8; */
  width: 100%;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form label {
  font-size: 1.6rem;
  color: #d24fdc;
  text-transform: uppercase;
  font-weight: 600;
}

.form input {
  font-size: 1.6rem;
  width: 100%;
  height: 3.6rem;
  padding: 0.8rem;
  border: 1px solid #ff008c;
  outline: none;
}

.form button.btn-primary {
  background-color: #a541ac;
  color: #fff;
  cursor: pointer;
  /* height: 3.2rem; */
  font-size: 1.6rem;
  border: none;
  border-radius: 0.4rem;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.3s ease;
}

.form-text {
  font-size: 1.2rem;
  color: #eee;
}

.form.contact {
  background-color: #12023d78;
  padding: 2.4rem;
  border-radius: 0.8rem;
  box-shadow: 0px 4px 4px 0px #00000040;
  margin: 0 auto;
  margin-bottom: 12rem;
}

#hidden {
  display: none;
}

#contact .email:link,
#contact .email:visited {
  text-align: right;
  font-size: 2rem;
  letter-spacing: 1px;
  text-decoration: none;
}
#contact .email:hover,
#contact .email:active {
  text-decoration: underline;
}

.social-media-box {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  justify-items: center;
  gap: 1.2rem;
}

.social-media-icon {
  font-size: 3.2rem;
  /* margin-right: 1.2rem; */
}

footer {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 7rem;
  background-color: #121126c5;
}

footer p {
  font-size: 1.6rem;
  color: #d6b8ee;
}

/* LIGHT MODE STYLES */
@media (prefers-color-scheme: light) {
  .dark {
    background-color: transparent;
    color: #493461;
  }

  .dark #hero {
    background-image: linear-gradient(
        to bottom,
        rgba(232, 231, 239, 0.651),
        rgba(206, 199, 222, 0.486)
      ),
      url(./images-compressed/watercolor-1.jpg);
  }

  .dark #hero p {
    color: rgb(22, 5, 146);
  }

  .dark .hero-paragraph {
    color: rgba(255, 255, 255, 0.698);
  }

  .dark a:link,
  .dark a:visited {
    color: #ff008c;
  }

  .dark .header {
    background-color: #eba5fcbe;
  }

  .dark .header a:link,
  .dark .header a:visited {
    color: #ff008c;
  }

  .dark .header a:hover,
  .dark .header a:active {
    color: #7ae649;
  }

  .dark .main-nav {
    background-color: #d6b8eecf;
  }

  .dark #projects,
  .dark #about {
    background: rgba(255, 255, 255, 0.85);
    color: #493461;
  }

  .dark .form.contact {
    background-color: rgba(255, 255, 255, 0.85);
    color: #493461;
  }

  .dark .form-text {
    color: #493461;
  }

  .dark .project h3 {
    color: #fff;
  }

  .dark .modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    color: #493461;
  }

  .dark .modal-header {
    border-bottom: 1px solid #c966da;
  }

  .dark .modal-footer {
    border-top: 1px solid #c966da;
  }

  .dark .modal-header button.btn-close {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #493461;
    transition: all 0.3s ease;
  }

  .dark .modal-header button.btn-close:hover {
    background-color: #ff008c;
    color: #ffffff;
    border-color: #ff008c;
    transform: scale(1.1);
  }

  .dark footer {
    background-color: rgba(255, 255, 255, 0.8);
  }

  .dark footer p {
    color: #493461;
  }

  .dark .github-link {
    color: #493461;
  }

  .dark .github-link a {
    color: #ff008c;
  }
}

/* DARK MODE STYLES */
@media (prefers-color-scheme: dark) {
  .dark {
    background-color: #18063dac;
    color: #dadada;
  }

  .dark #hero {
    height: 100vh;
    min-height: 64rem;
    background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85),
      rgba(2, 2, 127, 0.349)
    );
    background-repeat: no-repeat;
    background-size: cover;
  }

  .dark #hero p {
    color: rgb(22, 5, 146);
  }

  .dark .hero-paragraph {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  }

  .dark a:link,
  .dark a:visited {
    color: #ff008c;
  }

  .dark .header {
    background-color: #121126;
  }

  .dark .header a:link,
  .dark .header a:visited {
    color: #ff008c;
  }

  .dark .header a:hover,
  .dark .header a:active {
    color: #7ae649;
  }

  .dark .main-nav {
    background-color: #121126ef;
  }

  .dark #contact {
    background-image: linear-gradient(
        to bottom,
        rgba(18, 2, 61, 0.9),
        rgba(18, 2, 61, 0.8)
      ),
      url(./images/paper_plane.png);
  }

  .dark .form.contact {
    background-color: rgba(18, 2, 61, 0.85);
    color: #f7dcfc;
  }

  .dark .form-text {
    color: #f7dcfc;
  }

  .dark .modal-header button.btn-close {
    color: #666666;
    background-color: transparent;
    background-image: none;
    border: none;
    transition: color 0.3s ease;
    position: relative;
  }

  .dark .modal-header button.btn-close::before {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    font-weight: bold;
    color: #666666;
    transition: color 0.3s ease;
  }

  .dark .modal-header button.btn-close:hover::before {
    color: #ff008c;
  }
}

/* MEDIA QUERIES */

@media screen and (max-width: 848px) {
  #contact .flex-container {
    flex-direction: column-reverse;
  }

  #contact p,
  #contact p.contact-blurb {
    text-align: center;
  }

  #contact .email:link,
  #contact .email:visited {
    text-align: center;
  }

  .social-media-box {
    gap: 1rem;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .btn-mobile-nav {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    background-color: #d6b8eecf;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 400ms ease-in-out;

    /* hide nav */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .main-nav-list {
    flex-direction: column;
    gap: 48px;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 32px;
  }

  .main-nav-list {
    width: 100%;
    text-align: center;
  }

  .main-nav-list li a:link,
  .main-nav-list li a:visited {
    font-size: 42px;
  }

  #projects h2 {
    text-align: center;
    margin: 0 auto;
  }

  #projects .project {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
  }

  #contact img {
    width: 32rem;
  }
}

@media screen and (max-width: 680px) {
  header span.logo {
    font-size: 2.2rem;
  }

  .nav-list-item a:link,
  .nav-list-item a:visited {
    font-size: 1.8rem;
  }

  #about .flex-container {
    flex-direction: column;
    align-items: center;
  }

  .about-headshot {
    width: 90%;
    max-width: 42rem;
  }

  #about .text-side {
    width: 90%;
    text-align: center;
  }
  #about .text-side p {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 648px) {
  #contact p {
    font-size: 2rem;
  }
  #contact .email:link,
  #contact .email:visited {
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-decoration: none;
  }
}

@media screen and (max-width: 580px) {
  header {
    padding: 0 0.8rem;
  }
  nav span.logo {
    font-size: 2.2rem;
  }
  .nav-list-item a:link,
  .nav-list-item a:visited {
    font-size: 1.6rem;
  }

  button {
    right: 4px;
    top: 4px;
  }

  .hero-flex {
    width: 100%;
    transform: translateY(8rem);
  }

  .hero-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.4rem;
  }

  .hero-flex h1 {
    text-align: center;
  }

  .hero-paragraph {
    width: 100%;
    text-align: center;
  }

  .hero-flex .btn-flexbox {
    flex-direction: column;
    gap: 3.2rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .hero-flex .btn-flexbox .btn.hero-btn:link,
  .hero-flex .btn-flexbox .btn.hero-btn:visited {
    text-align: center;
    width: 100%;
    font-size: 2.6rem;
    /* font-size: 4.2rem; */
  }

  #projects h2 {
    margin-bottom: 3.6rem;
  }

  #projects .container {
    grid-template-columns: 1fr;
  }

  #contact h2 {
    text-align: center;
    margin: 0 auto;
    margin-bottom: 3.6rem;
  }

  #contact h3,
  #contact p,
  #contact .email:link,
  #contact .email:visited {
    text-align: center;
  }

  .social-media-box {
    justify-content: center;

    gap: 1.2rem;
  }
}

@media screen and (max-width: 487px) {
  .btn-flexbox {
    flex-direction: column;
    width: 96%;
    margin: 0 auto;
  }

  .btn.hero-btn:link,
  .btn.hero-btn:visited {
    font-size: 2.6rem;
    text-align: center;
  }

  #projects .flex-container,
  #contact img {
    padding: 0.4rem;
  }

  .form {
    padding: 0 0.4rem;
  }

  .form input {
    /* font-size: 3.2rem; */
    width: 100%;
    /* height: 3.6rem; */
  }
}

@media screen and (max-width: 400px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 358px) {
  .hero-flex h1 {
    font-size: 6.4rem;
  }
  .hero-paragraph {
    font-size: 2.4rem;
  }
}

.art-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.4rem;
  margin: 0 auto;
  max-width: 1100px;
  padding: 2rem 0;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.art-piece {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 #0002;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: block;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
  animation: artPieceEntrance 0.6s ease-out forwards,
    float 6s ease-in-out infinite;
}

.art-piece:nth-child(1) {
  animation-delay: 0.1s;
}
.art-piece:nth-child(2) {
  animation-delay: 0.2s;
}
.art-piece:nth-child(3) {
  animation-delay: 0.3s;
}
.art-piece:nth-child(4) {
  animation-delay: 0.4s;
}
.art-piece:nth-child(5) {
  animation-delay: 0.5s;
}
.art-piece:nth-child(6) {
  animation-delay: 0.6s;
}
.art-piece:nth-child(7) {
  animation-delay: 0.7s;
}

@keyframes artPieceEntrance {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.art-piece:hover {
  animation: none;
  transform: scale(1.08) rotate(2deg) translateY(-4px);
  box-shadow: 0 8px 40px 0 #0006;
  filter: brightness(1.1) contrast(1.05);
}

.art-piece:active {
  transform: scale(1.05) rotate(1deg);
  transition: all 0.1s ease;
}

/* Pulse effect for the gallery title */
#art-gallery h2 {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Smooth entrance for the entire gallery section */
#art-gallery {
  animation: galleryEntrance 1s ease-out;
  opacity: 0;
  transform: translateY(50px);
}

#art-gallery.gallery-revealed {
  animation: galleryEntrance 1s ease-out forwards;
}

@keyframes galleryEntrance {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced art piece animations */
.art-piece.animate-in {
  animation: artPieceEntrance 0.6s ease-out forwards,
    float 6s ease-in-out infinite;
}

/* Shimmer effect for art pieces */
.art-piece::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
  pointer-events: none;
  border-radius: 12px;
}

.art-piece:hover::before {
  left: 100%;
}

#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
  animation: lightboxFadeIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#lightbox-overlay[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 8px 32px #000a;
  background: #fff;
  animation: lightboxImageZoom 0.4s ease-out;
  transform-origin: center;
}

@keyframes lightboxImageZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-description {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  max-width: 80%;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.4;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: descriptionSlideUp 0.5s ease-out 0.3s both;
  z-index: 2100;
}

@keyframes descriptionSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive adjustments for description */
@media screen and (max-width: 768px) {
  .lightbox-description {
    bottom: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
    max-width: 90%;
  }
}

@media screen and (max-width: 480px) {
  .lightbox-description {
    bottom: 0.5rem;
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    max-width: 95%;
  }
}

#lightbox-close {
  position: absolute;
  top: 2.5rem;
  right: 3.5rem;
  font-size: 4rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2100;
  transition: all 0.3s ease;
  border: none;
  animation: closeButtonEntrance 0.5s ease-out 0.2s both;
}

@keyframes closeButtonEntrance {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

#lightbox-close:hover {
  background: #ff008c;
  color: #fff;
  outline: 2px solid #fff;
  transform: scale(1.1) rotate(90deg);
}
