/*=============== GOOGLE FONTS ===============*/

@import url("https://fonts.googleapis.com/css2?family=Tagesschrift&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: 345; /* Deep, luxurious red-pink for a dramatic feel */
  --sat: 97%; /* High saturation for intensity */
  --lig: 45%; /* Balanced lightness to keep it vibrant */
  --second-hue: 220; /* Rich, royal blue to provide a strong contrast */

  --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; */
  --body-font: "Tagesschrift", system-ui;
  --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: 1000;
}
body.dark-theme {
  --title-color: hsl(var(--first-hue), 15%, 95%);
  --text-color: hsl(var(--first-hue), 8%, 75%);
  --text-color-light: hsl(var(--first-hue), 4%, 55%);
  --body-color: hsl(var(--first-hue), 48%, 8%);
  --container-color: hsl(var(--first-hue), 32%, 12%);
  transition-duration: 1s;
}
body.light-theme,
:root:not(.dark-theme) {
  --title-color: hsl(var(--second-hue), 20%, 20%);
  --text-color: hsl(var(--second-hue), 10%, 35%);
  --text-color-light: hsl(var(--second-hue), 6%, 55%);
  --body-color: hsl(var(--first-hue), 40%, 95%);
  --container-color: hsl(var(--first-hue), 20%, 98%);
}

/* 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;
  cursor: none;
}

html {
  scroll-behavior: smooth;
  user-select: none;
}

/* Custom Cursor Styles */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--first-color);
  box-shadow: 0 0 8px var(--first-color);
}

.cursor-follower {
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0);
  border: 2px solid var(--first-color);
  backdrop-filter: blur(3px);
}

/* Hover state */
.hover-target:hover ~ .cursor-follower,
.hover-target:focus ~ .cursor-follower {
  transform: translate(-50%, -50%) scale(1.8);
  border-color: var(--first-color-alt);
  background: rgba(195, 19, 19, 0.15);
}

/* Optional: subtle color change on hover-target */
.hover-target:hover {
  color: var(--first-color);
}

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: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
  animation: float 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

img {
  max-width: 100%;
  height: auto;
}
/*=============== ANIMATIONS ===============*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

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

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/*=============== THEME ===============*/
.change__theme {
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.change__theme:hover {
  color: var(--first-color);
  transform: scale(1.1) rotate(15deg);
}
.change__theme:active {
  transform: scale(0.95);
}
/*========== Variables light theme ==========*/

/*=============== SCROLL TO TOP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  opacity: 0.8;
  padding: 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: all 0.4s ease;
  animation: float 3s ease-in-out infinite;
}

.scrollup:hover {
  background: linear-gradient(
    135deg,
    var(--first-color-alt),
    var(--first-color)
  );
  opacity: 1;
  transform: translateY(-5px) scale(1.1);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: var(--body-color);
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}
/*=============== 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;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--first-color),
    transparent
  );
  transform: translateX(-50%);
  opacity: 0.5;
}

.section__title,
.section__subtitle {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

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

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

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
/*=============== RED DOT INDICATOR ===============*/
/* Red dot indicator */
.visitor-badge {
  position: fixed;
  bottom: 5rem;
  left: 0.5rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 5px;
  border: 1px solid var(--body-color);

  background: var(--first-color);
  color: var(--body-color);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);

  animation: float 3s cubic-bezier(0.4, 0.4, 0.9, 1) infinite;
}

.visitor-badge:hover {
  background: var(--first-color);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
}

/* Animation */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

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

  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: all 0.4s ease;
}

/* .header.scroll-header {
  box-shadow: 0 4px 20px hsla(0, 0%, 4%, 0.3);
  background-color: hsla(var(--second-hue), 48%, 8%, 0.95);
} */

.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: all 0.4s ease;
  font-size: 1.2rem;
  position: relative;
}

.nav__logo::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--first-color);
  transition: width 0.3s ease;
}

.nav__logo:hover::before {
  width: 100%;
}

.nav__logo:hover {
  color: var(--first-color-alt);
  transform: translateY(-2px);
}

.nav__menu {
  position: fixed;
  bottom: 1rem;
  background: linear-gradient(
    135deg,
    hsla(var(--first-hue), 90%, 10%, 0.9),
    hsla(var(--first-hue), 90%, 15%, 0.8)
  );
  width: 90%;
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  border: 1px solid hsla(var(--first-hue), 50%, 50%, 0.2);
}

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

.nav__link {
  color: #918e8e;
  font-size: 1.25rem;
  padding: 0.4rem;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  border-radius: 5rem;
  position: relative;
  overflow: hidden;
}

.nav__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--first-color) 0%, transparent 70%);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
}

.nav__link:hover::before {
  width: 40px;
  height: 40px;
}

.nav__link:hover {
  color: #f3f0f0;
  transform: translateY(-3px) scale(1.1);
}

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

  color: #f3f0f0;
  animation: pulse 2s infinite;
}

/* 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;
  animation: fadeInUp 1s ease-out;
}

.home__data {
  text-align: center;
  animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.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;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.home__education {
  color: var(--text-color);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

.home__name {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  background: linear-gradient(
    45deg,
    var(--first-color),
    var(--first-color-alt)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.home__img {
  width: 160px;
  width: 160px;
  transition: all 0.4s ease;
}

.home__img:hover {
  transform: scale(1.05) rotate(5deg);
}

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

  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
  animation: scaleIn 0.8s ease-out 0.4s both;
  transition: all 0.4s ease;
  animation: float 3s ease-in-out infinite;
}

.home__handle::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.1),
    transparent
  );
  animation: shimmer 3s linear infinite;
}

.home__handle:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.home__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.home__social,
.home__scroll {
  position: absolute;
}

.home__social {
  bottom: 4rem;
  left: 0;
  display: grid;
  row-gap: 0.5rem;
  animation: fadeInLeft 0.8s ease-out 0.6s both;
}

.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: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.home__social-link::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;
}

.home__social-link:hover::before {
  left: 100%;
}

.home__social-link:hover {
  background-color: var(--first-color);
  color: #ffffff;
  transform: translateX(7px) scale(1.1);
  box-shadow: 0 5px 15px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
}

.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;
  animation: fadeInRight 0.8s ease-out 0.8s both;
}

.home__scroll-icon {
  font-size: 1.25rem;
  animation: float 2s ease-in-out infinite;
}

.home__scroll-name {
  font-size: var(--smaller-font-size);
  transform: rotate(-90deg);
  transition: all 0.3s ease;
}

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

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  color: var(--body-color);
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  animation: float 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

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

.button:hover {
  background: linear-gradient(
    135deg,
    var(--first-color-alt),
    var(--first-color)
  );
  color: var(--body-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
}

.button:active {
  transform: translateY(-1px) scale(1.02);
}

.button--ghost {
  background: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
  position: relative;
  overflow: hidden;
}

.button--ghost::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--first-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.button--ghost:hover::before {
  left: 0;
}

.button--ghost:hover {
  color: var(--body-color);
  border-color: var(--first-color);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 2.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.about__img {
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
  transition: all 0.4s ease;
  animation: scaleIn 0.8s ease-out 0.2s both;
}

.about__img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 15px 30px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.about__data {
  text-align: center;
  animation: fadeInRight 0.8s ease-out 0.4s both;
}

.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;
  box-shadow: 0 4px 15px hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: bounceIn 0.6s ease-out calc(0.6s + var(--delay, 0s)) both;
}

.about__box:nth-child(1) {
  --delay: 0s;
}
.about__box:nth-child(2) {
  --delay: 0.1s;
}
.about__box:nth-child(3) {
  --delay: 0.2s;
}

.about__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

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

.about__box:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.about__box:hover .about__icon {
  transform: scale(1.2) rotate(370deg);
  color: var(--first-color-alt);
}

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

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

.about__description {
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/*=============== SKILLS ===============*/
.skills__container {
  row-gap: 2rem;
  padding-top: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.6s ease-out calc(0.2s + var(--delay, 0s)) both;
}

.skills__content:nth-child(1) {
  --delay: 0s;
}
.skills__content:nth-child(2) {
  --delay: 0.2s;
}

.skills__content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.05),
    transparent
  );
  animation: shimmer 4s linear infinite;
}

.skills__content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.skills__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.skills__title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 40px;
  height: 2px;
  background: var(--first-color);
  transform: translateX(-50%);
  border-radius: 1px;
}

.skills__box {
  display: flex;
  justify-content: center;
  column-gap: 2.5rem;
}

.skills__group {
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills__data {
  display: flex;
  column-gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.25rem;
  border-radius: 0.5rem;
  animation: fadeInLeft 0.5s ease-out calc(0.8s + var(--skill-delay, 0s)) both;
}

.skills__data:nth-child(1) {
  --skill-delay: 0s;
}
.skills__data:nth-child(2) {
  --skill-delay: 0.1s;
}
.skills__data:nth-child(3) {
  --skill-delay: 0.2s;
}
.skills__data:nth-child(4) {
  --skill-delay: 0.3s;
}
.skills__data:nth-child(5) {
  --skill-delay: 0.4s;
}
.skills__data:nth-child(6) {
  --skill-delay: 0.5s;
}

.skills__data:hover {
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  transform: translateX(5px);
}

.skills .bxs-badge-check {
  font-size: 1rem;
  color: var(--first-color);
  transition: all 0.3s ease;
}

.skills__data:hover .bxs-badge-check {
  color: var(--first-color-alt);
  transform: scale(1.2) rotate(360deg);
}

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

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

/*=============== WORK ===============*/
.toggle-btn {
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;

  box-shadow: none;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: none;
  position: relative;
  overflow: hidden;
}

.toggle-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.toggle-btn:hover::before {
  left: 100%;
}

.toggle-btn i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.toggle-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
}

.toggle-btn:hover i {
  transform: translateY(2px);
}
.toggle-btn:active {
  transform: translateY(-1px) scale(1.02);
}
.work__container {
  padding-top: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.work__card {
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: space-around;
  justify-content: space-around;
  box-shadow: 0 4px 20px hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.6s ease-out calc(0.2s + var(--card-delay, 0s)) both;
}

.work__card:nth-child(1) {
  --card-delay: 0s;
}
.work__card:nth-child(2) {
  --card-delay: 0.1s;
}
.work__card:nth-child(3) {
  --card-delay: 0.2s;
}
.work__card:nth-child(4) {
  --card-delay: 0.3s;
}
.work__card:nth-child(5) {
  --card-delay: 0.4s;
}
.work__card:nth-child(6) {
  --card-delay: 0.5s;
}

.work__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

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

.work__card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.work__img {
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.4s ease;
  height: 160px;
}

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

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}
.work__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  width: 200px;
}
.work__card:hover .work__title {
  color: var(--first-color);
}

.work__button {
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.work__button:hover {
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  color: var(--first-color-alt);
}

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

.work__icon {
  font-size: 1rem;
  transition: all 0.4s ease;
}

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

/*=============== Internship ===============*/
/* Internship Section Container */
#internship-section {
  padding-top: 2rem;
}

/* Grid Layout similar to .work__container */
.internship__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-top: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

/* Card style based on .work__card */
.internship__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.6s ease-out calc(0.2s + var(--intern-delay, 0s)) both;
}

.internship__card:nth-child(1) {
  --intern-delay: 0s;
}
.internship__card:nth-child(2) {
  --intern-delay: 0.2s;
}

.internship__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

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

.internship__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.internship__card:hover {
  transform: translateY(-4px);
}

/* Typography aligned with .work__title */
.internship__company {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

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

.internship__position {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.internship__duration {
  font-size: var(--smaller-font-size);
  font-style: italic;
  color: var(--text-color-light);
}

.internship__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-top: 0.75rem;
  line-height: 1.5;
}
.internship__button {
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.internship__button:hover {
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  color: var(--first-color-alt);
}

.internship__button:hover .internship__icon {
  transform: translateX(0.25rem) scale(1.1);
}

.internship__icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/*=============== Education ===============*/
.education__card {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;
  box-shadow: 0 4px 20px hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.6s ease-out calc(0.2s + var(--edu-delay, 0s)) both;
}

.education__card:nth-child(1) {
  --edu-delay: 0s;
}
.education__card:nth-child(2) {
  --edu-delay: 0.2s;
}

.education__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

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

.education__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.education__img {
  width: 80px;
  border-radius: 3rem;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
}

.education__card:hover .education__img {
  transform: scale(1.1) rotate(5deg);
}

.education__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

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

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

.education__institution {
  font-size: var(--extra-small-font-size);
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
}

.education__duration {
  font-size: var(--extra-small-font-size);
  color: var(--text-color-light);
  margin-bottom: 0.15rem;
  font-style: italic;
}

.education__cgpa {
  font-size: var(--extra-small-font-size);
  color: var(--text-color-light);
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
  padding-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

.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;
  box-shadow: 0 4px 20px hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: bounceIn 0.6s ease-out calc(0.2s + var(--contact-delay, 0s)) both;
}

.contact__card:nth-child(1) {
  --contact-delay: 0s;
}
.contact__card:nth-child(2) {
  --contact-delay: 0.1s;
}
.contact__card:nth-child(3) {
  --contact-delay: 0.2s;
}

.contact__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

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

.contact__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

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

.contact__card:hover .contact__card-icon {
  color: var(--first-color);
  transform: scale(1.2) rotate(10deg);
}

.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;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.contact__button:hover {
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.1);
  color: var(--first-color-alt);
}

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

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

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
  animation: fadeInUp 0.6s ease-out calc(0.4s + var(--form-delay, 0s)) both;
}
.contact__form-div:nth-child(1) {
  --form-delay: 0s;
}
.contact__form-div:nth-child(2) {
  --form-delay: 0.1s;
}
.contact__form-div:nth-child(3) {
  --form-delay: 0.2s;
}
.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;
  transition: all 0.3s ease;
}
.contact__form-input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 10px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.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;
  transition: all 0.3s ease;
}

.contact__form-input:focus + .contact__form-tag {
  color: var(--first-color);
}

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}
/*=============== FOOTER ===============*/
.footer {
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  animation: float 20s linear infinite;
}

.footer__container {
  padding: 2rem 0 6rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.footer__title,
.footer__link {
  color: var(--body-color);
  transition: all 0.3s ease;
}

.footer__title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: var(--h2-font-size);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.footer__link:hover {
  color: var(--container-color);
  transform: translateY(-2px);
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.25rem;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.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;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__social-link:hover {
  background-color: var(--container-color);
  color: var(--first-color-alt);
  transform: translateY(-5px) scale(1.1) rotate(10deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.footer__copy {
  display: block;
  margin-top: 4.5rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

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

::-webkit-scrollbar-track {
  border-radius: 1.5rem;
  background-color: var(--container-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--first-color),
    var(--first-color-alt)
  );
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
  background: linear-gradient(
    180deg,
    var(--first-color-alt),
    var(--first-color)
  );
}

/*=============== SCROLL TO TOP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: linear-gradient(
    135deg,
    var(--first-color),
    var(--first-color-alt)
  );
  opacity: 0.8;
  padding: 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: all 0.4s ease;
  animation: float 3s ease-in-out infinite;
}

.scrollup:hover {
  background: linear-gradient(
    135deg,
    var(--first-color-alt),
    var(--first-color)
  );
  opacity: 1;
  transform: translateY(-5px) scale(1.1);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: var(--body-color);
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .nav__menu {
    padding: 1rem 1.5rem;
  }
  .visitor-badge {
    bottom: 5rem;
    padding: 0 5px;
    border: 1px solid var(--body-color);
  }
  .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__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;
  }
}

@media screen and (min-width: 435px) {
  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }

  .work__img {
    height: 130px;
    width: 165px;
  }
}

/* For medium devices */
@media screen and (min-width: 630px) {
  .nav__menu {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .visitor-badge {
    bottom: 1rem;
    padding: 5px 10px;
    border: 2px solid var(--body-color);
  }
  .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;
  }

  .skills__content {
    padding: 4rem 8.8rem;
  }

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

  .skills__box {
    column-gap: 5.5rem;
  }
  .education__card {
    padding: 1.5rem 2rem;
    flex-direction: row;
  }
  .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, max-content);
  }

  .work__img {
    height: 130px;
    width: 250px;
  }

  .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 (min-width: 767px) {
  /* .work__container {
    grid-template-columns: repeat(2, max-content);
  } */

/* .contact__info {
    grid-template-columns: 300px;
  }

  .contact__container {
    grid-template-columns: repeat(2, 325px);
    justify-content: center;
  }
} */

/* For large devices */
@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .visitor-badge {
    bottom: 1rem;
    border: 2px solid var(--body-color);
    padding: 5px 10px;
  }
  .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;
  }

  .skills__title {
    margin-bottom: 3.5rem;
  }
  .education__card {
    padding: 1.5rem 2rem;
    flex-direction: row;
  }
  .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, max-content);
    gap: 3rem;
  }

  .work__card {
    padding: 1.25rem;
  }

  .work__img {
    margin-bottom: 2rem;
  }

  .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;
  }
}
