/* ==============================
   TECNOFLOW - CURSOS.CSS
   Tema preto e branco futurista
   ============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

/* ==============================
   FUNDO ANIMADO
   ============================== */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, #1a1a1a 0%, #000 40%),
              radial-gradient(circle at 70% 80%, #2a2a2a 0%, #000 40%);
  z-index: -2;
  animation: bgShift 20s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(2px 2px at 50px 100px, #fff, transparent),
    radial-gradient(2px 2px at 150px 200px, #fff, transparent),
    radial-gradient(1px 1px at 300px 50px, #fff, transparent),
    radial-gradient(1px 1px at 400px 300px, #fff, transparent);
  animation: stars 30s linear infinite;
  z-index: -1;
  opacity: 0.25;
}

@keyframes bgShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}

@keyframes stars {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

/* ==============================
   HEADER
   ============================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(145deg, #000 0%, #1a1a1a 50%, #000 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ==============================
   HERO SECTION
   ============================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 80px;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 800px;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 0 20px #fff, 0 0 40px #aaa;
  margin-bottom: 15px;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { text-shadow: 0 0 20px #fff, 0 0 40px #aaa; }
  100% { text-shadow: 0 0 30px #fff, 0 0 60px #fff; }
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.9;
}

.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==============================
   CONTAINER DE CURSOS
   ============================== */

.container {
  width: 100%;
  padding: 120px 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  z-index: 2;
}

.titulo-cursos {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  margin: 60px 0 30px;
  text-align: center;
  letter-spacing: 2px;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 10px #fff, 0 0 20px #888; }
  100% { text-shadow: 0 0 20px #fff, 0 0 40px #fff; }
}

.curso-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1300px;
  margin-bottom: 80px;
}

.curso-card {
  background: linear-gradient(145deg, #0a0a0a, #1c1c1c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.curso-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.curso-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.curso-card:hover .curso-image img {
  filter: brightness(1);
  transform: scale(1.05);
}

.curso-info {
  padding: 20px;
  text-align: center;
}

.curso-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.curso-info p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  line-height: 1.5;
}

.inscrever-btn {
  display: inline-block;
  padding: 10px 20px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.inscrever-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px #fff, 0 0 40px #fff;
  transform: scale(1.05);
}

/* ==============================
   RODAPÉ
   ============================== */

footer {
  background: linear-gradient(145deg, #000, #0f0f0f);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 -2px 20px rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 0 20px #fff, 0 0 40px #aaa;
  animation: logoPulse 3s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% { text-shadow: 0 0 10px #fff, 0 0 20px #888; }
  100% { text-shadow: 0 0 25px #fff, 0 0 50px #fff; }
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: text-shadow 0.3s ease;
}

footer a:hover {
  text-shadow: 0 0 15px #fff;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  text-shadow: 0 0 15px #fff;
}

/* ==============================
   MENU HAMBÚRGUER
   ============================== */

#menuBtn {
  position: fixed;
  top: 25px;
  left: 25px;
  width: 35px;
  height: 28px;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#menuBtn span.bar {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #fff, #ddd);
  border-radius: 3px;
  transition: 0.4s;
  box-shadow: 0 0 6px #fff;
}

#menuBtn.open span.bar:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
#menuBtn.open span.bar:nth-child(2) {
  opacity: 0;
}
#menuBtn.open span.bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ==============================
   SIDEBAR
   ============================== */

nav.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 270px;
  background: linear-gradient(145deg, #000, #1a1a1a);
  backdrop-filter: blur(10px);
  box-shadow: 5px 0 30px rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 80px;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
  z-index: 1000;
}

nav.sidebar.open {
  transform: translateX(0);
}

nav.sidebar ul {
  list-style: none;
  padding: 20px 0;
}

nav.sidebar ul li {
  margin: 8px 0;
}

nav.sidebar ul li a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding: 15px 25px;
  font-weight: 600;
  font-size: 16px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

nav.sidebar ul li a:hover,
nav.sidebar ul li a.active {
  border-left-color: #fff;
  text-shadow: 0 0 10px #fff;
}

nav.sidebar ul li a i {
  margin-right: 12px;
  width: 22px;
  text-align: center;
}

/* ==============================
   RESPONSIVO
   ============================== */

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .titulo-cursos { font-size: 1.8rem; }
  .curso-info h3 { font-size: 1.1rem; }
  .curso-info p { font-size: 0.9rem; }
}
