/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*
      Blue: hsl(207, 90%, 61%)
      Purple: hsl(250, 66%, 75%)
      Pink: hsl(356, 66%, 75%)
      Teal: hsl(174, 63%, 62%)
  */

  --hue: 207;
  --sat: 90%;
  --lig: 61%;
  --first-color: hsl(var(--hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--hue), var(--sat), 57%); /* -4% */
  --title-color: hsl(var(--hue), 12%, 15%);
  --text-color: hsl(var(--hue), 12%, 45%);
  --text-color-light: hsl(var(--hue), 8%, 75%);
  --text-color-lighten: hsl(var(--hue), 8%, 92%);
  --body-color: hsl(var(--hue), 100%, 99%);
  --container-color: #fff;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
}

@media screen and (min-width: 968px) {
  :root {
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .3s; /* For animation dark mode */
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: 600;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== THEME ===============*/
.change-theme {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 1.25rem;
  color: var(--title-color);
  background: rgba(0,0,0,0.04);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, color .2s ease;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.change-theme:hover {
  transform: scale(1.05);
}

/* Light/dark contrast for the toggle */
.dark-theme .change-theme {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: hsl(var(--hue), 12%, 95%);
  --text-color: hsl(var(--hue), 12%, 75%);
  --body-color: hsl(var(--hue), 40%, 8%);
  --container-color: hsl(var(--hue), 24%, 12%);
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.dark-theme .button__gray {
  background-color: var(--container-color);
}

.dark-theme .button__gray:hover {
  background-color: hsl(var(--hue), 24%, 16%);
}

.dark-theme .filters__content {
  background-color: var(--container-color);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsl(var(--hue), 8%, 16%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(var(--hue), 8%, 24%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--hue), 8%, 32%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

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

/*=============== PROFILE ===============*/
.profile {
  position: relative;
  padding-top: 3.5rem;
}

.profile__container {
  row-gap: 2rem;
}

.profile__data {
  display: grid;
  text-align: center;
}

.profile__perfil {
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg, 
              hsla(var(--hue), var(--sat), var(--lig), 1) 0%, 
              hsla(var(--hue), var(--sat), var(--lig), .2) 100%);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile__perfil img {
  width: 75px;
}

.profile__border {
  border: 3.5px solid var(--first-color);
  justify-self: center;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: .75rem;
}

.profile__name {
  font-size: var(--h2-font-size);
}

.profile__profession {
  font-size: var(--smaller-font-size);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.profile__social {
  display: flex;
  justify-content: center;
  column-gap: .75rem;
}

.profile__social-link {
  font-size: 1.25rem;
  color: var(--title-color);
  transition: .3s;
}

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

.profile__info {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  column-gap: 2.5rem;
}

.profile__info-group {
  text-align: center;
}

.profile__info-number {
  font-size: var(--normal-font-size);
  margin-bottom: .25rem;
}

.profile__info-description {
  font-size: var(--smaller-font-size);
  font-weight: 500;
}

.profile__buttons, 
.profile__buttons-small {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile__buttons {
  column-gap: 1rem;
}

.profile__buttons-small {
  column-gap: .25rem;
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--first-color);
  color: #fff;
  padding: 1.15rem 1.5rem;
  border-radius: .5rem;
  transition: .3s;
  box-shadow: 0 8px 24px hsla(var(--hue), var(--sat), var(--lig), .25);
}

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

.button:hover {
  background-color: var(--first-color-alt);
}

.button__small {
  padding: .75rem;
  box-shadow: none;
}

.button__gray {
  background-color: var(--text-color-lighten);
  color: var(--title-color);
}

.button__gray:hover {
  background-color: var(--text-color-light);
}

/*=============== FILTERS TABS===============*/
.filters__content {
  margin: 2rem 0 2.5rem;
  background-color: var(--text-color-lighten);
  padding: .375rem;
  border-radius: .75rem;
  display: flex;
  justify-content: space-between;
  column-gap: .5rem;
}

.filters__button {
  width: 100%;
  border: none;
  outline: none;
  padding: 1rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-family: var(--body-font);
  font-weight: 500;
  border-radius: .75rem;
  cursor: pointer;
  background-color: transparent;
  transition: .3s;
}

.filters__button:hover {
  background-color: var(--body-color);
}

/*=============== PROJECTS ===============*/
.projects__content {
  column-count: 4;
  column-gap: 0.75rem;
  width: 98vw;
  margin-left: calc(-49vw + 50%);
}

.projects__card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: auto;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.projects__card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: 0.3s;
}

.projects__modal {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: -100%;
  left: 0;
  background: linear-gradient(180deg, 
              hsla(var(--hue), 24%, 40%, .3) 0%, 
              hsla(var(--hue), 24%, 4%, 1) 95%);
  display: grid;
  align-items: flex-end;
  padding: 1.5rem 1.25rem;
  transition: .3s;
  cursor: pointer;
}

.projects__subtitle, 
.projects__title {
  color: #fff;
}

.projects__subtitle {
  font-size: var(--smaller-font-size);
}

.projects__title {
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}

.projects__button {
  padding: .5rem;
}

.projects__card:hover .projects__modal {
  bottom: 0;
}

/*=============== SKILLS ===============*/
.skills__content {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3.5rem;
  max-width: 600px;
  margin: 0 auto;
  place-items: center;
}

.skills__title {
  font-size: var(--h3-font-size);
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

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

.skills__group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skills__data {
  display: flex;
  column-gap: .5rem;
}

.skills__data i {
  font-size: 1rem;
  color: var(--first-color);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: 500;
  line-height: 18px;
}

.skills__level {
  font-size: var(--smaller-font-size);
}

/* Hide and show projects & skills */
.filters [data-content] {
  display: none;
}

.filters__active[data-content] {
  display: block;
}

.projects__content.filters__active {
  column-count: 4;
  column-gap: 0.75rem;
}

/* Activate button filter */
.filter-tab-active {
  background-color: var(--body-color);
}

/*=============== FOOTER ===============*/
.footer__copy {
  display: block;
  margin: 2.5rem 0 2rem;
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(var(--hue), 8%, 66%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(var(--hue), 8%, 54%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--hue), 8%, 44%);
}

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

  .profile__info {
    column-gap: 1.5rem;
  }
  .profile__buttons {
    flex-direction: column;
    row-gap: 1rem;
  }

  .skills__box {
    column-gap: 1rem;
  }
}

/* Ensure projects show one per row on small/mobile screens */
@media screen and (max-width: 575.98px) {
  .projects__content,
  .projects__content.filters__active {
    column-count: 1;
    column-gap: 0.75rem;
    width: auto;
    margin-left: 0;
  }

  .projects__card {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
    break-inside: avoid-column;
  }

  .projects__card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .projects__content {
    column-count: 4;
    column-gap: 0.75rem;
  }

  .filters__content {
    width: 332px;
    margin: 3rem auto;
  }
}

@media screen and (min-width: 776px) {
  .projects__content {
    column-count: 5;
    column-gap: 0.75rem;
  }

  .skills__content {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    gap: 3rem;
  }

  .skills__box {
    flex-direction: column;
    row-gap: 1.5rem;
    column-gap: 0;
  }

  .skills__group {
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
  }
}

/* For large devices */
@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .change-theme {
    top: 1.5rem;
    right: 1.5rem;
  }

  .profile {
    padding-top: 4rem;
  }
  .profile__border {
    width: 135px;
    height: 135px;
    margin-bottom: 1rem;
  }
  .profile__perfil {
    width: 120px;
    height: 120px;
  }
  .profile__perfil img {
    width: 90px;
  }
  .profile__profession {
    margin-bottom: 1.5rem;
  }
  .profile__info {
    column-gap: 3rem;
  }
  .profile__info-description {
    font-size: var(--small-font-size);
  }
  .profile__buttons {
    column-gap: 2rem;
  }

  .projects__content {
    column-count: 6;
    column-gap: 0.75rem;
  }
  .projects__modal {
    padding: 1.5rem;
  }

  .skills__title {
    font-size: var(--normal-font-size);
    margin-bottom: 2.5rem;
  }

  .footer__copy {
    margin: 4.5rem 0 2.5rem;
  }
}

/*=============== LIGHTBOX ===============*/
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

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

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active .lightbox__overlay {
  opacity: 1;
}

.lightbox__content {
  position: relative;
  z-index: 1001;
  max-width: 30vw;
  max-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  animation: zoomIn 0.3s ease;
}

.lightbox__frame {
  position: relative;
  display: inline-block;
}

.lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: .35rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  background: rgba(0,0,0,0.6);
  transform: rotate(90deg) scale(1.03);
}

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

/* Mobile devices */
@media screen and (max-width: 768px) {
  .lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.25rem;
    padding: .25rem;
  }
  
  .lightbox__image {
    border-radius: 0;
  }
}

/* Force single-column projects layout up to 775px to cover most mobile/tablet widths */
@media screen and (max-width: 775px) {
  .projects__content.filters__active {
    /* reset column layout and use grid for consistent one-per-row */
    column-count: 1 !important;
    column-gap: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    width: auto !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .projects__card {
    width: 100% !important;
    margin-bottom: 0 !important;
    break-inside: avoid !important;
    display: block !important;
  }

  .projects__card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* On mobile: remove dark overlay gradients, disable zoom animation and hide overlay text/icon */
@media screen and (max-width: 768px) {
  .projects__modal {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .projects__subtitle,
  .projects__title,
  .projects__button {
    display: none !important;
  }

  .projects__card img {
    transition: none !important;
    transform: none !important;
    object-fit: cover;
  }

  /* Disable lightbox zoom animation on mobile */
  .lightbox__image {
    animation: none !important;
    max-width: 100% !important;
    max-height: 80vh !important;
  }
}

/*=============== MAINTENANCE OVERLAY ===============*/
.maint-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fef9f3 0%, #fdf2e9 50%, #fbe9d7 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.maint-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.maint-deco--1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(255,179,71,0.15) 0%, rgba(255,138,101,0.1) 100%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.maint-deco--2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(255,138,101,0.12) 0%, rgba(255,107,107,0.08) 100%);
  bottom: -50px;
  left: -50px;
  animation: float 6s ease-in-out infinite reverse;
}

.maint-deco--3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(255,71,87,0.1) 0%, rgba(255,138,101,0.08) 100%);
  top: 50%;
  left: 10%;
  animation: float 7s ease-in-out infinite 1s;
}

.maint-deco--4 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255,179,71,0.18) 0%, rgba(255,138,101,0.12) 100%);
  bottom: 20%;
  right: 15%;
  animation: float 5s ease-in-out infinite 0.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.maint-bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.maint-bubbles .bubble {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ffb347 0%, #ff7f7f 100%);
  border-radius: 50%;
  opacity: 0.4;
  animation: rise 4s ease-in infinite;
}

.maint-bubbles .bubble:nth-child(1) { left: 10%; animation-delay: 0s; width: 8px; height: 8px; }
.maint-bubbles .bubble:nth-child(2) { left: 25%; animation-delay: 0.8s; width: 14px; height: 14px; }
.maint-bubbles .bubble:nth-child(3) { left: 45%; animation-delay: 1.6s; }
.maint-bubbles .bubble:nth-child(4) { left: 65%; animation-delay: 2.4s; width: 10px; height: 10px; }
.maint-bubbles .bubble:nth-child(5) { left: 85%; animation-delay: 3.2s; width: 16px; height: 16px; }
.maint-bubbles .bubble:nth-child(6) { left: 55%; animation-delay: 0.5s; width: 6px; height: 6px; }

@keyframes rise {
  0% { bottom: -20px; opacity: 0; }
  20% { opacity: 0.4; }
  80% { opacity: 0.4; }
  100% { bottom: 110%; opacity: 0; }
}

.maint-content {
  text-align: center;
  position: relative;
  z-index: 10;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.coffee-cup {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.cup {
  width: 80px;
  height: 60px;
  background: linear-gradient(135deg, #5d4037 0%, #8d6e63 100%);
  border-radius: 0 0 40px 40px;
  position: relative;
  animation: tilt 3s ease-in-out infinite;
}

.cup::before {
  content: '';
  position: absolute;
  right: -18px;
  top: 10px;
  width: 20px;
  height: 25px;
  border: 4px solid #8d6e63;
  border-left: none;
  border-radius: 0 15px 15px 0;
}

.cup::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 10px;
  right: 10px;
  height: 8px;
  background: linear-gradient(135deg, #d7ccc8 0%, #efebe9 100%);
  border-radius: 50%;
}

@keyframes tilt {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.steam {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.steam span {
  width: 8px;
  height: 30px;
  background: linear-gradient(to top, rgba(139, 119, 101, 0.3), transparent);
  border-radius: 50%;
  animation: steam 2s ease-in-out infinite;
}

.steam span:nth-child(1) { animation-delay: 0s; height: 25px; }
.steam span:nth-child(2) { animation-delay: 0.4s; }
.steam span:nth-child(3) { animation-delay: 0.8s; height: 20px; }

@keyframes steam {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  50% { transform: translateY(-15px) scaleX(1.5); opacity: 0.6; }
  100% { transform: translateY(-30px) scaleX(0.5); opacity: 0; }
}

.plate {
  width: 120px;
  height: 15px;
  background: linear-gradient(to bottom, #efebe9, #d7ccc8);
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.maint-text {
  margin-bottom: 2rem;
}

.maint-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #5d4037;
  letter-spacing: -1px;
}

.highlight {
  background: linear-gradient(135deg, #ff7f7f, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.maint-sub {
  font-size: 1rem;
  color: #8d6e63;
  font-weight: 400;
}

.maint-progress {
  margin: 2rem 0;
}

.progress-track {
  width: 200px;
  height: 6px;
  background: rgba(93, 64, 55, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 0.8rem;
}

.progress-fill {
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, #ff7f7f, #ffb347);
  border-radius: 10px;
  animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
  0% { width: 0%; margin-left: 0; }
  50% { width: 70%; margin-left: 15%; }
  100% { width: 0%; margin-left: 100%; }
}

.progress-label {
  font-size: 0.8rem;
  color: #bcaaa4;
  letter-spacing: 1px;
}

.maint-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.maint-footer .dot {
  width: 8px;
  height: 8px;
  background: #ffb347;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.maint-footer .dot:nth-child(1) { animation-delay: 0s; }
.maint-footer .dot:nth-child(2) { animation-delay: 0.2s; background: #ff7f7f; }
.maint-footer .dot:nth-child(3) { animation-delay: 0.4s; background: #ff7eb3; }

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

@media screen and (max-width: 575.98px) {
  .maint-title { font-size: 2rem; }
  .maint-sub { font-size: 1rem; }
  .cup { width: 60px; height: 45px; }
  .plate { width: 90px; }
  .steam span { width: 6px; height: 20px; }
}

/*=============== LOGIN BUTTON ===============*/
.login-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #5d4037;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 10000;
}

.login-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.login-btn i {
  transition: transform 0.3s ease;
}

.login-btn:hover i {
  transform: rotate(20deg);
}

/*=============== PASSWORD MODAL ===============*/
.pwd-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.pwd-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

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

.pwd-content {
  background: linear-gradient(135deg, #fef9f3 0%, #fdf2e9 100%);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
}

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

.pwd-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #8d6e63;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pwd-close:hover {
  transform: rotate(90deg);
}

.pwd-icon {
  font-size: 3rem;
  color: #5d4037;
  margin-bottom: 1rem;
}

.pwd-content h2 {
  color: #5d4037;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pwd-content > p {
  color: #8d6e63;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

#pwdInput {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e0d5ce;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: #5d4037;
  text-align: center;
  transition: border-color 0.3s ease;
  margin-bottom: 0.5rem;
}

#pwdInput:focus {
  outline: none;
  border-color: #ff7f7f;
}

#pwdInput::placeholder {
  color: #bcaaa4;
}

.pwd-error {
  color: #ff7f7f;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.pwd-error.show {
  display: block;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.pwd-submit {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #ff7f7f, #ff7eb3);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.pwd-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 127, 127, 0.4);
}

