@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@400;600;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --secondary: #111827;
  --bg-color: #ffffff;
  --bg-alt: #f9fafb;
  --text-main: #374151;
  --text-muted: #6b7280;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
}

body {
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #fb923c 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 65px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links > li > a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 10px 0;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links > li > a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 240px;
  padding: 10px 0;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.nav-btn-blue {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  box-shadow: 0 4px 10px rgba(43, 108, 176, 0.3);
  display: inline-block;
}

.nav-btn-blue:hover {
  background: linear-gradient(135deg, #152b4a 0%, #1e4b7a 100%);
  transform: translateY(-2px);
}

.nav-btn-blue::after {
  display: none !important;
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(17, 24, 39, 0.05), transparent 40%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.hero-text {
  flex: 1;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.floating-badge {
  position: absolute;
  background: var(--white);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.badge-1 {
  top: -20px;
  right: -20px;
}

.badge-2 {
  bottom: 40px;
  left: -40px;
  animation-delay: 3s;
}

.badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-text strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
}

.badge-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* Section Shared */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Courses */
.bg-alt {
  background: var(--bg-alt);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.course-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.course-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.course-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.course-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-card .btn {
  width: 100%;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  background: var(--secondary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-content p {
  font-size: 1.1rem;
  color: #9ca3af;
  margin-bottom: 40px;
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 30px;
}

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

.footer-brand p {
  margin-top: 20px;
  max-width: 300px;
}

.footer-title {
  color: var(--white);
  font-family: 'Outfit';
  font-size: 1.2rem;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
}

/* Video Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  background: transparent;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  color: #fff;
  float: right;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  right: -30px;
  top: -30px;
  transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--primary);
  text-decoration: none;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #000;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .badge-1, .badge-2 {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transition: var(--transition);
    overflow-y: auto;
    align-items: flex-start;
  }

  .nav-links.active {
    left: 0;
  }
  
  .d-none-mobile {
    display: none !important;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 15px;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Screen Border Glow Effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  box-shadow: inset 0 0 20px rgba(249, 115, 22, 0.7), inset 0 0 60px rgba(249, 115, 22, 0.2); /* Laranja padrão */
  transition: box-shadow 0.8s ease;
}

/* Cores específicas para cursos */
body.glow-verde::after {
  box-shadow: inset 0 0 20px rgba(39, 174, 96, 0.7), inset 0 0 60px rgba(39, 174, 96, 0.2);
}
body.glow-roxo::after {
  box-shadow: inset 0 0 20px rgba(142, 68, 173, 0.7), inset 0 0 60px rgba(142, 68, 173, 0.2);
}
body.glow-azul::after {
  box-shadow: inset 0 0 20px rgba(41, 128, 185, 0.7), inset 0 0 60px rgba(41, 128, 185, 0.2);
}
body.glow-vermelho::after {
  box-shadow: inset 0 0 20px rgba(231, 76, 60, 0.7), inset 0 0 60px rgba(231, 76, 60, 0.2);
}

/* Modern Carousel */
.modern-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  width: 100%;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  gap: 20px;
}
.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.carousel-track img {
  width: calc(33.333% - 13.33px);
  flex-shrink: 0;
  scroll-snap-align: start;
  object-fit: contain;
  background-color: #f9fafb;
  height: 350px;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .carousel-track img {
    width: calc(100% - 0px);
  }
}
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px;
  pointer-events: none;
}
.carousel-nav button {
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.carousel-nav button:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dots span.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* SEARCH MODAL */
.nav-search-btn { background:none; border:none; color:var(--dark); font-size:1.1rem; cursor:pointer; padding:5px 10px; transition:color 0.3s; }
.nav-search-btn:hover { color:var(--primary); }
.search-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(255,255,255,0.95); z-index:10000; justify-content:center; align-items:flex-start; padding-top:100px; opacity:0; transition:opacity 0.3s; }
.search-modal.active { display:flex; opacity:1; }
.search-modal-content { width:90%; max-width:800px; position:relative; }
.close-search { position:absolute; top:-40px; right:0; font-size:2rem; cursor:pointer; color:var(--dark); }
.search-input-wrapper { position:relative; width:100%; }
.search-input-wrapper i { position:absolute; left:20px; top:50%; transform:translateY(-50%); font-size:1.5rem; color:#999; }
#siteSearchInput { width:100%; padding:20px 20px 20px 60px; font-size:1.5rem; border:none; border-bottom:3px solid var(--primary); background:transparent; outline:none; font-family:\'Comfortaa\', sans-serif; color:var(--dark); }
.search-results { margin-top:20px; max-height:60vh; overflow-y:auto; }
.search-result-item { display:flex; align-items:center; gap:15px; padding:15px; border-bottom:1px solid #eee; text-decoration:none; color:var(--dark); transition:background 0.2s; }
.search-result-item:hover { background:#f9f9f9; }
.search-result-icon { width:40px; height:40px; background:var(--primary-light); color:var(--primary); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.search-result-text h4 { margin:0 0 5px 0; font-size:1.1rem; }
.search-result-text p { margin:0; font-size:0.85rem; color:#666; }
