body {
  margin: 0;
}

/* HERO with background image */
.vh-50 {
  height: 50vh;
}

.vh-75 {
  height: 75vh;
}

.hero {
  background: linear-gradient(
      rgba(0,0,0,0.5),
      rgba(0,0,0,0.7)
    ),
    url('./img/bg_1.jpg') center/cover no-repeat;
}

/* NAVBAR hidden initially */
#navbar {
  transition: all 0.4s ease;
  transform: translateY(-100%);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}

/* when visible */
#navbar.show {
  transform: translateY(0);
}

/* Feature */


.feature-section p.small {
  font-style: italic;
  opacity: 0.7;
}

/* optional polish */
.feature-img {
  max-height: 300px;
  object-fit: contain;
}

/* GRID CONTAINER */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 60vh;
}

/* EACH BLOCK */
.grid-item {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0); /* start transparent */
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  text-align: center;

  opacity: 0;
  transition: all 0.4s ease;
}

/* TEXT STYLE */
.overlay h2 {
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.overlay p {
  transform: translateY(20px);
  transition: all 0.4s ease;
  transition-delay: 0.1s;
}

/* 🔥 HOVER EFFECT */
.grid-item:hover .overlay {
  background: rgba(0,0,0,0.6); /* grey/dark filter */
  opacity: 1;
}

.grid-item:hover h2,
.grid-item:hover p {
  transform: translateY(0);
}

@media (max-width: 768px) {

  .image-grid {
    grid-template-columns: 1fr; /* stack */
    height: auto;
  }

  .grid-item {
    height: 220px;
  }

  /* 🔥 ALWAYS show overlay on mobile */
  .overlay {
    background: rgba(0,0,0,0.6);
    opacity: 1;
  }

  /* remove animation offset */
  .overlay h2,
  .overlay p {
    transform: translateY(0);
  }
}

/* CONTACT SECTION BACKGROUND */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(
      rgba(0,0,0,0.7),
      rgba(0,0,0,0.8)
    ),
    url('./img/bg_2.jpg') center/cover no-repeat;
}

/* TEXT COLOR FIX */
.contact-section h2,
.contact-section p {
  color: #fff;
}

/* FORM INPUT STYLE */
.contact-section .form-control {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  backdrop-filter: blur(5px);
}

/* PLACEHOLDER COLOR */
.contact-section .form-control::placeholder {
  color: rgba(255,255,255,0.7);
}

/* FOCUS STATE */
.contact-section .form-control:focus {
  background: rgba(255,255,255,0.25);
  color: #fff;
  box-shadow: none;
}

/* BUTTON STYLE */
.contact-section .btn-dark {
  background: #fff;
  color: #000;
  border: none;
}

.contact-section .btn-dark:hover {
  transform: translateY(-2px);
  background: #ddd;
}

.form-card {
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

/* FOOTER */
.footer-section {
  background: #0f0f0f;
  padding: 60px 0 30px;
}

/* LINKS */
.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: 0.2s;
}

.footer-section a:hover {
  color: #fff;
}

/* SOCIAL ICONS */
.social-icons a {
  display: inline-block;
  margin-right: 12px;
  font-size: 18px;
  color: #ccc;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #fff;
  transform: translateY(-2px);
}


.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  opacity: 0;
  transition: 0.3s;
}

/* text animation */
.product-overlay h6 {
  transform: translateY(20px);
  transition: 0.3s;
}

/* hover */
.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card:hover h6 {
  transform: translateY(0);
}

/* TEAM CARD */
.team-card {
  cursor: pointer;
}

/* IMAGE WRAPPER */
.team-img {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* IMAGE */
.team-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.4s;
}

/* OVERLAY */
.team-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  opacity: 0;
  transition: 0.3s;
}

/* HOVER EFFECT */
.team-card:hover img {
  transform: scale(1.05);
}

.team-card:hover .team-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .top-logo{
    height: 20px !important;
  }
  .navbar-toggler-icon {
    display: inline-block;
    width: 10px !important;
    height: 1.5em;
    vertical-align: middle;
    background-image: var(--bs-navbar-toggler-icon-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
  }
  

  .vh-50 {
    min-height: 100vh;
  }
  
  .vh-75 {
    min-height: 100vh;
  }

}