/* =========================
   KIDS FURNITURE (CLEAN VERSION)
   ========================= */

:root {
  --color-primary: #141414;
  --color-accent: #d4af37;
  --color-text: #222;
  --color-text-muted: #666;
  --color-white: #fff;

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;

  --shadow-soft: 0 15px 40px rgba(0,0,0,0.08);
}

/* =========================
   GALLERY LAYOUT
   ========================= */

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  
}

/* ================================
   PORTFOLIO-HERO 
   ================================ */

.kids-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  /* Suggestion area for background image */
  background-image:  linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("Images/kids_room/kids_room.jpg");
  background-size: cover;
  background-position: center;
}

.kids-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.2), transparent 60%);
  pointer-events: none;
}

.kids-hero-content {
  position: relative;
  padding: 5rem 0 4rem;
}

.kids-hero-text {
  max-width: 560px;
}

.kids-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.kids-hero p {
  color: #f1f1f1;
  margin-bottom: 1.8rem;
  font-size: 0.98rem;
}

.kid-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* =========================
   PRODUCT CARD (LUXURY)
   ========================= */

.gallery-item {
  display: flex;
  
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

/* IMAGE LEFT */
.gallery-image {
  width: 40%;
  min-height: 260px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

/* GOLD HOVER EFFECT */
.gallery-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* RIGHT CONTENT */
.card-actions {
  
  width: 62%;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* TITLE */
.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* DESCRIPTION */
.card-caption {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 400;
}

/* FEATURES */
.card-features {
  
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.card-features li {
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  padding-left: 10px;
}



/* BUTTONS */
.card-cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* BUTTON STYLING */
.btn-primary {
  background: linear-gradient(135deg, #d4af37, #c29a2e);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  border: 1px solid #d4af37;
  color: #d4af37;
  background: transparent;
}

.btn-outline:hover {
  background: #d4af37;
  color: #fff;
}

/* HOVER EFFECT */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-image::after {
  opacity: 1;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* =========================
   MOBILE RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .gallery-item {
    flex-direction: column;
  }

  .gallery-image {
    width: 100%;
    height: 220px;
  }

  .card-actions {
    width: 100%;
  }
}

/* =========================
   MODAL (KEEP CLEAN)
   ========================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(680px, 95%);
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

/* Modals (simple centered panels) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6,6,6,0.6);
  z-index: 9999;
  padding: 1.25rem;
}

.modal.open { display: flex; }

.modal-panel {
  width: min(680px, 96%);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  position: relative;
}

.modal-panel h3 { margin: 0 0 .35rem 0; font-family:var(--font-heading); }
.modal-panel .muted { color: var(--color-text-muted); margin-bottom: 1rem; }

/* close button */
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* action buttons inside modal */
.modal-actions { display:flex; gap: .6rem; margin-top: .6rem; }

.btn { padding: .55rem .9rem; border-radius: 8px; cursor: pointer; border: none; }
.btn-primary { background: #cc9433; color: #fff; }
.btn-secondary { background: #e9f3ff; color: #cc9433; }
.btn-text { background: transparent; color: #cc9433; padding: .4rem .6rem;}

/* form */
.call-form { display:flex; flex-direction: column; gap:.7rem; margin-top: .6rem; }
.call-form label span { display:block; font-size:.86rem; color:var(--color-text-muted); margin-bottom:.25rem; }
.call-form input { padding:.6rem .7rem; border-radius:6px; border:1px solid #e1e1e1; font-size:.95rem; }

/* reveal contact area (hidden until submit) */
.reveal-contact { display:none; margin-top: .8rem; }
.reveal-contact .contact-number { font-weight:700; font-size:1.15rem; margin: .5rem 0; }

/* small tweaks */
.section-header h2 { font-family:var(--font-heading); margin-bottom: .2rem; }


/* =========================
   DETAILS MODAL & CAROUSEL
   ========================= */

.details-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,8,0.78);
  z-index: 12000;
  padding: 1.25rem;
}

.details-modal.open { display: flex; }

.details-close {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 12100;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* panel */
.details-panel {
  width: min(1150px, 98%);
  /* max-height: 86vh; */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1rem;
  box-shadow: 0 40px 90px rgba(0,0,0,0.45);
}

/* left: image / thumbs */
.details-left {
  padding: 1rem;
  display:flex;
  flex-direction: column;
  gap: .7rem;
  align-items: center;
  justify-content: flex-start;
  background: #fafafa;
}

/* main image area */
.details-view {
  position: relative;
  width: 100%;
  background: #111;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
}

.details-image-wrap img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform .28s ease;
}

/* nav arrows inside details view */
.details-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.details-prev { left: 12px; }
.details-next { right: 12px; }

/* thumbnails bar */
.details-thumbs {
  display:flex;
  gap: .5rem;
  padding: .3rem;
  overflow-x: auto;
  width:100%;
  align-items:center;
}

.details-thumb {
  width:74px;
  height:54px;
  border-radius:6px;
  overflow:hidden;
  cursor:pointer;
  border: 2px solid transparent;
  flex: 0 0 auto;
}

.details-thumb img {
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.details-thumb.active { border-color: var(--color-accent); transform: scale(1.02); }

/* right column: text and CTAs */
.details-right {
  padding: 1.2rem;
  overflow: auto;
}

.details-right h3 {
  font-family: var(--font-heading);
  margin: 0 0 .5rem;
}

.details-description {
  color: var(--color-text-muted);
  font-size: .95rem;
  margin-bottom: 1.1rem;
}

/* actions */
.details-actions { display:flex; gap:.6rem; margin-top: .8rem; }
.details-actions .btn { min-width: 120px; }

/* responsive */
@media (max-width: 980px) {
  .details-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .details-view { min-height: 320px; }
  .details-right { padding: 1rem 0.9rem; }
}

/* small screens */
@media (max-width: 520px) {
  .details-view { min-height: 260px; }
  .details-thumb { width:56px; height:44px; }
  .details-nav { width:44px; height:44px; font-size: 22px; }
}
