/* ------------------------------
   Global Reset and Base Styles
------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #141111;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

/* ------------------------------
   Navbar Section
------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1c1818;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #ff944d;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff944d;
}

/* ------------------------------
   Project Gallery Section
------------------------------- */
.projects-gallery {
  padding: 130px 50px 80px; /* extra top padding for navbar */
  text-align: center;
}

.projects-gallery h1 {
  font-size: 36px;
  color: #ff944d;
  margin-bottom: 10px;
}

.projects-gallery .subtitle {
  font-size: 18px;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ------------------------------
   Gallery Grid
------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px;
  font-size: 14px;
  font-style: italic;
  color: #ffddb3;
  text-align: center;
}

/* ------------------------------
   Responsive Tweaks
------------------------------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 15px 20px;
  }

  .nav-links {
    margin-top: 10px;
    gap: 15px;
  }

  .projects-gallery {
    padding: 160px 20px 60px;
  }
}


.site-footer {
  background-color: #141111;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  padding: 60px 50px;
  flex-wrap: wrap;
  position: relative;
}

.footer-left {
  max-width: 300px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #ff944d;
  margin-bottom: 10px;
}

.footer-left p {
  margin: 10px 0;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin: 15px 0;
}

.social-icons a {
  color: #fff;
  background: #2a2a2a;
  padding: 10px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background-color: #ff944d;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 120px;
}

.footer-column h4 {
  color: #ff944d;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-column a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-column a:hover {
  color: #fff;
}

.scroll-top {
  position: absolute;
  bottom: 20px;
  right: 40px;
  background-color: #ff944d;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 20px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.scroll-top:hover {
  background-color: #e67c2f;
}

.footer-icons {
  margin-top: 10px;
}

.footer-icons i {
  color: #ffffff;
  margin-right: 10px;
  font-size: 18px;
  transition: transform 0.3s, color 0.3s;
}

.footer-icons i:hover {
  transform: scale(1.2);
  color: #ffa64d;
}

.trail-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cc00ff;
  opacity: 0.8;
  pointer-events: none;
  animation: fadeShrink 0.6s linear forwards;
  z-index: 9999;
}

@keyframes fadeShrink {
  to {
    transform: scale(0);
    opacity: 0;
  }
}


body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

.header {
  text-align: center;
  background-color: #ff6f61;
  color: white;
  padding: 50px 20px;
}

.community-highlights {
  padding: 40px 20px;
  text-align: center;
}

.community-highlights h2 {
  margin-bottom: 30px;
  color: #333;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background-color: white;
  padding: 25px;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #ff6f61;
}

.join-section {
  text-align: center;
  background-color: #fff3f0;
  padding: 60px 20px;
}

.join-btn {
  padding: 12px 24px;
  background-color: #ff6f61;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
}

.join-btn:hover {
  background-color: #e4554a;
}

.footer {
  text-align: center;
  background-color: #333;
  color: white;
  padding: 20px;
}
