:root {
  --primary: #ff0000;
  --primary-dark: #000000;
  --secondary: #000000;
  --accent: #000000;
  --success: #b91010;
  --warning: #f59e0b;
  --danger: #b91010;
  --dark: #0f0f23;
  --dark-light: #1a1a2e;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 20% 80%,
      rgb(0, 0, 0) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.167) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 0, 0, 0.2) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg);
  }
}

/* Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: particle-float 15s linear infinite;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem 2rem; /* padding-top: 0 */
  position: relative;
  z-index: 1;
}

.imagem-container {
  position: relative;
  width: 100vw;
  margin: 0;
  padding: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100vw;
  overflow: hidden;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.imagem-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  position: static;
  z-index: 1;
}

.imagem-personal {
  width: 100%;
  max-width: 350px; /* tamanho máximo da logo */
  height: auto;
  max-height: 30vh; /* altura máxima proporcional à tela */
  object-fit: contain;
  object-position: center top;
  display: block;
  margin: 24px auto 8px auto;
  padding: 0;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  background: transparent;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.logo {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 300px); /* Ajuste 300px conforme necessário */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

/* Glass Card */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group i {
  margin-right: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Animated Button */
.btn-primary {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.219);
}

.btn-primary::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;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 0, 0, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Loading Animation */
.loading {
  display: none;
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Results */
.results {
  display: none;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.result-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
}

.result-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.result-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* IMC Status */
.imc-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.status-normal {
  background: var(--success);
  color: white;
}
.status-sobrepeso {
  background: var(--warning);
  color: white;
}
.status-obesidade {
  background: var(--danger);
  color: white;
}
.status-abaixo {
  background: var(--accent);
  color: white;
}

/* Alert */
.alert {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  animation: pulse 2s infinite;
}

/* Macros */
.macros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.macro-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.macro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.macro-card.proteins::before {
  background: var(--danger);
}
.macro-card.carbs::before {
  background: var(--warning);
}
.macro-card.fats::before {
  background: var(--success);
}

.macro-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.macro-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress-ring {
  width: 80px;
  height: 80px;
  margin: 1rem auto;
  position: relative;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.progress-ring .bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.progress-ring .progress {
  stroke: var(--primary);
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1s ease-in-out;
}

/* Plan Button */
.btn-plan {
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(93, 93, 93, 0.3);
  margin-top: 2rem;
}

.btn-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 0, 0, 0.323);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--glass);
  backdrop-filter: blur(30px);
  margin: 5% auto;
  padding: 3rem;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--success), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--danger);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.btn-send {
  background: linear-gradient(135deg, var(--success), var(--accent));
  border: none;
  border-radius: 12px;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Success Message */
.success-message {
  display: none;
  background: linear-gradient(135deg, var(--success), var(--accent));
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
  animation: slideInUp 0.5s ease;
}

/* Floating Elements */
.floating-icon {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 100;
}

.floating-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(255, 0, 0, 0.4);
}

/* New Style for .titulo-entre */
.titulo-entre {
  margin: 10px auto 0px auto;
  text-align: center;
  color: #ff0000;
  white-space: nowrap;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  max-width: 90vw;
  width: max-content;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  .imagem-personal {
    max-width: 260px;
    max-height: 22vh;
  }
}

@media (max-width: 768px) {
  .imagem-personal {
    max-width: 180px;
    max-height: 18vh;
    margin: 16px auto 4px auto;
  }
}

@media (max-width: 468px) {
  .imagem-personal {
    max-width: 120px;
    max-height: 14vh;
    margin: 12px auto 2px auto;
  }
}
.form-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.results-grid {
  grid-template-columns: 1fr;
}

.macros-grid {
  grid-template-columns: 1fr;
}

.modal-content {
  margin: 10% auto;
  padding: 2rem;
}

.imagem-personal {
  max-width: 100vw;
  max-height: 30vh;
  object-fit: contain;
  object-position: top center;
}

@media (max-width: 468px) {
  body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
    color: var(--text);
  }
}

.imagem-container {
  position: relative;
  width: 80vw;
  height: auto;
  margin: 0;
  padding: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100vw;
  overflow: hidden;
  top: 0;
}

.imagem-personal {
  width: 100px;
  height: 200px;
  max-height: calc(100vh - 300px); /* ajuste conforme necessário */
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.titulo-sobre-imagem {
  position: absolute;
  top: 20%; /* Distância do topo da imagem, ajuste conforme necessário */
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  text-align: center;
  width: max-content;
  max-width: 90vw;
  z-index: 2;
  white-space: normal;
}
