/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: 'Poppins', sans-serif;
  background: #f4f9ff;
  color: #333;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(90deg, #0077b6, #00b4d8);
  color: white;
  text-align: center;
  padding: 50px 20px;
  position: relative;
}

.header h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.header p {
  font-size: 16px;
}

/* ===== BACK BUTTON ===== */
.back-btn {
  position: absolute;
  left: 20px;
  top: 20px;
  background: white;
  color: #0077b6;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.back-btn:hover {
  background: #caf0f8;
}

/* ===== DESCRIPTION ===== */
.desc {
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
  line-height: 1.6;
  padding: 0 20px;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 30px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* IMAGE CARDS */
.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.95);
}

/* LIGHTBOX IMAGE */
.lightbox img {
  display: block;
  margin: auto;
  max-width: 85%;
  max-height: 80%;
  margin-top: 5%;
  border-radius: 10px;
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* NEXT / PREV BUTTONS */
.next-btn, .prev-btn {
  position: absolute;
  top: 50%;
  font-size: 45px;
  color: white;
  cursor: pointer;
  padding: 10px;
  transform: translateY(-50%);
  user-select: none;
}

.next-btn { right: 25px; }
.prev-btn { left: 25px; }

/* COUNTER */
.img-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  background: rgba(0,0,0,0.4);
  padding: 5px 12px;
  border-radius: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: #0077b6;
  color: white;
  text-align: center;
  padding: 25px 15px;
  margin-top: 40px;
}

footer p {
  margin: 6px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .header h1 {
    font-size: 30px;
  }

  .gallery-grid img {
    height: 200px;
  }

  .next-btn, .prev-btn {
    font-size: 30px;
  }

  .close {
    font-size: 30px;
  }
}
/* FADE ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* HOVER ZOOM */
.gallery-grid img {
  transition: 0.4s;
}

.gallery-grid img:hover {
  transform: scale(1.08);
}

/* POPUP FORM */
.popup-form {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
}

.form-box {
  background: white;
  max-width: 400px;
  margin: 100px auto;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.form-box input,
.form-box textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
}

.close-btn {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

/* Home-Decor*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* BODY */
body {
  background: #f5f7fa;
  color: #333;
}

/* Header */
.header a {
  background: linear-gradient(135deg, #003f8a, #007BFF);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;   /* pill style */
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.header a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}



/* BACK BUTTON */
.back-btn {
  position: absolute;
  left: 20px;
  top: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* TOP DESCRIPTION CARD */
.decor-card {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.decor-card h3 {
  color: #007BFF;
  margin-bottom: 10px;
  font-size: 24px;
}

.decor-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* SECTION */
.decor-section {
  padding: 50px 20px;
}

/* SECTION TITLE */
.section-title {
  text-align: center;
  font-size: 28px;
  color: #007BFF;
  margin-bottom: 40px;
}

/* GRID */
.decor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  width: 90%;
  margin: auto;
}

/* DESIGN CARDS */
.decor-grid .decor-card {
  background: white;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
}

.decor-grid .decor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* IMAGE */

.decor-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* CONTENT */
.decor-content {
  padding: 15px;
}

.decor-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* BUTTON */
.decor-btn {
  display: inline-block;
  padding: 8px 15px;
  background: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: 0.3s;
}

.decor-btn:hover {
  background: #0056b3;
}



/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* ===== HOME DECOR MOBILE RESPONSIVE  ===== */

@media (max-width: 1024px) {

  .decor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 768px) {

  .decor-grid {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0 15px;
    gap: 20px;
  }


  .decor-grid .decor-card {
    width: 100%;
    max-width: 100%;
  }


  .decor-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }


  .decor-content {
    padding: 15px;
  }


  .decor-content h3 {
    font-size: 18px;
  }


  .decor-btn {
    padding: 8px 15px;
  }

}
