/* ============================================================================
   PAGE STYLESHEET: Homepage (public/css/index.css)
   ============================================================================ */

/* --- Animations --------------------------------------------------------- */
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animate-marquee {
  animation: marquee 15s linear infinite;
}

@keyframes noticePopIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes noticePopOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
  }
}

.animate-notice-pop {
  animation: noticePopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-notice-pop-out {
  animation: noticePopOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Page Body ---------------------------------------------------------- */
.index-body {
  color: #1f2937;
  transition: color 0.3s, background-color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', sans-serif;
}
.dark .index-body {
  color: #f3f4f6;
}

/* --- Site Header (shared across public pages) --------------------------- */
.site-header-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.dark .site-header-fixed {
  background: rgba(17,24,39,0.95);
  border-bottom-color: rgba(31,41,55,0.8);
}

.site-nav {
  width: 100%;
  padding: 0 1rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .site-nav { padding: 0 2rem; } }
@media (min-width: 1024px) { .site-nav { padding: 0 3rem; } }

/* Logo Group */
.site-logo-group {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.site-logo-group:hover .site-logo-img {
  transform: scale(1.05);
}
.site-logo-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  border-radius: 1rem;
  border: 2px solid #F39C12;
  background: #fff;
  padding: 0.375rem;
  box-shadow: 0 4px 6px rgba(59,130,246,0.1);
  transition: transform 0.3s;
}
@media (min-width: 640px) { .site-logo-img { height: 4rem; } }

.site-logo-title {
  font-weight: 900;
  font-size: 0.85rem;
  color: #111827;
  letter-spacing: -0.025em;
  line-height: 1.15;
  transition: color 0.2s;
  white-space: normal;
  max-width: 140px;
}
.site-logo-group:hover .site-logo-title { color: #2B78C5; }
.dark .site-logo-title { color: #fff; }
@media (min-width: 375px) { .site-logo-title { font-size: 0.95rem; max-width: 180px; } }
@media (min-width: 640px) { .site-logo-title { font-size: 1.125rem; max-width: none; white-space: nowrap; line-height: 1.25; } }

.site-logo-subtitle {
  font-size: 9.5px;
  color: #F39C12;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}
@media (min-width: 640px) { .site-logo-subtitle { font-size: 11px; margin-top: 0; } }

/* Desktop Nav Links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.dark .desktop-nav { color: #e5e7eb; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

/* Dropdown */
.nav-dropdown {
  position: relative;
  cursor: pointer;
  padding: 0.5rem 0;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.nav-dropdown-trigger .fa-chevron-down {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.3s;
}
.nav-dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 13rem;
  padding: 0.5rem 0;
  background: rgba(255,255,255,0.95);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border: 1px solid #f3f4f6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  transform: translateY(0.5rem);
  will-change: opacity, transform;
  z-index: 50;
}
.dark .nav-dropdown-menu {
  background: rgba(31,41,55,0.95);
  border-color: #374151;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  color: #374151;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  border-radius: 0.75rem;
  margin: 0 0.25rem;
  font-weight: 500;
}
.dark .nav-dropdown-item { color: #e5e7eb; }
.nav-dropdown-item:hover {
  background: #eff6ff;
  color: #2B78C5;
}
.dark .nav-dropdown-item:hover {
  background: rgba(55,65,81,0.5);
}
.nav-dropdown-item i {
  width: 1rem;
}
.nav-dropdown-item .icon-blue { color: #2B78C5; }
.nav-dropdown-item .icon-gold { color: #F39C12; }

/* Active dropdown link */
.nav-dropdown-item.active {
  color: #2B78C5;
  font-weight: 700;
  background: #eff6ff;
}
.dark .nav-dropdown-item.active {
  background: rgba(55,65,81,0.5);
}

/* Header Action Buttons */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dark-toggle-btn {
  padding: 0.625rem;
  color: #4b5563;
  border-radius: 0.75rem;
  transition: background 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1rem;
}
.dark .dark-toggle-btn { color: #d1d5db; }
.dark-toggle-btn:hover {
  background: #f3f4f6;
}
.dark .dark-toggle-btn:hover {
  background: #1f2937;
}

.portal-login-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #2B78C5;
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
  will-change: transform;
}
@media (min-width: 640px) {
  .portal-login-btn { display: inline-flex; }
}
.portal-login-btn:hover {
  background: #1D4E89;
  transform: translateY(-1.5px);
}
.portal-login-btn .fa-sign-in-alt {
  font-size: 0.75rem;
  color: #FFFFFF;
}

.mobile-menu-toggle {
  display: none;
  color: #4b5563;
  font-size: 1.5rem;
  padding: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
.dark .mobile-menu-toggle { color: #d1d5db; }
@media (max-width: 1023px) {
  .mobile-menu-toggle { display: block; }
}



/* --- Public Notices Aside ----------------------------------------------- */
.notices-aside {
  display: none;
  position: fixed;
  top: 6rem;
  right: 1rem;
  z-index: 50;
  width: min(420px, calc(100vw - 2rem));
}
@media (min-width: 640px) { .notices-aside { right: 2rem; } }
.notices-aside.active { display: block; }
.notices-panel {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  background: var(--primary, #2B78C5);
}

/* --- Hero Section ------------------------------------------------------- */
.hero-section {
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
  position: relative;
}
@media (min-width: 1024px) {
  .hero-section {
    padding-top: 12rem;
    padding-bottom: 8rem;
  }
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary, #2B78C5);
}
.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}
@media (min-width: 640px) { .hero-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .hero-container { padding: 0 2rem; } }
.hero-content {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: #fff;
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
.hero-subtitle {
  font-size: 1.25rem;
  color: #bfdbfe;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Mockup Card */
.hero-mockup-wrapper {
  margin-top: 5rem;
  position: relative;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-mockup-card {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
}
.hero-mockup-titlebar {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-mockup-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
}
.hero-mockup-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-left: 0.5rem;
}
.hero-mockup-screen {
  height: 360px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-mockup-content {
  text-align: center;
  z-index: 10;
  max-width: 36rem;
  margin: 0 auto;
}
.hero-mockup-icon {
  font-size: 3.75rem;
  margin-bottom: 1rem;
  color: #F39C12;
  opacity: 0.9;
}
.hero-mockup-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) { .hero-mockup-heading { font-size: 1.875rem; } }
.hero-mockup-sub {
  font-size: 0.875rem;
  color: #bfdbfe;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* --- Features Section --------------------------------------------------- */
.features-section {
  padding: 6rem 0;
  background: #f8fafc;
}
.dark .features-section {
  background: rgba(15,23,42,0.6);
}
.features-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .features-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .features-container { padding: 0 2rem; } }
.features-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}
.features-title {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #111827;
}
.dark .features-title { color: #fff; }
@media (min-width: 768px) { .features-title { font-size: 3rem; } }
.features-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin-top: 1rem;
}
.dark .features-subtitle { color: #9ca3af; }
@media (min-width: 768px) { .features-subtitle { font-size: 1.125rem; } }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.3s;
  background: #fff;
}
.dark .feature-card {
  background: #1f2937;
  border-color: rgba(55,65,81,0.8);
}
.feature-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}
.dark .feature-card-title { color: #fff; }
.feature-card-desc {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.75;
}
.dark .feature-card-desc { color: #9ca3af; }

/* --- CTA Section -------------------------------------------------------- */
.cta-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  color: #fff;
}
.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .cta-title { font-size: 3rem; } }
.cta-subtitle {
  color: #bfdbfe;
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}
.cta-btn {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  display: inline-block;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0;
  color: #d1d5db;
}
.footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .footer-grid { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .footer-grid { padding: 0 2rem; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 2; }
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand-logo img {
  height: 2.5rem;
  opacity: 0.8;
  filter: grayscale(100%);
}
.footer-brand-logo span {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.footer-brand-desc {
  color: #9ca3af;
  max-width: 24rem;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: #9ca3af;
  transition: color 0.2s;
}
.footer-social a:hover { color: #fbbf24; }
.footer-social i { font-size: 1.25rem; }

.footer-heading {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer-contact li:not(:first-child) {
  align-items: center;
}
.footer-bottom {
  max-width: 80rem;
  margin: 3rem auto 0;
  padding: 2rem 1rem 0;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 0.875rem;
  color: #cbd5e1;
}
@media (min-width: 640px) { .footer-bottom { padding: 2rem 1.5rem 0; } }
@media (min-width: 1024px) { .footer-bottom { padding: 2rem 2rem 0; } }
.footer-developer-credit {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.footer-developer-credit .credit-brand {
  color: #f1f5f9;
  font-weight: 600;
}
.footer-developer-credit a {
  color: #F59E0B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-developer-credit a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* --- WhatsApp FAB ------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  color: #fff;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  transition: transform 0.2s;
  z-index: 50;
}
.whatsapp-fab:hover { transform: scale(1.1); }

/* --- Hero Video Background & Zero-CLS Layout Guard ----------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
  min-height: 80vh;
  contain: layout;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Dark overlay to ensure text stays sharp */
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); 
  z-index: 1;
  pointer-events: none;
}

/* Ensure content sits above the video & overlay */
.hero-container {
  position: relative;
  z-index: 2;
}
