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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #0d4a82;
  background-color: #f8fafc;
}

/* Banner Topo */
.banner {
  background: linear-gradient(135deg, #0d4a82 0%, #1e293b 100%);
  color: white;
  padding: 12px 0;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  font-size: 1.2em;
}

/* Header */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav a {
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
}

nav a:hover {
  color: #0d4a82;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
}

/* Hero */
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 2560 / 800;
  overflow: hidden;
  background: #0d4a82;
}

.hero-banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 100%;
}

.hero-banner-title {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.hero-banner-subtitle {
  color: white;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 16px auto 0 auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  text-align: center;
}

/* Responsividade do Banner */
@media (max-width: 1024px) {
  .hero-banner-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
  
  .hero-banner-subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .hero-banner-title {
    font-size: 2rem;
    letter-spacing: 0.5px;
  }
  
  .hero-banner-subtitle {
    font-size: 0.9rem;
    padding: 0 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-banner-title {
    font-size: 1.5rem;
    letter-spacing: 0px;
  }
  
  .hero-banner-subtitle {
    font-size: 0.8rem;
    padding: 0 15px;
    margin: 12px auto 0 auto;
  }
}

.btn-primary {
  background: #0ea5e9;
  color: white;
}

.btn-primary:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  color: #0d4a82;
  border: 2px solid #0d4a82;
  backdrop-filter: blur(4px);
  font-weight: 600;
}

.btn-outline:hover {
  background: #0d4a82;
  color: white;
}

/* Stats */
.stats {
  background: white;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d4a82;
}

.stat-item .label {
  font-size: 0.95rem;
  color: #64748b;
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0d4a82;
  text-align: center;
  margin-bottom: 40px;
}

/* Destaque Section com grid de botões */
.destaque-section {
  background: #f0f4f8;
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  justify-items: center;
}

.buttons-grid .btn {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Destaque Section - 3 colunas centralizadas */
.destaque-section .cards-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
  align-items: start;
}

.destaque-section .card-item {
  width: 100%;
  max-width: 380px;
}

@media (max-width: 1200px) {
  .destaque-section .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .destaque-section .cards-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .destaque-section .card-item {
    max-width: 100%;
    padding: 22px 18px;
  }
}

@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card-item {
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  min-height: 320px;
  justify-content: space-between;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: -32px -24px 8px -24px;
  display: block;
}

.card-item.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  color: white;
}

.card-item.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #075985 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3);
}

.card-item.btn-outline {
  background: white;
  color: #0d4a82;
  border: 2px solid #0d4a82;
}

.card-item.btn-outline:hover {
  background: #0d4a82;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(13, 74, 130, 0.3);
}

.card-icon {
  font-size: 2.5rem;
}

.card-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.card-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

.card-link {
  font-weight: 600;
  margin-top: 12px;
  display: inline-block;
  transition: transform 0.2s;
}

.card-thumbnail {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-icon-star {
  width: 80px;
  height: 80px;
  color: #0d4a82;
  opacity: 0.3;
}

.card-item.btn-primary .card-link {
  color: white;
}

.card-item.btn-outline .card-link {
  color: #0d4a82;
}

.card-item:hover .card-link {
  transform: translateX(4px);
}

/* Projects */
.projects-grid {
  display: grid;
  gap: 32px;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
}

.project-card.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-content {
  padding: 24px;
}

.project-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.badge-combustao { background: linear-gradient(90deg, #f59e0b, #d97706); }
.badge-eletrico  { background: linear-gradient(90deg, #0ea5e9, #0284c7); }
.badge-formulae   { background: linear-gradient(90deg, #000, #333); color: #fff; }

.project-card h3 {
  font-size: 1.5rem;
  margin: 12px 0;
  color: #0d4a82;
}

.project-card p {
  color: #0d4a82;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.project-link {
  color: #0d4a82;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-link i {
  transition: transform 0.2s;
}

.project-link:hover i {
  transform: translateX(4px);
}

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

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #0d4a82;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col address {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #0d4a82;
}

.footer-col address {
  font-style: normal;
}

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

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

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* Social Links */
.social-section {
  background: white;
  text-align: center;
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.social-card {
  width: 100%;
  max-width: 250px;
  padding: 30px 20px;
  border-radius: 12px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.social-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.social-card p {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.95;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 12px;
  border-radius: 6px;
}

.social-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Facebook */
.social-card.facebook {
  background: linear-gradient(135deg, #3b5998 0%, #4d6fc7 100%);
}

/* Instagram */
.social-card.instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

/* Twitter */
.social-card.twitter {
  background: linear-gradient(135deg, #1da1f2 0%, #1a91da 100%);
}

/* LinkedIn */
.social-card.linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

/* YouTube */
.social-card.youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

/* WhatsApp */
.social-card.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #20ba58 100%);
}

/* TikTok */
.social-card.tiktok {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #334155;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  nav ul li {
    margin: 8px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

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

@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Campus Section - Galeria */
.campus-section {
  background: white;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 40px;
}

/* Campus Tabs */
.campus-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.campus-tab-btn {
  padding: 12px 24px;
  border: 2px solid #0d4a82;
  border-radius: 8px;
  background: white;
  color: #0d4a82;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

.campus-tab-btn:hover {
  background: #f0f4f8;
}

.campus-tab-btn.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  color: white;
  border-color: #0284c7;
}

.tab-icon {
  margin-right: 8px;
}

/* Campus Content */
.campus-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.campus-content.active {
  display: block;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  height: 100%;
  transition: all 0.3s ease;
}

.gallery-overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .social-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
    padding: 0 16px;
  }

  .social-card {
    max-width: 100%;
    padding: 20px 12px;
  }

  .social-card h3 {
    font-size: 0.95rem;
  }

  .social-card p {
    font-size: 0.8rem;
  }

  .social-icon {
    font-size: 1.2rem;
  }
}

/* CTA do Campus */
.campus-cta {
  text-align: center;
  margin: 32px 0 0 0;
}

.campus-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(2,132,199,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.campus-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(2,132,199,0.2);
}
