/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}


/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #333;
  padding: 5px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  color: #f3d6ce;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: none;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 8px 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
}

.logo img {
  height: 15px;
  width: auto;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: -100%;
    flex-direction: column;
    background: #333;
    width: 200px;
    text-align: center;
    transition: 0.3s;
  }
  nav ul.show { right: 0; }
  .menu-toggle { display: flex; }
}

/* Sections */
section {
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Home Section */
#home {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f3d6ce;
  overflow: hidden;
}

.bg-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rotating-bg {
  width: 80vmin;
  max-width: 800px;
  min-width: 300px;
  animation: rotateBg 60s linear infinite;
  opacity: 0.6;
  pointer-events: none;
  will-change: transform;
}

@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.center-logo {
  position: absolute;
  width: 30vmin;
  max-width: 400px;
  min-width: 100px;
  border-radius: 50%;
  z-index: 2;
}

@media (max-width: 768px) {
  .rotating-bg {
    width: 65vmin;
    max-width: 320px;
  }
  .center-logo {
    width: 35vmin;
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .rotating-bg {
    width: 70vmin;
    max-width: 500px;
  }
  .center-logo {
    width: 40vmin;
    max-width: 200px;
  }
}


/* =====================================================
   GALLERY
   ===================================================== */

#gallery {
  background-color: #333;
  padding: 80px 20px 40px;
  border-radius: 8px;
}

/* ===== Art Detail Container (desktop: 3 columns) ===== */
.art-detail {
  display: grid;
  grid-template-columns: 120px 1fr 420px;
  gap: 20px;
  margin-top: 30px;
  align-items: stretch;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 1300px;
}

.panel-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}

/* ===== Left Panel: Vertical Thumbnails ===== */
.related-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
  margin-top: 6px;
}

.related-gallery img {
  max-width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
}

.related-gallery img:hover,
.related-gallery img.active {
  transform: scale(1.05);
  border: 2px solid #f3d6ce;
}

/* ===== Center Main Image ===== */
.main-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

.main-img-wrapper img {
  width: 100%;
  max-width: 515px;
  border-radius: 5px;
  transition: opacity 0.3s ease;
}

/* ===== Right Panel ===== */
.right-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 600px;
}

.right-panel h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  text-align: left;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.right-panel h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #fff;
  text-align: left !important;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
  font-weight: 500;
}

.right-panel p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  text-align: justify;
  margin-bottom: 15px;
  letter-spacing: 0.2px;
  font-weight: 500;
}

.right-panel h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
  text-align: left;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
  font-weight: 500;
}

/* Grid of small thumbnails */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-self: flex-end;
}

.gallery-grid img {
  width: 90%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
}

.gallery-grid img:hover,
.gallery-grid img.active {
  transform: scale(1.05);
  border: 2px solid #f3d6ce;
}


/* ===== GALLERY – MOBILE LAYOUT =====
   Order (top to bottom):
   1. Title   2. Size / subheading   3. Thumbnail grid (3 columns)
   4. Main image   5. Description   6. Info ("Perfect for...")
   7. Related gallery (3 columns, wraps to next row)
*/
@media (max-width: 768px) {

  #gallery {
    padding: 80px 12px 30px;
    border-radius: 0;
    justify-content: flex-start;
  }

  .art-detail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 0;
    padding: 0 8px;
    max-width: 100%;
  }

  /* Let the children of both panels take part in the ordering below */
  .left-panel,
  .right-panel {
    display: contents;
  }

  /* 1. Title */
  #art-title {
    order: 1;
    width: 100%;
    text-align: left;
    font-size: 2.2rem;
    line-height: 1.5;
    margin-bottom: 0;
  }

  /* 2. Size / subheading */
  #art-subheading {
    order: 2;
    width: 100%;
    text-align: left;
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  /* 3. Thumbnail grid */
  .gallery-grid {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    justify-items: center;
    align-self: auto;
  }

  .gallery-grid img {
    width: 100%;
    max-width: 110px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
  }

  /* 4. Main image */
  .main-img-wrapper {
    order: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

  .main-img-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
  }

  /* 5. Description */
  #art-desc {
    order: 5;
    width: 100%;
    text-align: left;
    font-size: 17px;
    line-height: 1.65;
    margin: 10px 0 0;
  }

  /* 6. Info */
  #art-info {
    order: 6;
    width: 100%;
    text-align: left;
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
  }

  /* 7. Related gallery */
  #related-gallery,
  .related-gallery {
    order: 7;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    justify-items: center;
    align-self: auto;
    margin-top: 10px;
  }

  #related-gallery img,
  .related-gallery img {
    width: 100%;
    max-width: 110px;
    height: auto;
    border-radius: 6px;
  }

  /* No zoom on touch screens so grids don't jump */
  .gallery-grid img:hover,
  .related-gallery img:hover {
    transform: none;
  }
}


/* About Section */
#about {
  padding: 60px 15px;
  text-align: justify;
  background: #faf3ef;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
  font-weight: bold;
  letter-spacing: 0.2px;
}

#about p {
  font-family: 'Poppins', sans-serif;
  max-width: 1000px;
  margin-bottom: 20px;
  font-size: 16.5px;
  line-height: 1.4;
  color: #444;
  letter-spacing: 0.2px;
}

#about p:last-child {
  margin-bottom: 12px;
}

/* Video Marquee */
.video-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #333;
  padding: 25px 0;
}

.video-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-infinite 40s linear infinite;
}

.video-track video {
  flex: 0 0 auto;
  width: 200px;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

.video-track video:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@keyframes scroll-infinite {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.video-track:hover {
  animation-play-state: paused;
}

/* Modal */
#videoModal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
}

#videoModal video {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}


/* Contact Section */
#contact {
  background: #d4a373;
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  box-sizing: border-box;
  text-align: center;
}

#contact h2 {
  margin: 0 0 30px 0;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}

#contact form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
}

form input,
form textarea {
  margin-bottom: 15px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

form button {
  background: #333;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-weight: bold;
  font-size: 1rem;
}

form button:hover {
  background: #111;
  transform: translateY(-2px);
}


/* Notification */
#notification {
  position: fixed;
  top: 20px;
  right: -400px;
  background: #333;
  color: white;
  padding: 15px 20px;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: right 0.5s ease;
  z-index: 9999;
}

#notification.show {
  right: 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #333;
  color: white;
}

/* Floating Social Buttons */
.social-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
}

.social-buttons a {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.social-buttons a:hover { transform: scale(1.1); }

.whatsapp  { background: #25D366; }
.instagram { background: #E1306C; }

/* Responsive */
@media (max-width: 768px) {
  .logo-center { width: 50%; }
  .rotating-bg { width: 100%; height: auto; }
  .video-track video { width: 150px; height: 280px; }
}

@media (max-width: 480px) {
  .logo-center { width: 60%; }
  .rotating-bg { width: 100%; height: auto; }
  .video-track video { width: 120px; height: 220px; }
}