:root {
  --header-height: 78px;
  --primary-blue: #00d4ff;
  --secondary-blue: #0099ff;
  --dark-blue: #1e3a8a;
  --yellow: #ffd700;
  --pink: #f107a3;
  --purple: #7b2ff7;
  --white: #ffffff;
  --gray-light: #f3f4f6;
  --gray-dark: #374151;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  background: linear-gradient(135deg, rgb(31, 31, 228) 0%, #001a80 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.menu-open {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 46px;
  max-width: min(180px, 34vw);
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

@media (min-width: 769px) {
  .nav-menu {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.nav-link {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-current::after {
  width: 100%;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active {
  color: var(--white);
  background: transparent;
  box-shadow: none;
}

.nav-link:visited {
  color: var(--white);
}

.nav-link.is-current {
  color: var(--white);
  font-weight: 700;
}

.btn-cadastro {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cadastro:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-login-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #002dff, #6a1b9a);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 45, 255, 0.4);
  font-size: 14px;
  white-space: nowrap;
  max-width: 220px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.btn-login-nav i {
  font-size: 16px;
}

.btn-login-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 45, 255, 0.6);
  background: linear-gradient(135deg, #0040ff, #7a2baa);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  flex: 0 0 44px;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu-btn svg {
  display: block;
}

.mobile-nav-backdrop {
  display: none;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid var(--white);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
  width: 30px;
  border-radius: 10px;
}

/* Secção de Cursos */
.cursos-section {
  padding: 5rem 2rem;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dark-blue);
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.cursos-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--white);
  border-radius: 20px;

  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.course-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.curso-icone {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
}

.course-content {
  padding: 2rem;
}

.course-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.course-target {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--yellow);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.course-details {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.course-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  background: var(--dark-blue);
  color: var(--white);
  align-items: center;
}

.course-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.course-requirements {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
  color: var(--gray-dark);
  font-size: 0.9rem;
}

/* Quiz Section */
.quiz-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffed4e 100%);
  text-align: center;
}

.quiz-content h2 {
  font-size: 1.5rem;
  color: var(--pink);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.quiz-content h3 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 900;
}

.quiz-highlight {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 0.5rem 2rem;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

.quiz-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--primary-blue);
  color: var(--white);
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  text-transform: uppercase;
}

.quiz-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}




/* Footer */
.footer {
  background: rgb(247, 252, 255);
  color: #333;
  padding-bottom: 1rem;
  padding-left: 1rem;

}

.footer-logos {
  max-width: 1280px;
  margin: 0 auto 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 45, 255, 0.15);
}

.footer-logos-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 3rem;
  row-gap: 1rem;
}

.footer-logo {
  height: 90px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  object-position: bottom;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  display: block;
  filter: brightness(0.95);
}

.footer-logo:hover {
  opacity: 1;
  filter: brightness(1);
}

@media (max-width: 768px) {
  .footer-logos-container {
    gap: 1.5rem;
  }
  
  .footer-logo {
    height: 45px;
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .footer-logos-container {
    gap: 1rem;
  }
  
  .footer-logo {
    height: 38px;
    max-width: 120px;
  }
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #002dff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #000000;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
  color: #002dff;
}

.footer-links li {
  color: #000000;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(0, 45, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: #002dff;
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 45, 255, 0.15);
  opacity: 0.8;
  color: #555;
}

.footer-section p {
  color: #202020;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive */

/* Tablets */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .cursos-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }
}

/* Tablets pequenos e celulares grandes */
@media (max-width: 768px) {
  .nav-actions {
    gap: 0.5rem;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 20px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    visibility: hidden;
    pointer-events: none;
    z-index: 1002;
  }

  .nav-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link,
  .nav-menu .nav-link:visited,
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link:focus,
  .nav-menu .nav-link:active {
    color: var(--gray-dark);
    display: block;
    width: 100%;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(0, 45, 255, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    font-weight: 700;
    opacity: 1;
  }

  .nav-menu .nav-link.is-current {
    background: linear-gradient(180deg, #eef3ff 0%, #ffffff 100%);
    color: var(--dark-blue);
    border-color: rgba(0, 45, 255, 0.14);
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link:focus,
  .nav-menu .nav-link:active {
    background: linear-gradient(180deg, #eef3ff 0%, #ffffff 100%);
    transform: translateY(-1px);
  }

  .mobile-menu-btn {
    display: inline-flex;
    position: relative;
    z-index: 1004;
  }

  .mobile-menu-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
  }

  .nav-container {
    padding: 0 1rem;
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    border: none;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1001;
  }

  .mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }

  .hero-cta {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-image img {
    max-width: 300px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cursos-section {
    padding: 3rem 1.5rem;
  }

  .cursos-grid,
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quiz-content h3 {
    font-size: 1.8rem;
  }

  .quiz-highlight {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .cadastro-card {
    padding: 2rem 1.5rem;
  }
}

/* Celulares */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo img {
    height: 36px;
    max-width: 116px;
  }

  .btn-login-nav {
    padding: 0.55rem 0.72rem;
    font-size: 11px;
    gap: 5px;
    max-width: 98px;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .mobile-menu-btn svg {
    width: 20px;
    height: 20px;
  }

  .btn-login-nav i {
    font-size: 13px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text h2 {
    font-size: 1rem;
  }

  .hero-cta {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cursos-section {
    padding: 2rem 1rem;
  }

  .cursos-grid {
    gap: 1rem;
  }

  .course-card {
    border-radius: 16px;
  }

  .course-content {
    padding: 1.5rem;
  }

  .quiz-content h3 {
    font-size: 1.5rem;
  }

  .quiz-highlight {
    font-size: 1.5rem;
    padding: 0.4rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cadastro-card {
    padding: 1.5rem 1rem;
  }

  .cadastro-card h1 {
    font-size: 1.5rem;
  }

  .cadastro-form .form-row {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .nav-container {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .logo img {
    max-width: 104px;
    height: 34px;
  }

  .btn-login-nav {
    max-width: 88px;
    padding: 0.5rem 0.65rem;
  }

  .nav-menu {
    left: 8px;
    right: 8px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

/* ===== CADASTRO PAGE ===== */
.cadastro-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 45, 255, 0.1) 0%, rgba(106, 27, 154, 0.1) 100%);
}

.cadastro-card {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  animation: fadeIn 0.6s ease-in-out;
  border: 1px solid rgba(0, 45, 255, 0.2);
}

.cadastro-card h1 {
  font-size: 1.8rem;
  color: #2b2b2b;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cadastro-card .descricao {
  color: #666;
  margin-bottom: 1.5rem;
}

.cadastro-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cadastro-form .form-group {
  margin-bottom: 0;
}

.cadastro-form .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #444;
}

.cadastro-form .form-group input,
.cadastro-form .form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.cadastro-form .form-group input:focus,
.cadastro-form .form-group select:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.cadastro-form .form-row {
  display: flex;
  gap: 1rem;
}

.cadastro-form .form-group.half {
  flex: 1;
}

.cadastro-form button {
  background: linear-gradient(135deg, var(--primary-blue), var(--purple));
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.cadastro-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.cadastro-form .link-login {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.cadastro-form .link-login a {
  color: var(--primary-blue);
  font-weight: 500;
  text-decoration: none;
}

.cadastro-form .link-login a:hover {
  text-decoration: underline;
}
