:root {
  --teal: #4d6866;
  --teal-light: #7d9a97;
  --sponsor-teal: #339999;
  --footer-muted: #95a5a6;
  --dark-bg: #0e1510;
  --dark-bg-2: #070303;
  --text-light: #f2f2f0;
  --text-muted: #c9cfcd;
  --font-display: "Comfortaa", sans-serif;
  --font-logo: "Monoton", cursive;
  --font-body: "Jost", sans-serif;
  --font-fahkwang: "Fahkwang", sans-serif;
  --header-height: 86px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: background-color 0.25s ease;
}

.site-header.scrolled { background: #0b0b0b; }

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand-logo { height: 70px; width: auto; }

.brand-logo-white { display: none; }
.site-header.scrolled .brand-logo-color { display: none; }
.site-header.scrolled .brand-logo-white { display: block; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
  display: block;
  padding: 30px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #2a2a2a;
  transition: color 0.2s;
}

.main-nav > ul > li > a:hover { color: var(--teal); }

.site-header.scrolled .main-nav > ul > li > a { color: #ffffff; }
.site-header.scrolled .main-nav > ul > li > a:hover { color: var(--teal-light); }

.has-submenu > a::after {
  content: "\25BE";
  margin-left: 6px;
  font-size: 10px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
}

.has-submenu:hover .submenu,
.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  display: block;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2a2a2a;
}

.submenu li a:hover { background: #f4f4f4; color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #2a2a2a;
  border-radius: 2px;
  transition: background-color 0.25s ease;
}

.site-header.scrolled .nav-toggle span { background: #ffffff; }

/* ---------- HERO + WELCOME shared background ---------- */
.hero-welcome-wrap {
  position: relative;
}

/* fixed to the viewport: it stays put while hero/welcome scroll over it,
   same as the original (background-attachment behaves like "fixed" there) */
.shared-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.shared-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background-color: rgba(3, 15, 9, 0.37);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}

/* animated wave divider at the bottom of the hero, bleeding into Welcome */
.waves-separator {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60px;
  max-height: 60px;
  margin: 0;
  z-index: 3;
}

.waves-separator .parallax1 > use { animation: move-forever1 10s linear infinite; }
.waves-separator .parallax2 > use { animation: move-forever2 8s linear infinite; }
.waves-separator .parallax3 > use { animation: move-forever3 6s linear infinite; }
.waves-separator .parallax4 > use { animation: move-forever4 4s linear infinite; }

@keyframes move-forever1 { 0% { transform: translate(85px); } 100% { transform: translate(-90px); } }
@keyframes move-forever2 { 0% { transform: translate(-90px); } 100% { transform: translate(85px); } }
@keyframes move-forever3 { 0% { transform: translate(85px); } 100% { transform: translate(-90px); } }
@keyframes move-forever4 { 0% { transform: translate(-90px); } 100% { transform: translate(85px); } }

.hero-title {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(70px, 14vw, 150px);
  letter-spacing: normal;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 3vw, 30px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 80px;
}

.sponsor-box { margin-top: 40px; }

.sponsor-label {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--sponsor-teal);
  margin-bottom: 16px;
}

.sponsor-logo { max-width: 220px; margin: 0 auto; }

.sponsor-copyright {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* ---------- WELCOME ---------- */
.welcome {
  position: relative;
  z-index: 1;
  background-color: rgba(31, 49, 36, 0.81);
  padding: 100px 20px;
  text-align: center;
}

.welcome-inner { max-width: 760px; margin: 0 auto; }

.welcome-logo { max-width: 280px; margin: 0 auto 40px; }

.welcome h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 36px;
  line-height: 1.35;
}

.welcome p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.welcome-cta {
  color: var(--text-light);
  font-weight: 500;
  margin-top: 16px;
}

/* ---------- VIDEO ---------- */
.video-section {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  overflow: hidden;
  background: #000;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-credit {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.video-credit:hover { background: rgba(0,0,0,0.6); }

/* ---------- FOOTER ---------- */
.footer-top {
  background: linear-gradient(90deg, rgb(20, 33, 24) 0%, rgb(7, 3, 3) 100%);
  padding: 70px 24px 0;
}

.footer-top-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { max-width: 230px; margin-bottom: 24px; }

.social-links { display: flex; gap: 12px; }

.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.social-links a:hover { background: var(--teal); border-color: var(--teal); }

.social-links svg { width: 16px; height: 16px; fill: var(--text-light); }

.footer-nav ul li { margin-bottom: 14px; }
.footer-nav ul li a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: var(--text-light); }

.footer-nav ul { width: fit-content; }
.footer-nav .has-submenu { position: relative; }
.footer-nav .has-submenu > a::after { color: var(--text-muted); }

/* in the footer the submenu flies out to the side instead of dropping below,
   like the original site, so it never overlaps the next footer-nav item */
.footer-nav .has-submenu .submenu {
  top: -6px;
  left: 100%;
  margin-left: 16px;
  min-width: 130px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transform: translateX(-8px);
}
.footer-nav .has-submenu:hover .submenu,
.footer-nav .has-submenu.open .submenu {
  transform: translateX(0);
}
.footer-nav .has-submenu .submenu li a {
  color: var(--text-muted);
  font-weight: 600;
  padding: 7px 0;
}
.footer-nav .has-submenu .submenu li a:hover {
  color: var(--text-light);
  background: transparent;
}

@media (max-width: 900px) {
  .footer-nav .has-submenu .submenu {
    position: static;
    left: auto;
    top: auto;
    margin-left: 0;
    margin-top: 8px;
    transform: none;
    box-shadow: none;
    display: none;
    background: transparent;
  }
  .footer-nav .has-submenu.open .submenu { display: block; }
  .footer-nav .has-submenu .submenu li a { color: var(--text-muted); }
  .footer-nav .has-submenu .submenu li a:hover { color: var(--text-light); background: transparent; }
}

.footer-sponsor { text-align: left; }
.footer-sponsor img { max-width: 180px; margin-bottom: 16px; }
.footer-sponsor p { color: var(--footer-muted); font-size: 14px; }

.footer-bottom {
  background: rgb(35, 37, 34);
  padding: 28px 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-top-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav ul { margin: 0 auto; }
  .footer-brand, .footer-sponsor { text-align: center; }
  .footer-brand img, .footer-sponsor img { margin-left: auto; margin-right: auto; }
  .social-links { justify-content: center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transform: translateY(calc(-100% - var(--header-height)));
    transition: transform 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { padding: 18px 24px; border-bottom: 1px solid #eee; }

  .has-submenu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    flex-direction: column;
    background: #f9f9f9;
  }

  .has-submenu.open .submenu { display: flex; }
  .has-submenu > a::after { float: right; }
}

@media (max-width: 480px) {
  .hero-subtitle { letter-spacing: 1.5px; }
}

/* ---------- INNER PAGES (Mission/Vision/History/...) ---------- */
.page-hero {
  position: relative;
  padding-top: var(--header-height);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: rgba(3, 15, 9, 0.84);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.page-hero-content { padding: 40px 20px; }

.page-hero-logo { max-width: 260px; margin: 0 auto; }

.page-content {
  background: rgb(230, 231, 229);
  padding: 60px 24px 80px;
}

.content-card {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.996);
  border-radius: 10px;
  box-shadow: 1px 1px 18px 0 rgba(144, 144, 144, 0.76);
  padding: 50px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.content-card-text { flex: 1; text-align: center; }

.content-card-text h1 {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 500;
  color: #212529;
  margin-bottom: 30px;
}

.content-card-text p {
  font-family: var(--font-fahkwang);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.5;
  color: #212529;
  margin-bottom: 24px;
}

.content-card-image { flex: 1; }
.content-card-image img { border-radius: 6px; width: 100%; }

.content-card--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
}

/* ---------- HISTORY ---------- */
.page-hero--photo { background-color: transparent; }

.history-card {
  max-width: 1150px;
  margin: 0 auto;
  background: rgba(4, 23, 11, 0.945);
  border: 10px solid #9e771c;
  border-radius: 10px;
  box-shadow: 1px 1px 18px 0 rgba(144, 144, 144, 0.76);
  padding: 50px 60px 60px;
}

.history-card h1 {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 30px;
}

.history-card h1 .teal { color: #1abc9c; }
.history-card h1 .orange { color: #f39c12; }

.history-rings {
  display: block;
  max-width: 500px;
  margin: 0 auto 40px;
  border-radius: 8px;
}

.history-text {
  max-width: 760px;
  margin: 0 auto;
}

.history-text p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
  color: #1abc9c;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .history-card { padding: 36px 24px 44px; }
  .history-card h1 { font-size: 28px; }
  .history-text { max-width: 100%; }
}

.vision-text {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  max-width: 700px;
  margin: 0 auto;
}

.vision-photo { position: relative; }
.vision-photo-main img { width: 100%; display: block; opacity: 0.33; }
.vision-photo-logo {
  position: absolute;
  top: 50%;
  left: 57.4%;
  transform: translate(-50%, -50%);
  width: 32%;
  min-width: 170px;
}

@media (max-width: 860px) {
  .content-card { flex-direction: column; padding: 32px 24px; gap: 32px; }
  .content-card-text p { font-size: 19px; }
}

/* ---------- NCAC (Members & Associates) ---------- */
.ncac-page {
  position: relative;
}

/* fixed full-viewport texture, same technique as .shared-bg on the home page,
   so it stays consistent behind every translucent panel instead of stretching
   per-section */
.ncac-shared-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.ncac-shared-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ncac-topbar {
  position: relative;
  background: #ffffff;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
}

.ncac-topbar img { max-width: 260px; }

.ncac-hero {
  background-color: rgba(255, 255, 255, 0.87);
  padding: 70px 24px 0;
}

.ncac-hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.ncac-hero h1 {
  font-family: 'Mulish', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 5vw, 45px);
  line-height: 1.2;
  color: #006633;
  margin-bottom: 36px;
}

.ncac-hero-photo {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  animation: ncac-flash 0.8s ease-in-out 0.9s 1 both;
}

@keyframes ncac-fade-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ncac-fade-in-right {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ncac-flash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.ncac-title-line {
  display: inline-block;
  opacity: 0;
}

.ncac-title-line-1 { animation: ncac-fade-in-left 0.9s ease-out 0.1s forwards; }
.ncac-title-line-2 { animation: ncac-fade-in-right 0.9s ease-out 0.3s forwards; }

.ncac-about {
  background-color: rgba(1, 33, 16, 0.78);
  padding: 70px 24px;
}

.ncac-about-inner { max-width: 760px; margin: 0 auto; }

.ncac-about h2 {
  font-family: 'Mulish', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 5vw, 50px);
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

.ncac-about p {
  font-family: 'Mulish', sans-serif;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 18px;
}

.ncac-programs {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 18px;
}

.ncac-programs li {
  font-family: 'Mulish', sans-serif;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 10px;
}

.ncac-contact {
  background-color: rgba(1, 19, 5, 0.97);
  padding: 50px 24px;
}

.ncac-contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ncac-contact-icf-logo { width: 150px; }

.ncac-contact-email {
  font-family: 'Mulish', sans-serif;
  font-size: 18px;
  color: #2ecc71;
  overflow-wrap: break-word;
  min-width: 0;
}

.ncac-contact-email strong { font-weight: 700; }
.ncac-contact-email a { color: #2ecc71; text-decoration: underline; }

.ncac-contact-link { width: 170px; }

@media (max-width: 700px) {
  .ncac-contact-inner { flex-direction: column; text-align: center; }
  .ncac-contact-email { max-width: 100%; align-self: stretch; }
}

/* ---------- DEPARTMENTS ---------- */
.dept-card {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.996);
  border-radius: 10px;
  box-shadow: 1px 1px 18px 0 rgba(144, 144, 144, 0.76);
  padding: 50px;
}

.dept-section { margin-bottom: 52px; }
.dept-section:last-child { margin-bottom: 0; }

.dept-section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 28px);
  letter-spacing: 0.3px;
  text-align: center;
  color: #212529;
  text-transform: uppercase;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--teal);
}

.dept-member {
  display: flex;
  gap: 28px;
  background: #f2f5ee;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

.dept-member:last-child { margin-bottom: 0; }

.dept-member-photo {
  flex: 0 0 170px;
  width: 170px;
  border-radius: 6px;
  overflow: hidden;
  align-self: flex-start;
}

.dept-member-photo img { width: 100%; display: block; }

.dept-member-body { flex: 1; min-width: 0; }

.dept-member-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  color: #212529;
  margin-bottom: 14px;
}

.dept-member-body p {
  font-family: var(--font-fahkwang);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

.dept-member-body p:last-child { margin-bottom: 0; }
.dept-member-body p strong { color: var(--teal); }

@media (max-width: 700px) {
  .dept-card { padding: 30px 20px; }
  .dept-member { flex-direction: column; align-items: center; text-align: center; padding: 22px; }
  .dept-member-photo { width: 150px; flex: 0 0 150px; }
}

/* ---------- CONTACT ---------- */
.page-hero-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: 1px;
  color: #ffffff;
  text-align: center;
}

.contact-card {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.996);
  border-radius: 10px;
  box-shadow: 1px 1px 18px 0 rgba(144, 144, 144, 0.76);
  padding: 56px 50px;
  text-align: center;
}

.contact-logo { max-width: 260px; margin: 0 auto 30px; }

.contact-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  color: #212529;
  margin-bottom: 18px;
}

.contact-intro {
  font-family: var(--font-fahkwang);
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  max-width: 600px;
  margin: 0 auto 44px;
}

.contact-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: left;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 40px;
}

.contact-berimbau { width: 130px; flex: 0 0 130px; }

.contact-email-text {
  font-family: var(--font-fahkwang);
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.contact-email-link {
  display: inline-block;
  font-weight: 600;
  font-size: 19px;
  color: var(--teal);
  margin: 6px 0;
}

.contact-email-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .contact-card { padding: 40px 24px; }
  .contact-email-row { flex-direction: column; text-align: center; padding-top: 30px; }
  .contact-berimbau { width: 100px; flex-basis: 100px; }
}

/* ---------- SCROLL-TRIGGERED ANIMATIONS ----------
   Same effects/speeds the original Builderall site uses (fadeInUp, fadeIn,
   fadeInLeft/Right, flash, pulse, headShake), played once via
   IntersectionObserver in main.js when an element first scrolls into view. */
[data-animate^="fadeIn"] { opacity: 0; }

[data-animate].is-visible {
  animation-duration: 1.1s;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

[data-animate].is-visible[data-speed="slower"] { animation-duration: 1.7s; }
[data-animate].is-visible[data-speed="fast"] { animation-duration: 0.7s; }

[data-animate="fadeInUp"].is-visible { animation-name: siteFadeInUp; }
[data-animate="fadeIn"].is-visible { animation-name: siteFadeIn; }
[data-animate="fadeInLeft"].is-visible { animation-name: siteFadeInLeft; }
[data-animate="fadeInRight"].is-visible { animation-name: siteFadeInRight; }
[data-animate="flash"].is-visible { animation-name: siteFlash; }
[data-animate="pulse"].is-visible { animation-name: sitePulse; }
[data-animate="headShake"].is-visible { animation-name: siteHeadShake; }

@keyframes siteFadeInUp {
  from { opacity: 0; transform: translate3d(0, 36px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

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

@keyframes siteFadeInLeft {
  from { opacity: 0; transform: translate3d(-55px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes siteFadeInRight {
  from { opacity: 0; transform: translate3d(55px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes siteFlash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@keyframes sitePulse {
  0% { transform: scale3d(1, 1, 1); }
  50% { transform: scale3d(1.06, 1.06, 1.06); }
  100% { transform: scale3d(1, 1, 1); }
}

@keyframes siteHeadShake {
  0% { transform: translateX(0); }
  6.5% { transform: translateX(-6px) rotateY(-9deg); }
  18.5% { transform: translateX(5px) rotateY(7deg); }
  31.5% { transform: translateX(-3px) rotateY(-5deg); }
  43.5% { transform: translateX(2px) rotateY(3deg); }
  50% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; animation: none !important; transform: none !important; }
}

/* ---------- LANGUAGE SELECTOR (same component/behavior as marciomendes-site,
   recolored for our light header + Google Translate widget underneath) ---------- */
.language-dropdown { position: relative; }

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #2a2a2a;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
  font-size: 13px;
}

.lang-dropdown-btn:hover { background: rgba(0, 0, 0, 0.08); }

.site-header.scrolled .lang-dropdown-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.site-header.scrolled .lang-dropdown-btn:hover { background: rgba(255, 255, 255, 0.18); }

.current-lang-flag { font-size: 18px; }
.current-lang-text { font-weight: 600; }

.lang-arrow { font-size: 10px; transition: transform 0.3s ease; }
.language-dropdown.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 8px;
  min-width: 170px;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1100;
}

.lang-dropdown-menu::-webkit-scrollbar { width: 6px; }
.lang-dropdown-menu::-webkit-scrollbar-track { background: #222; border-radius: 3px; }
.lang-dropdown-menu::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

.language-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--font-body);
  font-size: 13px;
  text-align: left;
}

.lang-option:hover { background: rgba(77, 104, 102, 0.35); }
.lang-option .lang-flag { font-size: 20px; }
.lang-option .lang-name { font-weight: 500; }

/* hide Google's own translate bar/banner/highlighting it likes to inject */
body { top: 0 !important; }
.goog-te-banner-frame { display: none !important; }
.skiptranslate iframe { display: none !important; }

@media (max-width: 860px) {
  .lang-switch-item { width: 100%; padding: 12px 24px; }
  .language-dropdown { width: 100%; }
  .lang-dropdown-btn { width: 100%; justify-content: center; }
  .lang-dropdown-menu { position: static; margin-top: 10px; width: 100%; transform: none; box-shadow: none; }
  .language-dropdown.open .lang-dropdown-menu { transform: none; }
}
