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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #8E6BBF, #D2BBF2);
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Pacifico', cursive;
  color: #000;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 0 1px rgba(0,0,0,0.05);
}
h1 { font-size: 32px; } h2 { font-size: 26px; } h3 { font-size: 22px; } h4 { font-size: 18px; }
p { font-size: 16px; color: #4b3a64; }

/* Header */
header { text-align: center; padding: 20px 10px; }
header img.logo {
  max-width: 120px; height: 120px; border-radius: 50%; border: 4px solid #000; background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3); padding: 6px; transition: transform 0.3s ease; object-fit: cover;
}
header img.logo:hover { transform: scale(1.05); }
header img.handwritten { display: block; margin: 8px auto 0; max-width: 150px; height: auto; }

/* Hero */
.hero {
  text-align: center; padding: 50px 20px;
  background: linear-gradient(to bottom, #DED0F2, #F4F1FA);
  border-top: 2px solid #AE8FD9; border-bottom: 2px solid #AE8FD9;
  margin: 20px auto; border-radius: 14px; max-width: 1200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero h1 {
  margin-bottom: 15px;
  background: linear-gradient(45deg, #8E6BBF, #4b3a64);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { max-width: 800px; margin: 0 auto 30px; font-size: 17px; line-height: 1.7; }

/* CTA */
.cta-button {
  display: inline-block; background: linear-gradient(45deg, #8E6BBF, #AE8FD9); color: #fff;
  padding: 16px 32px; font-size: 18px; border-radius: 40px; font-weight: 500; text-decoration: none;
  box-shadow: 0 8px 20px rgba(142,107,191,0.4); transition: all 0.3s ease; white-space: nowrap; position: relative; overflow: hidden;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(142,107,191,0.5); background: linear-gradient(45deg, #7D5FB8, #A57ED2); }
.cta-button:active { transform: translateY(0); }

/* Gallery */
.gallery-section { text-align: center; padding: 60px 20px; max-width: 1400px; margin: auto; position: relative; }
.gallery-heading {
  font-size: clamp(24px, 4vw, 32px); margin-bottom: 10px;
  background: linear-gradient(45deg, #8E6BBF, #4b3a64); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gallery-subtitle { font-size: clamp(14px, 2vw, 16px); color: #6b5b95; margin-bottom: 40px; font-style: italic; }

.carousel-container {
  position: relative; border-radius: 24px; background: rgba(255, 255, 255, 0.12);
  padding: 30px 20px; backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(31,38,135,0.37), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.18); overflow: hidden;
}
.carousel-viewport { overflow: hidden; border-radius: 16px; width: 100%; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.1,0.25,1); gap: 20px; padding: 10px 0; will-change: transform; }
.carousel-track.is-dragging { transition: none !important; cursor: grabbing; }

.carousel-slide {
  flex: 0 0 auto; position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8); cursor: grab;
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
  aspect-ratio: 1;
}

/* Slide widths */
@media (min-width: 1201px) { .carousel-slide { width: calc((100% - 80px) / 5); } }
@media (max-width: 1200px) and (min-width: 901px) { .carousel-slide { width: calc((100% - 60px) / 4); } }
@media (max-width: 900px) and (min-width: 601px) { .carousel-slide { width: calc((100% - 40px) / 3); } }
@media (max-width: 600px) {
  .carousel-slide { width: calc((100% - 20px) / 2); }
  .carousel-track { gap: 16px; }
}

.carousel-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent, rgba(142,107,191,0.1));
  opacity: 0; transition: opacity 0.3s ease; z-index: 1; border-radius: 16px;
}
.carousel-slide::before { pointer-events: none; }
.carousel-slide:hover::before { opacity: 1; }

.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
  user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; display: block;
}
.carousel-slide:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(142,107,191,0.25), 0 8px 16px rgba(0,0,0,0.1); }
.carousel-slide:hover img { transform: scale(1.05); }
.carousel-slide:active { transform: translateY(-4px) scale(1.01); }

/* Controls */
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.carousel-nav-btn {
  background: rgba(255,255,255,0.95); color: #333; font-size: 20px; border: none; border-radius: 50%;
  width: 56px; height: 56px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
}
.carousel-nav-btn:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(142,107,191,0.3), 0 4px 8px rgba(0,0,0,0.1); background: rgba(255,255,255,1); }
.carousel-nav-btn:active { transform: scale(0.95); }
.carousel-nav-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.carousel-dots { display: flex; gap: 12px; justify-content: center; align-items: center; max-width: 400px; flex-wrap: wrap; }
.carousel-dot {
  width: 12px; height: 12px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1); position: relative; border: 2px solid transparent;
  appearance: none;
}
.carousel-dot.active { background: #8E6BBF; border-color: rgba(255,255,255,0.5); transform: scale(1.3); box-shadow: 0 4px 12px rgba(142,107,191,0.4); }
.carousel-dot:hover { background: #AE8FD9; transform: scale(1.2); }

/* Lightbox (hidden by default; centered when active) */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
  cursor: zoom-out; /* click outside to close */
}
.lightbox.active {
  display: grid;
  grid-template-rows: auto 1fr; /* header + content */
  animation: lightboxFadeIn 0.4s cubic-bezier(0.25,0.1,0.25,1);
}
@keyframes lightboxFadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

.lightbox-header {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: white;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(10px);
}
.lightbox-close {
  background: rgba(255,255,255,0.15); color: white; border: none; border-radius: 50%;
  width: 48px; height: 48px; font-size: 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); transform: scale(1.06); }
.lightbox-counter { font-size: 16px; font-weight: 500; background: rgba(255,255,255,0.1); padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); }

.lightbox-content {
  display: grid; place-items: center; position: relative;
  padding: 0 80px; min-height: 0;
}
.lightbox-image-container { max-width: 92%; max-height: 100%; touch-action: pan-y; }
.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 120px); /* stay fully visible under header */
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain; transition: transform 0.25s ease;
  cursor: default;
}
.lightbox-image.swiping { transition: none !important; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: white; border: none; border-radius: 50%;
  width: 56px; height: 56px; font-size: 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1);
  display: flex; align-items: center; justify-content: center; z-index: 10; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
}
.lightbox-prev { left: 24px; } .lightbox-next { right: 24px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.1); }

/* About / Accordion */
.about-section {
  max-width: 1000px; margin: 50px auto; padding: 40px 30px; background: rgba(247,245,251,0.95);
  border-radius: 16px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); text-align: center; backdrop-filter: blur(10px);
}
.about-heading {
  margin-bottom: 30px; font-size: 28px;
  background: linear-gradient(45deg, #8E6BBF, #4b3a64); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.accordion-item { margin-bottom: 15px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.accordion-item:hover { box-shadow: 0 4px 15px rgba(142,107,191,0.2); }
h4.accordion-header {
  font-size: 18px; padding: 20px 25px; margin: 0; background: linear-gradient(135deg, #DED0F2, #E8DFF4);
  cursor: pointer; letter-spacing: 0.5px; transition: all 0.3s ease; border-bottom: 1px solid rgba(174,143,217,0.3); position: relative;
}
h4.accordion-header:hover { background: linear-gradient(135deg, #E8DFF4, #F0E9F7); }
h4.accordion-header::after { content: '+'; position: absolute; right: 25px; top: 50%; transform: translateY(-50%); font-size: 24px; transition: transform 0.3s ease; }
.accordion-item.active h4.accordion-header::after { transform: translateY(-50%) rotate(45deg); }
.accordion-content { display: none; padding: 25px; font-size: 16px; color: #4b3a64; background: rgba(255,255,255,0.8); line-height: 1.7; }
.accordion-item.active .accordion-content { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: translateY(0);} }

/* Social */
.social-section { background: linear-gradient(to bottom, #DED0F2, #E8DFF4); padding: 50px 20px; text-align: center; border-top: 1px solid #AE8FD9; position: relative; }
.social-wrapper h2 {
  font-size: 26px; margin-bottom: 15px;
  background: linear-gradient(45deg, #8E6BBF, #4b3a64); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.social-wrapper p { font-size: 17px; margin-bottom: 30px; color: #4b3a64; }
.social-icons { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.social-icons a { display: block; transition: transform 0.3s ease; }
.social-icons img { width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.15); transition: all 0.3s ease; padding: 10px; border: 2px solid transparent; }
.social-icons a:hover { transform: translateY(-5px); }
.social-icons img:hover { box-shadow: 0 10px 30px rgba(142,107,191,0.4); border-color: #8E6BBF; }

/* Footer */
footer { text-align: center; padding: 30px 20px; background: rgba(237,233,242,0.95); color: #000; font-size: 14px; line-height: 1.6; backdrop-filter: blur(10px); }
footer a { color: #4b3a64; text-decoration: none; margin: 0 5px; font-weight: 500; transition: color 0.3s ease; }
footer a:hover { color: #8E6BBF; text-decoration: underline; }

/* Responsive tweaks */
@media (max-width: 1200px){
  h1{font-size:28px} h2{font-size:22px} h3{font-size:20px} h4{font-size:16px} .about-heading{font-size:24px}
  .lightbox-content{padding:0 60px}
}
@media (max-width: 900px){
  .carousel-container{padding:24px 16px;border-radius:20px}
  .carousel-controls{gap:20px;margin-top:28px}
  .carousel-nav-btn{width:52px;height:52px;font-size:18px}
}
@media (max-width: 768px){
  header{padding:15px 10px}
  header img.logo{max-width:80px;height:80px;border:3px solid #000;padding:4px;box-shadow:0 4px 12px rgba(0,0,0,0.3)}
  header img.handwritten{max-width:110px;margin:6px auto 0}
  h1{font-size:24px} h2{font-size:20px} h3{font-size:18px} h4{font-size:15px} p{font-size:15px} .about-heading{font-size:20px}
  .cta-button{font-size:16px;padding:14px 28px}
  .gallery-section{padding:50px 16px}
  .carousel-container{padding:20px 12px;border-radius:16px}
  .carousel-controls{gap:16px;margin-top:24px}
  .carousel-nav-btn{width:48px;height:48px;font-size:16px}
  .carousel-dots{gap:10px;max-width:250px}
  .carousel-dot{width:10px;height:10px}
  .lightbox-content{padding:0 50px}
  .lightbox-nav{width:50px;height:50px;font-size:20px}
  .lightbox-prev{left:10px} .lightbox-next{right:10px}
  .lightbox-header{padding:14px}
  .lightbox-close{width:45px;height:45px;font-size:20px}
  .lightbox-image{max-height:calc(100vh - 110px)}
}
@media (max-width: 600px){
  header{padding:12px 10px}
  header img.logo{max-width:70px;height:70px;border:2px solid #000;padding:3px;box-shadow:0 3px 10px rgba(0,0,0,0.3)}
  header img.handwritten{max-width:95px;margin:5px auto 0}
  h1{font-size:22px} h2{font-size:18px} h3{font-size:16px} h4{font-size:14px} p{font-size:14px} .about-heading{font-size:18px}
  .cta-button{font-size:15px;padding:12px 24px}
  .gallery-section{padding:40px 12px}
  .carousel-container{padding:16px 8px;border-radius:12px}
  .carousel-slide{border-radius:12px}
  .carousel-controls{gap:12px;margin-top:20px}
  .carousel-nav-btn{width:44px;height:44px;font-size:16px}
  .carousel-dots{gap:8px;max-width:200px}
  .carousel-dot{width:8px;height:8px}
  .lightbox-content{padding:0 36px}
  .lightbox-nav{width:45px;height:45px;font-size:18px}
  .lightbox-prev{left:8px} .lightbox-next{right:8px}
  .lightbox-header{padding:12px}
  .lightbox-close{width:40px;height:40px;font-size:18px}
  .lightbox-image{max-height:calc(100vh - 100px)}
}
@media (max-width: 400px){
  .carousel-container{margin:0 -4px;border-radius:8px}
  .lightbox-content{padding:0 28px}
  .lightbox-prev{left:6px} .lightbox-next{right:6px}
}

/* Focus */
.carousel-slide, .carousel-nav-btn, .carousel-dot, .lightbox-close, .lightbox-nav {
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.cta-button:focus, .carousel-nav-btn:focus, .carousel-dot:focus, .social-icons a:focus, .lightbox-close:focus, .lightbox-nav:focus {
  outline: 2px solid #8E6BBF; outline-offset: 2px;
}
.accordion-header:focus { outline: 2px solid #8E6BBF; outline-offset: -2px; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Print */
@media print { .gallery-section { display: none; } }
