/* ===== Importação da Fonte Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== Variáveis: Tema Escuro Profissional ===== */
:root {
  --primary: #4facfe;                /* Azul elétrico suave (destaque moderno) */
  --primary-dark: #0d6efd;           /* Azul mais forte para hover */
  --text-primary: #f0f4f8;           /* Branco suave para texto principal */
  --text-secondary: #a0aec0;         /* Cinza claro para descrições */
  --bg-body: #0f172a;                /* Fundo escuro com toque azulado (muito elegante) */
  --bg-card: #1e293b;                /* Cards com contraste suave */
  --bg-card-hover: #24324a;          /* Hover mais claro */
  --border: #334155;                 /* Borda sutil */
  --shadow: rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Título Principal ===== */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 2rem 0 3rem;
  position: relative;
  padding-bottom: 0.8rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== Seção por Ano ===== */
.year-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
}

.year-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.year-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.year-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--primary);
  border-radius: 3px;
}

/* ===== Grid de Atividades ===== */
.activities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ===== Card de Atividade ===== */
.activity-card {
  background: #252f42;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
  background: var(--bg-card-hover);
}

.activity-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.activity-card:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

.activity-info {
  padding: 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.activity-info h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.activity-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* ===== Botão Voltar ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  padding: 0.85rem 1.8rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin: 2.5rem auto 0;
  transition: var(--transition);
  width: fit-content;
}

.back-btn:hover {
  background: rgba(79, 172, 254, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}

/* ===== Modal de Imagem ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  overflow: auto;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

#modalImage {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 2px solid var(--primary);
}

.close-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(30, 41, 59, 0.7);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: var(--transition);
  z-index: 2001;
}

.close-btn:hover {
  background: rgba(79, 172, 254, 0.3);
  color: white;
  transform: rotate(90deg);
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .year-title {
    font-size: 1.6rem;
  }

  .year-section {
    padding: 1.8rem;
  }

  .activity-info h2 {
    font-size: 1.15rem;
  }

  .activities {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .back-btn {
    width: 90%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.9rem;
  }

  .container {
    padding: 0 15px;
  }
}