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

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
}

/* Toast Notif */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2e7d32;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #d32f2f !important;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.toast.error .toast-close {
  color: #ffcdd2;
}

.toast-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: 8px;
}

/* floating-login */
body.login-active {
  overflow: hidden;
}
.floating-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 1003;
  display: none;
  overflow: visible;
}

.floating-container.active {
  display: flex;
}

.floating-iframe {
  width: 1400px;
  height: 695px;
  border: none;
  background: transparent;
  position: relative;
  z-index: 1004;
  overflow: visible;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000080;
  backdrop-filter: blur(1px);
  display: none;
  z-index: 1002;
}

#floatingReportContainer .floating-iframe {
  width: 1200px;
  height: 950px;
}

#floatingLogoutContainer .floating-iframe {
  width: 450px;
  height: 550px;
}

#floatingSignUpContainer .floating-iframe {
  height: 1100px;
  max-height: 90vh;
  margin-top: 20px;
}

#floatingLoginContainer .floating-iframe,
#floatingSignInContainer .floating-iframe {
  width: 1400px;
  height: 695px;
  margin-top: 20px;
}

#floatingSpeciesContainer .floating-iframe {
  width: 800px;
  height: 815px;
  border-radius: 16px;
}

#floatingActivityContainer .floating-iframe {
  width: 740px;
  height: 900px;
  border-radius: 20px;
}

#floatingAddMarkerContainer .floating-iframe {
  width: 700px;
  height: 750px;
  border-radius: 24px;
  background: transparent;
}

#floatingEditForestContainer .floating-iframe,
#floatingAddMarkerContainer .floating-iframe {
  width: 550px;
  height: 650px;
  border-radius: 24px;
  background: transparent;
}

#floatingForestDetailsContainer .floating-iframe {
  width: 550px;
  height: 650px;
  border-radius: 24px;
  background: transparent;
}

#floatingVolunteerContainer .floating-iframe {
  width: 720px;
  height: 900px;
  max-height: 90vh;
  border-radius: 20px;
  margin-top: 54px;
  background: transparent;
}

#floatingEditActivityContainer .floating-iframe {
  width: 750px;
  height: 90vh;
  border-radius: 24px;
}

#floatingAddActivityContainer .floating-iframe {
  width: 750px;
  height: 100%;
  max-height: 765px;
  border-radius: 24px;
}

#floatingEditProfileContainer .floating-iframe {
  width: 1200px;
  height: 100%;
  max-height: 90vh;
  border-radius: 24px;
}

#floatingMessageModal .floating-iframe {
  width: 580px;
  height: 100%;
  max-height: 720px;
  border-radius: 24px;
}

#floatingCreateChannelContainer {
  justify-content: flex-end !important;
  align-items: stretch !important;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(1px);
}

#floatingCreateChannelContainer .floating-iframe {
  margin-top: 70px;
  width: 580px !important;
  height: 820px !important;
  max-height: 100vh !important;
  border-radius: 12px !important;
  background: white;
  margin-right: 32px;
  transition: transform 0.3s ease;
}


#floatingCreateChannelContainer.active .floating-iframe {
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.overlay.active {
  display: block; /* Show when active */
}

body.overlay-active .main-content,
body.overlay-active .navigation,
body.overlay-active .FirstPage,
body.overlay-active .SecondPage,
body.overlay-active .ThirdPage,
body.overlay-active .FourthPage,
body.overlay-active .footer {
  pointer-events: none;
  user-select: none;
}

/*Navigation Bar*/

.navigation {
  width: 100%;
  padding: 1rem 3%;
  background-color: #fbfbfbd0;
  border-bottom: 1px solid #0000002c;
  margin-bottom: 2px;
  position: sticky;
  z-index: 998;
  top: 0;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px; /* space between bell and profile */
}

/* Notif Bell with Badge */

.notification-bell-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.bell-icon {
  font-size: 24px;
  color: #383838;
  margin-top: 4.2px;
  font-weight: 400;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #2e7d32;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: "Inter", sans-serif;
}

.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #2e7d32;
  border-radius: 50%;
}

.chat-icon-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-right: 8px;
}

.chat-icon {
  height: 22px;
  width: 22px;
  filter: invert(100%) brightness(28%);
  margin-top: 4.2px;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.chat-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #2e7d32;
  border-radius: 50%;
  border: 1px solid #ffff;
  z-index: 1;
}

.nav-right .profile {
  cursor: pointer;
  width: 28px;
  height: 28px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 5rem;
}
.nav-links li a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #3f3f3f;
}
.profile {
  cursor: pointer;
}

.menu {
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: block;
}

/* Sidebar overlay */

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition:
    left 0.25s ease,
    width 0.2s ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #f0f0f0;
}

.sidebar.active {
  left: 0;
}

/* Collapsed state - for when menu icon inside sidebar is clicked */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .logo-text {
  display: none;
}

.sidebar.collapsed .sidebar-nav .label {
  display: none;
}

.sidebar.collapsed .sidebar-nav a {
  justify-content: center;
  padding: 14px 0;
}

.sidebar.collapsed .sidebar-nav a i {
  margin: 0;
  font-size: 22px;
}

.sidebar.collapsed .sidebar-report .label {
  display: none;
}

.sidebar.collapsed .report-activity {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  margin: 0 auto;
}

.sidebar.collapsed .report-activity .material-symbols-rounded {
  margin: 0;
}

.sidebar.collapsed .sidebar-profile {
  justify-content: center;
  padding: 16px 0;
}

.sidebar.collapsed .profile-info {
  display: none;
}

.sidebar.collapsed .profile-avatar {
  margin: 0;
}

/* Sidebar Header with menu icon */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0px 24px 20px;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 10px;
}

.sidebar-menu-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform 0.2s;
  min-width: 28px;
}

.sidebar-menu-icon:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #2e7d32;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.page-content {
  padding-top: 40px;
  padding-bottom: 42px;
  background-color: #ffff;
}

/* Navigation Links */
.sidebar-nav {
  padding: 0 12px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 4px 0;
}

.sidebar-nav li.active {
  background-color: #e8f5e9;
  border-radius: 30px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 30px;
}

.sidebar-nav a i {
  font-size: 20px;
  min-width: 24px;
  color: #666;
  transition: color 0.2s;
}

.sidebar-nav li.active a {
  color: #2e7d32;
  font-weight: 600;
}

.sidebar-nav li.active a i {
  color: #2e7d32;
}

.sidebar-nav li:not(.active) a:hover {
  background-color: #f5f5f5;
  color: #2e7d32;
}

.sidebar-nav li:not(.active) a:hover i {
  color: #2e7d32;
}

.sidebar-report {
  padding: 0 16px 20px 16px;
  margin-top: auto;
}

/* Admin navigation links (same as sidebar-nav) */
.sidebar-admin {
  padding: 10px 12px;
  margin-top: 16px;
  margin-bottom: 0px;
  border-top: 1px solid #e4e4e4;
  border-bottom: none;
}

.sidebar-admin ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-admin li {
  margin: 4px 0;
}

.sidebar-admin li.active {
  background-color: #e8f5e9;
  border-radius: 30px;
}

.sidebar-admin a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 30px;
}

.sidebar-admin a i {
  font-size: 20px;
  min-width: 24px;
  color: #666;
  transition: color 0.2s;
}

.sidebar-admin li.active a {
  color: #2e7d32;
  font-weight: 600;
}

.sidebar-admin li.active a i {
  color: #2e7d32;
}

.sidebar-admin li:not(.active) a:hover {
  background-color: #f5f5f5;
  color: #2e7d32;
}

.sidebar-admin li:not(.active) a:hover i {
  color: #2e7d32;
}

.sidebar.collapsed .sidebar-admin .label {
  display: none;
}

.sidebar.collapsed .sidebar-admin a {
  justify-content: center;
  padding: 14px 0;
}

.sidebar.collapsed .sidebar-admin a i {
  margin: 0;
  font-size: 22px;
}

.report-activity {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 12px;
  background: #fff1f0;
  border: 1px solid #ffcdd2;
  border-radius: 30px;
  color: #e53935;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
}

.report-activity:hover {
  background: rgb(216, 69, 67);
  color: white;
  border: none;
}

.report-activity:hover .material-symbols-rounded {
  color: white;
}

.report-activity .material-symbols-rounded {
  font-size: 20px;
  color: #e53935;
  transition: color 0.2s;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  background: white;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0;
}

.sidebar-profile:hover {
  background: #fafafa;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2f3e4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: brightness(0.3);
}

.profile-info {
  flex: 1;
  white-space: nowrap;
}

.profile-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px 0;
}

.profile-info span {
  font-size: 12px;
  color: #555;
  transition: color 0.2s;
}

.sidebar-profile:hover .profile-info span {
  text-decoration: underline;
  color: #2e7d32;
}

body.sidebar-open {
  overflow: hidden;
}

/*First Page*/

.FirstPage {
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 60%,
      #ffffff 100%
    ),
    url("components/Main02.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.FirstPage h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.FirstPage p {
  max-width: 40rem;
  color: #fff;
  margin: 1rem 0 2rem;
  line-height: 1.5;
  font-weight: 400;
}

.start-planting {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #494949;
  transition: ease 0.2s;
  font-family: "Inter", sans-serif;
}

.start-planting:hover {
  transform: scale(1.05);
}
.start-planting img {
  width: 2rem;
  height: 2rem;
  background-color: #494949;
  padding: 0.5rem;
  border-radius: 4px;
}

/*Second Page*/

.SecondPage {
  padding: 6rem 10%;
  background-color: #ffff;
  min-height: 80vh;
}

.about-title {
  font-size: 1.4rem;
  letter-spacing: 1px;
  margin-bottom: 3rem;
  color: #494949;
}

.top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 5rem;
}

.feature h2 {
  font-size: 3rem;
  color: #bcbcbc;
  font-weight: 500;
  margin-bottom: 1rem;
  font-style: italic;
}

.feature p {
  max-width: 18rem;
  line-height: 1.6;
  font-size: 1.2rem;
  font-style: italic;
  color: #3f3f3f;
}

.middle h3 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  color: #3f3f3f;
  max-width: 80rem;
  margin-bottom: 4rem;
}

.middle span {
  font-style: italic;
  font-size: 24px;
}

.green {
  color: #3f7c42;
  font-weight: 700;
}

.middle em {
  font-style: italic;
}

.bottom {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1rem;
}

.bottom p {
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.joinBtn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 7px 1rem;
  border: 1px solid #49494991;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #fff;
  color: #494949d3;
  transition: ease 0.2s;
  font-family: "Inter", sans-serif;
}

.joinBtn:hover {
  padding: 0.4rem 1.2rem;
}

.joinBtn img {
  width: 2rem;
  height: 2rem;
  background-color: #494949c9;
  padding: 0.3rem;
  border-radius: 4px;
}

/* Third Page */
.ThirdPage {
  display: grid;
  grid-template-columns: 1fr 1.36fr;
  gap: 1rem;
  max-width: 100%;
  width: 100%;
  padding: 3rem 10%;
}

.features-title {
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #494949;
  padding-bottom: 2rem;
  grid-column: 1 / -1;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.left-features {
  grid-column: 1;
}

.left-features h3 {
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.2;
  color: #494949;
  margin-bottom: 2rem;
}

.green02 {
  color: #3f7c42;
}

.feat-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 0;
}

.feat-count {
  display: flex;
  gap: clamp(1rem, 4vw, 6rem);
  color: #bfbfbf;
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 400;
  transition: color 0.3s ease;
  cursor: pointer;
  margin-top: 150px;

  display: inline-flex;
}

.feat-count.active {
  color: #000000;
}

.feat-count h2 {
  font-weight: 400;
  font-size: 1.8rem;
  color: inherit;
}

.left-features p {
  max-width: 40rem;
  color: #3f3f3f;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 400;
}

/* RIGHT FEATURES - with horizontal cards */
.right-features {
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
}

.cards-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2rem 0 0 0;
  scrollbar-width: none;
  max-width: 1400px;
  scroll-snap-type: x mandatory;
  margin: 5%;
}

.cards-container::-webkit-scrollbar {
  display: none;
}

/* Feature card */
.feature-card {
  background-color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #3f3f3f46;
  min-width: 350px;
  max-width: 350px;
  min-height: 570px;
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.feature-badge {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.feature-badge span {
  font-weight: 500;
  color: #000000;
  background-color: #ebebeb;
  font-size: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 0.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #494949;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.card-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.explore {
  display: inline-flex;
  align-items: center;
  background: #ececec;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #494949d7;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  gap: 0.7rem;
  margin-top: auto;
}

.explore img {
  width: 1.5rem;
  height: 1.5rem;
  background-color: #3f7c42;
  border-radius: 4px;
  background-color: #3f3f3fe7;
  margin: 4px;
}

/* Swiper nav - SEPARATE div at ThirdPage level */
.ThirdPage-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-right: 4rem;
  padding-bottom: 8rem;
}

.nav-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 25%;
  border: 1px solid #e0e0e0;
  background: #494949;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background-color: #ffffff;
  border-color: #494949;
}

.nav-btn:hover img {
  filter: brightness(0) invert(0);
}

.nav-btn:active {
  transform: scale(1.05);
}

.nav-btn img {
  width: 1.5rem;
  height: 1.5rem;
  transition: filter 0.2s ease;
}

@media (max-width: 1000px) {
  .ThirdPage {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.right-features {
  grid-column: 2;
}

.green02 {
  color: #3f7c42;
}

.feat-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 12rem;
}

.feat-count h2 {
  margin: 0;
  font-weight: 500;
  color: inherit;
}

.feat-count h2 + h2 {
  opacity: 0.6;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: start;
  padding: 2rem 1rem;
  color: #000000;
}

/* Fourth Page */

.FourthPage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 10%;
}

.fourth-background {
  background: url("components/Main.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  min-height: 60vh;
  width: 100%;
  max-width: 1500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fourth-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(1px);
  filter: brightness(70%) saturate(60%);
  z-index: 1;
}

.fourth-content {
  max-width: 900px;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 2;
  padding: 3rem;
}

.fourth-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.join-tag {
  font-size: 1rem;
  letter-spacing: -0.3px;
  margin-bottom: 8rem;
  font-weight: 300;
  grid-row: 1;
  align-self: flex-start;
  width: 100%;
  text-align: center;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.fourth-title {
  font-size: clamp(2.5rem, 5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.fourth-description {
  font-size: clamp (0.8rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  font-weight: 400;
  margin-right: auto;
  opacity: 0.95;
}

.fourth-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex: wrap;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: #ffffffef;
  border: 0.8px solid #2e2e2e;
  padding: 0.6rem 1.4rem;
  border-radius: 32px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b3b3bbe;
  transition: all 0.2s ease;
  margin-right: 2rem;
  font-family: "Inter", sans-serif;
}

.btn-primary:hover {
  transform: translatex(4px);
  background-color: #3f3f3f;
  border-color: #ffffff75;
  color: #ffff;
}

.btn-primary img {
  background-color: #494949;
  padding: 0.6rem 0.6rem;
  border-radius: 50%;
  height: 2.4rem;
  width: 2.4rem;
  transition: all 0.2s ease;
}

.btn-primary:hover img {
  filter: invert(1);
  background-color: #000000;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: transparent;
  border: 1px solid #ffffffa9;
  padding: 0.5rem 2rem;
  border-radius: 32px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  transition: all 0.2s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2x);
  font-family: "Inter", sans-serif;
}

.btn-secondary:hover {
  border-color: #494949;
  background-color: #ffffffda;
  transform: scale(1.05rem);
  color: #494949;
}

/* Footer Page */

.footer {
  background-color: #494949;
  color: #ffffff;
  padding: 4rem 8% 2rem;
  font-family: "Inter", sans-serif;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Left takes 1 part, right takes 2 parts */
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left Section */
.footer-left {
  width: 100%;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.footer-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #fffffff6;
  margin-bottom: 2rem;
  max-width: 400px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  font-size: 0.95rem;
}

.contact-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Right Section */

.footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  width: 100%;
}
.footer-column {
  min-width: 140px;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column li a {
  text-decoration: none;
  color: #ffffffda;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-column li a:hover {
  color: #77e786;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Media Queries */

@media (min-width: 1200px) {
  .ThirdPage {
    padding: 4rem 10%;
  }

  .feature-card {
    min-width: 380px;
    max-width: 380px;
  }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) {
  .SecondPage {
    padding: 5rem 8%;
  }

  .feature-card {
    min-width: 330px;
    max-width: 330px;
  }

  .left-features h3 {
    font-size: 2rem;
  }
}

/* Small Desktop / Large Tablet (992px - 1023px) */
@media (max-width: 1023px) {
  .ThirdPage {
    padding: 3rem 6%;
  }

  .top {
    gap: 2rem;
  }

  .feature p {
    font-size: 1rem;
  }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) {
  /* Navigation */
  body {
    overflow-x: hidden;
  }

  .sign- .nav-links {
    gap: 2rem;

    .feature-card {
      min-width: 300px;
      max-width: 300px;
    }
    .FourthPage {
      padding: 2rem 5%;
    }
    .fourth-background {
      min-height: auto;
      border-radius: 20px;
    }
    .fourth-content {
      padding: 2rem;
    }
    .join-tag {
      margin-bottom: 2rem;
      font-size: 0.9rem;
    }
    .fourth-title {
      font-size: 1.8rem;
    }
    .fourth-description {
      font-size: 0.9rem;
      margin-bottom: 2rem;
    }
    .fourth-buttons {
      gap: 1rem;
      flex-direction: column;
      align-items: center;
    }
    .btn-primary,
    .btn-secondary {
      width: 100%;
      margin-right: 0;
      justify-content: center;
    }

    .fourth-title {
      font-size: 1.5rem;
    }
    .fourth-description {
      font-size: 0.85rem;
    }
    .btn-primary,
    .btn-secondary {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }
  }

  /* First Page */
  .FirstPage p {
    max-width: 30rem;
    font-size: 0.95rem;
  }

  /* Second Page */
  .SecondPage {
    padding: 4rem 6%;
  }

  .top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .middle h3 {
    font-size: 1.4rem;
  }

  /* Third Page */
  .ThirdPage {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .left-features {
    text-align: center;
  }

  .left-features p {
    margin: 0 auto;
  }

  .feat-row {
    justify-content: center;
    margin-top: 2rem;
  }

  .right-features {
    grid-column: 1;
  }

  .cards-container {
    justify-content: flex-start;
    margin: 2% 0;
  }

  .ThirdPage-nav {
    justify-content: center;
    margin-right: 0;
    margin-left: auto;
  }

  #floatingActivityContainer .floating-iframe {
    width: 95%;
    height: 90%;
  }

  #floatingAddMarkerContainer .floating-iframe {
    width: 95%;
    height: 90%;
  }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) {
  /* Navigation */
  .navigation {
    padding: 0.8rem 4%;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links li a {
    font-size: 0.9rem;
  }

  /* First Page */
  .FirstPage {
    min-height: 90vh;
  }

  .FirstPage h2 {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }

  .start-planting {
    padding: 0.6rem 0.8rem;
    font-size: 14px;
  }

  /* Second Page */
  .SecondPage {
    padding: 3rem 5%;
  }

  .about-title {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .top {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .feature {
    text-align: center;
  }

  .feature p {
    max-width: 100%;
  }

  .middle h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .bottom {
    align-items: center;
    text-align: center;
  }

  /* Third Page */
  .left-features h3 {
    font-size: 1.8rem;
  }

  .feat-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .feat-count {
    font-size: 1.5rem;
  }

  .feat-count h2 {
    font-size: 1.5rem;
  }

  .left-features p {
    font-size: 1rem;
  }

  .feature-card {
    min-width: 280px;
    max-width: 280px;
    min-height: 520px;
  }

  .feature-card img {
    height: 200px;
  }

  .explore img {
    width: 1.2rem;
    height: 1.2rem;
  }
  .explore {
    font-size: 1.05rem;
    font-weight: 500;
  }

  .card-content h3 {
    font-size: 1.2rem;
  }

  .ThirdPage-nav {
    margin-left: auto;
  }

  .card-content p {
    font-size: 0.9rem;
  }

  .fourth-content {
    padding: 1.5rem;
  }
  .join-tag {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }
  .fourth-title {
    font-size: 1.3rem;
  }
  .fourth-description {
    font-size: 0.8rem;
  }
  .btn-primary img,
  .btn-secondary img {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Mobile Landscape (480px - 599px) */
@media (max-width: 599px) {
  /* Navigation */
  .navbar {
    gap: 0.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links li a {
    font-size: 0.85rem;
  }

  .menu,
  .profile {
    width: 24px;
    height: 24px;
  }

  /* First Page */
  .FirstPage {
    padding: 1rem;
  }

  .FirstPage p {
    max-width: 100%;
    font-size: 0.9rem;
    margin: 1rem 1rem;
  }

  .start-planting {
    gap: 0.8rem;
  }

  .start-planting img {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.3rem;
  }

  /* Second Page */
  .about-title {
    font-size: 1rem;
    text-align: center;
  }

  .feature h2 {
    font-size: 2.5rem;
  }

  .feature p {
    font-size: 0.95rem;
  }

  .middle span {
    font-size: 20px;
  }

  .joinBtn {
    padding: 5px 0.8rem;
    font-size: 0.9rem;
  }

  .joinBtn img {
    width: 1.5rem;
    height: 1.5rem;
  }

  /* Third Page */
  .ThirdPage {
    padding: 2rem 4%;
  }

  .features-title {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .left-features h3 {
    font-size: 1.5rem;
  }

  .feat-row {
    gap: 0.8rem;
  }

  .feat-count {
    font-size: 1.2rem;
  }

  .feat-count h2 {
    font-size: 1.2rem;
  }

  .cards-container {
    gap: 8px;
    padding: 1rem 0;
  }

  .feature-card {
    min-width: 260px;
    max-width: 260px;
    min-height: 500px;
  }

  .feature-badge {
    padding: 1rem 1rem 0.3rem 1rem;
  }

  .feature-badge span {
    font-size: 0.7rem;
    padding: 0.6rem 0.8rem;
  }

  .card-content {
    padding: 0.3rem 1rem 1.5rem 1rem;
  }

  .explore {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }

  .explore img {
    width: 1.2rem;
    height: 1.2rem;
  }

  .ThirdPage-nav {
    margin-top: 0.5rem;
    margin-left: 60px;
  }

  .nav-btn {
    width: 2.8rem;
    height: 2.8rem;
  }

  .nav-btn img {
    width: 1.2rem;
    height: 1.2rem;
  }

  .btn-primary img {
    display: none;
  }
  .btn-primary {
    padding: 12px 20px;
  }

  .footer-right {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-column {
    min-width: 0;
  }

  .footer {
    padding: 1.5rem 4% 1rem;
  }
  .footer-brand {
    gap: 0.5rem;
  }
  .footer-title {
    font-size: 1.3rem;
  }
  .footer-description {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .contact-item {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  .contact-item img {
    width: 16px;
    height: 16px;
  }
  .footer-column h4 {
    font-size: 0.9rem;
  }
  .footer-column li a {
    font-size: 0.8rem;
  }
}

/* Mobile Portrait (below 480px) */
@media (max-width: 479px) {
  /* Navigation */
  .nav-links {
    gap: 0.8rem;
  }

  .nav-links li a {
    font-size: 0.8rem;
  }

  /* First Page */
  .FirstPage h2 {
    font-size: clamp(1rem, 6vw, 1.5rem);
  }

  /* Second Page */
  .SecondPage {
    padding: 2rem 4%;
  }

  .middle h3 {
    font-size: 1rem;
  }

  .middle span {
    font-size: 18px;
  }

  /* Third Page */
  .left-features h3 {
    font-size: 1.3rem;
  }

  .feat-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .feat-count {
    font-size: 1rem;
  }

  .feat-count h2 {
    font-size: 1rem;
  }

  .left-features p {
    font-size: 0.9rem;
  }

  .feature-card {
    min-width: 240px;
    max-width: 240px;
    min-height: 480px;
  }

  .feature-card img {
    height: 160px;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.85rem;
  }

  .ThirdPage-nav {
    gap: 0.5rem;
    margin-left: auto;
  }

  .nav-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .explore {
    font-size: 1.05rem;
    font-weight: 500;
  }

  .explore img {
    width: 1.2rem;
    height: 1.2rem;
  }

  .fourth-content {
    padding: 1.5rem;
  }
  .join-tag {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }
  .fourth-title {
    font-size: 1.3rem;
  }
  .fourth-description {
    font-size: 0.8rem;
  }
  .fourth-buttons {
    width: 12rem;
    max-width: 100%;
    height: 3rem;
    gap: 2px;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 12px;
  }
  .nav-links {
    display: none;
  }
}

/* Fix for very small devices (below 360px) */
@media (max-width: 359px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-links li a {
    font-size: 0.7rem;
  }

  .feature-card {
    min-width: 220px;
    max-width: 220px;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  .card-content p {
    font-size: 0.8rem;
  }

  .nav-links {
    display: none;
  }
}

/* Height-based media query for shorter screens */
@media (max-height: 700px) {
  .FirstPage {
    min-height: 100vh;
    padding: 4rem 1rem;
  }

  .feature-card {
    min-height: 520px;
  }

  .footer-left {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
    font-size: 28px;
  }
}

/* Print styles */
@media print {
  .navigation,
  .nav-btn,
  .start-planting,
  .joinBtn,
  .explore {
    display: none;
  }
}
