/* Reset and basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(200, 250, 205, 0.85); /* Slight opacity on green */
  backdrop-filter: blur(12px); /* adds a smooth glass effect */
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 70px;
  transition: background 0.3s ease;
}


nav .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

nav .logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

nav .logo-img:hover {
  transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: rgb(35, 79, 43);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
}

.nav-menu li a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
  white-space: nowrap;
}

.nav-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.login-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding: 10px 20px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.signup-btn {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
  color: white !important;
  border: none !important;
  padding: 10px 25px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.signup-btn:hover {
  background: linear-gradient(135deg, #1B5E20 0%, #0D4E14 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== HERO BACKGROUND SLIDESHOW ========== */
.home {
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
  text-align: center;
  min-height: 80vh; /* Galing sa new code mo */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tinanggal ko yung green gradient para images lang ang background */
}

/* ITO YUNG BAGONG OVERLAY */
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); /* 25% dark overlay */
  z-index: 1; /* Inayos para nasa ibabaw ng images */
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Ito yung images, nasa pinakailalim */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideAnimation 15s infinite;
  transition: opacity 1s ease-in-out;
}

/* Fade animation for each slide */
@keyframes slideAnimation {
  0% { opacity: 0; }
  5% { opacity: 0.7; } /* Mas mabilis mag-fade in */
  30% { opacity: 0.7; } /* Tagal ng display */
  35% { opacity: 0; } /* Mas mabilis mag-fade out */
  100% { opacity: 0; }
}

/* Each slide has different delay */
.slide:nth-child(1) {
  animation-delay: 0s;
}
.slide:nth-child(2) {
  animation-delay: 5s;
}
.slide:nth-child(3) {
  animation-delay: 10s;
}

/* Hero text above background */
.hero-content {
  position: relative;
  z-index: 2; /* Ito yung text, nasa pinaka-ibabaw */
  color: #fff; /* Pinalitan ng white text */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* Dinagdagan ng shadow para mabasa */
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out; /* In-apply ulit yung animation */
}

.home h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.home p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  padding: 15px 35px;
  font-size: 1.1rem;
  background: #4CAF50; /* Galing sa new code mo */
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
  background: #388e3c; /* Galing sa new code mo */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}


/* Features Section */
#features {
  padding: 80px 20px;
  background-color: #fff;
}

#features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #2E7D32;
  font-weight: 700;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  width: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #4CAF50;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature h3 {
  color: #2E7D32;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  color: white;
  padding: 50px 20px 0;
}

.container {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
  flex-wrap: wrap; /* Responsive footer */
}

.column {
  flex: 1;
  padding: 20px;
  margin: 0 20px;
  min-width: 250px; /* Responsive column width */
}

.column h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #c8e6c9;
}

.column p {
  margin-bottom: 10px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.column a {
  color: #c8e6c9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.column a:hover {
  color: white;
  text-decoration: underline;
}

/* Font Awesome Icons */
footer i {
  color: #c8e6c9;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  min-width: 20px;
}

footer p:hover i {
  color: #ffffff;
}

/* Social media link */
.social-media {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.social-media a.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  color: #c8e6c9;
  text-decoration: none;
  font-weight: 500;
}

.social-media a.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

/* Facebook Icon */
.social-media i {
  margin-right: 8px;
  font-size: 1.2rem;
}

/* Copyright Section */
.copyright {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}


/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Offset for sticky navbar when scrolling to sections */
section {
  scroll-margin-top: 70px;
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations */
.feature:nth-child(1) {
  animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.feature:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature:nth-child(3) {
  animation: fadeInRight 0.8s ease-out 0.6s both;
}

/* Focus styles for accessibility */
.nav-menu li a:focus,
.login-btn:focus,
.signup-btn:focus,
.cta-button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/*
========================================
  RESPONSIVE DESIGN (ITO YUNG NAWALA)
========================================
*/

@media (max-width: 1024px) {
  nav {
    padding: 15px 30px;
  }
  
  .nav-menu {
    gap: 20px;
  }

  .home h1 {
    font-size: 3rem;
  }

  .home p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px; /* Naka-match sa height ng nav */
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, #bddcbe 0%, #45a049 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: 0 2px 10px rgba(192, 186, 186, 0.1);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 80%;
    text-align: center;
  }

  .nav-menu li a {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .login-btn,
  .signup-btn {
    width: 200px !important;
    text-align: center !important;
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }

  nav .logo-img {
    height: 40px;
    max-width: 160px;
  }

  section {
    scroll-margin-top: 70px;
  }

  .home {
    padding: 80px 20px;
  }

  .home h1 {
    font-size: 2.5rem;
  }

  .home p {
    font-size: 1.1rem;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    width: 100%;
    max-width: 400px;
  }

  .container {
    flex-direction: column;
    text-align: center;
  }

  .column {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 12px 15px;
    min-height: 60px;
  }

  nav .logo-img {
    height: 35px;
    max-width: 140px;
  }

  .nav-menu {
    top: 60px; /* Naka-match sa height ng nav */
    height: calc(100vh - 60px);
    padding-top: 30px;
    gap: 25px;
  }

  .nav-menu li a {
    padding: 12px 15px;
    font-size: 1rem;
  }

  .login-btn,
  .signup-btn {
    width: 180px !important;
    padding: 12px 15px !important;
    font-size: 0.95rem !important;
  }

  section {
    scroll-margin-top: 60px;
  }

  .home {
    padding: 60px 15px;
  }

  .home h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .home p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  #features {
    padding: 60px 15px;
  }

  #features h2 {
    font-size: 2rem;
  }

  .feature {
    padding: 30px 20px;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .feature h3 {
    font-size: 1.3rem;
  }

  .feature p {
    font-size: 0.95rem;
  }
}



/* ===================== MODALS ===================== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

/* Modal Content Box */
.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  border-radius: 15px;
  width: 90%;
  max-width: 750px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  max-height: 80vh; /* Limit height */
  overflow: hidden; /* Hide overflowing header shadow */
}

/* Header (Fixed) */
.modal-header {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  color: white;
  padding: 15px 20px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s ease;
}

.close:hover {
  color: #c8e6c9;
}

/* Scrollable Body */
.modal-body {
  padding: 20px 25px;
  overflow-y: auto;
  flex: 1;
}

.modal-body p {
  color: #444;
  margin-bottom: 15px;
  line-height: 1.6;
}

.modal-body a {
  color: #2E7D32;
  text-decoration: none;
  font-weight: 600;
}

.modal-body a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Responsive modal */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    margin: 15% auto;
  }
  .modal-header h2 {
    font-size: 1.2rem;
  }
  .modal-body {
    padding: 15px;
    font-size: 0.95rem;
  }
}

/* ============ PRIVACY MODAL STYLES ============ */
.modal-body p strong {
  color: #1B5E20;
}

.modal-body b {
  color: #2E7D32;
}

.modal-body ul {
  padding-left: 25px;
  margin-bottom: 15px;
  color: #444;
  line-height: 1.6;
}

.modal-body li {
  margin-bottom: 8px;
}

/* ===== ABOUT MODAL LOGO & TEXT ===== */
.about-logo-container {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 margin: 20px 0 30px 0;
}

.about-logo-box {
  text-align: center;
}

.about-logo-centered {
  width: 120px;
  max-width: 40%;
  height: auto;
  object-fit: contain;
  background: white;
  padding: 6px;
  animation: fadeZoom 0.6s ease;
  display: block;
  margin: 0 auto;
}

.about-text-logo {
  width: 160px;
  height: auto;
  margin-top: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: brightness(1.1);
  transition: transform 0.3s ease;
}

.about-text-logo:hover {
  transform: scale(1.05);
}

/* Responsive scaling */
@media (max-width: 480px) {
  .about-logo-centered {
    width: 90px;
  }

  .about-text-logo {
    width: 120px;
  }
}

/* Subtle fade animation */
@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

