* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #0d0d0d;
  color: #fafafa;
  line-height: 1.6;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #f7c31a 0%, #f7c31a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effect */
.glow {
  box-shadow: 0 0 40px rgba(240, 207, 25, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #161616;
}

::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d8a720;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #f0c91d;
  box-shadow: 0 0 0 3px rgba(209, 165, 21, 0.1);
}

/* Problem Cards Animation */
.problem-card {
  position: relative;
  background: #0d0d0d;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  border: 1px solid transparent;
  background-clip: padding-box;
}

/* Gradient border effect */
.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.75rem;
  padding: 1px;
  background: linear-gradient(135deg, #262626, #262626);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.4s ease;
  z-index: -1;
}

/* Glow effect behind card */
.problem-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -2;
  pointer-events: none;
}

/* Hover state */
.problem-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.problem-card:hover::before {
  background: linear-gradient(135deg, #ef4444, #f97316, #f7c31a);
  animation: borderGlow 3s linear infinite;
}

.problem-card:hover::after {
  opacity: 1;
}

/* Icon container animation */
.problem-card .icon-container {
  transition: all 0.4s ease;
}

.problem-card:hover .icon-container {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Animated border gradient */
@keyframes borderGlow {
  0% {
    background: linear-gradient(135deg, #ef4444, #f97316, #f7c31a);
  }

  33% {
    background: linear-gradient(135deg, #f97316, #f7c31a, #ef4444);
  }

  66% {
    background: linear-gradient(135deg, #f7c31a, #ef4444, #f97316);
  }

  100% {
    background: linear-gradient(135deg, #ef4444, #f97316, #f7c31a);
  }
}

/* Shine effect on hover */
.problem-card .shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.problem-card:hover .shine {
  left: 100%;
}

/* Card text animations */
.problem-card h3 {
  transition: color 0.3s ease;
}

.problem-card:hover h3 {
  color: #f7c31a;
}

/* Stagger animation for cards */
.problem-card:nth-child(1) {
  transition-delay: 0s;
}

.problem-card:nth-child(2) {
  transition-delay: 0.05s;
}

.problem-card:nth-child(3) {
  transition-delay: 0.1s;
}

.problem-card:nth-child(4) {
  transition-delay: 0.15s;
}

.problem-card:nth-child(5) {
  transition-delay: 0.2s;
}

.problem-card:nth-child(6) {
  transition-delay: 0.25s;
}

/* ========================================
   MOBILE HERO ADJUSTMENTS
   Apenas para telas menores que 640px
   ======================================== */
@media (max-width: 640px) {

  /* Container da imagem dos fundadores - mobile */
  #hero-image-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 450px !important;
    min-height: 400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Imagem dos fundadores - mobile - AUMENTADA com scale */
  #hero-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: scale(1.6) translateX(5%) !important;
    transform-origin: center center !important;
  }

  /* Título do Hero - menor no mobile para caber em 2 linhas */
  section h1 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }

  /* Botões - texto em uma linha só */
  a[href="#contato"],
  a[href="#form-diagnostico"] {
    white-space: nowrap !important;
    font-size: 0.7rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}