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

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

  /*========== Colors - Identidad de Marca (Minimalismo Inteligente) ==========*/
  --first-color: #0a0a0a;
  --first-color-alt: #1a1a1a;
  --accent-color: #0a0a0a;
  --accent-hover: #333333;

  --title-color: #0a0a0a;
  --text-color: #414141;
  --text-color-light: #666666;
  --text-color-lighter: #999999;
  --body-color: #ffffff;
  --container-color: #ffffff;
  --border-color: #e5e5e5;
  --card-color: #ffffff;
  --section-bg: #fafafa;

  /*========== Font and typography ==========*/
  --title-font: "Poppins", sans-serif;
  --body-font: "Inter", sans-serif;
  --biggest-font-size: 3.5rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;
  --tiny-font-size: 0.625rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /*========== Spacing ==========*/
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;

  /*========== Transitions ==========*/
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;

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

  /*========== Transitions ==========*/
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive typography */
/* Mobile First - Small devices */
@media screen and (max-width: 480px) {
  :root {
    --biggest-font-size: 2.2rem;
    --h1-font-size: 1.8rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.2rem;
    --normal-font-size: 0.95rem;
    --small-font-size: 0.8rem;
    --smaller-font-size: 0.75rem;
  }
}

/* Medium devices */
@media screen and (min-width: 481px) and (max-width: 767px) {
  :root {
    --biggest-font-size: 2.8rem;
    --h1-font-size: 2.2rem;
    --h2-font-size: 1.8rem;
    --h3-font-size: 1.4rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/* Large devices */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.75rem;
    --normal-font-size: 1.125rem;
    --small-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}

/*=============== 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);
  line-height: 1.7;
}

body {
  background: var(--body-color);
  color: var(--text-color);
  transition: var(--transition);
  font-weight: var(--font-regular);
  padding-bottom: 5rem; /* Space for floating menu */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

ul {
  list-style: none;
}

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

/*=============== ACCESSIBILITY ===============*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--first-color);
  color: var(--body-color);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.main {
  overflow: hidden;
}

.section {
  padding: 6rem 0 4rem;
}

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

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 3rem;
  font-family: var(--title-font);
  font-weight: var(--font-bold);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-lighter);
  font-weight: var(--font-medium);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid {
  display: grid;
}

.section {
  padding: 6rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: var(--font-bold);
}

.section__subtitle {
  display: block;
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  text-align: center;
  margin-bottom: 3rem;
}

.main {
  overflow: hidden;
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-color);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 30px;
  font-weight: var(--font-medium);
  transition: var(--transition);
  border: none;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.2);
}

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

.button--ghost:hover {
  background: var(--accent-color);
  color: #fff;
}

.button__icon {
  font-size: 1.1rem;
  transition: var(--transition);
}

.button:hover .button__icon {
  transform: translateX(0.25rem);
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--body-color);
  z-index: var(--z-fixed);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.scroll-header {
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

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

.nav__logo {
  color: var(--first-color);
  font-weight: var(--font-semibold);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  transition: var(--transition);
  object-fit: contain;
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

#nav-menu-desktop {
  display: none;
}

#nav-menu-desktop .nav__list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

#nav-menu-desktop .nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  font-size: 1.5rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

#nav-menu-desktop .nav__link i {
  font-size: 1.5rem;
}

#nav-menu-desktop .nav__link:hover {
  color: var(--accent-color);
  background: rgba(0, 0, 0, 0.1);
}

#nav-menu-desktop .active-link {
  color: var(--accent-color);
}

.nav__menu {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  width: 90%;
  max-width: 400px;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  z-index: var(--z-fixed);
  border: 1px solid rgba(10, 10, 10, 0.1);
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.08);
}

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

.nav__link {
  color: var(--text-color-light);
  font-size: 1.2rem;
  padding: 0.75rem;
  display: flex;
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--accent-color);
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Active link */
.active-link {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#nav-menu-desktop .nav__link.active-link {
  color: var(--accent-color);
  background: transparent;
  box-shadow: none;
}

#nav-menu-desktop .nav__link.active-link::after {
  width: 100%;
}

.change-theme {
  font-size: 1.2rem;
  color: var(--text-color-light);
  cursor: pointer;
  transition: var(--transition);
  padding: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.change-theme:hover {
  color: var(--accent-color);
  background: var(--section-bg);
}

/*=============== HOME ===============*/
.home {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: var(--header-height) 0;
}

.home__container {
  grid-template-columns: 1fr;
  row-gap: 3rem;
  text-align: center;
}

.home__data {
  order: 2;
}

.home__greeting {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: var(--small-font-size);
}

.home__name {
  font-size: var(--biggest-font-size);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  color: var(--title-color);
  line-height: 1.1;
  word-break: break-word;
  hyphens: auto;
}

.typing-text {
  border-right: 2px solid var(--first-color);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  width: auto;
  color: var(--title-color) !important;
  font-weight: inherit;
  animation: blink-caret 0.75s step-end infinite;
  max-width: 100%;
  text-overflow: ellipsis;
}

/* Ensure text visibility in both themes */
.light-theme .typing-text {
  color: #000000 !important;
}

.dark-theme .typing-text {
  color: #ffffff !important;
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--first-color);
  }
}

.home__title {
  font-size: var(--h1-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
  margin-bottom: 1rem;
  font-weight: var(--font-semibold);
}

.home__description {
  font-size: var(--h3-font-size);
  color: var(--text-color-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.home__link {
  color: var(--accent-color);
  font-weight: var(--font-medium);
  text-decoration: none;
  position: relative;
}

.home__link:hover {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

/*=============== PARALLAX EFFECTS ===============*/
.parallax-element {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.home__handle {
  order: 1;
  justify-self: center;
  width: 280px;
  height: 280px;
  background: var(--section-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.6s ease;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.home__img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.home__social {
  position: absolute;
  left: 2rem;
  bottom: 50%;
  transform: translateY(50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home__social-link {
  width: 45px;
  height: 45px;
  background: var(--container-color);
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.home__social-link:hover {
  color: var(--accent-color);
  background: var(--section-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.home__scroll {
  position: absolute;
  right: 2rem;
  bottom: 4rem;
  color: var(--first-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

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

/*=============== ABOUT ===============*/
.about__container {
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about__img {
  width: 100%;
  max-width: 350px;
  border-radius: 1.5rem;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--glass-border);
}

.about__data {
  text-align: center;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.about__box {
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.about__box:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about__icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.about__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
  color: var(--title-color);
}

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

.counter {
  font-weight: var(--font-bold);
  color: var(--first-color);
}

.about__description {
  margin-bottom: 2rem;
  color: var(--text-color);
  line-height: 1.8;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

/*=============== SKILLS ===============*/
.skills {
  background: linear-gradient(135deg, var(--body-color) 0%, var(--section-bg) 100%);
  position: relative;
}

.skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.skills__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.skills__content {
  background: var(--container-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.skills__content:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
  transform: translateY(-4px);
}

.skills__title {
  font-size: var(--h3-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: var(--font-semibold);
  position: relative;
  padding-bottom: 1rem;
}

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

.skills__box {
  margin-top: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.skills__group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-content: center;
  flex: 1;
  align-content: start;
}

.skills__data {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--body-color);
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: left;
}

.skills__data:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
  border-color: var(--accent-color);
  transform: translateX(4px);
}

.skills__data i {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: var(--transition);
  flex-shrink: 0;
}

.skills__data:hover i {
  transform: scale(1.1);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: var(--transition);
  flex: 1;
}

.skills__data:hover .skills__name {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}
.skills__data:nth-child(6) {
  animation-delay: 0.6s;
}

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

/*=============== PROJECTS ===============*/
.projects__container {
  max-width: 900px;
  margin: 0 auto;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.project__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.project__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-color);
  transform: scaleY(0);
  transition: var(--transition);
}

.project__item:hover::before {
  transform: scaleY(1);
}

.project__item:hover {
  border-color: var(--accent-color);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project__item--featured {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, transparent 100%);
}

.project__item--featured::before {
  transform: scaleY(1);
}

.project__item--disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.project__name {
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.project__icon {
  font-size: 1.5rem;
  color: var(--text-color-light);
  transition: var(--transition);
}

.project__item:hover .project__icon {
  color: var(--accent-color);
  transform: translateX(4px);
}

.project__tag {
  font-size: var(--small-font-size);
  color: var(--text-color-lighter);
  font-style: italic;
}

/*=============== CONTACT ===============*/
.contact__container {
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__content {
  order: 2;
}

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

.contact__info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact__card {
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.contact__card-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact__card:hover .contact__card-icon {
  transform: scale(1.15);
}

.contact__card-title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semibold);
  font-family: var(--title-font);
  margin-bottom: 0.5rem;
  color: var(--title-color);
}

.contact__card-data {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.contact__button {
  color: var(--accent-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-weight: var(--font-medium);
  transition: var(--transition);
}

.contact__button:hover {
  color: var(--accent-hover);
  gap: 0.5rem;
}

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

.contact__button-icon {
  font-size: 1rem;
  transition: var(--transition);
}

.contact__form {
  order: 1;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact__form-div {
  position: relative;
  margin-bottom: 1.5rem;
  height: auto;
}

.contact__form-area {
  height: auto;
}

.contact__form-area textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form-tag {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.contact__form-input {
  width: 100%;
  border: 2px solid var(--border-color);
  background: var(--body-color);
  color: var(--text-color);
  outline: none;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
  transition: var(--transition);
}

.contact__form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.contact__form-input::placeholder {
  color: var(--text-color-light);
}

/* Form message styles */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: var(--small-font-size);
  text-align: center;
  transition: all 0.3s ease;
}

.form-message.success {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #0a0a0a;
}

.form-message.error {
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: #333333;
}

.button-loading {
  display: none;
}

.button.loading .button-text {
  display: none;
}

.button.loading .button-loading {
  display: inline;
}

.button.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/*=============== FOOTER ===============*/
.footer {
  background: var(--section-bg);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer__container {
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  font-family: var(--title-font);
  margin-bottom: 0.5rem;
  color: var(--title-color);
}

.footer__description {
  margin-bottom: 2.5rem;
  color: var(--text-color-light);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.footer__list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.footer__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--accent-color);
}

.footer__link:hover::after {
  width: 100%;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.footer__social-link {
  background: var(--container-color);
  color: var(--text-color-light);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1.25rem;
  display: inline-flex;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.footer__social-link:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.footer__copy {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  padding: 1rem;
  display: inline-block;
}

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

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

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

/*=============== BREAKPOINTS ===============*/
/* For very small devices */
@media screen and (max-width: 375px) {
  .home__name {
    font-size: 1.9rem;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0.75rem;
  }

  .typing-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .home__title {
    font-size: 1.1rem;
  }

  .home__description {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .project__item {
    padding: 1rem 1.25rem;
  }

  .project__name {
    font-size: var(--normal-font-size);
  }
}

/* For mobile devices */
@media screen and (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 4rem 0 2rem;
  }

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

  .home {
    min-height: 60vh;
    padding: var(--header-height) 0 2rem;
  }

  .home__container {
    gap: 2rem;
  }

  .home__handle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .home__img {
    width: 180px;
    height: 180px;
  }

  .home__name {
    font-size: 2.2rem;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0.75rem;
    max-width: 100%;
  }

  .typing-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .home__title {
    font-size: 0.25rem;
  }

  .home__description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .home__buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .home__social {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 2rem;
  }

  .home__social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .home__scroll {
    display: none;
  }

  .about__container {
    gap: 2rem;
  }

  .about__img {
    max-width: 100%;
  }

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

  .about__box {
    padding: 1.5rem 1rem;
  }

  .about__description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

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

  .skills__content {
    padding: 2rem 1.5rem;
  }

  .skills__group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .skills__data {
    padding: 1rem 1.25rem;
    justify-content: flex-start;
  }

  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__form {
    width: 100%;
  }

  .contact__form-input {
    font-size: 0.95rem;
  }

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

  .contact__card {
    padding: 1.5rem 1rem;
  }

  .nav__menu {
    width: 85%;
    padding: 0.75rem 1.5rem;
    bottom: 1rem;
  }

  .nav__list {
    gap: 0;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 0.5rem;
  }
}

/* For very small devices */
@media screen and (max-width: 320px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .home__handle {
    width: 180px;
    height: 180px;
  }

  .home__img {
    width: 160px;
    height: 160px;
  }

  .home__name {
    font-size: 1.8rem;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0.75rem;
  }

  .typing-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .home__buttons {
    gap: 0.5rem;
  }

  .button {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .about__info {
    grid-template-columns: 1fr;
  }

  .skills__data {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .nav__menu {
    width: 90%;
    padding: 0.5rem 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .nav__menu {
    width: 350px;
    padding: 0.75rem 2rem;
  }

  .home__handle {
    width: 250px;
    height: 250px;
  }

  .home__img {
    width: 230px;
    height: 230px;
  }

  .home__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .button {
    width: auto;
    min-width: 160px;
  }

  .about__info {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 1.5rem;
  }

  .skills__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
  }

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

  .contact__info {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contact__form {
    padding: 2rem;
  }
}

/* For tablets */
@media screen and (min-width: 767px) {
  .section {
    padding: 5rem 0 3rem;
  }

  .home {
    min-height: 70vh;
  }

  .home__container {
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: 4rem;
  }

  .home__data {
    order: 1;
    text-align: left;
  }

  .home__handle {
    order: 2;
    width: 280px;
    height: 350px;
  }

  .home__img {
    width: 260px;
    height: 320px;
  }

  .home__social {
    position: absolute;
    left: 2rem;
    bottom: 50%;
    transform: translateY(50%);
    flex-direction: column;
  }

  .about__container {
    grid-template-columns: 350px 1fr;
    align-items: center;
    gap: 3rem;
  }

  .about__data {
    text-align: left;
  }

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

  .contact__container {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 4rem;
  }
}

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

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

  .section__title {
    margin-bottom: 4rem;
  }

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

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .home {
    padding-top: 8rem;
  }

  .home__container {
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    text-align: left;
  }

  .home__data {
    order: 1;
  }

  .home__handle {
    order: 2;
    width: 400px;
    height: 400px;
  }

  .home__img {
    width: 380px;
    height: 380px;
  }

  .home__social {
    left: -6rem;
    bottom: 50%;
  }

  .home__scroll {
    right: -6rem;
  }

  .about__container {
    grid-template-columns: 400px 1fr;
    gap: 5rem;
    align-items: center;
  }

  .about__data {
    text-align: left;
  }

  .contact__container {
    grid-template-columns: 400px 1fr;
    gap: 5rem;
  }

  .contact__content {
    order: 1;
  }

  .contact__form {
    order: 2;
  }
}

/*=============== 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);
  line-height: 1.6;
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: var(--transition);
  font-weight: var(--font-regular);
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

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

/*=============== THEME TOGGLE ===============*/
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
  transition: var(--transition);
  z-index: var(--z-fixed);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

/*========== Dark Theme ==========*/
body.dark-theme {
  --title-color: #ffffff;
  --text-color: #e0e0e0;
  --text-color-light: #a0a0a0;
  --text-color-lighter: #666666;
  --body-color: #1a1a1a;
  --container-color: #2a2a2a;
  --border-color: #404040;
  --section-bg: #262626;
  --first-color: #ffffff;
  --first-color-alt: #e0e0e0;
}

/*========== Light Theme ==========*/
body.light-theme {
  --title-color: #000000;
  --text-color: #333333;
  --text-color-light: #666666;
  --text-color-lighter: #999999;
  --body-color: #ffffff;
  --container-color: #ffffff;
  --border-color: #e5e5e5;
  --section-bg: #fafafa;
}

/*========== Light Theme Adjustments ==========*/
.light-theme .nav__menu {
  background: var(--container-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.light-theme .home__social-link {
  background: var(--container-color);
  border: 1px solid var(--border-color);
}

.light-theme::-webkit-scrollbar {
  background-color: var(--section-bg);
}

.light-theme::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
}

.light-theme::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-lighter);
}

/*=============== 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;
}

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

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

.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.25rem;
  padding: 0.4rem;
  display: flex;
  border-radius: 5rem;
}

/* Active link */
.active-link {
  background: linear-gradient(180deg, hsla(var(--first-hue), var(--sat), var(--lig), 1), hsla(var(--first-hue), var(--sat), var(--lig), 0.2));
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 4);
  color: var(--title-color);
}

/*=============== 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.2;
}

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

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

.home__img {
  width: 250px;
  max-width: 250px;
}

.home__handle {
  justify-self: center;
  width: 190px;
  height: 293px;
  background: linear-gradient(180deg, hsla(var(--first-hue), var(--sat), var(--lig), 1), hsla(var(--first-hue), var(--sat), var(--lig), 0.2));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.home__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.home__social,
.home__scroll {
  position: absolute;
}

.home__social {
  bottom: 5rem;
  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.25rem;
  display: flex;
  font-size: 1rem;
  transition: 0.4s;
}

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

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

.home__scroll {
  animation: pulse 2s infinite;
  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.5rem;
  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;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}

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

.about__img {
  width: 100%;
  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 (Alternative - Commented) ===============*/
/*
.skills__container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
}
*/

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

.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;
}
.skills .bxs-badge-check {
  font-size: 1rem;
  color: var(--first-color);
}

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

.skills__level {
  font-size: var(--tiny-font-size);
}
*/

/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
  justify-content: center;
}

.services__card {
  background-color: var(--container-color);
  padding: 3rem 1.5rem 1.5rem;
  border-radius: 1rem;
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: 2.5rem;
}

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

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

.services__icon {
  font-size: 1rem;
  transition: 4s;
}

/* Services modal */
.services__modal {
  position: fixed;
  inset: 0;
  background-color: hsla(var(--second-hue), 28%, 16%, 0.7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
  z-index: var(--z-modal);
}

.services__modal-content {
  position: relative;
  background-color: var(--body-color);
  padding: 4.5rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
}

.services__modal-title,
.services__modal-description {
  text-align: center;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.services__modal-description {
  font: var(--small-font-size);
  margin-bottom: 2rem;
}

.services__modal-list {
  display: grid;
  row-gap: 0.75rem;
}

.services__modal-item {
  display: flex;
  align-items: flex-start;
  column-gap: 0.5rem;
}

.services__modal-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

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

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}
/*Active modal*/
.active-modal {
  opacity: 1;
  visibility: visible;
}

/*=============== WORK ===============*/
.work__container {
  padding-top: 1rem;
}

.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 2rem;
}

.work__item {
  cursor: pointer;
  color: var(--first-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
}

.work__card {
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
}

.work__img {
  border-radius: 1rem;
  margin-bottom: 0.75rem;
}

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

.work__button {
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

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

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

.active-work {
  background-color: var(--first-color);
  color: var(--body-color);
}

/* Active item work*/

/*=============== TESTIMONIAL ===============*/

/* Swiper class */

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

.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;
  color: var(--text-color);
  outline: none;
  padding: 1.5rem;
  border-radius: 0.75rem;
  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: 11rem;
}

.contact__form-area textarea {
  resize: none;
}
/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
}

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

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

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

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

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

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

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

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--second-hue), 8%, 38%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(--second-hue, 8%, 26%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-button:hover {
  background-color: hsl(var(--second-hue), 8%, 20%);
}

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

  .home__buttons {
    flex-direction: columm;
  }

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

  .home__img {
    width: 350px;
    max-width: 350px;
  }

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

  .skills__box {
    column-gap: 1rem;
  }

  .skills__name {
    font-size: var(--small-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;
  }
}

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

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

  .about__description {
    padding: 0 5rem;
  }

  .skills__container {
    justify-content: center;
  }

  .skills__content {
    padding: 2rem;
  }

  .services__container {
    grid-template-columns: repeat(2, 160px);
  }

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

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

  .work__container {
    justify-content: center;
  }

  .work__img {
    width: 295px;
  }

  .contact__info {
    grid-template-columns: 300px;
    justify-content: center;
  }

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

  .projects__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .projects__container {
    max-width: 500px;
  }
}

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

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

/* 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);
  }

  /* Show desktop menu */
  #nav-menu-desktop {
    display: block;
  }

  /* Hide mobile floating menu */
  #nav-menu {
    display: none;
  }

  .header {
    box-shadow: 0 1px 0 var(--border-color);
  }

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

  .home__img {
    width: 350px;
    max-width: 350px;
  }

  .home__social-link {
    padding: 0.4rem;
    font-size: 1.25rem;
  }

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

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

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

  .about__img {
    width: 100%;
  }

  .about__data {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
  }

  .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, 450px);
    column-gap: 3rem;
  }

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

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

  .work__container {
    gap: 3rem;
  }

  .work__card {
    padding: 1.25rem;
  }

  .work__img {
    margin-bottom: 1rem;
  }

  .work__title {
    margin-bottom: 0.5rem;
  }

  .projects__container {
    max-width: 1000px;
  }

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

  .contact__container {
    column-gap: 6rem;
  }

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

@keyframes pulse {
  0% {
    transform: scale(0.95);
  }

  70% {
    transform: scale(1);
  }

  100% {
    transform: scale(0.95);
  }
}

/*=============== GLASSMORPHISM ENHANCEMENTS ===============*/
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.liquid-bg {
  position: relative;
  overflow: hidden;
}

.liquid-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: liquid-flow 10s linear infinite;
  pointer-events: none;
}

@keyframes liquid-flow {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(0deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(360deg);
  }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

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

.glow-text {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(45deg, var(--first-color), var(--second-color));
  border-radius: inherit;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/*=============== CUSTOM CURSOR ===============*/
.custom-cursor {
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(2);
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

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

/*=============== MAGNETIC EFFECT ===============*/
.magnetic {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*=============== 3D TILT EFFECT FOR CARDS ===============*/
.skills__data,
.projects__card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
}

.skills__data:hover,
.projects__card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(0, 0, 0, 0.1);
}

.skills__data::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.skills__data:hover::before {
  opacity: 1;
}

/*=============== FLOATING ANIMATION ===============*/
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.home__img {
  animation: float 6s ease-in-out infinite;
}

/*=============== GRADIENT BACKGROUND ANIMATION ===============*/
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.home__data,
.home__handle,
.home__social,
.home__scroll {
  position: relative;
  z-index: 1;
}

/*=============== NEON GLOW EFFECT ===============*/
.button:hover {
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 0, 0, 0.2),
    0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.nav__link.active-link {
  color: var(--accent-color);
  position: relative;
}

.nav__link.active-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
}

/*=============== TEXT REVEAL ANIMATION ===============*/
@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.home__greeting,
.home__name,
.home__title,
.home__description {
  animation: text-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.home__greeting {
  animation-delay: 0.1s;
}

.home__name {
  animation-delay: 0.2s;
}

.home__title {
  animation-delay: 0.3s;
}

.home__description {
  animation-delay: 0.4s;
}

.home__buttons {
  animation: text-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
}

/*=============== SHINE EFFECT ON HOVER ===============*/
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.projects__card {
  overflow: hidden;
  position: relative;
}

.projects__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: none;
  z-index: 2;
}

.projects__card:hover::before {
  animation: shine 0.8s ease;
}

/*=============== RIPPLE EFFECT ===============*/
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.button {
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.button:active::before {
  width: 300px;
  height: 300px;
  transition: 0s;
}

/*=============== PARALLAX LAYERS ===============*/
.parallax-element {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*=============== LOADING ANIMATION ===============*/
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.home {
  animation-delay: 0s;
}

.about {
  animation-delay: 0.1s;
}

.skills {
  animation-delay: 0.1s;
}

.projects {
  animation-delay: 0.1s;
}

/*=============== SMOOTH SCROLL INDICATOR ===============*/
.home__scroll {
  position: relative;
}

.home__scroll::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0;
  background: var(--accent-color);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%,
  100% {
    height: 0;
    opacity: 0;
  }
  50% {
    height: 30px;
    opacity: 1;
  }
}

/*=============== HOVER LIFT FOR SOCIAL ICONS ===============*/
.home__social-link,
.footer__social-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home__social-link:hover,
.footer__social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/*=============== SKILLS ICON ANIMATION ===============*/
.skills__data i {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills__data:hover i {
  transform: rotateY(360deg) scale(1.2);
  color: var(--accent-color);
}

/*=============== TYPEWRITER EFFECT ===============*/
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/*=============== BORDER ANIMATION ===============*/
@keyframes border-dance {
  0%,
  100% {
    clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%);
  }
  25% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 100% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%);
  }
  50% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%, 0% 100%, 0% 100%, 0% 0%);
  }
  75% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%, 0% 100%, 0% 0%, 0% 0%);
  }
}

.skills__data::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.skills__data:hover::after {
  opacity: 1;
  animation: border-dance 2s linear infinite;
}

/*=============== RESPONSIVE ADJUSTMENTS ===============*/
@media screen and (max-width: 767px) {
  .custom-cursor,
  .cursor-follower {
    display: none;
  }

  .skills__data:hover,
  .projects__card:hover {
    transform: scale(1.02);
  }
}

/*=============== ANIMATED PARTICLES BACKGROUND ===============*/
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}
