/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  --header-height: 3rem;

  /* ========== Colors ========== */
  --hue-color: 240;
  
  /* Primary colors */
  --primary-color: hsl(var(--hue-color), 69%, 61%);
  --primary-color-alt: hsl(var(--hue-color), 57%, 53%);
  --primary-color-lighter: hsl(var(--hue-color), 92%, 85%);
  --accent-color: hsl(321, 70%, 52%);
  
  /* Neutral colors */
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --title-color-light: hsl(var(--hue-color), 8%, 65%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: hsl(var(--hue-color), 70%, 96%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --container-color: #fff;
  --border-color: hsl(var(--hue-color), 8%, 90%);
  
  /* Background gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  
  /* Shadows */
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-colored: 0 8px 25px rgba(99, 102, 241, 0.15);

  /* ========== 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-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* ========== Margenes Bottom ========== */
  --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;
  }

  .scrollup, .hero__scroll {
    display: block !important;
  }
}

/* ===== IMPROVED UX/UI ===== */

/* Smooth transitions for all interactive elements */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a, button, .nav__link, .service__card, .experience__card, .tech__item, .about__feature {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced button hover effects */
.button {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.button:active {
  transform: translateY(-1px);
  transition: all 0.1s ease;
}

/* Enhanced card animations */
.service__card, .experience__card {
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service__card:hover, .experience__card:hover {
  transform: translateY(-15px) scale(1.02);
}

/* Improved tech items with stagger effect */
.tech__item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.tech__item:nth-child(1) { animation-delay: 0.1s; }
.tech__item:nth-child(2) { animation-delay: 0.2s; }
.tech__item:nth-child(3) { animation-delay: 0.3s; }
.tech__item:nth-child(4) { animation-delay: 0.4s; }
.tech__item:nth-child(5) { animation-delay: 0.5s; }
.tech__item:nth-child(6) { animation-delay: 0.6s; }

.tech__item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

/* Smooth nav link transitions */
.nav__link {
  position: relative;
  transition: all 0.3s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__link:hover::after {
  width: 100%;
}

/* Enhanced form interactions */
.contact__form-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact__form-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Improved scroll 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);
  }
}

/* Respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero__browser {
    animation: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse animation for hero CTA */
.hero__buttons .button:first-child {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
  }
  50% {
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.25);
  }
  100% {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
  }
}

/* Enhanced loading states */
.loading-state {
  position: relative;
  overflow: hidden;
}

.loading-state::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Smooth scroll indicator */
.hero__scroll-arrow {
  animation: scroll-indicator 2s ease-in-out infinite;
}

@keyframes scroll-indicator {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(0.5rem);
  }
  60% {
    transform: translateY(0.25rem);
  }
}

/* Enhanced focus states for accessibility */
.button:focus,
.nav__link:focus,
.contact__form-input:focus,
.nav__toggle:focus,
.nav__close:focus,
.hero__scroll-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Visually hidden class for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero__browser {
    border: 2px solid var(--title-color);
  }
  
  .browser__header {
    border-bottom: 2px solid var(--text-color);
  }
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Improved mobile touch targets */
@media screen and (max-width: 768px) {
  .button, .nav__link, .contact__card-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav__link {
    padding: 0.75rem;
  }
}

html {
  scroll-behavior: smooth;
}

/* Otimizações de performance para animações */
.hero__blob,
.hero__browser,
.service__card,
.experience__card,
.tech__item,
.about__feature,
.nav__menu,
.button {
  will-change: transform;
}

/* Forçar aceleração de hardware para elementos animados */
.hero__blob,
.animated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden; /* Prevenir scroll horizontal */
  /* Otimizar renderização de texto */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden; /* Garantir que não há overflow horizontal */
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.3;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== REUSABLE CSS CLASSES ===== */
.section {
  padding: 4rem 0 2rem;
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--mb-0-5);
  padding: 0.25rem 1rem;
  background: var(--primary-color-lighter);
  border-radius: 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
}

.section__description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-color);
  line-height: 1.7;
}

.title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow-colored);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.button--outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.button--outline:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  transition: all 0.3s ease;
  overflow-x: hidden; /* Prevenir overflow horizontal */
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Sobrescrever configurações do container para o nav */
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav__logo {
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
  transition: transform 0.3s ease;
}

.nav__logo:hover {
  transform: scale(1.05);
}

.logo-text {
  color: var(--title-color);
}

.logo-accent {
  color: var(--accent-color);
}

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin: 0;
}

.nav__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--h3-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  position: relative;
  padding: 1rem 2rem;
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  text-transform: capitalize;
}

.nav__link:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.nav__link.active-link {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

.nav__link.active-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 0.75rem; /* Maior touch target */
  border-radius: 50%;
  transition: all 0.3s ease;
  min-width: 44px; /* Touch target mínimo */
  min-height: 44px;
  display: none; /* Oculto por padrão */
  align-items: center;
  justify-content: center;
}

.nav__close:hover {
  color: var(--primary-color-alt);
  background: rgba(99, 102, 241, 0.1);
  transform: rotate(90deg);
}

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: none; /* Oculto por padrão */
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
  background: var(--container-color);
  border: 1px solid var(--border-color);
}

.nav__toggle:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  transform: scale(1.1);
}

/* Animação do ícone hamburger */
.nav__toggle i {
  transition: all 0.3s ease;
}

.nav__toggle.active i::before {
  content: "\f00d"; /* X icon */
}

/* Animação para entrada dos itens do menu */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.show-menu .nav__item {
  animation: fadeInDown 0.4s ease-out forwards;
}

.show-menu .nav__item:nth-child(1) { animation-delay: 0.1s; }
.show-menu .nav__item:nth-child(2) { animation-delay: 0.2s; }
.show-menu .nav__item:nth-child(3) { animation-delay: 0.3s; }
.show-menu .nav__item:nth-child(4) { animation-delay: 0.4s; }
.show-menu .nav__item:nth-child(5) { animation-delay: 0.5s; }
.show-menu .nav__item:nth-child(6) { animation-delay: 0.6s; }

/* ===== HERO ===== */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

.hero__container {
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.hero__data {
  grid-area: 1 / 1 / 2 / 2;
  padding: 2rem 0;
}

.hero__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--mb-1);
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero__title {
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
  line-height: 1.2;
}

.hero__description {
  margin-bottom: var(--mb-2-5);
  color: var(--text-color);
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__image {
  grid-area: 1 / 2 / 2 / 3;
  justify-self: center;
  margin-top: 2rem;
  position: relative; /* Adicionar position relative para melhor controle */
}

.hero__blob {
  width: 200px;
  fill: var(--primary-color);
}

.hero__blob-img {
  width: 170px;
}

/* ===== HERO BROWSER ===== */
.hero__browser {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.browser__header {
  background: #f3f4f6;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.browser__controls {
  display: flex;
  gap: 4px;
}

.browser__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser__dot--red {
  background: #ef4444;
}

.browser__dot--yellow {
  background: #f59e0b;
}

.browser__dot--green {
  background: #10b981;
}

.browser__address {
  flex: 1;
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.browser__address i {
  color: #10b981;
  font-size: 8px;
}

.browser__content {
  padding: 12px;
  background: white;
  min-height: 80px;
  position: relative;
}

.browser__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.browser__line {
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  animation: loadLine 2s ease-in-out infinite;
}

.browser__line--long {
  width: 90%;
  animation-delay: 0s;
}

.browser__line--medium {
  width: 70%;
  animation-delay: 0.3s;
}

.browser__line--short {
  width: 45%;
  animation-delay: 0.6s;
}

.browser__code {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-color);
  padding: 4px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.code__tag {
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.code__text {
  color: white;
  font-size: 9px;
  font-weight: 500;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes loadLine {
  0%, 100% {
    background: #e5e7eb;
  }
  50% {
    background: var(--primary-color-light);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: none; /* Oculto por padrão */
}

.hero__scroll-button {
  color: var(--primary-color);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
}

.hero__scroll-button:hover {
  transform: translateY(0.25rem);
}

.hero__scroll-name {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.hero__scroll-arrow {
  font-size: 1.25rem;
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(0.25rem);
  }
  60% {
    transform: translateY(0.15rem);
  }
}

/* ===== ABOUT ===== */
.about {
  background-color: var(--container-color);
}

.about__content {
  gap: 3rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: var(--mb-2-5);
  line-height: 1.7;
}

.about__stats {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-2-5);
}

.about__stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--body-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}

.about__stat:hover {
  transform: translateY(-5px);
}

.about__stat-number {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  margin-bottom: var(--mb-0-25);
}

.about__stat-text {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.about__features {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: var(--mb-2-5);
  display: grid;
  gap: 2rem;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--body-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.about__feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.about__feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.about__feature-content {
  flex: 1;
}

.about__feature-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
  color: var(--title-color);
}

.about__feature-description {
  color: var(--text-color);
  line-height: 1.6;
}

/* ===== EXPERIENCE ===== */
.experience {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  position: relative;
}

.experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20v-40c11.046 0 20 8.954 20 20zM0 20c0-11.046 8.954-20 20-20v40c-11.046 0-20-8.954-20-20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

.experience__container {
  position: relative;
  z-index: 2;
}

.experience .section__subtitle {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.experience .section__title,
.experience .section__description {
  color: #fff;
}

.experience__content {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.experience__card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience__card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience__icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  align-self: flex-start;
}

.experience__data {
  flex: 1;
}

.experience__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  color: #fff;
}

.experience__description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: var(--mb-1-5);
}

.experience__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ===== SERVICES ===== */
.services {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236366f1' fill-opacity='0.02'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20v-40c11.046 0 20 8.954 20 20zM0 20c0-11.046 8.954-20 20-20v40c-11.046 0-20-8.954-20-20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

.services__container {
  position: relative;
  z-index: 2;
}

.services__content {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service__card {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.service__card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.service__icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mb-1-5);
  color: #fff;
  font-size: 2rem;
}

.service__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  color: var(--title-color);
}

.service__description {
  margin-bottom: var(--mb-1-5);
  color: var(--text-color);
  line-height: 1.6;
}

.service__features {
  list-style: none;
}

.service__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--mb-0-5);
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.service__features i {
  color: var(--primary-color);
  font-size: 0.875rem;
}

/* ===== TECHNOLOGIES ===== */
.technologies {
  background-color: var(--container-color);
}

.tech__category {
  margin-bottom: var(--mb-3);
}

.tech__category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1-5);
  color: var(--title-color);
}

.tech__category-title i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.tech__items {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.tech__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--body-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tech__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.tech__item i {
  font-size: 2rem;
  color: var(--primary-color);
}

.tech__item span {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
  text-align: center;
}

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

.contact__container {
  position: relative;
  z-index: 2;
}

.contact .section__subtitle {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.contact .section__title,
.contact .section__description {
  color: #fff;
}

.contact__content {
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__info {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--mb-2-5);
  gap: 1.5rem;
}

.contact__card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact__card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.contact__card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mb-1);
  color: #fff;
  font-size: 1.5rem;
}

.contact__card-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
  color: #fff;
}

.contact__card-description {
  display: block;
  margin-bottom: var(--mb-0-75);
  color: rgba(255, 255, 255, 0.8);
}

.contact__card-link {
  color: #fff;
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.contact__card-link:hover {
  gap: 0.5rem;
}

.contact__form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact__form-div {
  position: relative;
  margin-bottom: var(--mb-2);
  height: 4rem;
}

.contact__form-area {
  height: 7rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  resize: none;
  transition: all 0.3s ease;
  min-height: 44px; /* Touch target para mobile */
}

.contact__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact__form-input:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); /* Melhor indicação de foco */
}

/* Estado de erro para validação */
.contact__form-input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 0.5rem;
  z-index: 10;
  font-weight: var(--font-medium);
}

.contact__form-button {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: var(--font-semi-bold);
  transition: all 0.3s ease;
  min-height: 48px; /* Touch target adequado */
  font-size: var(--normal-font-size);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact__form-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact__form-button:active {
  transform: translateY(0);
}

.contact__form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--title-color);
  padding: 3rem 0 1rem;
  color: #fff;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__content {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer__title {
  color: var(--title-color-light);
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.footer__title .logo-accent {
  color: var(--accent-color);
}

.footer__description {
  margin-bottom: var(--mb-2);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer__links-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1-5);
  color: #fff;
}

.footer__links-list {
  display: grid;
  gap: 0.75rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--primary-color);
}

.footer__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--mb-0-75);
}

.footer__info i {
  color: var(--primary-color);
}

.footer__copy {
  background: rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 2rem;
}

.footer__copy-text {
  font-size: var(--smaller-font-size);
  color: rgba(255, 255, 255, 0.6);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: var(--gradient-primary);
  opacity: 0.8;
  padding: 0.75rem;
  border-radius: 0.75rem;
  z-index: var(--z-tooltip);
  transition: all 0.3s ease;
  color: #fff;
  box-shadow: var(--shadow-colored);
  cursor: pointer;
}

.scrollup:hover {
  background: var(--primary-color-alt);
  opacity: 1;
  transform: translateY(-2px);
}

.scrollup__icon {
  font-size: 1.25rem;
}

/* Show scroll */
.show-scroll {
  bottom: 2rem;
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
  width: 0.60rem;
  background-color: hsl(var(--hue-color), 12%, 90%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(var(--hue-color), 12%, 80%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--hue-color), 12%, 75%);
}

/* ===== MEDIA QUERIES ===== */
/* For extra small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  
  .hero__title {
    font-size: 1.25rem;
  }
  
  .hero__blob {
    width: 120px;
  }
  
  .about__stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .services__content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tech__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Garantir que o menu toggle apareça */
  .nav__toggle {
    display: flex;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }

  .hero__title {
    font-size: 1.5rem; /* Menor para telas muito pequenas */
    line-height: 1.2; /* Melhor line-height */
  }

  .hero__description {
    margin-bottom: var(--mb-1-5); /* Reduzir margem */
    font-size: var(--small-font-size); /* Fonte menor */
  }

  .hero__buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .hero__blob {
    width: 150px;
  }

  .hero__browser {
    display: none; /* Ocultar em telas muito pequenas */
  }

  /* Espaçamento otimizado para telas muito pequenas */
  .section {
    padding: 2.5rem 0 1rem;
  }
  
  .hero__container {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    gap: 0.25rem; /* Gap ainda menor para telas pequenas */
  }
  
  /* Hero data ainda mais compacto */
  .hero__data {
    padding: 0.5rem 0;
  }
  
  /* Blob ainda menor para telas muito pequenas */
  .hero__blob {
    width: 140px;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .about__content {
    gap: 1.5rem;
  }
  
  .about__features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services__content {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Melhor espaçamento entre cards */
  }
  
  .experience__content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tech__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  /* Garantir que o menu toggle apareça */
  .nav__toggle {
    display: flex;
  }

  .experience__content {
    grid-template-columns: 1fr;
  }

  .tech__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .tech__item {
    padding: 1rem 0.5rem;
  }

  .tech__item span {
    font-size: 0.7rem;
  }

  .contact__form {
    padding: 1.5rem;
  }
}

/* For mobile devices between 350px and 568px */
@media screen and (min-width: 351px) and (max-width: 567px) {
 
  .hero__image {
    margin-top: 1rem; /* Reduzir margem em mobile */
  }
  
  .hero__blob {
    width: 160px;
  }
  
  /* About section responsiva */
  .about__stats {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
  }
  
  .about__features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Services responsivos */
  .services__content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  /* Experience responsiva */
  .experience__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Technologies responsivas */
  .tech__items {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  /* Contact responsivo */
  .contact__form {
    padding: 2rem;
  }

  .contact__info {
    grid-template-columns: repeat(1, 1fr);
  }
  
  /* Garantir que o menu toggle apareça */
  .nav__toggle {
    display: flex;
  }
}

/* Additional mobile optimization for very small screens */
@media screen and (max-width: 480px) {
  .hero__browser {
    display: none; /* Ocultar completamente em mobile para melhor UX */
  }
  
  .hero__image {
    margin-top: 0.5rem;
  }
  
  .hero__data {
    z-index: 3; /* Garantir que o texto fique sempre na frente */
    position: relative;
  }
  
  /* Melhorar espaçamento geral */
  .hero__container {
    padding-top: 1rem;
    padding-bottom: 2rem;
    gap: 0.5rem; /* Reduzir gap entre elementos */
  }
  
  /* Ajustar data do hero */
  .hero__data {
    padding: 1rem 0; /* Reduzir padding interno */
  }
  
  /* Ajustar espaçamento das seções */
  .section {
    padding: 3rem 0 1.5rem; /* Reduzir padding vertical */
  }
  
  /* Otimizar blob para mobile */
  .hero__blob {
    width: 180px; /* Ligeiramente menor */
  }
  
  /* Garantir que o menu toggle apareça */
  .nav__toggle {
    display: flex;
  }

  .contact__info {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* For medium devices */
@media screen and (min-width: 568px) and (max-width: 768px) {
  .nav__list {
    gap: 1.5rem;
  }
  
  .nav__link {
    font-size: var(--h3-font-size);
    padding: 0.75rem 1.5rem;
  }

  .contact__info {
    grid-template-columns: repeat(1, 1fr);
  }

  /* About section para tablets */
  .about__content {
    gap: 3rem;
  }
  
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .about__features {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }
  
  /* Services para tablets */
  .services__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Experience para tablets */
  .experience__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Technologies para tablets */
  .tech__items {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  /* Garantir que o menu toggle apareça em tablets */
  .nav__toggle {
    display: flex;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .hero__content {
    grid-template-columns: max-content 1fr 1fr;
  }

  .hero__data {
    grid-column: initial;
  }

  .hero__image {
    order: 1;
    justify-self: center;
  }

  .hero__browser {
    width: 120px;
    top: 0;
    left: 100%;
    transform: translate(-50%, -50%);
  }

  .hero__buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about__container,
  .experience__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech__items {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__content {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }

  .footer__content {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Better mobile navigation */
  .nav__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 4rem;
  }

  .section__subtitle {
    margin-bottom: 0;
  }
  
  /* About responsivo para desktop */
  .about__content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .about__data {
    text-align: left;
  }
  
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .about__features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  /* Services responsivo para desktop */
  .services__content {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  /* Experience responsivo para desktop */
  .experience__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  /* Technologies responsivo para desktop */
  .tech__items {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
  }

  .header {
    top: 0;
    bottom: initial;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    border-top: none;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
    padding: 0 2rem;
  }

  .nav__close,
  .nav__toggle {
    display: none; /* Ocultar apenas em desktop 768px+ */
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    column-gap: 2rem;
    gap: 0;
    margin: 0;
  }

  .nav__link {
    flex-direction: row;
    gap: 0.5rem;
    font-size: var(--normal-font-size);
    padding: 0.5rem 1rem;
  }

  .hero {
    padding: 8rem 0 6rem;
  }

  .hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero__data {
    text-align: left;
  }

  .hero__image {
    margin-top: 0;
  }

  .hero__blob {
    width: 400px;
  }

  .hero__browser {
    width: 160px;
    top: 0;
    left: 100%;
    transform: translate(-50%, -50%);
  }

  .about__content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .about__data {
    text-align: left;
  }

  .services__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .tech__items {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__content {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

  .footer__content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .hero__blob {
    width: 400px;
  }

  .hero__image {
    width: 300px;
  }

  .hero__browser {
    width: 180px;
    top: 0;
    left: 100%;
    transform: translate(-50%, -50%);
  }

  .about__content {
    gap: 5rem;
  }
  
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .about__features {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .experience__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .services__content {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .tech__items {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
  }

  .contact__form {
    width: 460px;
  }

  .contact__content {
    justify-items: center;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .section {
    padding: 8rem 0 5rem;
  }

  .hero {
    padding: 10rem 0 8rem;
  }

  .services__content {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .about__content {
    gap: 6rem;
  }
  
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
  
  .about__features {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
  
  .experience__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
  
  .tech__items {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.5rem;
  }
  
  .contact__content {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--container-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Menu mobile - ÚNICA configuração */
@media screen and (max-width: 767px) {
  .nav__toggle {
    display: flex !important;
    z-index: 1001;
    position: relative;
  }
  
  .nav__menu {
    position: fixed !important;
    top: -100vh !important; /* Usar vh para maior garantia */
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: top 0.4s ease !important;
    z-index: 1000 !important;
    margin-left: 0 !important;
    transform: translateY(0) !important; /* Resetar transforms */
  }
  
  .nav__menu.show-menu {
    top: 0 !important;
  }

  .nav__list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }

  .nav__link {
    font-size: var(--h3-font-size) !important;
    font-weight: var(--font-medium) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
  }

  .nav__close {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    height: 10px !important;
  }
}