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

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*   
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --first-hue: 250;
  --sat: 66%;
  --lig: 75%;
  --second-hue: 219;
  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 71%); /* -4% */
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semibold: 600;

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

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: 0.4s; /* for light mode animation */
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

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

/*=============== THEME ===============*/
.change__theme {
  font-size: 1.25rem;
  cursor: pointer;
  transition: 0.3s;
}

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

/*========== Variables light theme ==========*/
body.light-theme {
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #e9e9e9;
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.light-theme .scroll-header {
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
}

.light-theme .nav__menu {
  background-color: hsla(var(--second-hue), 32%, 90%, 0.8);
}

.light-theme .section__subtitle {
  color: var(--text-color);
}

.light-theme .home__social-link {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .home__social-link::after,
.light-theme .footer__social-link {
  background-color: var(--title-color);
}

.light-theme .home__social-link,
.light-theme .home__scroll,
.light-theme .button,
.light-theme .button:hover,
.light-theme .active-work,
.light-theme .footer__title,
.light-theme .footer__link,
.light-theme .footer__copy {
  color: var(--title-color);
}

.light-theme .about__box {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .button,
.light-theme .skills__content,
.light-theme .services__card,
.light-theme .work__card {
  box-shadow: 0 4px 20px hsla(var(--second-hue), 48%, 8%, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .work__card:hover {
  box-shadow: 0 12px 40px hsla(var(--second-hue), 48%, 8%, 0.15);
}

.light-theme .work__button {
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  box-shadow: 0 4px 15px rgba(167, 137, 212, 0.25);
  color: var(--body-color);
}

.light-theme .work__button:hover {
  box-shadow: 0 8px 25px rgba(167, 137, 212, 0.35);
  background: linear-gradient(135deg, var(--first-color-alt), var(--first-color));
}

.light-theme .work__button::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.light-theme .work__card,
.light-theme .testimonial__card,
.light-theme .contact__card,
.light-theme .contact__form-div {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme::-webkit-scrollbar {
  background-color: hsl(var(--second-hue), 8%, 80%);
}
/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

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

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== HEADER & NAV===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: 0.4s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  backdrop-filter: blur(8px);
}

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

.nav__logo {
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: 0.4s;
  opacity: 0;
  transform: translateY(-20px);
  animation: navFadeIn 0.7s forwards;
}

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

.nav__logo.navFadeIn { animation-delay: 0.1s; }
.nav__list .nav__item:nth-child(1) .nav__link { animation-delay: 0.2s; }
.nav__list .nav__item:nth-child(2) .nav__link { animation-delay: 0.3s; }
.nav__list .nav__item:nth-child(3) .nav__link { animation-delay: 0.4s; }
.nav__list .nav__item:nth-child(4) .nav__link { animation-delay: 0.5s; }
.nav__list .nav__item:nth-child(5) .nav__link { animation-delay: 0.6s; }

@keyframes navFadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.nav__menu {
  position: fixed;
  bottom: 1rem;
  background-color: hsla(var(--second-hue), 32%, 16%, 0.8);
  width: 90%;
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

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

.nav__link {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: var(--font-medium);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: background 0.2s, color 0.2s;
  opacity: 0;
  transform: translateY(-20px);
  animation: navFadeIn 0.7s forwards;
}

.nav__link:hover,
.nav__link.active {
  background: var(--first-color);
  color: #fff;
}

/* Active link */
.active-link {
  background: linear-gradient(
    180deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.2)
  );
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  border-radius: 5rem;

  color: var(--title-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 4px 4px hsla(0, 0%, 4%, 0.3);
}

/*=============== HOME ===============*/
.home__container {
  position: relative;
  row-gap: 4.5rem;
  padding-top: 2rem;
}

.home__data {
  text-align: center;
}

.home__greeting,
.home__education {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.home__greeting {
  display: block;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.home__education {
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.home__name {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
}

.home__img {
  width: 160px;
}

.home__handle {
  justify-self: center;
  width: 190px;
  height: 293px;
  background: linear-gradient(
    180deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.1)
  );

  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.home__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home__social,
.home__scroll {
  position: absolute;
}

.home__social {
  bottom: 4rem;
  left: 0;
  display: grid;
  row-gap: 0.5rem;
}

.home__social-link {
  width: max-content;
  background-color: var(--container-color);
  color: var(--first-color);
  padding: 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  font-size: 1rem;
  transition: 0.4s;
}

.home__social-link:hover {
  background-color: var(--first-color);
  color: #ffffff;
}

.home__social::after {
  content: "";
  width: 32px;
  height: 1px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px, 4px);
}

.home__scroll {
  color: var(--first-color);
  right: -1.5rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
}

.home__scroll-icon {
  font-size: 1.25rem;
}

.home__scroll-name {
  font-size: var(--smaller-font-size);
  transform: rotate(-90deg);
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--body-color);
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  transition: 0.4s;
}

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

.button--ghost {
  background-color: transparent;
  color: var(--first-color);
  border: 1px solid var(--first-color);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 2.5rem;
}

.about__img {
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
}

.about__data {
  text-align: center;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.about__box {
  background-color: var(--container-color);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
}

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.about__title {
  font-size: var(--small-font-size);
}

.about__subtitle {
  font-size: var(--tiny-font-size);
}

.about__description {
  margin-bottom: 2rem;
}

/*=============== SKILLS ===============*/
.skills__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-top: 1.5rem;
}
.skills__content {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
}
.skills__title {
  font-size: 1.1rem;
  color: var(--first-color);
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skills__icon {
  font-size: 1.4rem;
  margin-right: 0.3rem;
  color: var(--first-color);
}
.skills__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.skills__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--title-color);
  background: rgba(167,137,212,0.07);
  border-radius: 0.7rem;
  padding: 0.5rem 0.8rem;
  font-weight: 500;
  /* justify-content: space-between; */
}
.skills__item span {
  color: var(--first-color);
  font-size: 0.95em;
  font-weight: 500;
  font-weight: var(--font-semibold);
}

.project__modal-close {
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
  transition: 0.3s;
}

.project__modal-close:hover {
  transform: scale(1.1);
}

.project__modal-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.project__modal-description {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.project__modal-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project__modal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  border: 1px solid;
}

.project__modal-link--live {
  background-color: var(--first-color);
  color: var(--body-color);
  border-color: var(--first-color);
}

.project__modal-link--live:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(167, 137, 212, 0.3);
}

.project__modal-link--github {
  background-color: transparent;
  color: var(--first-color);
  border-color: var(--first-color);
}

.project__modal-link--github:hover {
  background-color: var(--first-color);
  color: var(--body-color);
  transform: translateY(-2px);
}

.project__modal-link--play {
  background-color: #01875f;
  color: white;
  border-color: #01875f;
}

.project__modal-link--play:hover {
  background-color: #00a572;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 135, 95, 0.3);
}

.project__modal-link--download {
  background-color: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.project__modal-link--download:hover {
  background-color: #ff7a4a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Active modal */
.active-project-modal {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Light theme styles */
.light-theme .project__modal-content {
  background-color: var(--body-color);
  box-shadow: 0 8px 32px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .project__modal-header {
  border-bottom-color: var(--text-color-light);
}

/* Responsive styles for project modal */
@media screen and (max-width: 576px) {
  .project__modal {
    padding: 1rem;
  }
  
  .project__modal-content {
    padding: 1.5rem;
    max-height: 95vh;
  }
  
  .project__modal-title {
    font-size: var(--h3-font-size);
  }
  
  .project__modal-image {
    height: 200px;
  }
  
  .project__modal-links {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .project__modal-content {
    max-width: 95%;
  }
}

/* Active item work*/
.active-work {
  background-color: var(--first-color);
  color: var(--body-color);
}

/*=============== TESTIMONIAL ===============*/
.testimonial__card {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial__img {
  width: 60px;
  border-radius: 3rem;
  margin-bottom: 1rem;
}

.testimonial__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
}

.testimonial__description {
  font-size: var(--small-font-size);
  margin-bottom: 0.15rem;
}

/* Swiper class */
.swiper-pagination-bullet {
  background-color: var(--text-color-light);
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.contact__info {
  display: grid;
  gap: 1rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-title {
  font-weight: var(--font-medium);
}

.contact__card-data {
  display: block;
  margin-bottom: 0.75rem;
}

.contact__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.contact__button:hover .contact__button-icon {
  transform: translateX(0.25rem);
}

.contact__button-icon {
  font-size: 1rem;
  transition: 0.4s;
}

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  outline: none;
  z-index: 1;
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--body-color);
  z-index: 10;
}

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}

/* Contact form button improvements */
.contact__form .button {
  width: 100%;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact__form .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(167, 137, 212, 0.4);
}

.contact__form .button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact__form .button:disabled:hover {
  transform: none;
  box-shadow: none;
}
/*=============== NOTIFICATIONS ===============*/
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  max-width: 400px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification__message {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification__close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.notification__close:hover {
  background: rgba(255,255,255,0.2);
}

.notification--success {
  background: #4CAF50;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.notification--error {
  background: #f44336;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.notification--info {
  background: #2196F3;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Light theme notifications */
.light-theme .notification--success {
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.light-theme .notification--error {
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

.light-theme .notification--info {
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
}

.footer__container {
  padding: 1rem 0 2rem;
}

.footer__title,
.footer__link {
  color: var(--body-color);
}

.footer__title {
  text-align: center;
  margin-bottom: 1rem;
}

.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.25rem;
}

.footer__social-link {
  background-color: var(--body-color);
  color: var(--first-color);
  padding: 0.35rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  display: inline-flex;
}

.footer__copy {
  display: block;
  margin-top: 1rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-bottom: 1rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
}

::-webkit-scrollbar-track {
  border-radius: 1.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}

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

  .home__button {
    flex-direction: column;
  }

  .home__handle {
    width: 150px;
    height: 253px;
  }

  .home__img {
    width: 130px;
  }

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

  .skills__box {
    column-gap: 1rem;
  }
  
  .skills__container {
    grid-template-columns: 1fr;
  }
  
  .featured__container {
    grid-template-columns: 1fr;
  }
  
  .featured__stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .skills__name {
    font-size: var(--small-font-size);
  }

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

  .services__container {
    grid-template-columns: 145px;
    justify-content: center;
  }

  .work__item {
    font-size: var(--small-font-size);
  }

  .work__filters {
    column-gap: 0.25rem;
  }

  .work__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work__content {
    padding: 1rem;
  }

  .work__img {
    height: 160px;
  }
  
  .featured__image {
    height: 150px;
  }
  
  .featured__content {
    padding: 1rem;
  }
  
  .featured__stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media screen and (min-width: 435px) {
  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .featured__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills__container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .featured__stats {
    flex-direction: row;
    gap: 1rem;
  }
  
  .featured__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For medium devices */
@media screen and (min-width: 630px) {
  .nav__menu {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .about__info {
    grid-template-columns: repeat(3, 180px);
    justify-content: center;
  }

  .about__description {
    padding: 1rem 5rem;
    width: 600px;
    margin: 0 auto 2rem auto;
  }

  .about__box {
    padding: 1.75rem 0.95rem;
  }

  .skills__container {
    justify-content: center;
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .skills__content {
    padding: 4rem 8.8rem;
  }
  
  .featured__container {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .skills__box {
    column-gap: 5.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 177px);
    justify-content: center;
  }

  .services__modal-content {
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }

  .services__modal-description {
    padding: 0 3.5rem;
  }

  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .testimonial__container {
    width: 600px;
    margin: auto;
  }

  .contact__container {
    display: grid;
    grid-template-columns: 220px 340px;
    column-gap: 2rem;
    justify-content: center;
  }

  .contact__info {
    grid-template-columns: 200px;
    gap: 1rem;
  }

  .contact__form {
    width: 340px;
  }
  /* .contact__info {
    grid-template-columns: 350px;
    justify-content: center;
  }

  .contact__form {
    width: 360px;
    margin: 0 auto;
  } */
}

@media screen and (max-width: 600px) {
  .nav__menu {
    width: 100%;
    padding: 1rem 0.5rem;
  }
  .nav__link {
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
  }
}

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

  .section {
    padding: 6.5rem 0 1rem;
  }

  .section__title {
    margin-bottom: 3.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }

  .home__handle {
    width: 290px;
    height: 400px;
  }

  .home__img {
    width: 220px;
  }
  .home__social-link {
    padding: 0.4rem;
    font-size: 1.25rem;
  }

  .home__social::after {
    transform: rotate(90deg) translate(16px, -1px);
  }

  .home__scroll-icon {
    font-size: 2rem;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }

  .about__img {
    width: 350px;
  }

  .about__data {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
    gap: 2rem;
  }

  .about__box {
    text-align: center;
    padding: 1rem 1.25rem;
  }

  .about__description {
    padding: 0 4rem 0 0;
    margin-bottom: 2.5rem;
  }

  .skills__container {
    grid-template-columns: repeat(2, 460px);
    column-gap: 3rem;
  }
  
  .featured__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .skills__title {
    margin-bottom: 3.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 300px);
    column-gap: 2rem;
  }

  .services__card {
    padding: 5rem 2rem 1.5rem;
  }

  .work__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .featured__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .skills__container {
    grid-template-columns: repeat(2, 460px);
    column-gap: 3rem;
  }

  .work__title {
    margin-bottom: 0.5rem;
  }

  .testimonial__container {
    width: 970px;
  }

  .testimonial__card {
    padding: 1.5rem 2rem;
  }

  .contact__info {
    grid-template-columns: 430px;
    gap: 1rem;
  }

  .contact__form {
    width: 430px;
  }

  .contact__form-area {
    height: 18rem;
  }

  .contact__container {
    grid-template-columns: repeat(2, 430px);
    column-gap: 6rem;
  }

  .footer__social-link {
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
}

#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 2px solid var(--first-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s;
  z-index: 9999;
  background: transparent;
}
#custom-cursor.cursor-hover {
  width: 48px; height: 48px;
  background: rgba(167,137,212,0.1);
  border-color: #fff;
}

.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 11000;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background: var(--first-color);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .hamburger.active {
    background: rgba(167,137,212,0.2) !important;
    box-shadow: 0 4px 20px rgba(167,137,212,0.4) !important;
  }
  
  .light-theme .nav__menu {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(10px) !important;
  }
  
  .light-theme .hamburger {
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  }
  
  .light-theme .hamburger.active {
    background: rgba(167,137,212,0.15) !important;
    box-shadow: 0 4px 20px rgba(167,137,212,0.3) !important;
  }
  
  .light-theme .nav__link {
    color: var(--body-color) !important;
  }
  
  .light-theme .nav__link:hover,
  .light-theme .nav__link.active {
    background: var(--first-color) !important;
    color: #fff !important;
  }
  .hamburger span {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
    opacity: 1 !important;
    border-radius: 2px !important;
    transition: background 0.2s, box-shadow 0.2s;
  }
  .hamburger.active span {
    background: #fff !important;
  }
}

@media screen and (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .nav__menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(20,20,30,0.98) !important;
    backdrop-filter: blur(10px) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.4s ease !important;
    z-index: 99999 !important;
    visibility: hidden !important;
    border-radius: 0 !important;
    padding: 2rem !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.5) !important;
  }
  .nav__menu.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: flex !important;
    box-shadow: 0 0 100px rgba(0,0,0,0.8) !important;
  }
  .nav__list {
    flex-direction: column !important;
    gap: 2rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 300px !important;
  }
  .hamburger {
    display: flex !important;
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 100000 !important;
    background: rgba(20,20,30,0.9) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
  }
  
  .nav__link {
    font-size: 1.5rem !important;
    padding: 1.5rem 2rem !important;
    color: var(--title-color) !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    background: transparent !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
  }
  
  .nav__link:hover,
  .nav__link.active {
    background: var(--first-color) !important;
    color: #fff !important;
    transform: scale(1.05) !important;
    border-color: var(--first-color) !important;
    box-shadow: 0 4px 20px rgba(167, 137, 212, 0.3) !important;
  }
  
  /* Force hide desktop menu on mobile */
  .nav__menu:not(.active) {
    display: none !important;
  }
  
  /* Ensure menu is visible when active */
  .nav__menu.active {
    display: flex !important;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden !important;
  }
  
  /* Light theme mobile menu */
  .light-theme .nav__menu {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(10px) !important;
  }
  
  .light-theme .hamburger {
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  }
  
  .light-theme .hamburger.active {
    background: rgba(167,137,212,0.15) !important;
    box-shadow: 0 4px 20px rgba(167,137,212,0.3) !important;
  }
  
  .light-theme .nav__link {
    color: var(--body-color) !important;
  }
  
  .light-theme .nav__link:hover,
  .light-theme .nav__link.active {
    background: var(--first-color) !important;
    color: #fff !important;
  }
}

.parallax-shape {
  pointer-events: none;
  z-index: 1;
}

/*=============== FAQ ===============*/
.faq__item {
  background: var(--container-color);
  border-radius: 1rem;
  margin-bottom: 1rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.faq__item.active {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.faq__answer {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  overflow: hidden;
}

.faq__item.active .faq__answer {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

.faq__question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--first-color);
  margin-bottom: 0.2rem;
}

.faq__answer {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Light theme FAQ */
.light-theme .faq__item {
  background: rgba(255,255,255,0.8);
  box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .faq__item.active {
  box-shadow: 0 8px 24px hsla(var(--second-hue), 48%, 8%, 0.15);
}

/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding-top: 1.5rem;
}

.services__card {
  background: var(--container-color);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.services__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.services__card:hover::before {
  transform: scaleX(1);
}

.services__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: rgba(167,137,212,0.2);
}

.services__icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(167,137,212,0.15), rgba(167,137,212,0.08));
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2.2rem;
  color: var(--first-color);
  box-shadow: 0 4px 16px rgba(167,137,212,0.15);
  transition: all 0.3s ease;
  position: relative;
}

.services__icon-box i {
  transition: all 0.3s ease;
}

.services__icon-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--first-color), var(--first-color-alt), var(--first-color));
  border-radius: 1.4rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services__card:hover .services__icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(167,137,212,0.25);
}

.services__card:hover .services__icon-box i {
  transform: scale(1.1);
  color: var(--body-color);
}

.services__card:hover .services__icon-box::before {
  opacity: 0.3;
}

.services__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 1.2rem;
  line-height: 1.4;
  transition: color 0.3s ease;
  text-align: center;
}

.services__card:hover .services__title {
  color: var(--first-color);
}

.services__button {
  color: var(--first-color);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  background: rgba(167,137,212,0.1);
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  border: 2px solid rgba(167,137,212,0.2);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.services__button:hover {
  background: rgba(167,137,212,0.2);
  transform: translateY(-3px);
  border-color: rgba(167,137,212,0.4);
  box-shadow: 0 8px 20px rgba(167,137,212,0.3);
  color: var(--body-color);
}

.services__button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167,137,212,0.3), transparent);
  transition: left 0.5s ease;
}

.services__button:hover::before {
  left: 100%;
}

.services__button:hover .services__icon {
  transform: translateX(0.25rem);
}

.services__icon {
  font-size: 1.1rem;
  transition: 0.3s ease;
}

/* Light theme styles */
.light-theme .services__card {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.8);
}

.light-theme .services__card:hover {
  box-shadow: 0 12px 40px hsla(var(--second-hue), 48%, 8%, 0.15);
  border-color: rgba(167,137,212,0.3);
  background: rgba(255,255,255,0.95);
}

.light-theme .services__icon-box {
  background: linear-gradient(135deg, rgba(167,137,212,0.12), rgba(167,137,212,0.06));
  box-shadow: 0 4px 16px rgba(167,137,212,0.12);
}

.light-theme .services__icon-box::before {
  background: linear-gradient(45deg, var(--first-color), var(--first-color-alt), var(--first-color));
}

.light-theme .services__button {
  background: rgba(167,137,212,0.1);
  border-color: rgba(167,137,212,0.2);
}

.light-theme .services__button:hover {
  background: rgba(167,137,212,0.25);
  border-color: rgba(167,137,212,0.5);
  box-shadow: 0 8px 20px rgba(167,137,212,0.3);
  color: var(--body-color);
}

.light-theme .services__modal-description strong {
  color: var(--first-color);
}

/* Responsive styles for services */
@media screen and (max-width: 320px) {
  .services__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services__card {
    padding: 2rem 1rem 1.5rem 1rem;
  }
  
  .services__icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  
  .services__title {
    font-size: 1.1rem;
  }
  
  .services__button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 435px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (min-width: 630px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .services__card {
    padding: 3rem 2rem 2rem 2rem;
  }
  
  .services__icon-box {
    width: 65px;
    height: 65px;
    font-size: 2.4rem;
  }
}

@media screen and (min-width: 992px) {
  .services__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .services__card {
    padding: 3rem 1.5rem 2rem 1.5rem;
  }
  
  .services__icon-box {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  
  .services__title {
    font-size: 1.3rem;
  }
}

/* Services Modal */
.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(var(--second-hue), 28%, 16%, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.services__modal.active-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.services__modal-content {
  background-color: var(--container-color);
  padding: 3rem;
  border-radius: 1.5rem;
  position: relative;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.services__modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--first-color), var(--first-color-alt), var(--first-color));
  border-radius: 1.5rem 1.5rem 0 0;
}

.services__modal.active-modal {
  opacity: 1;
  visibility: visible;
}

.services__modal.active-modal .services__modal-content {
  transform: translateY(0) scale(1);
}

.services__modal-content {
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s ease;
}

.services__modal-title {
  font-size: 1.8rem;
  font-weight: var(--font-semibold);
  margin-bottom: 1.5rem;
  color: var(--first-color);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  letter-spacing: 0.5px;
}

.services__modal-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
  border-radius: 2px;
}

.services__modal-description {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  color: var(--text-color);
  text-align: left;
  padding: 0;
  font-weight: 400;
}

.services__modal-description strong {
  color: var(--first-color);
  font-weight: 600;
}

.services__modal-description br {
  margin-bottom: 0.5rem;
}

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: var(--first-color);
  cursor: pointer;
  transition: 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(167,137,212,0.1);
}

.services__modal-close:hover {
  transform: scale(1.1);
  background: rgba(167,137,212,0.2);
  box-shadow: 0 4px 12px rgba(167,137,212,0.3);
}

/* Light theme modal */
.light-theme .services__modal {
  background-color: hsla(var(--second-hue), 48%, 8%, 0.8);
}

.light-theme .services__modal.active-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.light-theme .services__modal-content {
  background-color: var(--body-color);
  box-shadow: 0 20px 60px hsla(var(--second-hue), 48%, 8%, 0.15);
  border: 1px solid rgba(0,0,0,0.1);
}

.light-theme .services__modal-content::before {
  background: linear-gradient(90deg, var(--first-color), var(--first-color-alt), var(--first-color));
}

.light-theme .services__modal-close {
  background: rgba(167,137,212,0.15);
}

.light-theme .services__modal-close:hover {
  background: rgba(167,137,212,0.25);
  box-shadow: 0 4px 12px rgba(167,137,212,0.2);
}

/* Responsive services modal */
@media screen and (min-width: 768px) {
  .services__modal-content {
    padding: 3.5rem;
    max-width: 700px;
  }
  
  .services__modal-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .services__modal-description {
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 0 2rem;
  }
  
  .services__modal-close {
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
}

@media screen and (min-width: 1024px) {
  .services__modal-content {
    padding: 4rem;
    max-width: 800px;
  }
  
  .services__modal-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }
  
  .services__modal-description {
    font-size: 1.3rem;
    line-height: 1.9;
    padding: 0 3rem;
  }
  
  .services__modal-close {
    top: 2.5rem;
    right: 2.5rem;
    font-size: 2.2rem;
    width: 55px;
    height: 55px;
  }
}

@media screen and (max-width: 576px) {
  .services__modal {
    padding: 1rem;
  }
  
  .services__modal-content {
    padding: 2rem;
    max-width: 95%;
    max-height: 90vh;
  }
  
  .services__modal-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .services__modal-description {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0;
  }
  
  .services__modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
  
  .services__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .services__button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 1.2rem;
  }
}

/*=============== PROJECT MODAL ===============*/
.project__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsla(var(--second-hue), 28%, 16%, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.project__modal-content {
  background-color: var(--container-color);
  padding: 2.5rem;
  border-radius: 1.5rem;
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.project__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--text-color-light);
}

.project__modal-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semibold);
  color: var(--first-color);
  margin: 0;
}

.project__modal.active-project-modal {
  opacity: 1;
  visibility: visible;
}

.project__modal.active-project-modal .project__modal-content {
  transform: translateY(0);
}

/* Light theme project modal */
.light-theme .project__modal {
  background-color: hsla(var(--second-hue), 48%, 8%, 0.8);
}

.light-theme .project__modal-content {
  background-color: var(--body-color);
  box-shadow: 0 8px 32px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .project__modal-header {
  border-bottom-color: var(--text-color-light);
}

.work__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: var(--body-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(167, 137, 212, 0.3);
  backdrop-filter: blur(10px);
}

.work__button::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 ease;
}

.work__button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  border-radius: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work__button:hover::before {
  left: 100%;
}

.work__button:hover::after {
  opacity: 1;
}

.work__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(167, 137, 212, 0.4);
  background: linear-gradient(135deg, var(--first-color-alt), var(--first-color));
}

.work__button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(167, 137, 212, 0.3);
}

.work__icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.work__button:hover .work__icon {
  transform: translateX(0.25rem) scale(1.1);
}

/* Light theme work button */
.light-theme .work__button {
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  box-shadow: 0 4px 15px rgba(167, 137, 212, 0.25);
  color: var(--body-color);
}

.light-theme .work__button:hover {
  box-shadow: 0 8px 25px rgba(167, 137, 212, 0.35);
  background: linear-gradient(135deg, var(--first-color-alt), var(--first-color));
}

.light-theme .work__button::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* Responsive work button */
@media screen and (max-width: 576px) {
  .work__button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .work__icon {
    font-size: 1rem;
  }
}

@media screen and (max-width: 320px) {
  .work__button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    gap: 0.3rem;
  }
  
  .work__icon {
    font-size: 0.9rem;
  }
}

/*=============== WORK CARDS ===============*/
.work__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.work__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.work__img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.work__card:hover .work__img {
  transform: scale(1.05);
}

.work__content {
  padding: 0.5rem 0;
}

.work__title {
  font-size: 1.1rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.work__description {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Light theme work cards */
.light-theme .work__card {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.8);
}

.light-theme .work__card:hover {
  box-shadow: 0 8px 30px hsla(var(--second-hue), 48%, 8%, 0.15);
  background: rgba(255,255,255,0.95);
}

/* Responsive work container spacing */
@media screen and (max-width: 576px) {
  .work__container {
    gap: 1rem;
  }
  
  .work__card {
    padding: 1rem;
    border-radius: 0.8rem;
  }
  
  .work__img {
    height: 160px;
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
  }
  
  .work__content {
    padding: 0.3rem 0;
  }
  
  .work__title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .work__description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    -webkit-line-clamp: 2;
  }
  
  .work__button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .work__icon {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .work__container {
    gap: 0.8rem;
  }
  
  .work__card {
    padding: 0.8rem;
    border-radius: 0.6rem;
  }
  
  .work__img {
    height: 140px;
    border-radius: 0.5rem;
    margin-bottom: 0.6rem;
  }
  
  .work__content {
    padding: 0.2rem 0;
  }
  
  .work__title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }
  
  .work__description {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    -webkit-line-clamp: 2;
  }
  
  .work__button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .work__icon {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 320px) {
  .work__container {
    gap: 0.6rem;
  }
  
  .work__card {
    padding: 0.6rem;
    border-radius: 0.5rem;
  }
  
  .work__img {
    height: 120px;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
  }
  
  .work__content {
    padding: 0.1rem 0;
  }
  
  .work__title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .work__description {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
  }
  
  .work__button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .work__icon {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 900px) {
  .nav__menu {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: none !important;
    transition: none !important;
  }
  .nav__menu.active {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: rgba(20,20,30,0.98) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }
  .hamburger {
    display: flex !important;
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 100000 !important;
  }
}

/*=============== THEME BUTTON FIX FOR MOBILE ===============*/
@media screen and (max-width: 768px) {
  #theme-button, .change__theme {
    position: fixed !important;
    top: 1.2rem !important;
    right: 4.5rem !important;
    left: auto !important;
    z-index: 110002 !important;
    background: rgba(20,20,30,0.85) !important;
    color: var(--first-color) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18) !important;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s !important;
  }
  #theme-button:hover, .change__theme:hover {
    background: var(--first-color) !important;
    color: #fff !important;
  }
  .hamburger {
    z-index: 110003 !important;
  }
  #theme-button i, .change__theme i {
    font-family: 'boxicons' !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-size: 1.7rem !important;
    color: inherit !important;
    background: none !important;
    border: none !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-shadow: none !important;
  }
}

@media screen and (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .nav__link {
    font-size: 1.1rem !important;
    padding: 1rem 1.5rem !important;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(167,137,212,0.12) !important;
    border-radius: 0.8rem !important;
    box-shadow: 0 2px 8px rgba(167,137,212,0.13) !important;
    z-index: 110003 !important;
    position: fixed !important;
    top: 1.2rem !important;
    right: 1.2rem !important;
    padding: 0 !important;
    border: none !important;
    cursor: pointer !important;
    overflow: visible !important;
    transition: background 0.2s, box-shadow 0.2s !important;
  }
  .hamburger span {
    display: block !important;
    width: 22px !important;
    height: 3px !important;
    margin: 4px 0 !important;
    background: var(--first-color) !important;
    border-radius: 2px !important;
    opacity: 1 !important;
    box-shadow: 0 1px 4px rgba(167,137,212,0.13) !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.3s !important;
  }
  .hamburger.active {
    background: rgba(167,137,212,0.22) !important;
    box-shadow: 0 4px 16px rgba(167,137,212,0.18) !important;
  }
  .hamburger.active span {
    background: var(--first-color) !important;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }
}
