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

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

  /*========== Colors - Sistema Procedural Dinâmico ==========*/
  /* Cores base da logo Mlu Dev - Expandidas */
  --primary-color: #E91E63; /* Pink/Magenta from logo */
  --secondary-color: #9C27B0; /* Purple from logo */
  --accent-color: #BB86FC; /* Light purple */
  --tertiary-color: #8A2BE2; /* Blue violet */
  --quaternary-color: #7B68EE; /* Medium slate blue */
  --cosmic-purple: #6A0DAD; /* Deep purple */
  
  --first-color: var(--primary-color);
  --first-color-second: var(--secondary-color);
  --first-color-alt: #AD1457; /* Darker pink - will be updated dynamically */
  --first-color-lighter: rgba(233, 30, 99, 0.1);
  
  /* Dark theme colors */
  --title-color: #FFFFFF;
  --text-color: #B3B3B3;
  --text-color-light: #888888;
  --input-color: #2A2A2A;
  --body-color: #0F0F0F;
  --container-color: #1A1A1A;
  --card-color: #1F1F1F;
  --border-color: #333333;
  --scroll-bar-color: #333333;
  --scroll-thumb-color: #555555;

  /*========== Font and typography ==========*/
  --body-font: 'Inter', sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

  /*========== Margenes Bottom ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

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

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Light theme override (optional) ==========*/
body.light-theme {
  --title-color: #1A1A1A;
  --text-color: #4A4A4A;
  --text-color-light: #666666;
  --input-color: #F5F5F5;
  --body-color: #FFFFFF;
  --container-color: #FFFFFF;
  --card-color: #FAFAFA;
  --border-color: #E0E0E0;
  --scroll-bar-color: #E0E0E0;
  --scroll-thumb-color: #C0C0C0;
}

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

html {
  /* scroll-behavior removido para usar implementação customizada */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Prevent scrolling when menu is open */
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Desktop: Fundo cósmico global - Estrelas */
@media screen and (min-width: 769px) {
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle 2.5px at 75% 25%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 30%, transparent 70%),
      radial-gradient(circle 1.5px at 10% 90%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%),
      radial-gradient(circle 2.5px at 50% 40%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.18) 40%, transparent 80%),
      radial-gradient(circle 3.5px at 85% 15%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.12) 60%, transparent 100%),
      radial-gradient(circle 1.5px at 15% 10%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
      radial-gradient(circle 2.5px at 60% 70%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.16) 45%, transparent 90%),
      radial-gradient(circle 1.5px at 40% 30%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.18) 40%, transparent 100%),
      radial-gradient(circle 2.5px at 23% 55%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 35%, transparent 75%),
      radial-gradient(circle 1.5px at 5% 75%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%),
      radial-gradient(circle 1.5px at 55% 5%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 40%, transparent 100%);
    z-index: -3;
    animation: starsTwinkle 25s ease-in-out infinite;
    pointer-events: none;
  }
}

/* Desktop: Fundo cósmico global - Galáxias e Nebulosas (Procedural) */
@media screen and (min-width: 769px) {
  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      /* Galáxia espiral 1 - Posições e cores dinâmicas via JavaScript */
      radial-gradient(ellipse 800px 200px at var(--galaxy1-x, 15%) var(--galaxy1-y, 30%), var(--cosmic-galaxy1-primary, rgba(156, 39, 176, 0.06)) 0%, var(--cosmic-galaxy1-secondary, rgba(156, 39, 176, 0.03)) 30%, transparent 70%),
      radial-gradient(ellipse 600px 150px at var(--galaxy1-sub-x, 20%) var(--galaxy1-sub-y, 35%), var(--cosmic-galaxy1-secondary, rgba(187, 134, 252, 0.05)) 0%, transparent 60%),
      /* Galáxia espiral 2 */
      radial-gradient(ellipse 700px 180px at var(--galaxy2-x, 85%) var(--galaxy2-y, 70%), var(--cosmic-galaxy2-primary, rgba(233, 30, 99, 0.055)) 0%, var(--cosmic-galaxy2-secondary, rgba(233, 30, 99, 0.025)) 40%, transparent 80%),
      radial-gradient(ellipse 500px 120px at var(--galaxy2-sub-x, 80%) var(--galaxy2-sub-y, 65%), var(--cosmic-galaxy2-secondary, rgba(156, 39, 176, 0.04)) 0%, transparent 70%),
      /* Nebulosas com cores dinâmicas */
      radial-gradient(ellipse 300px 200px at var(--nebula1-x, 60%) var(--nebula1-y, 15%), var(--cosmic-nebula1, rgba(187, 134, 252, 0.08)) 0%, transparent 60%),
      radial-gradient(ellipse 250px 300px at var(--nebula2-x, 40%) var(--nebula2-y, 85%), var(--cosmic-nebula2, rgba(233, 30, 99, 0.06)) 0%, transparent 65%),
      /* Camada adicional de nebulosas */
      radial-gradient(ellipse 350px 180px at var(--nebula3-x, 25%) var(--nebula3-y, 80%), var(--cosmic-nebula3, rgba(156, 39, 176, 0.04)) 0%, transparent 75%),
      radial-gradient(ellipse 280px 320px at var(--nebula4-x, 80%) var(--nebula4-y, 25%), var(--cosmic-nebula4, rgba(233, 30, 99, 0.035)) 0%, transparent 70%);
    filter: blur(35px);
    animation: galaxyDrift 600s ease-in-out infinite;
    z-index: -2;
    transform: rotate(var(--cosmic-rotation, -5deg));
    pointer-events: none;
  }
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  /* Otimizações de imagem para performance */
  loading: lazy;
  decoding: async;
  /* Prevenção de layout shift */
  aspect-ratio: attr(width) / attr(height);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 2rem 0 4rem;
  min-height: 100vh;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

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

/*=============== LAYOUT ===============*/
.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

/*=============== BUTTONS - Gradientes Rosa/Roxo Fixos ===============*/
.button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-second) 100%);
  color: #FFF;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  gap: .5rem;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.button:hover {
  background: linear-gradient(135deg, var(--first-color-second) 0%, var(--accent-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.button--secondary {
  background: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.1);
}

.button--secondary:hover {
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-second) 100%);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.button__icon {
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: .3s;
}

/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
  transition: all .3s ease;
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 1200px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav__list {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  font-size: var(--normal-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all .3s ease;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--first-color);
  background: linear-gradient(135deg, 
    rgba(233, 30, 99, 0.1) 0%, 
    rgba(156, 39, 176, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1003;
}

.nav__close:hover {
  color: var(--first-color-alt);
  background-color: rgba(233, 30, 99, 0.1);
  transform: scale(1.1);
}

.nav__toggle {
  color: var(--title-color);
  font-weight: var(--font-medium);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: none;
  border: 2px solid transparent;
  z-index: 99;
  position: relative;
}

.nav__toggle svg {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
  color: var(--title-color);
  stroke-width: 2.5;
}

.nav__toggle:hover {
  background-color: rgba(233, 30, 99, 0.1);
  border-color: var(--first-color);
  transform: scale(1.05);
  border-radius: 0.75rem;
}

.nav__toggle:hover svg {
  color: var(--first-color);
  transform: rotate(180deg);
}

/* show menu */
.show-menu {
  right: 0;
  visibility: visible;
  opacity: 1;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}

/*=============== HOME ===============*/
.home {
  position: relative;
  overflow: visible;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 50px);
  /* Fix mobile scroll issues */
  will-change: auto;
}

/* Desktop: Animated background */
@media screen and (min-width: 769px) {
  .home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(233, 30, 99, 0.04) 0%, transparent 40%),
      radial-gradient(circle at 80% 20%, rgba(156, 39, 176, 0.03) 0%, transparent 50%),
      radial-gradient(circle at 60% 80%, rgba(187, 134, 252, 0.02) 0%, transparent 45%);
    background-size: 600px 600px, 800px 800px, 500px 500px;
    animation: backgroundMove 120s ease-in-out infinite;
    z-index: -2;
  }
}

/* Mobile: Simple static background */
@media screen and (max-width: 768px) {
  .home{
    padding-top: 0;
  }
  .home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.02) 0%, transparent 60%);
    z-index: -2;
  }
}

/* Desktop: Second background layer */
@media screen and (min-width: 769px) {
  .home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 70% 40%, rgba(156, 39, 176, 0.035) 0%, transparent 45%),
      radial-gradient(circle at 10% 60%, rgba(233, 30, 99, 0.03) 0%, transparent 40%);
    background-size: 900px 900px, 650px 650px;
    animation: backgroundMove2 150s ease-in-out infinite reverse;
    z-index: -1;
  }
}

@keyframes backgroundMove {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 25% 75%, 0% 0%;
    transform: scale(1) rotate(0deg);
  }
  25% {
    background-position: 25% 25%, 75% 75%, 70% 30%, 60% 40%, 0% 0%;
    transform: scale(1.02) rotate(0.5deg);
  }
  50% {
    background-position: 50% 25%, 50% 75%, 80% 70%, 80% 20%, 0% 0%;
    transform: scale(1.01) rotate(-0.3deg);
  }
  75% {
    background-position: 75% 50%, 25% 50%, 30% 80%, 40% 60%, 0% 0%;
    transform: scale(1.03) rotate(0.2deg);
  }
}

@keyframes backgroundMove2 {
  0%, 100% {
    background-position: 100% 0%, 0% 100%, 50% 50%;
    opacity: 1;
  }
  33% {
    background-position: 70% 30%, 30% 70%, 80% 20%;
    opacity: 0.8;
  }
  66% {
    background-position: 20% 80%, 80% 20%, 60% 90%;
    opacity: 0.9;
  }
}

.home__container {
  gap: 1rem;
}

.home__content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 3.5rem;
}

.home__blob {
  width: 200px;
  fill: var(--first-color);
}

.home__blob-img {
  width: 170px;
}

.home__img {
  justify-self: center;
  order: 1;
}

.home__data {
  max-width: 600px;
  margin: 0 auto;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-0-25);
}

.home__title-color {
  color: var(--first-color);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  margin-bottom: var(--mb-2);
  line-height: 1.8;
}

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

.home__scroll {
  display: none;
}

.home__scroll-button {
  color: var(--first-color);
  transition: .3s;
}

.home__scroll-button:hover {
  transform: translateY(.25rem);
}

.home__scroll-text {
  display: none;
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--first-color);
  border-right: 2px solid var(--first-color);
  transform: rotate(45deg);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(5px);
  }
  60% {
    transform: rotate(45deg) translateY(5px);
  }
}


/*=============== ABOUT ===============*/
.about__img {
  width: 200px;
  border-radius: .5rem;
  justify-self: center;
  align-self: center;
}

.about__img-photo {
  border-radius: .5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
  line-height: 1.8;
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-number {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.about__info-name {
  font-size: var(--smaller-font-size);
  text-align: center;
}

.about__buttons {
  display: flex;
  justify-content: center;
}

/* About Visual Side */
.about__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

.about__image {
  margin-bottom: var(--mb-2);
}

.about__img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(233, 30, 99, 0.1) 0%, 
    rgba(156, 39, 176, 0.15) 50%, 
    rgba(187, 134, 252, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.about__img-wrapper::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, 
    transparent 0deg,
    var(--first-color) 60deg,
    transparent 120deg,
    var(--secondary-color) 180deg,
    transparent 240deg,
    var(--accent-color) 300deg,
    transparent 360deg);
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

.about__avatar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--container-color);
  border: 2px solid rgba(233, 30, 99, 0.2);
}

.about__avatar-icon {
  opacity: 0.8;
}

.about__values {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.about__value-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.about__value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(233, 30, 99, 0.3);
}

.about__value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background-color: rgba(233, 30, 99, 0.1);
  margin-right: 1rem;
  flex-shrink: 0;
}

.about__value-content {
  flex: 1;
}

.about__value-title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.about__value-description {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  line-height: 1.4;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*=============== ABOUT ===============*/
.about {
  position: relative;
}

/*=============== SKILLS ===============*/
.skills {
  position: relative;
}

/*=============== WORK ===============*/
.work {
  position: relative;
}

@keyframes starsTwinkle {
  0% { opacity: 0.4; transform: scale(1); }
  25% { opacity: 0.6; transform: scale(1.05); }
  50% { opacity: 0.3; transform: scale(0.95); }
  75% { opacity: 0.7; transform: scale(1.08); }
  100% { opacity: 0.4; transform: scale(1); }
}

@keyframes galaxyDrift {
  0% {
    opacity: 0.8;
    transform: rotate(-5deg) translateX(0px) translateY(0px) scale(1);
  }
  33% {
    opacity: 0.6;
    transform: rotate(-4deg) translateX(10px) translateY(-5px) scale(1.02);
  }
  66% {
    opacity: 0.7;
    transform: rotate(-6deg) translateX(-8px) translateY(12px) scale(0.98);
  }
  100% {
    opacity: 0.8;
    transform: rotate(-5deg) translateX(0px) translateY(0px) scale(1);
  }
}

@keyframes nebulaDrift {
  0%, 100% {
    opacity: 1;
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
  33% {
    opacity: 0.6;
    transform: translateX(20px) translateY(-15px) rotate(2deg);
  }
  66% {
    opacity: 0.8;
    transform: translateX(-10px) translateY(25px) rotate(-1deg);
  }
}

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

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-2-5);
}

.skills__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.skills__title {
  font-size: var(--h3-font-size);
}

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


.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.7rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-5);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentage {
  height: 5px;
  border-radius: .25rem;
}

.skills__bar {
  background-color: var(--first-color-lighter);
}

.skills__percentage {
  display: block;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-second) 100%);
  width: 0%;
  will-change: width;
  transform: translateZ(0); /* Force hardware acceleration */
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.skills__html {
  width: 90%;
}

.skills__css {
  width: 85%;
}

.skills__js {
  width: 96%;
}

.skills__react {
  width: 75%;
}

.skills__angular {
  width: 94%;
}

.skills__vue {
  width: 80%;
}

.skills__wordpress {
  width: 95%;
}

.skills__node {
  width: 97%;
}

.skills__php {
  width: 98%;
}

.skills__python {
  width: 60%;
}

.skills__dotnet {
  width: 70%;
}

.skills__postgres {
  width: 90%;
}

.skills__sqlserver {
  width: 85%;
}

.skills__mysql {
  width: 85%;
}

.skills__mongodb {
  width: 80%;
}

/* Skills name container with icons */
.skills__name-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.skills__list {
  height: max-content;
  margin-bottom: var(--mb-2-5);
}

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

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.5rem 1rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
  user-select: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.work__item:hover {
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-second) 100%);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.active-work {
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-second) 100%);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

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

.work__card {
  position: relative;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  transition: 0.4s;
}

.work__card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 8px 50px rgba(14, 36, 49, 0.15);
}

.work__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
}

.work__overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    hsla(var(--hue-color), 24%, 40%, 0.3) 0%, 
    hsla(var(--hue-color), 24%, 4%, 1) 95%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
  padding: 0 1rem;
}

.work__card:hover .work__overlay {
  bottom: 0;
  background: #f1f1f1;
  opacity: 0.6;
}

.work__title {
  color: var(--container-color);
  font-size: var(--h3-font-size);
  margin-bottom: 0.25rem;
}

.work__description {
  color: var(--container-color);
  font-size: var(--small-font-size);
  text-align: center;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

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

.work__link {
  display: inline-flex;
  color: var(--container-color);
  font-size: 1.25rem;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
  padding: 0.25rem;
  margin: 0 0.25rem;
  transition: 0.3s;
}

.work__link:hover {
  background-color: var(--container-color);
  color: var(--first-color);
}

/*=============== TOASTR/NOTIFICATIONS ===============*/
.toastr-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.notification {
  position: relative;
  min-width: 300px;
  max-width: 450px;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(120%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: all;
  overflow: hidden;
}

.notification.show {
  transform: translateX(0);
}

.notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--secondary-color) 100%);
}

.notification--success {
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.9) 0%, 
    rgba(56, 142, 60, 0.95) 100%);
  color: #fff;
}

.notification--error {
  background: linear-gradient(135deg, 
    rgba(244, 67, 54, 0.9) 0%, 
    rgba(211, 47, 47, 0.95) 100%);
  color: #fff;
}

.notification--warning {
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.9) 0%, 
    rgba(245, 124, 0, 0.95) 100%);
  color: #fff;
}

.notification--info {
  background: linear-gradient(135deg, 
    var(--first-color) 0%, 
    var(--secondary-color) 100%);
  color: #fff;
}

.notification__content {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  gap: 0.75rem;
}

.notification__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  margin-top: 2px;
}

.notification__body {
  flex: 1;
  min-width: 0;
}

.notification__title {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.notification__text {
  font-size: var(--smaller-font-size);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.notification__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.notification__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.1);
}

.notification__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
  transform-origin: left;
  animation: notificationProgress 5s linear;
}

@keyframes notificationProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .toastr-container {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  
  .notification {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/*=============== BUTTON LOADING STATE ===============*/
.button--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: not-allowed;
}

.button--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: buttonSpinner 1s linear infinite;
}

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

.button--loading .button__icon {
  opacity: 0;
}

/*=============== CONTACT ===============*/
.contact {
  position: relative;
}

@keyframes starsGlow {
  0%, 100% { opacity: 0.25; transform: scale(1) rotate(0deg); }
  20% { opacity: 0.4; transform: scale(1.2) rotate(1deg); }
  40% { opacity: 0.15; transform: scale(0.8) rotate(-1deg); }
  60% { opacity: 0.35; transform: scale(1.1) rotate(0.5deg); }
  80% { opacity: 0.2; transform: scale(0.9) rotate(-0.5deg); }
}

@keyframes cosmicDrift {
  0%, 100% {
    opacity: 1;
    transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    opacity: 0.7;
    transform: translateX(15px) translateY(-10px) rotate(1deg) scale(1.05);
  }
  50% {
    opacity: 0.4;
    transform: translateX(-5px) translateY(20px) rotate(-0.5deg) scale(0.95);
  }
  75% {
    opacity: 0.8;
    transform: translateX(-20px) translateY(-5px) rotate(1.5deg) scale(1.02);
  }
}

.contact__container {
  row-gap: 3rem;
}

.contact__information {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--mb-2);
}

.contact__info {
  display: flex;
  margin-bottom: var(--mb-1);
}

.contact__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

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

.contact__content {
  background-color: var(--input-color);
  border-radius: .5rem;
  padding: .75rem 1rem .25rem;
}

.contact__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: .25rem .5rem .5rem 0;
}

/*=============== FOOTER ===============*/
.footer {
  margin-top: 4rem;
}

.footer__bg {
  background: var(--body-color);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(233, 30, 99, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(156, 39, 176, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(187, 134, 252, 0.01) 0%, transparent 45%);
  pointer-events: none;
}

.footer__container {
  position: relative;
  z-index: 2;
  padding: 3rem 0 1rem;
}

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

.footer__brand {
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-0-75);
  font-weight: var(--font-semi-bold);
}

.footer__description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: var(--mb-1-5);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer__services,
.footer__contact {
  text-align: center;
}

.footer__subtitle {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 0.5rem;
}

.footer__link {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: var(--small-font-size);
  display: inline-block;
}

.footer__link:hover {
  color: var(--first-color);
  transform: translateX(5px);
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
}

.footer__contact-item svg {
  color: var(--first-color);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
}

.footer__copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer__copy p {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  margin: 0;
}

.footer__made-with {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--smaller-font-size);
}

.footer__heart {
  color: var(--first-color);
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.05);
  }
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -20%;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--secondary-color) 100%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  z-index: var(--z-tooltip);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scrollup:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
  background: linear-gradient(135deg, var(--first-color-alt) 0%, var(--secondary-color) 100%);
}

.scrollup:active {
  transform: translateY(-2px) scale(0.95);
}

.scrollup svg {
  font-size: 1.25rem;
  color: #FFF;
  transition: transform 0.3s ease;
}

.scrollup:hover svg {
  transform: translateY(-2px);
}

.show-scroll {
  bottom: 2rem;
}

/* Pulse animation when button appears */
@keyframes scrollUpPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
  }
}

/* Fade in animation for mobile scroll up button */
@keyframes scrollUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8) translateZ(0);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.1) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
  }
}

.show-scroll {
  bottom: 2rem;
  animation: scrollUpPulse 2s ease-in-out infinite;
}

/* Mobile adjustments - REMOVED: Now handled in main mobile media query */

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .60rem;
  background-color: var(--scroll-bar-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

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

/*=============== MEDIA QUERIES RESPONSIVE ===============*/
/* For mobile devices - Optimized */
@media screen and (max-width: 767px) {
  html {
    overflow-x: hidden;
    /* Remove height constraint to let body control scroll */
  }
  
  body {
    overflow-x: hidden;
    height: 100vh;
    padding-top: 0;
    overflow-y: hidden; /* Hide body scroll on mobile */
  }
  
  .main {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overflow-x: hidden;
    /* Remove scroll-behavior to eliminate delay */
    scroll-behavior: auto;
    /* Enable native touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Additional smoothing properties */
    scroll-padding-top: 0;
    overscroll-behavior: contain;
    /* Performance optimizations - remove will-change to reduce delay */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Force immediate scroll response */
    touch-action: pan-y;
  }
  
  /* Force all fixed elements to be positioned relative to viewport on mobile - EXCEPT scrollup */
  .header,
  .nav__menu,
  .toastr-container,
  .notification {
    position: sticky !important;
    /* Reset any transform that might interfere with fixed positioning */
    transform: none !important;
  }
  
  /* ScrollUp button keeps fixed position and animations on mobile */
  .scrollup {
    position: fixed !important;
    right: 1rem !important;
    width: 3rem !important;
    height: 3rem !important;
    bottom: -100vh !important; /* Hidden initially using vh */
    opacity: 0 !important;
    transform: translateY(30px) scale(0.8) translateZ(0) !important;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  }
  
  .scrollup.show-scroll {
    bottom: 1.5rem !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) translateZ(0) !important;
    animation: scrollUpFadeIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards !important;
  }
  
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
  }
  
  /* Disable expensive effects on mobile */
  * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* Remove skills list padding on mobile */
  .skills__list {
    padding-left: 0;
  }
  
  /* Disable heavy background animations for better performance */
  .home::before,
  .home::after,
  body::before,
  body::after {
    animation: none !important;
    transform: none !important;
  }

  .home__content {
    padding-top: 0;
  }
  
  /* Keep essential transitions and animations working for functionality */
  .scrollup,
  .header,
  .nav__menu,
  .nav__toggle,
  .nav__link,
  .button,
  .show-scroll {
    animation-duration: revert !important;
    transition-duration: revert !important;
  }
  
  /* Ensure scroll-up button animation works */
  .scrollup.show-scroll {
    animation: scrollUpPulse 2s ease-in-out infinite !important;
  }
  
  .header {
    background-color: rgba(15, 15, 15, 0.98);
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: var(--z-fixed) !important;
    backdrop-filter: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Projetos: 1 por linha no mobile */
  .work__container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.98);
    /* Remove blur and gradients on mobile */
    border-left: 1px solid rgba(233, 30, 99, 0.2);
    padding: 4rem 2rem 2rem;
    transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    opacity: 0;
    z-index: 1001;
    /* Force GPU acceleration */
    will-change: right, opacity;
    overflow-y: auto;
  }
  
  .nav__menu.show-menu {
    right: 0;
    visibility: visible;
    opacity: 1;
    position: fixed !important;
    overflow: hidden;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav__link {
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: var(--h3-font-size);
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(51, 51, 51, 0.3);
    /* Simplified transition */
    transition: background-color 0.2s ease;
    text-align: center;
  }
  
  .nav__link:hover,
  .nav__link.active-link {
    background-color: rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.5);
    /* Remove transform on mobile */
  }

  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    color: var(--title-color);
    background-color: rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.3);
    border-radius: 50%;
    cursor: pointer;
    /* Simplified transition */
    transition: background-color 0.2s ease;
    z-index: 1003;
  }
  
  .nav__close:hover {
    background-color: rgba(233, 30, 99, 0.2);
    /* Remove rotation on mobile */
  }

  .nav__toggle {
    display: flex;
    z-index: 99;
  }
  
  /* Esconder hamburger quando menu está aberto */
  .nav__menu.show-menu ~ .nav__toggle {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
  
  /* Simplified overlay for mobile */
  .nav__menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  
  .nav__menu.show-menu::before {
    opacity: 1;
    visibility: visible;
  }
  
/* Hide backgrounds on mobile only */
  .home::before,
  .home::after,
  body::before,
  body::after {
    display: none !important;
  }
  
}

/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__menu {
    width: 90%;
    padding: 3rem 1rem 2rem;
  }
  
  .nav__list {
    gap: 1rem;
  }
  
  .nav__link {
    font-size: var(--normal-font-size);
    padding: 0.75rem;
  }

  .home__content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  
  .home__data {
    order: 1;
  }
  
  .home__img {
    order: 0;
    margin-bottom: 2rem;
  }
  
  .home__blob {
    width: 180px;
  }

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

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

/* For medium devices */
@media screen and (min-width: 568px) {
  .home__content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .home__data {
    grid-column: initial;
    order: 0;
  }
  .home__img {
    order: 1;
    justify-self: center;
    align-self: center;
  }

  .about__container,
  .skills__container,
  .work__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .work__container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer responsive for medium screens */
  .footer__main {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  
  .footer__brand {
    text-align: left;
    grid-column: span 2;
  }
  
  .footer__copy {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
    height: auto;
    min-height: 100vh;
  }

  .section {
    padding: 6rem 0 2rem;
  }
  .section__subtitle {
    margin-bottom: 4rem;
  }

  .header {
    top: 0;
    bottom: initial;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
  }


  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    column-gap: 2rem;
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }

  .home {
    padding: 8rem 0 2rem;
  }
  .home__container {
    row-gap: 5rem;
  }
  .home__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }
  .home__blob {
    width: 270px;
  }
  .home__scroll {
    display: block;
  }
  .home__scroll-button {
    margin-left: 3rem;
  }

  .about__container {
    column-gap: 5rem;
  }
  .about__img {
    width: 350px;
  }
  .about__description {
    text-align: initial;
  }
  .about__info {
    justify-content: space-between;
  }
  .about__buttons {
    justify-content: initial;
  }

  .work__container {
    grid-template-columns: repeat(3, 238px);
    justify-content: center;
  }
  .work__filters {
    margin: 4rem 0 2.5rem;
  }

  .contact__form {
    width: 460px;
  }
  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  .home__blob {
    width: 320px;
  }
  .home__social {
    transform: translateX(-6rem);
  }

  .work__container {
    grid-template-columns: repeat(3, 300px);
  }

  .contact__form {
    width: 500px;
  }

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

  /* Footer for large screens */
  .footer__main {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
  }
  
  .footer__brand {
    text-align: left;
    grid-column: initial;
  }
  
  .footer__description {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  
  .footer__services,
  .footer__contact {
    text-align: left;
  }
  
  .footer__contact-info {
    align-items: flex-start;
  }
}

/*=============== 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 pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/*=============== MIXITUP STYLES ===============*/
.mixitup-control-active {
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-second) 100%) !important;
  color: #FFF !important;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3) !important;
}

/* Hide elements by default for mixitup animation */
.work__card {
  opacity: 1;
  transform: scale(1);
}

/*=============== DARK/LIGHT THEME ===============*/
.nav__btns {
  display: flex;
  align-items: center;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

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