* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #0e0e0e;
  color: #f5f5f5;
}

.nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.7);
  position: sticky;
  top: 0;

}

.nav a {
  color:  white;
  margin-left: 1rem;
  text-decoration: none;
  transition: 0.4s ease;
}

.nav a:hover {
  background: #41126d;
  transform: translateY(-5px);
  border-color: #1a1a1a;
  color: white;
}

.logo {
  font-weight: bold;
  letter-spacing: 1px;
}

.hero-section {
  height: 100vh;
  background: url('../assets/images/bg1.png') center/cover no-repeat;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.hero-text h2 {
  font-size: 3rem;
}

.btn {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  margin-top: 1rem;
  margin: 20px 0;
  padding: 25px;
  background: #41126d;
  color: white;
  text-decoration: none;
  width: fit-content;
  font-weight: bold;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.4s ease;
 }

.btn:hover{
  background: #1a1a1a;
  transform: translateY(-5px);
  border-color: #22c55e;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background: #1a1a1a;
  padding: 1rem;
  cursor: pointer;
  transition:all 0.4s ease;
  border-left: 4px solid transparent;
}

.card:hover {
 background:aquamarine;
  color: #000;
  border-left: 4px solid #000;
  transform:translateY(-8px);
  border: 5px solid  #22c55e;
  border-radius: 10px;
}

    

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}


.detail {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
}

.detail img {
  max-width: 400px;
  width: 100%;
}

.content {
  padding: 2rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   MOBILE RESPONSIVENESS FIX
   =============================== */

@media (max-width: 768px) {

  /* NAVBAR */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* HERO SECTION */
  .hero-section {
    height: auto;
    min-height: 100vh;
    background-position: center top;
  }

  .hero-text {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-text h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
    max-width: 100%;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }

  /* GALLERY CARDS */
  .card img {
    height: 180px;
  }

  /* DETAIL PAGE */
  .detail {
    flex-direction: column;
  }
}

/* ===============================
   MOBILE HERO IMAGE FIX
   =============================== */

@media (max-width: 768px) {

  .hero-section {
    min-height: 100vh;
    height: auto;

    /* THIS IS THE KEY LINE */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;

    /* optional: give breathing space */
    padding-bottom: 2rem;
  }

  /* Dark overlay adjusted so image remains visible */
  .overlay {
    background: rgba(0, 0, 0, 0.45);
  }

}

@media (max-width: 768px) {

  .nav {
    align-items: center;
  }

  .nav nav {
    display: flex;
    flex-direction: row;      /* force horizontal */
    flex-wrap: nowrap;        /* NO wrapping */
    gap: 1.2rem;
  }

  .nav nav a {
    white-space: nowrap;      /* prevent text breaking */
    font-size: 0.95rem;
  }

}

@media (max-width: 768px) {

  .hero-text {
    padding: 7rem 1.5rem 2rem;
    text-align: left;
  }

  .hero-text h2 {
    font-size: 2.1rem;
    max-width: 90%;
  }

  .hero-text p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
  }

}

/* ===============================
   OPINIONS PAGE
   =============================== */

.opinions-page {
  padding: 2rem;
  display: grid;
  gap: 3rem;
}

.opinion-form form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
}

.opinion-form input,
.opinion-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.opinion-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submissions #submissionsList {
  display: grid;
  gap: 1.5rem;
}

.submission-card {
  background: #1a1a1a;
  padding: 1rem;
  border-left: 4px solid #e63946;
}

.submission-card h4 {
  margin-bottom: 0.3rem;
}

.submission-card small {
  color: #aaa;
}

.hero-activity {
  background: #111;
  padding: 2rem;
  border-radius: 6px;
}

.secondary {
  background: #444;
}