:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --secondary: #004d99;
  --accent: #0284c7;
  --accent-light: #38bdf8;
  --gold: #d4af37;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #f9fafb --bg-color: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);

  --glass-dark-bg: rgba(15, 23, 42, 0.8);
  --glass-dark-border: rgba(255, 255, 255, 0.1);

  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================================
   Navbar (Glassmorphism)
   ========================================================================= */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url("../assets/img/ceia-5.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-parallax-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(0, 77, 153, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
  animation: fadeInUp 1s ease both;
}

.hero-content h1 {
  font-size: 4.5rem;
  color: #fff;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
}

.hero-content .subtitle-hero {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(2, 132, 199, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* =========================================================================
   Section Titles
   ========================================================================= */
.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: block;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 2rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* =========================================================================
   Features (Sobre)
   ========================================================================= */
.features {
  padding: 6rem 0;
  background: var(--bg-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: transparent;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

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

/* =========================================================================
   Testimonials
   ========================================================================= */
.testimonials {
  padding: 6rem 0;
  background: var(--primary);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(2, 132, 199, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.testimonials .section-title {
  color: #fff;
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-dark-border);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.author-info h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================================
   Photo Carousel (Swiper Container base styles)
   ========================================================================= */
.photo-carousel {
  padding: 6rem 0;
  background: var(--bg-card);
  overflow: hidden;
}

.carousel-container {
  margin-top: 3rem;
  position: relative;
  width: 100%;
}

.swiper {
  width: 100%;
  padding-bottom: 3rem !important; /* space for pagination */
}

.swiper-slide {
  width: 350px;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.swiper-slide:hover img {
  transform: scale(1.08);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.9) 0%,
    transparent 100%
  );
  color: white;
  padding: 3rem 1.5rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.swiper-slide:hover .photo-caption,
.swiper-slide-active .photo-caption {
  transform: translateY(0);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
}

/* =========================================================================
   Schedule Section
   ========================================================================= */
.schedule {
  padding: 6rem 0;
  background: var(--bg-color);
}

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

.schedule-item {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border-top: 5px solid var(--accent);
  transition: var(--transition);
  position: relative;
}

.schedule-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.schedule-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.schedule-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.schedule-item .time {
  font-weight: 700;
  color: var(--primary-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: block;
  font-family: var(--font-body);
}

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

/* =========================================================================
   CTA Section
   ========================================================================= */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
  position: relative;
}

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

.cta-content h2 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

/* =========================================================================
   Gallery Row (Or Grid)
   ========================================================================= */
.gallery {
  padding: 6rem 0;
  background: var(--bg-card);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 23, 42, 0.8) 100%
  );
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: white;
  font-size: 1.3rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay h4 {
  transform: translateY(0);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: #0a0f1a; /* Even darker than primary */
  color: #fff;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-section h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  display: block;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent-light);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* =========================================================================
   Utilities
   ========================================================================= */
.text-center {
  text-align: center;
}
.mt-3 {
  margin-top: 2rem;
}

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

/* =========================================================================
   Missions specific styles
   ========================================================================= */
.missions-header {
  height: 70vh;
  min-height: 500px;
  background-image: url("../assets/img/ebd.jpeg");
  background-position: center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.missions-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}
.missions-header-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 1rem;
}
.missions-header-content h1 {
  color: #fff;
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#form-whatsapp-missoes input:focus,
#form-whatsapp-missoes select:focus,
#form-whatsapp-missoes textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .cta-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-content {
    justify-content: space-between;
  }

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content .subtitle-hero {
    font-size: 1.1rem;
  }
  .hero-parallax-bg {
    background-attachment: scroll;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-buttons {
    gap: 1rem;
  }

  .features,
  .testimonials,
  .schedule,
  .photo-carousel,
  .cta-section,
  .gallery {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .swiper-slide {
    width: 300px;
    height: 350px;
  }
  .missions-header-content h1 {
    font-size: 2.5rem;
  }
}
