/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0052cc;
}

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

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #dc3545;
  transition: width 0.3s ease;
}

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

.nav-menu a:hover {
  color: #dc3545;
}

.language-selector select {
  padding: 8px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 25px;
  background: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-selector select:hover {
  border-color: #0052cc;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0052cc;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(220, 53, 69, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  opacity: 0.8;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  flex: 1;
  max-width: 650px;
  z-index: 3;
  position: relative;
  padding: 0 40px;
  margin-top: 100px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 1s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.hero-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #dc3545;
  margin-top: 1rem;
  border-radius: 2px;
  animation: slideIn 1s ease 0.5s both;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s both;
  line-height: 1.6;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease 0.4s both;
  margin-bottom: 2rem;
}

.btn {
  padding: 18px 36px;
  border: none;
  border-radius: 60px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::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.6s;
}

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

.btn-primary {
  background: #dc3545;
  color: white;
  box-shadow: 
    0 8px 25px rgba(220, 53, 69, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(220, 53, 69, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.15);
  background: #e63946;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #0052cc;
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.floating-languages {
  position: relative;
  width: 450px;
  height: 450px;
}

.floating-languages::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url(./images/earth.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: rotate 200s linear infinite;
}

.floating-languages::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 50%;
  animation: rotate 15s linear infinite reverse;
}

.lang-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  animation: float 6s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: default;
}

.lang-badge:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lang-badge:nth-child(1) {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.3);
}
.lang-badge:nth-child(2) {
  top: 5%;
  right: 15%;
  animation-delay: 1.2s;
}
.lang-badge:nth-child(3) {
  bottom: 25%;
  left: 15%;
  animation-delay: 2.4s;
  background: rgba(255, 255, 255, 0.25);
}
.lang-badge:nth-child(4) {
  bottom: 5%;
  right: 5%;
  animation-delay: 3.6s;
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.25);
}
.lang-badge:nth-child(5) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4.8s;
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  padding: 15px 30px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(1deg);
  }
  66% {
    transform: translateY(-25px) rotate(-1deg);
  }
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 80px;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Section */
.video-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  /* Otimizações de performance */
  transform: translateZ(0); /* Força aceleração por hardware */
  backface-visibility: hidden; /* Melhora performance de animações */
}

.video-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="videodots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,82,204,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23videodots)"/></svg>');
  opacity: 0.4;
}

.video-content {
  position: relative;
  z-index: 2;
}

.video-header {
  text-align: center;
  margin-bottom: 4rem;
}

.video-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0052cc;
  margin-bottom: 1rem;
  position: relative;
}

.video-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #dc3545;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.video-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.video-container {
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px; /* Altura mínima reduzida para layout mais compacto */
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px; /* Reduzido ainda mais para vídeos verticais */
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 10px 25px rgba(0, 82, 204, 0.1);
  transition: box-shadow 0.2s ease; /* Transição mais rápida e específica */
  aspect-ratio: 9/16; /* Proporção típica de vídeos verticais */
  will-change: box-shadow; /* Otimização para GPU */
}

.video-wrapper:hover {
  /* Removido transform para melhor performance */
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 12px 30px rgba(0, 82, 204, 0.12);
}

.presentation-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: cover; /* Garante que o vídeo preencha o container mantendo proporção */
}

/* Estilos específicos para vídeos verticais */
.video-wrapper.vertical-video {
  max-width: 320px; /* Ainda menor para vídeos verticais */
  aspect-ratio: 9/16;
}

.video-wrapper.vertical-video .presentation-video {
  object-fit: contain; /* Para vídeos verticais, usar contain para mostrar tudo */
}

/* Custom Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.15s ease, transform 0.15s ease; /* Transição mais rápida */
  will-change: opacity, transform; /* Otimização para GPU */
}

.video-wrapper:hover .video-controls,
.video-controls.visible {
  opacity: 1;
  transform: translateY(0);
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease; /* Transições mais rápidas e específicas */
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  will-change: background-color, border-color; /* Otimização para GPU */
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  /* Removido transform: scale para melhor performance */
}

.control-btn i {
  font-size: 1.1rem;
}

.play-btn {
  background: rgba(220, 53, 69, 0.9);
  border-color: rgba(220, 53, 69, 0.5);
}

.play-btn:hover {
  background: rgba(220, 53, 69, 1);
  border-color: rgba(220, 53, 69, 0.8);
}

.progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc3545, #e63946);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
  position: relative;
}

/* Removido o pseudo-elemento ::after da barra de progresso para melhor performance */
.progress-bar:hover .progress-fill {
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.time-display {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #dc3545;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Removido hover transform do slider para melhor performance */

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #dc3545;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Play Overlay */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-overlay-btn {
  width: 80px;
  height: 80px;
  background: rgba(220, 53, 69, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 30px rgba(220, 53, 69, 0.4),
    0 0 0 0 rgba(220, 53, 69, 0.4);
  animation: pulse-ring 2s infinite;
}

.play-overlay-btn:hover {
  background: rgba(220, 53, 69, 1);
  transform: scale(1.1);
}

.play-overlay-btn i {
  margin-left: 3px; /* Adjust play icon position */
}

@keyframes pulse-ring {
  0% {
    box-shadow: 
      0 10px 30px rgba(220, 53, 69, 0.4),
      0 0 0 0 rgba(220, 53, 69, 0.4);
  }
  70% {
    box-shadow: 
      0 10px 30px rgba(220, 53, 69, 0.4),
      0 0 0 20px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 
      0 10px 30px rgba(220, 53, 69, 0.4),
      0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* Video Benefits */
.video-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-item {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 82, 204, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc3545, #0052cc);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.benefit-item:hover::before {
  transform: scaleX(1);
}

.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 82, 204, 0.1);
}

.benefit-item i {
  font-size: 3rem;
  color: #dc3545;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.benefit-item:hover i {
  transform: scale(1.1);
  color: #0052cc;
}

.benefit-item h4 {
  font-size: 1.4rem;
  color: #0052cc;
  margin-bottom: 1rem;
  font-weight: 700;
}

.benefit-item p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* About Section */
.about {
  padding: 100px 0;
  background: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0052cc;
}

.about-text h3 {
  font-size: 1.5rem;
  color: #dc3545;
  margin-bottom: 2rem;
}

.experience-highlights {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
}

.highlight-item i {
  font-size: 2rem;
  color: #dc3545;
  margin-top: 0.5rem;
}

.highlight-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0052cc;
}

.professor-card {
  background: #0052cc;
  color: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.professor-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.professor-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Courses Section */
.courses {
  padding: 100px 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #0052cc;
}

.course-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.mode-card {
  text-align: center;
  padding: 2rem;
  background: #dc3545;
  color: white;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.mode-card:hover {
  transform: translateY(-10px);
}

.mode-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.language-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.language-card:hover {
  transform: translateY(-10px);
  border-color: #0052cc;
  box-shadow: 0 20px 40px rgba(0, 82, 204, 0.2);
}

.flag {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.language-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #0052cc;
}

.specializations {
  text-align: center;
}

.specializations h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0052cc;
}

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

.spec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.spec-item:hover {
  background: #0052cc;
  color: white;
  transform: translateY(-5px);
}

.spec-item i {
  font-size: 2rem;
  color: #dc3545;
  transition: color 0.3s ease;
}

.spec-item:hover i {
  color: white;
}

/* Exam Preparation Section */
.exam-prep {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.exam-prep::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="examdots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(220,53,69,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23examdots)"/></svg>');
  opacity: 0.3;
}

.exam-prep .container {
  position: relative;
  z-index: 2;
}

.section-description {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.exam-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.exam-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0052cc, #dc3545);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.exam-card:hover::before {
  transform: scaleX(1);
}

.exam-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: #0052cc;
}

.exam-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0052cc, #007bff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.exam-card:hover .exam-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #dc3545, #e63946);
}

.exam-icon i {
  font-size: 2rem;
  color: white;
}

.exam-card h3 {
  font-size: 1.8rem;
  color: #0052cc;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.exam-subtitle {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-style: italic;
}

.exam-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exam-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.exam-features li:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.exam-features li i {
  color: #dc3545;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  min-width: 20px;
}

.exam-features li span {
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
}

.exam-benefits {
  margin-bottom: 4rem;
}

.exam-benefits h3 {
  text-align: center;
  font-size: 2rem;
  color: #0052cc;
  margin-bottom: 2.5rem;
  position: relative;
}

.exam-benefits h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #dc3545;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(220, 53, 69, 0.15);
  border-color: #dc3545;
}

.benefit-card i {
  font-size: 2.5rem;
  color: #dc3545;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.benefit-card:hover i {
  transform: scale(1.15);
  color: #0052cc;
}

.benefit-card h4 {
  font-size: 1.2rem;
  color: #0052cc;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.benefit-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.exam-cta {
  text-align: center;
  background: linear-gradient(135deg, #0052cc, #007bff);
  padding: 3rem 2rem;
  border-radius: 20px;
  color: white;
  box-shadow: 0 15px 40px rgba(0, 82, 204, 0.25);
}

.exam-cta h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.exam-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.exam-cta .btn {
  background: #dc3545;
  color: white;
  padding: 18px 36px;
  border: 2px solid transparent;
}

.exam-cta .btn:hover {
  background: white;
  color: #0052cc;
  border-color: white;
}

/* Exam Prep Responsive */
@media (max-width: 768px) {
  .exam-prep {
    padding: 60px 0;
  }

  .exam-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .exam-card h3 {
    font-size: 1.5rem;
  }

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

  .exam-cta {
    padding: 2.5rem 1.5rem;
  }

  .exam-cta h3 {
    font-size: 1.7rem;
  }

  .exam-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-description {
    font-size: 1rem;
    padding: 0 10px;
  }

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

  .exam-icon {
    width: 60px;
    height: 60px;
  }

  .exam-icon i {
    font-size: 1.7rem;
  }

  .exam-card h3 {
    font-size: 1.3rem;
  }

  .exam-subtitle {
    font-size: 0.9rem;
  }

  .exam-features li span {
    font-size: 0.9rem;
  }

  .exam-benefits h3 {
    font-size: 1.5rem;
  }

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

  .benefit-card i {
    font-size: 2rem;
  }

  .benefit-card h4 {
    font-size: 1.1rem;
  }

  .benefit-card p {
    font-size: 0.9rem;
  }

  .exam-cta {
    padding: 2rem 1rem;
  }

  .exam-cta h3 {
    font-size: 1.5rem;
  }

  .exam-cta p {
    font-size: 0.95rem;
  }
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: #dc3545;
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: #f8f9fa;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item i {
  font-size: 2rem;
  color: #dc3545;
  width: 60px;
  text-align: center;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0052cc;
}

.contact-item a {
  color: #dc3545;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0052cc;
}

.contact-form button {
  width: 100%;
}

/* Footer */
.footer {
  background: #0052cc;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-content {
    padding: 0 20px;
    max-width: 100%;
    margin-top: 100px;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 16px 32px;
    font-size: 1rem;
  }

  .floating-languages {
    width: 320px;
    height: 320px;
    margin-top: 1rem;
  }

  .floating-languages::before {
    width: 250px;
    height: 250px;
  }

  .floating-languages::after {
    width: 180px;
    height: 180px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .whatsapp-link {
    justify-content: center;
  }

  .footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .whatsapp-link {
    justify-content: center;
  }

  .course-modes {
    grid-template-columns: 1fr;
  }

  .languages-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  /* Video Section Mobile */
  .video-section {
    padding: 60px 0;
  }

  .video-header h2 {
    font-size: 2.2rem;
  }

  .video-header p {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  .video-wrapper {
    margin: 0 20px;
    border-radius: 15px;
    max-width: 280px; /* Ainda menor em mobile para vídeos verticais */
    aspect-ratio: 9/16; /* Mantém proporção vertical */
  }

  .video-controls {
    padding: 15px;
    gap: 10px;
  }

  .control-btn {
    width: 40px;
    height: 40px;
  }

  .control-btn i {
    font-size: 1rem;
  }

  .volume-container {
    display: none; /* Hide volume controls on mobile */
  }

  .play-overlay-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .video-benefits {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .benefit-item {
    padding: 2rem 1.5rem;
  }

  .benefit-item i {
    font-size: 2.5rem;
  }

  .benefit-item h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .languages-grid {
    grid-template-columns: 1fr;
  }

  .floating-languages {
    width: 280px;
    height: 280px;
  }

  .floating-languages::before {
    width: 200px;
    height: 200px;
  }

  .floating-languages::after {
    width: 140px;
    height: 140px;
  }

  .lang-badge {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .lang-badge:nth-child(5) {
    font-size: 0.95rem;
    padding: 12px 24px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  /* Video Section Extra Small Mobile */
  .video-header h2 {
    font-size: 1.8rem;
  }

  .video-header p {
    font-size: 1rem;
  }

  .play-overlay-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .video-benefits {
    margin-top: 1rem;
  }

  .benefit-item {
    padding: 1.5rem 1rem;
  }

  .benefit-item i {
    font-size: 2rem;
  }

  .benefit-item h4 {
    font-size: 1.1rem;
  }

  .benefit-item p {
    font-size: 0.9rem;
  }

  /* Video wrapper para telas muito pequenas */
  .video-wrapper {
    max-width: 240px; /* Ainda menor para telas pequenas */
    margin: 0 10px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn:active {
  animation: pulse 0.3s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #0052cc;
  outline-offset: 2px;
}

/* FAQ Section Styles */
.faq {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0052cc 0%, #007bff 100%);
  color: #fff;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, #004085 0%, #0056b3 100%);
}

.faq-question h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.faq-question i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fff;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 25px 30px;
}

.faq-answer p {
  color: #555;
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq {
    padding: 60px 0;
  }
  
  .faq-question {
    padding: 20px 25px;
  }
  
  .faq-question h3 {
    font-size: 1.1rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 20px 25px;
  }
  
  .faq-answer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 18px 20px;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 18px 20px;
  }
  
  .faq-answer p {
    font-size: 0.9rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero {
    background: #000;
  }

  .btn-primary {
    background: #dc3545;
    border: 2px solid #fff;
  }
}
