:root {
  --color-primary: #2f1e1e;
  --color-accent: #d4a59a;
  --color-bg: #fffaf2;
  --color-card-bg: rgb(255, 255, 255);
  --color-text: #3b2f2f;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #d6f2f8be 0%, rgba(207, 246, 255, 0.827) 100%);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------- Header --------------------------- */
.hero-banner {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  padding: 1rem;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  animation: fadeInUp 1.4s ease-out both;
}

.hero-title {
  font-family: 'Playfair Display', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.wedding-date {
  font-family: 'Playfair Display', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: #fefefe;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 0.5rem;
}

.wedding-subtitle {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: #fefefe;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------------------------- Overlay ---------------------------- */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
}

/* ------------------------- Section Styling ------------------------- */
section {
min-height: 8vh;
padding: var(--section-padding, 4rem 2rem);
display: flex;
align-items: center;
justify-content: center;
scroll-snap-align: start;
background-color: transparent;
}

.split-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 3rem;
flex-wrap: wrap;
width: 100%;
max-width: 1200px;
}

.card {
color: #302553, #5b2277;
font-family: 'Playfair Display', serif;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
backdrop-filter: blur(4px);
font-size: 1.1rem;
line-height: 1.6;
max-width: 420px;
position: relative;
}

.card p,
.card h2,
.card h3 {
font-family: 'Montserrat', sans-serif;
color: #302553, #5b2277;
font-weight: 400;
text-align: center; 
}

/* ------------------------- Image Styling ------------------------- */
.image-wrapper {
  position: relative;       
  display: inline-block;    
}

.ring {
  position: absolute;
  top: 240px;       /* distance from top */
  right: 10px;     /* distance from right */
  width: 80px;     /* adjust size as you like */
  height: auto;
  border-radius: 50%;  /* if you want it circular */
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.lunka-wrapper {
  position: absolute;
  top: 150px;
  right: -25px;
  width: 100px;             /* size of the circle */
  height: 100px;
  border-radius: 50%;       /* make it round */
  background: #fff;         /* white background circle */
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  display: flex;            /* center the image inside */
  justify-content: center;
  align-items: center;
  overflow: hidden;         /* clip image edges */
  z-index: 20;
}

.lunka {
  width: 70%;              
  height: auto;
}

.city-image {
width: 100%;
max-width: 400px;
height: 450px;
object-fit: cover;
border-radius: 16px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
display: block;
margin-top: 1rem;
}

/* ------------------------- Callout Arrow Styling ------------------------- */
.from-left::after,
.from-right::after {
content: '';
position: absolute;
top: 1rem;
width: 0;
height: 0;
border: 10px solid transparent;
z-index: 2;
}

.from-left::after {
left: -20px;
border-right-color: #ffffff;
}

.from-right::after {
right: -20px;
border-left-color: #ffffff;
}

/* ------------------ Gallery ------------------ */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
padding: 5rem 2rem 3rem;
position: relative;
background: transparent;
max-width: 1200px;
margin: 0 auto;
z-index: 2;
}

.gallery img {
width: 100%;
height: 480px;
object-fit: cover;
border-radius: 18px;
transition: transform 0.5s ease, box-shadow 0.4s ease;
filter: brightness(0.98) contrast(1.05);
}

 /* ----------------------------  Consistent Card ---------------------------- */
.slide-content {
will-change: transform, opacity;
transition: transform 0.8s ease-out, opacity 0.6s ease-out;
opacity: 0.4;
}

.left-side,
.right-side {
  transition: transform 0.6s ease, opacity 0.4s ease;
  background: white;
  padding: 2rem;
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  font-size: 1.15rem;
  line-height: 1.7;
  backdrop-filter: blur(1px);
  z-index: 3;
}

.left-side {
  transform: translateX(-80vw);
  text-align: left;
}

.right-side {
  transform: translateX(80vw); 
  text-align: right;
}

/* ------------------ Story Hero ------------------ */
.story-hero {
padding: 6rem 1.5rem 3rem;
margin-top: -2rem;
background: transparent;
position: relative;
z-index: 2;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}

.hero-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: filter 0.8s ease;
}

.hero-inner {
  max-width: 700px;
  margin: 2rem;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  position: relative;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.story-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  color: #2f1e1e;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  position: relative;
  text-align: center;
}

.story-subquote {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.35rem;
  color: #6e4a4a;
  margin-bottom: 2.2rem;
}

.story-subquote span {
  font-weight: 600;
  background: linear-gradient(90deg, #f78ca0, #fbc7a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------ Story Blocks Section ------------------ */

/* Safe global defaults */
img { max-width: 100%; height: auto; }


.story-magic-beginning {
  padding: 3rem 1.5rem 2rem;
  background: transparent;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.story-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.story-row {
  display: flex;
  justify-content: flex-start;
}

.story-row.right {
  justify-content: flex-end;
}

  img { 
    display: block;
    max-width: 100%;
    height: auto;
  }

.story-block {
  background: #ffffffd9;
  border-radius: 24px;
  padding: 2rem;
  max-width: 540px;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  line-height: 1.85;
  color: #3e2c2c;
  object-fit: contain;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-block-image-right{
  padding: 2rem;
  max-width: 390px;
  width: 100%;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: -40px;
}

.BallRock {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: -100px; 
}


.story-block-image-left {
  padding: 2rem;
  max-width: 200px;
  width: 100%;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: -40px;
}

.story-row.left {
  justify-content: flex-start;
  display: flex;
  align-items: center;
}

.story-block strong {
  display: block; 
  text-align: center;
  margin: 0 auto 1rem; 
  font-weight: bold;
  font-size: 1.3rem;
  background: linear-gradient(to right, #ff423d, #ff423d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
} 

.story-block .highlight { 
  font-weight: 600;
  background: linear-gradient(to right, #ff423d, #ff423d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
} 

/* Add initial transform off-screen */
.story-block.left {
  transform: translateX(-1800px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.6s ease;
}

.story-block.right {
  transform: translateX(1800px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.6s ease;
}

.story-block.animate-in {
  transform: translateX(0);
  opacity: 1;
}

.story-block.left.animate-in {
  transition-delay: 0.s;
}
.story-block.right.animate-in {
  transition-delay: 0.2s;
}

/* ------------------ Decorative Quote Arrows  ------------------ */

.from-left::before,
.from-right::before {
  content: '';
  position: absolute;
  top: 1rem;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.from-left::before {
  left: -20px;
  border-right-color: rgba(255, 255, 255, 0.85);
}

.from-right::before {
  right: -20px;
  border-left-color: rgba(255, 255, 255, 0.85);
}

/* ---------------------------- Luna ---------------------------- */
.Fly-luna {
  position: relative;
  width: 100%;
  height: 0;
}

/* Luna's floater near bottom-right above the tree */
.fly-luna-floater {
  position: absolute;
  top: 40px;
  bottom: 10px; 
  right: 120px;   /* adjust to align with tree top */
  width: 150px;
  animation: lunaFloat 3s ease-in-out infinite;
  z-index: 11;
}

/* Smooth up-down floating effect */
@keyframes lunaFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.fly-luna-floater img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}


/* ---------------------------- Footer ---------------------------- */
.footer-scenery {
  position: relative;
  height: 850px;
  max-height: 950px;
  overflow: hidden;
}

.ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 260px;
  background: url('/ground@2x.png') center bottom / cover no-repeat;
  animation: groundWave 8s ease-in-out infinite;
}

.footer-content {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 5;
}

.video-link-footer {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Playfair Display', serif;
  color: #000000;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.video-link-footer:hover {
  opacity: 1;
}

/* ---------------------------- Scroll Animation System  ---------------------------- */

.scroll-animate {
opacity: 0;
transition: all var(--transition-slow);
}

.scroll-animate.animate {
opacity: 1;
}
story-block-image
.scroll-animate.from-left {
transform: translateX(-30px);
}

.scroll-animate.from-right {
transform: translateX(30px);
}

.scroll-animate.from-bottom {
transform: translateY(30px);
}

.scroll-animate.animate.from-left,
.scroll-animate.animate.from-right,
.scroll-animate.animate.from-bottom {
transform: translate(0);
}

/* ----------------------------  Animation   ---------------------------- */
@keyframes pulseHeart {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.2); }
}

@keyframes fadeInHero {
from {
  opacity: 0;
  transform: translateY(40px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}

@keyframes scrollLeft {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes rise {
  0% { bottom: -100px; transform: translateX(0); }
  50% { transform: translateX(100px); }
  100% { bottom: 1080px; transform: translateX(-200px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentleSway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

@media (min-width: 2000px) {
  .gallery {
    max-width: 90%;
    gap: 3rem;
    padding: 6vh 6vw;
  }

  .gallery img {
    border-radius: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
  }
}

/* For very large screens like TVs */
@media (min-width: 2000px) {
  .gallery {
    max-width: 90%;
    gap: 3rem;
    padding: 6vh 6vw;
  }
  
  .gallery-container img {
    max-width: 23%;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
  }
}
  
/*  Large Desktops */
@media (min-width: 1600px) {
.gallery-container img {
  max-width: 24%;
  aspect-ratio: 16 / 9;
}
}

/*  Laptops / Tablets Landscape */
@media (max-width: 1024px) {
.gallery-container img {
  max-width: 48%;
  aspect-ratio: 4 / 3;
}
}

/* Tablets Landscape */
@media (max-width: 900px) {
.gallery-container {
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.gallery-container img {
  max-width: 90%;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4; /* portrait */
  border-radius: 20px;
}
}


/* 📱 Tablets Portrait + Small Screens */
@media (max-width: 768px) {
.beginning-layout {
 grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

    .slider-header {
      height: 80vh;
      padding: 1rem;
      justify-content: center;  
    }
  
    .banner-content h1 {
      font-size: 1.6rem;
      line-height: 1.3;
    }
  
    .banner-content p {
      font-size: 1rem;
      padding: 0 1rem;
      line-height: 1.5;
    }
  
    .slides {
      width: 400%;
      height: 100%;
    }
  
    .banner {
      background-size: cover;
      background-position: center;
    }

    .story-block {
      box-sizing: border-box;
      width: 100% !important;
      max-width: 100% !important;
      padding: 1.25rem !important;
      margin: 0 12px 16px !important;  
      border-radius: 18px;
      text-align: left;            
    }
    
  .floating-quote p {
     font-size: 1.2rem;
  }

  .gallery-container {
    gap: 1rem;
  }

  .gallery-container img {
    max-width: 100%;
    flex: 1 1 100%;
    border-radius: 16px;
  }

  /* headings look better centered on small screens */
  .story-block strong {
    text-align: center;
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
  }

  .story-block-image-right,
  .story-block-image-left {
    padding: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .story-block img,
   .city-image,
   .proposal-image {
     display: block;
     width: 100% !important;
     max-width: 100% !important;
     height: auto !important;
     border-radius: 16px;
     margin: 0.75rem 0 0;
     object-fit: cover;
   }

 .lunka-wrapper {
    position: relative;      
    top: auto;
    margin: 12px auto 0;   
    right: -140px;     
    bottom: -30px;     
    width: 80px;              
    height: 80px;
  }
  
  .lunka {
    width: 80%;              
  }
  
 .ring{
    display: none !important;
  }

  .proposal-image,
  .city-image {
    max-width: 100%;    
    height: auto;         
    margin-top: 0.5rem;   
  }

  .BallRock {
    max-width: 65% !important;      
    height: auto !important;
    margin-top: -40px !important;                      
  }
  
.left-side,
.right-side {
  transform: translateX(0) !important;
  opacity: 1 !important;
  text-align: center;
  margin: 0 auto;
  max-width: 90%;
  padding: 1.5rem;
}

.slide-content img {
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}

.fly-luna-floater {
  bottom: 130px;
  right: 20px;
  width: 90px;
}

.footer-scenery {
  height: 280px;
}

.ground {
  height: 150px;
}

@media (max-width: 480px) {
  .story-block {
      padding: 1rem;
      margin: 0 0.5rem;
  
.story-block-image-right { 
  max-width: 260px; 
  padding: 1rem; 
}

.proposal-image,
.city-image {
  max-width: 90%;        
  height: auto;         
  margin: 0.5rem auto;   
  display: block;
}

.BallRock {
  max-width: 55% !important;
  margin-top: -20px !important;
}                           
}
}
}