/* Custom styles to complement Tailwind */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Light theme (default) */
  --primary: #3b82f6;
  --secondary: #10b981;
  --accent: #8b5cf6;
  --background: #f8fafc;
  --background-menu: rgba(255, 255, 255, 0.65);
  --foreground: #1e293b;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --sentinel-dark: #0f172a;
  --sentinel-blue: #3b82f6;
  --sentinel-purple: #8b5cf6;
  --footer-bg: #0f172a;
  --footer-text: #f8fafc;
  --footer-border: #1e293b;
  --accent-rgb: 59, 130, 246;
}

[data-theme="dark"] {
  --primary: #60a5fa;
  --secondary: #34d399;
  --accent: #a78bfa;
  --background: #0f172a;
  --background-menu: rgba(0, 0, 0, 0.5);

  --foreground: #f8fafc;
  --muted-foreground: #94a3b8;
  --border: #1e293b;
  --card: #1e293b;
  --sentinel-dark: #0f172a;
  --sentinel-blue: #60a5fa;
  --sentinel-purple: #a78bfa;
  --footer-bg: #020617;
  --footer-text: #f8fafc;
  --footer-border: #1e293b;
  --accent-rgb: 59, 130, 246;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme switcher */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-switch:hover {
  background-color: var(--border);
}

.theme-switch i {
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-switch i[data-lucide="sun"] {
  transform: rotate(180deg);
}

[data-theme="light"] .theme-switch i[data-lucide="moon"] {
  transform: rotate(180deg);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(
    90deg,
    var(--sentinel-blue),
    var(--sentinel-purple)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Card styles */
.card-hover {
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Input and textarea styles */
input,
textarea {
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Button styles */
.btn-primary {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: transparent !important;
  color: var(--sentinel-blue);
  border: 2px solid var(--sentinel-blue);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.375rem; /* 6px */
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.1),
    transparent
  );
  transition: all 0.8s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: white;
  box-shadow: 0px 0px 35px rgba(34, 0, 255, 0.45);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  transition: all 0.5s ease;
  z-index: -2;
}

.btn-primary:hover::after {
  width: 100%;
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--border);
  color: var(--foreground);
}

/* Button hover effect */
.btn-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Focus styles */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

/* Transitions */
button,
input,
textarea,
a {
  transition: all 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* SLIDE */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-slide {
  animation: slide 30s linear infinite;
}

.slide-style {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .slide-style {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .slide-style {
    flex: 0 0 33.333%;
  }
}

/* Embla Carousel */
.embla {
  overflow: hidden;
  width: 100%;
}

.embla__container {
  display: flex;
  gap: 1rem;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .embla__slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .embla__slide {
    flex: 0 0 33.333%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease forwards;
}

.animate-slide-out {
  animation: slideOut 0.3s ease forwards;
}

/* Mobile menu */
@media (max-width: 768px) {
  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background-color: var(--card);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }
}

/* Form validation */
input:invalid,
textarea:invalid {
  border-color: #ef4444;
}

input:invalid:focus,
textarea:invalid:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Success message */
.success-message {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: #10b981;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .text-4xl {
    font-size: 2rem;
  }

  .text-3xl {
    font-size: 1.75rem;
  }

  .text-2xl {
    font-size: 1.5rem;
  }

  .text-xl {
    font-size: 1.25rem;
  }
}
/* Botão Secundário - Tema Sensível */
.btn-secondary {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
  background: transparent;
  color: var(--muted-foreground);
  border: 2px solid var(--border);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transform-style: preserve-3d;
}

.btn-secondary-content {
  display: inline-block;
  transition: transform 0.1s linear;
}

.btn-secondary:hover {
  color: var(--background);
  background-color: var(--accent);
  letter-spacing: 1.4px !important;
  border-color: var(--accent);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
/* Estilo base para elementos com parallax */
.parallax-item {
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Conteúdo interno (opcional) */
.parallax-content {
  transition: transform 0.2s ease-out;
  display: inline-block;
  will-change: transform;
}

.btn-secondary {
  transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}

.btn-secondary-content {
  transition: transform 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67) !important;
}

.btn-secondary:hover::before {
  opacity: 1;
}
/* Footer styles */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

footer a {
  color: var(--footer-text);
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}

footer a:hover {
  opacity: 1;
  color: var(--accent);
}

footer .border-t {
  border-color: var(--footer-border);
}

footer .text-gray-400 {
  color: var(--footer-text);
  opacity: 0.7;
}

/* Theme-specific footer styles */
[data-theme="light"] footer {
  --footer-bg: #f8fafc;
  --footer-text: #1e293b;
  --footer-border: #e2e8f0;
}

[data-theme="dark"] footer {
  --footer-bg: #020617;
  --footer-text: #f8fafc;
  --footer-border: #1e293b;
}

/* Hero section overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.8)
  );
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .hero-background {
  opacity: 0.7;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to top, var(--background), transparent);
}

/* Light theme hero section */
[data-theme="light"] .hero-section {
  background-color: var(--background);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(to right, var(--background), var(--background));
}

[data-theme="light"] .hero-section h1 {
  color: var(--foreground);
}

[data-theme="light"] .hero-section p {
  color: var(--muted-foreground);
}

[data-theme="light"] .hero-section .btn-outline {
  color: var(--foreground);
  border-color: var(--border);
}

[data-theme="light"] .hero-section .btn-outline:hover {
  background-color: var(--border);
  color: var(--foreground);
}

.typing {
  display: inline;
  white-space: nowrap;
  border-right: 2px solid #5f8df3; /* Simula o cursor */
  padding-right: 8px;
  font-size: 64px;
  animation: cursor_animation 0.8s ease-in-out infinite;
  font-weight: bold;
}

/* Fonte menor em telas pequenas (mobile) */
@media (max-width: 639px) {
  .typing {
    font-size: 32px;
    
  }
}

/* Fonte média em telas médias (md: 640px até 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .typing {
    font-size: 24px;
  }
}

@keyframes cursor_animation {
  0% {
    border-right-color: transparent;
  }
  100% {
    border-right-color: #5f8df3;
  }
}

.btn-primary-glow {
  background: linear-gradient(135deg, var(--accent), var(--sentinel-purple));
  color: var(--card);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

.btn-primary-glow::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}
.carousel-mask {
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.animate-scroll {
  animation: scroll 30s linear infinite;
  width: max-content;
}

.hover\:pause:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  filter: grayscale(100%) contrast(0.5);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
  transform: scale(1.05);
}

.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-infinite-scroll {
  display: flex;
  animation: scroll 40s linear infinite;
}

@keyframes pulse-light {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4),
      0 0 0 0 rgba(var(--accent-rgb), 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0),
      0 0 12px 6px rgba(var(--accent-rgb), 0.4);
  }
}

@keyframes pulse-dark {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.25),
      0 0 0 0 rgba(var(--accent-rgb), 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0),
      0 0 15px 6px rgba(var(--accent-rgb), 0.3);
  }
}

.animate-theme-pulse {
  animation: pulse-light 2.5s ease-in-out infinite;
}
[data-theme="dark"] .animate-theme-pulse {
  animation: pulse-dark 2.5s ease-in-out infinite;
}

/* Glow adaptativo */
.theme-glow {
  background: radial-gradient(circle at center, var(--accent), transparent 70%);
}
[data-theme="dark"] .theme-glow {
  background: radial-gradient(
    circle at center,
    rgba(var(--accent-rgb), 0.5),
    transparent 70%
  );
}

@keyframes pulse-light {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4),
      0 0 0 0 rgba(var(--accent-rgb), 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0),
      0 0 12px 6px rgba(var(--accent-rgb), 0.4);
  }
}

@keyframes pulse-dark {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.25),
      0 0 0 0 rgba(var(--accent-rgb), 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0),
      0 0 15px 6px rgba(var(--accent-rgb), 0.3);
  }
}

.animate-theme-pulse {
  animation: pulse-light 2.5s ease-in-out infinite;
}
[data-theme="dark"] .animate-theme-pulse {
  animation: pulse-dark 2.5s ease-in-out infinite;
}
