/* CSS Variables - Design System */
:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --primary: #1a1a1a;
  --primary-foreground: #ffffff;
  --card: #f7f7f7;
  --muted-foreground: #666666;
  --accent: #3b82f6;
  --border: #e5e5e5;
  --radius: 10px;
}

.dark {
  --background: #1a1a1a;
  --foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #1a1a1a;
  --card: #2a2a2a;
  --muted-foreground: #b3b3b3;
  --accent: #60a5fa;
  --border: #333333;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header/Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-foreground);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary-foreground);
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--primary-foreground);
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav.active {
  display: flex;
}

/* Hero Section */
.hero-section {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background-color: var(--background);
}

@media (min-width: 640px) {
  .hero-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(26, 26, 26, 0.05);
  transform: translateY(-2px);
}

.dark .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

/* Carousel Section */
.carousel-section {
  padding: 4rem 0;
  background-color: var(--background);
}

.carousel-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card);
}

.carousel-container {
  position: relative;
  height: 24rem;
}

@media (min-width: 640px) {
  .carousel-container {
    height: 32rem;
  }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  padding: 1.5rem;
  color: white;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .carousel-title {
    font-size: 1.875rem;
  }
}

.carousel-views {
  font-size: 0.875rem;
  opacity: 0.8;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: white;
  width: 2rem;
}

/* Section Styles */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* YouTube Section */
.youtube-section {
  padding: 5rem 0;
  background-color: var(--card);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.video-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background-color: var(--background);
  margin-bottom: 1rem;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.video-card:hover .video-overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

.play-icon {
  color: white;
}

.video-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-views {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.section-cta {
  text-align: center;
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  cursor: pointer;
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  overflow: hidden;
  background-color: var(--background);
  aspect-ratio: 16 / 16;
  /* increased aspect ratio from 16/9 to 16/7 for taller images */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1rem;
}

.project-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-likes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.project-likes svg {
  color: var(--accent);
}

/* Partnerships Section */
.partnerships-section {
  padding: 5rem 0;
  background-color: var(--card);
}

.partnerships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .partnerships-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .partnerships-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partnership-card {
  cursor: pointer;
  background-color: var(--background);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.partnership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.partnership-logo {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  height: 6rem;
}

.partnership-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partnership-card:hover .partnership-logo img {
  transform: scale(1.1);
}

.partnership-name {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.partnership-campaign {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 16rem;
  height: 16rem;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .about-image img {
    width: 20rem;
    height: 20rem;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
}

.stat-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--card);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--accent);
  border-color: var(--accent);
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.contact-info-box {
  background-color: var(--background);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-info-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-info-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-text {
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-link {
  text-decoration: none;
  color: var(--primary-foreground);
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.carousel-slide a {
    position: relative;
    z-index: 5;
}

.carousel-overlay {
    pointer-events: none;
}
/* Só slides invisíveis não recebem clique */
.carousel-slide {
    pointer-events: none;
}

.carousel-slide.active {
    pointer-events: auto;
}

/* A imagem e link ficam clicáveis */
.carousel-slide.active a,
.carousel-slide.active img {
    pointer-events: auto;
    position: relative;
    z-index: 20;
}


.carousel-slide-link .carousel-slide {
    pointer-events: none; /* evita conflitos internos */
}
/* somente o slide ativo deve receber clique */
.carousel-slide {
    pointer-events: none;
}

.carousel-slide.active {
    pointer-events: auto;
}

/* overlay não deve capturar clique */
.carousel-overlay {
    pointer-events: none;
}

/* imagem deve receber clique normalmente */
.carousel-slide.active img {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}
