/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FFD700;
  --primary-dark: #FFA500;
  --secondary: #FFED4E;
  --bg-dark: #1a1a1a;
  --bg-darker: #000000;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #FFD700;
  --card-bg: rgba(20, 20, 20, 0.8);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-darker);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.particles::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.08) 0%, transparent 50%);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

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

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

/* ===== MAIN HERO ===== */
.main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.intro-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.logo {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
  letter-spacing: -0.02em;
}

/* ===== CURTAIN ANIMATION ===== */
.curtain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.curtain {
  position: absolute;
  background: linear-gradient(135deg, #1a1a1a, #000000);
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain-left {
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  transform: translateX(0);
  border-right: 3px solid var(--primary);
}

.curtain-right {
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  transform: translateX(0);
  border-left: 3px solid var(--primary);
}

.curtain-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  transform: translateY(0);
  transition: transform 1s ease;
}

.curtain-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  text-align: center;
  color: var(--text);
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 100;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.arrow {
  font-size: 2rem;
  animation: bounce 2s infinite;
}

/* ===== SPOTLIGHTS ===== */
.spotlight {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.spotlight-1 {
  background: var(--primary);
  top: 10%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.spotlight-2 {
  background: var(--secondary);
  bottom: 10%;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

/* ===== SECTIONS ===== */
.section {
  min-height: 100vh;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#projetos-tcc {
  min-height: 100vh;
  padding: 8rem 2rem;
}

#fotos,
#agradecimentos {
  min-height: auto;
  padding: 4rem 2rem;
}

.description-box {
  max-width: 900px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.description-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.description-box p:last-child {
  margin-bottom: 0;
}

/* ===== CAROUSEL SECTION ===== */
.carousel-section {
  padding: 4rem 2rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.devs-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ===== DEV CARDS ===== */
.dev-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: var(--transition);
  height: 100%;
}

.dev-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

/* Ocultar paginação do carrossel de desenvolvedores */
#devsCarousel .splide__pagination {
  display: none;
}

.dev-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.dev-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: var(--transition);
}

.dev-card:hover .dev-image-container img {
  transform: scale(1.05);
}

.dev-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.dev-info {
  padding: 1rem;
}

.dev-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.dev-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.dev-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ===== PROJECTS SECTION ===== */
.projects-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.vertical-title {
  text-align: center;
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4rem;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  line-height: 1;
}

.vertical-title span {
  display: block;
  margin-bottom: 0.2rem;
}

.projects-content {
  width: 100%;
}

.projects-grid {
  display: none !important;
}

.projects-carousel {
  display: block !important;
}

/* Cards de projeto dentro do carrossel */
.project-card {
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  overflow: visible;
  border: none;
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  gap: 3rem;
  box-shadow: none;
  margin: 0 auto;
  max-width: 1100px;
  cursor: default;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image-container {
  position: relative;
  width: auto;
  height: auto;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-image {
  width: auto;
  height: 450px;
  object-fit: contain;
  transition: var(--transition);
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.project-card:hover .project-image {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.project-overlay {
  display: none;
}

.project-info {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  min-height: 400px;
}

.project-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.project-subtitle {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.project-members {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link,
.project-details-btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.project-link {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.project-link:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.project-details-btn {
  background: rgba(255, 215, 0, 0.1);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.project-details-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Estilo customizado para o carrossel de projetos */
#projectsCarousel {
  padding: 2rem 0;
}

#projectsCarousel .splide__track {
  padding: 1rem 0;
}

#projectsCarousel .splide__arrow {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: var(--transition);
}

#projectsCarousel .splide__arrow:hover {
  background: var(--primary);
  transform: scale(1.1);
}

#projectsCarousel .splide__arrow svg {
  fill: var(--primary);
}

#projectsCarousel .splide__arrow:hover svg {
  fill: #000;
}

#projectsCarousel .splide__pagination {
  bottom: -3rem;
}

#projectsCarousel .splide__pagination__page {
  background: rgba(255, 215, 0, 0.3);
  border: 2px solid var(--primary);
  width: 12px;
  height: 12px;
}

#projectsCarousel .splide__pagination__page.is-active {
  background: var(--primary);
  transform: scale(1.4);
}

/* ===== TEACHER CAROUSEL ===== */
.thanks-message {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 0 2rem;
}

/* Ocultar paginação do carrossel de professores */
#imageCarousel .splide__pagination {
  display: none;
}

.splide__slide {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.splide__slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  filter: brightness(0.75);
  transition: var(--transition);
}

.splide__slide:hover img {
  filter: brightness(0.55);
  transform: scale(1.03);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transform: translateY(55%);
  transition: var(--transition);
}

.splide__slide:hover .slide-overlay {
  transform: translateY(0);
}

.person-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.person-role {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.person-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transition: var(--transition);
}

.splide__slide:hover .person-description {
  opacity: 1;
}

/* ===== MODAL ===== */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  overflow-y: auto;
  padding: 2rem;
}

.modal-content {
  max-width: 1200px;
  margin: 2rem auto;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.close-modal:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.modal-header {
  padding: 3rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.modal-members {
  color: var(--text-muted);
  font-size: 1rem;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
}

.modal-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.detail-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-footer {
  padding: 2rem 3rem 3rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.modal-tags span {
  background: rgba(255, 215, 0, 0.15);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-back-btn {
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.modal-back-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-year {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

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

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

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 30px);
  }
}