@charset "UTF-8";

/* === GLOBAL === */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #F4F4F4;
  padding-top: 70px; 
}

/* Navbar Container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #004a99; /* Lighter Royal Blue */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 40px; 
  z-index: 1000;
  height: 70px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Left Section */
.navbar-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /* Remove width: 100% which causes the gap */
}

/* Logo & Brand Group */
.navbar-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo */
.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* Brand */
.brand {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.navbar-right {
  display: flex;
  gap: 20px;
}

.navbar-right a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.navbar-right a:hover {
  color: #f6c23e;
  transform: translateY(-2px);
}

.register-btn {
  background-color: #2e59d9;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  margin-left: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.register-btn:hover {
  background-color: #224abe;
}

/* Login button */
.login-btn {
  background: #f6c23e;
  color: #004a99 !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(246, 194, 62, 0.4);
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
}

/* Navbar Links */
.navbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}


/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  /* Show hamburger on mobile */
  .menu-toggle {
    display: block;
  }

  /* Hide menu initially */
  .navbar-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #4e73df;
    text-align: center;
    padding: 20px 0;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  /* Show when toggled */
  .navbar-right.show {
    display: flex;
  }

  .navbar-right a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
    text-align: center;
  }

  .navbar-right a:hover {
    color: #f6c23e;
  }

  .register-btn {
    background-color: #2e59d9;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    margin-left: 7px;
    text-decoration: none;
    transition: background-color 0.3s ease;

  }

  .register-btn:hover {
    background-color: #224abe;
  }

  /* Login button */
  .login-btn {
    background: #f6c23e;
    color: #4e73df !important;
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 8px;
  }
}


/* === HERO SECTION === */
.hero {
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
  background-color: #004a99 !important; /* Lighter Royal Blue */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding-top: 20px !important; /* Reduced to lift content up */
  z-index: 1 !important;
}

/* Background Bubbles */
.hero-bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
}

.bubble:nth-child(1) { width: 100px; height: 100px; top: 10%; left: 5%; animation-delay: 0s; }
.bubble:nth-child(2) { width: 220px; height: 220px; bottom: 15%; left: 10%; animation-delay: 2s; }
.bubble:nth-child(3) { width: 170px; height: 170px; top: 40%; left: 45%; animation-delay: 4s; }
.bubble:nth-child(4) { width: 340px; height: 340px; top: -100px; right: 5%; animation-delay: 1s; }

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
  gap: 20px;
  transform: translateY(-20px); /* Lift content up as requested */
}

/* Left Text Side */
.hero-text-side {
  flex: 1.2;
}

.hero-title-box {
  background-color: #f6c23e !important; 
  padding: 15px 70px 15px 40px !important;
  display: inline-block !important;
  border-radius: 0 100px 100px 0 !important;
  margin-left: -50px !important;
  padding-left: 90px !important;
  margin-bottom: 30px !important;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.hero-title-box h1 {
  color: #004a99 !important; 
  font-family: 'Oswald', sans-serif !important;
  font-size: 5.8rem !important; /* Scaled back up */
  font-weight: 800 !important;
  margin: 0 !important;
  letter-spacing: -2px !important;
  line-height: 1 !important;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.2) !important;
}

.hero-subtitle {
  color: #fff !important;
  font-size: 2.2rem !important; /* Scaled back up */
  font-weight: 500 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  max-width: 650px !important;
}

/* Right Visual Side */
.hero-visual-side {
  flex: 1;
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image-container {
  width: 580px !important; /* Scaled back up */
  height: 580px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 15px solid #f6c23e !important;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4) !important;
  position: relative;
  right: -60px;
}

.hero-image-curved {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hero-logo-circle {
  position: absolute !important;
  bottom: -30px !important;
  right: 180px !important;
  width: 320px !important; /* Scaled back up */
  height: 320px !important;
  background: white !important;
  border-radius: 50% !important;
  padding: 10px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
  border: 8px solid #004a99 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
}

.hero-logo-circle img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: contain !important;
}

/* Features Section */
.features {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 15px !important;
  margin-top: 30px !important;
  z-index: 2;
  position: relative;
  width: 100% !important;
  margin-left: 0 !important;
}

.feature {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  white-space: nowrap;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-5px) !important;
}

@media (max-width: 992px) {
  .features {
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 40px !important;
    gap: 10px !important;
  }
}

@media (max-width: 1200px) {
  .hero-title-box h1 { font-size: 3.5rem !important; }
  .hero-subtitle { font-size: 1.8rem !important; }
  .hero-image-container { width: 380px !important; height: 380px !important; }
  .hero-logo-circle { width: 180px !important; height: 180px !important; right: 100px !important; }
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column !important;
    text-align: center !important;
    padding-top: 20px !important;
    gap: 30px !important;
  }
  .hero-title-box {
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-radius: 50px !important;
    width: auto !important;
    display: inline-block !important;
  }
  .hero-title-box h1 { font-size: 2.8rem !important; }
  .hero-subtitle { font-size: 1.4rem !important; margin: 0 auto !important; }
  .hero-visual-side {
    height: auto !important;
    width: 100% !important;
    justify-content: center !important;
    padding-bottom: 20px !important;
    margin-top: 20px !important;
  }
  .hero-image-container {
    right: 0 !important;
    width: 320px !important;
    height: 320px !important;
  }
  .hero-logo-circle {
    right: 50% !important;
    transform: translateX(50%) !important;
    bottom: -40px !important;
    width: 160px !important;
    height: 160px !important;
  }
  .features {
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 30px !important;
    gap: 10px !important;
  }
}

@media (max-width: 576px) {
  .hero-title-box h1 { font-size: 2rem !important; }
  .hero-subtitle { font-size: 1.1rem !important; }
  .hero-image-container {
    width: 260px !important;
    height: 260px !important;
  }
  .hero-logo-circle {
    width: 130px !important;
    height: 130px !important;
    bottom: -30px !important;
  }
  .feature {
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
  }
}

/* === VISION & MISSION === */
.vision-mission {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
  background: #e8f0ff;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

.card h3 {
  color: #4e73df;
  font-size: 1.5rem;
}

/* === SERVICES === */
.services {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background: #f0f5ff;
  border-radius: 10px;
  padding: 30px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 2rem;
  color: #4e73df;
}

/* === BARANGAY COUNCIL === */
.barangay-council {
  text-align: center;
  padding: 60px 20px;
  background: #e8f0ff;
}

.council-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.council-members {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px calc(50% - 100px);
  scroll-snap-type: x mandatory;
}

.council-members::-webkit-scrollbar {
  display: none;
}

.member {
  flex: 0 0 auto;
  width: 200px;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  scroll-snap-align: center;
}

.member img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* Entrance animation for council members when they become visible in the carousel */

.council-members .member {
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  /* slower, smoother entrance */
  transition: transform 900ms cubic-bezier(.16, .84, .28, 1), opacity 700ms ease;
  will-change: transform, opacity;
}

.council-members .member.in-view {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Slight visual lift when hovering a member */
.council-members .member:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.carousel-btn {
  background: #4e73df;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: absolute;
  z-index: 2;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

/* === LOCATION === */
.location {
  text-align: center;
  /* remove extra vertical whitespace so the map fills the section */
  padding-top: 0;
  padding-bottom: 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.location-content {
  /* make content able to break out full-bleed */
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Make embedded map full-bleed across the viewport */
.location-content iframe {
  width: 100vw !important;
  max-width: none !important;
  /* increase height so no visible white gaps appear around the map */
  height: 90vh;
  min-height: 360px;
  border: 0;
  display: block;
  /* center the full-viewport iframe within the section */
  margin-left: calc(50% - 50vw);
}

@media (max-width: 768px) {
  .location-content iframe {
    height: 55vh;
  }
}

/* Reduce default spacing for the section title to avoid gaps */
.location h2 {
  margin: 0;
  padding: 12px 0;
}

/* === FOOTER === */
.footer {
  background: #004a99;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  border-top: 5px solid #f6c23e;
}

.footer-content {
  display: flex;
  justify-content: flex-start;
  /* align items to the left */
  align-items: center;
  flex-wrap: wrap;
  padding-left: 24px;
  /* add some left spacing from the viewport edge */
}

.footer-logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #f6c23e;
  text-decoration: none;
}

/* Left-align contact info inside footer */
.contact-info {
  text-align: left;
  margin-right: 32px;
}

/* Reduce spacing between contact lines in footer */
.contact-info h3 {
  margin: 0 0 6px 0;
}

.contact-info p {
  margin: 4px 0;
  line-height: 1.25;
}

/* Make contact text match site design in the footer */
.contact-info {
  color: #ffffff;
  font-size: 0.95rem;
}

.contact-info i {
  color: #ffffff;
  /* accent color */
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

.contact-info a {
  color: #ffffff;
  /* accent links */
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Make `.contact-link` inside `.contact-info` take precedence */
.contact-info .contact-link {
  color: #ffffff;
  /* ensure white default for contact-link */
}

.contact-info .contact-link:hover,
.contact-info .contact-link:focus {
  color: #f6c23e;
  /* yellow on hover/focus */
}

/* Specific styling for contact-link anchors (footer contact items) */
.contact-link {
  color: #ffffff;
  /* default white */
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 180ms ease;
}

.contact-link i {
  color: inherit;
  /* let icon follow the link color */
}

.contact-link:hover,
.contact-link:focus {
  color: #f6c23e;
  /* yellow on hover / focus */
  text-decoration: underline;
}
/* === RESPONSIVE MODAL FIXES === */
.modal-content {
  width: 94% !important;
  max-width: 500px !important;
  margin: 10% auto !important;
  padding: 25px !important;
  position: relative !important;
}

#loginSuccessModal .modal-content {
  max-width: 350px !important;
}

@media (max-width: 576px) {
  .modal-content {
    margin: 20% auto !important;
    padding: 20px !important;
  }
}

/* === FINAL RESPONSIVENESS OVERRIDES === */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 12px !important; /* Standardized mobile padding */
  }
  .logo {
    width: 40px !important;
    height: 40px !important;
  }
  .navbar-right {
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }
  .menu-toggle {
    display: block !important;
    font-size: 1.4rem !important; /* Slightly smaller icon to avoid cutoff */
    margin-right: 5px !important; /* Push it away from the extreme edge */
    padding: 5px !important;
  }
  .navbar-left {
    justify-content: flex-start !important;
    gap: 6px; /* Tighten for small screens */
    width: auto !important; /* Don't push links away */
  }
  .brand {
    font-size: 1rem !important; /* Slightly smaller for safer fit */
    white-space: nowrap !important;
    max-width: none !important;
    overflow: visible !important;
  }
  .hero-content {
    padding: 100px 0 40px !important;
    width: 92% !important;
    min-height: auto !important;
  }
  .footer-content {
    justify-content: center !important;
    padding-left: 0 !important;
  }
  .contact-info {
    text-align: center !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
  }
}
