/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins";
  line-height: 1.6;
  color: #333;
}


/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #333;
  padding: 5px 20px;   /* ↓ reduced vertical padding */
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  color: #f3d6ce;
  font-size: 1.3rem;   /* ↓ slightly smaller */
  font-weight: bold;
  text-transform: mix; /* "both" isn’t valid */
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 8px 15px;   /* ↓ reduced spacing */
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
  letter-spacing: 1.5px; /* ↓ slightly tighter for elegance */
  font-size: 0.95rem;   /* ↓ makes it neat */
}

.logo img {
  height: 15px; /* adjust as needed */
  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; /* main background color */
  overflow: hidden;
}

/* Wrapper for background */
.bg-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Rotating circular background as subtle part of bg */
.rotating-bg {
  width: 80vmin;
  max-width: 800px;
  min-width: 300px;
  animation: rotateBg 60s linear infinite; /* slower, smoother */
  opacity: 0.6;
  pointer-events: none;
  will-change: transform; /* smoother GPU rendering */
}

@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}



/* Logo stays fixed at center */
.center-logo {
  position: absolute;
  width: 30vmin;
  max-width: 400px;
  min-width: 100px;
  border-radius: 50%;
  z-index: 2;               /* above background */
}


/* 📱 Responsive for bg  */
@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 {
  background-color: #333; /* grey background */
  padding: 40px 20px; /* spacing inside the section */
  border-radius: 8px; /* optional rounded corners */
}

/* ===== Art Detail Container ===== */

.art-detail {
  display: grid;
  grid-template-columns: 120px 1fr 420px;
  gap: 20px;
  margin-top: 30px;
  align-items: stretch;
  padding: 20px;
  border-radius: 8px;
  /* Remove any fixed height here; we will set via JS */
}

/* ====== Wrapper for all 3 panels ====== */
.panel-wrapper {
  display: flex;
  align-items: flex-end;  /* 🔑 aligns all panels at bottom */
  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 #333;
}

/* ===== 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; /* pushes grid to bottom */
  max-width: 600px;
}

/* Title */
.right-panel h2 {
  font-family: 'Poppins'; /* Poppins for title */
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  text-align: left;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

/* Subheading */
.right-panel h4 {
  font-family: 'Poppins'; /* Poppins for subheading */
  font-size: 1rem;
  color: #fff;
  text-align: left !important;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
  font-weight: 500;
}

/* Dynamic description */
.right-panel p {
  font-family: 'Poppins'; /* Poppins for paragraph */
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  text-align: justify;
  margin-bottom: 15px;
  letter-spacing: 0.2px;
  font-weight: 500;
}

/* Dynamic information */
.right-panel h5 {
  font-family: 'Poppins'; /* Poppins for info */
  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; /* ensures grid sits at the bottom */
}
.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 #333;
}

@media (max-width: 768px) {
  .art-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 1. Title (h2) and subheading (h4) on top */
  #art-title, #art-subheading {
    order: 0;          /* first element */
    width: 100%;
    text-align: left;
    margin: 5px 0;
  }

  /* 2. Main image */
  .main-img-wrapper {
    order: 1;
    width: 100%;
    max-width: 370px;
  }

  .main-img-wrapper img {
    width: 105%;
    height: auto;
    display: block;
  }

  /* 3. Right panel gallery thumbnails */
  .right-panel {
    order: 2;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
  }

  .gallery-grid img {
    width: 100%;
    max-width: 120px;
    height: auto;
  }

  /* 4. Left panel below main image */
  #related-gallery {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 360px;
    justify-items: center;
  }

  #related-gallery img {
    width: 100%;
    max-width: 100px;
    height: auto;
  }

  /* 5. Remaining description at bottom */
  #art-desc, #art-info {
    order: 4;
    width: 100%;
    text-align: left;
    margin: 5px 0;
  }
}


/* About Section */
#about {
  padding: 60px 15px;
  text-align: justify;
  background: #faf3ef; /* soft pastel background */
}

#about h2 {
  font-size: 2rem;
  margin-bottom: px;
  color: #222;
  font-weight: bold;
  letter-spacing: 0.2px;
}

#about p {
  font-family: 'Poppins';
  max-width: 1000px;
  margin-bottom: 20px ;; /* no gap between paragraphs */
  font-size: 16.5px;
  line-height: 1.4; /* compact line spacing */
  color: #444;
  letter-spacing: 0.2px;
}

#about p:last-child {
  margin-bottom: 12px; /* small gap only after the last paragraph */
}

/* 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);
}

/* Smooth infinite scroll */
@keyframes scroll-infinite {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === New: Pause on hover/tap so clicks always work === */
.video-track:hover {
  animation-play-state: paused;
}

/* Modal */
#videoModal {
  display: none; /* script sets flex */
  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; /* vertical center */
  align-items: center;     /* horizontal center */
  min-height: 70vh;       /* full screen height */
  box-sizing: border-box;
  text-align: center;
}

/* Heading */
#contact h2 {
  margin: 0 0 30px 0; /* more space under heading */
  font-size: 2.5rem;  /* larger heading */
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* Form */
#contact form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
}

/* Input & Textarea */
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);
}

/* Button */
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; /* hidden by default */
  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; /* slide in */
}

/* 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; }
}
/* General Reset */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}



