/* CSS Principal da JCSD Infotec */
:root {
  --bg-color: #0f172a;
  --panel-bg: #1e293b;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --primary-color: #0ed3ff;
  --secondary-color: #a855f7;
  --accent-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --nav-height: 100px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* Blindagem: Impede seleção de texto */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Garante que o usuário consiga digitar nos formulários */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Blindagem: Impede salvar a imagem arrastando */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none; /* Bloqueia clique com botão direito invisivelmente */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-main);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-main);
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  position: relative;
  transition: 0.3s;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: 0.3s ease-in-out;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--nav-height) + 100px);
  padding-bottom: 120px;
  text-align: center;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(11, 15, 25, 0.8), var(--bg-color)), url('../images/hero_banner.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(14,211,255,0.1) 0%, rgba(15,23,42,0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Background suave de vídeo em telas inteiras / heros */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.15;
  object-fit: cover;
  filter: blur(1px) grayscale(30%); /* Mix tech feel */
  pointer-events: none;
}
.video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), var(--bg-color));
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
  color: #fff;
}

/* Sections */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.section-padding {
  padding: 80px 0;
}

/* Cards (Services) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--panel-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.3);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  display: inline-block;
}

/* Footer */
footer {
  background: var(--panel-bg);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 50px;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Utility / Contact */
.contact-info {
  margin-top: 2rem;
  font-size: 1.1rem;
}
.contact-info p {
  margin-bottom: 1rem;
}
.contact-info i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Social Icons Re-Vamp */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-color);
  color: var(--text-muted);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.05);
}
.social-icon.youtube {
  color: #ff0000;
}
.social-icon.instagram {
  color: #E1306C;
}
.social-icon:hover {
  transform: translateY(-8px) scale(1.1);
}
.social-icon.youtube:hover {
  box-shadow: 0 8px 25px rgba(255,0,0,0.4);
  border-color: #ff0000;
  background: rgba(255,0,0,0.1);
}
.social-icon.instagram:hover {
  box-shadow: 0 8px 25px rgba(225,48,108,0.4);
  border-color: #E1306C;
  background: rgba(225,48,108,0.1);
}

/* Responsive Menu placeholder */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: var(--text-main);
  margin-bottom: 4px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--panel-bg);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  nav ul.active {
    display: flex;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-padding {
    padding: 50px 0;
  }
  .logo {
    font-size: 1.5rem;
  }
  /* Fix carousel scroll on mobile */
  .carousel-wrapper::before, .carousel-wrapper::after {
    width: 20px;
  }
}

/* Added Elements */
.logo-glow {
  filter: drop-shadow(0px 0px 8px var(--primary-color)) contrast(1.1);
  transition: filter 0.3s ease;
}
.logo-glow:hover {
  filter: drop-shadow(0px 0px 15px var(--secondary-color)) brightness(1.2);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 8px;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 100px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 30px;
  right: 45px;
  background-color: var(--primary-color);
  color: var(--bg-color);
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
  z-index: 9999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.scroll-top.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.scroll-top:hover {
  transform: translateY(-5px);
  color: var(--bg-color);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
}

/* Blinking Glow para a Logo */
.blinking-glow {
  /* Fundo circular removido a pedido */
}

@keyframes logoBlinkClear {
  0% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
  50% { filter: drop-shadow(0 0 35px rgba(255,255,255,0.8)) brightness(1.2); }
  100% { filter: drop-shadow(0 0 15px rgba(255,255,255,0.4)); }
}

@keyframes floatAndBlink {
  0% { transform: translateY(0px); filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
  50% { transform: translateY(-15px); filter: drop-shadow(0 0 35px rgba(255,255,255,0.8)) brightness(1.2); }
  100% { transform: translateY(0px); filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
/* Add at the bottom of existing style.css */

/* Gamer Impact Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Enhanced Cards */
.card {
  background: var(--panel-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.2);
}

.card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0,240,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Neon Text Accents */
.neon-text {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Auto-scrolling Carousel Container */
.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.carousel-track {
  display: flex;
  width: calc(450px * 8); /* Adjust based on num items */
  animation: scroll 30s linear infinite;
  gap: 2rem;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item {
  width: 400px;
  flex-shrink: 0;
}



/* Purple Floating Glow Effect */
.floating-purple-glow {
  animation: float 4s ease-in-out infinite, purplePulse 3s infinite alternate;
  border-radius: 16px;
  border: 2px solid var(--secondary-color) !important;
}

@keyframes purplePulse {
  0% { box-shadow: 0 0 15px rgba(112, 0, 255, 0.3), 0 0 30px rgba(112, 0, 255, 0.1); }
  100% { box-shadow: 0 0 30px rgba(112, 0, 255, 0.8), 0 0 60px rgba(112, 0, 255, 0.5); }
}
