html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Lato', sans-serif;
    color: #0a2342;
    text-align: center;
}
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 96%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
}
.logo a {
    text-decoration: none;
    color: #0a2342;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}
nav a {
    text-decoration: none;
    color: #3d4b5e;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
}
section {
    min-height: 88.8vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5.5rem 0 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 5rem;
    font-weight: 300;;
    margin-top: 0.5rem;
}
#home {
    position: relative;
    overflow: hidden;
    color: white;
    border-radius: 25px;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.bg-layer-1, .bg-layer-2, .bg-layer-3 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
}
.bg-layer-1 {
  
     
     background-image: url('img/sideone.png');
    animation: pan 25s linear infinite;
    
}
.bg-layer-2 {
   
    background-image: url('img/sidetwo.png');
    animation: pan 30s linear infinite reverse;
    opacity: 0;
}
.bg-layer-3 {
       background-image: url('img/sidetwo.png');
    animation: scale 45s linear infinite alternate;
 
    
}
#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}
@keyframes pan {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-10%) translateY(10%); }
    100% { transform: translateX(0) translateY(0); }
}
@keyframes scale {
    0% { transform: scale(1); }
    100% { transform: scale(1.5); }
}
#home .container {
    z-index: 1;
}
.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}
.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    animation: zoomEffect 12s ease-in-out infinite;
}
/* Slow zoom in-out */
@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}
.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.141);
}
.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 1rem; /* Add horizontal padding for smaller screens */
}



/* Card container */
.grid-Inviting {
    background: #ffffff;
    border-radius: 14px;
    padding: 60px 40px;
    max-width: 100%;
    margin: auto;
    box-shadow: 0 7px 20px rgba(0,0,0,0.04);
    border: 1px solid #e6e6e6;
}

/* Quote text */
.inviting-detil h4 {
    font-size: 22px;
    line-height: 1.7;
    color: #5f6f7b;
    font-style: italic;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
    font-weight: normal;
        font-family: 'Playfair Display', serif;
}

/* Names wrapper */
.wrp-inviting {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid #e6e6e6;
    padding-top: 40px;
    position: relative;
}

.wrp-inviting::after {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 1px;
    background: #e6e6e6;
    transform: translateX(-50%);
}


/* Individual name blocks */
.inviting-names {
    flex: 1;
    text-align: center;
}

/* Name */
.inviting-names h3 {
    font-size: 26px;
    font-weight: 600;
    color: #1d2b36;
    margin-bottom: 8px;
}

/* Role */
.inviting-names p:nth-child(2) {
    color: #c7a247;
    letter-spacing: 1px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* Company */
.inviting-names p:last-child {
    font-size: 15px;
    color: #6b7b88;
}

.rsvp-contact {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e6e6e6;
    text-align: center;
     font-family: 'Playfair Display', serif;
}

.rsvp-contact span {
    font-size: 14px;
    letter-spacing: 2px;
    color: #8a9aa6;
    margin-right: 10px;
}

.red-tex img {max-width: 50px;}
.rsvp-contact a {
    font-size: 15px;
    color: #1d2b36;
    text-decoration: none;
    font-weight: 500;
}

.rsvp-contact i {
   color: #8a9aa6;
    margin-right: 6px;
}


/* Couple Section Styles */
.section-intro {
    margin-bottom: 4rem;
}
.section-title-accent {
   color: #b89e14;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0rem;
}
.couple-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1.1fr;
    align-items: center;
    gap: 3rem;
}
.person-details {
    text-align: left;
}
.person-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}
.person-title {
    
       color: #b89e14;
    font-weight: 500;
    margin-bottom: 1rem;
}
.right-textsp{text-align: right !important;}
.person-details p {
    line-height: 1.6;
    color: #555;
}
.social-icons {
    margin-top: 1rem;
}
.social-icons a {
    color: #0a2342;
    margin-right: 1rem;
    font-size: 1.2rem;
}
.couple-image-container {
    width: 100%;
    height: auto; /* Adjust as needed */
    border-radius: 150px 150px 0 0;
    overflow: hidden;
}
.couple-image-container img {
    width: 100%;
    height: auto;
 
}
/* Story Section Styles */
#story .container {
    max-width: 900px;
}
.cnt-wrpstry-right{
    padding: 0 0 0 85px;
}
.cnt-wrpstry-left{
    padding: 0 85px 0 0;
}
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    background: #e9e9e9;
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-item-right {
    justify-content: flex-end;
}
.timeline-img {
    width: 45%;
    order: 1;
}
.timeline-item-right .timeline-img {
    order: 2;
}
.timeline-img img {
    width: 100%;
    border-radius: 8px;
}
.timeline-content {
    width: 50%;
    padding: 0 2rem;
    text-align: left;
    order: 2;
}
.timeline-item-right .timeline-content {
    text-align: right;
    order: 1;
}
.timeline-year {
    font-family: 'Playfair Display', serif;
       color: #b89e14;
    font-weight: 300;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}
.timeline-content p {
    line-height: 1.6;
    color: #555;
}
.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #daa520;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    z-index: 1;
}
.love-poem-btn {
    background: none;
    border: 2px solid red;
    color: red;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 3rem;
    transition: all 0.3s ease;
}
.love-poem-btn:hover {
    background: #daa520;
    color: white;
}
.heart {
    height: 30px;
    width: 30px;
    background-color: red;
    transform: rotate(-45deg);
    position: fixed;
    top: 305px;
   
    animation: heartbeat 1s infinite;
}
.heart::before, 
.heart::after {
    top: 0;
    left: 0;
    content: "";
    height: 30px;
    width: 30px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
}
.heart::before {
    top: -15px;
    left: 0px;
}
.heart::after {
    left: 15px;
    top: 0px;
}
.hearttw {
     height: 30px;
    width: 30px;
    background-color: red;
    transform: rotate(-45deg);
    position: fixed;   
    left: 450px;   
    animation: heartbeat 1s infinite;
}
.hearttw::before, 
.hearttw::after {
    top: 0;
    left: 0;
    content: "";
    height: 30px;
    width: 30px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
}
.hearttw::before {
    top: -15px;
    left: 0px;
}
.hearttw::after {
    left: 15px;
    top: 0px;
}
@keyframes heartbeat {
    0% {
        transform: scale(1)
            rotate(-45deg);
    }
    25% {
        transform: scale(1.25)
            rotate(-45deg);
    }
    45% {
        transform: scale(1.5)
            rotate(-45deg);
    }
}
/* Gallery Section Styles */
#gallery .container {
    max-width: 1000px;
        width: 100%;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  height: 475px;              
  overflow: hidden;
  background: #fff;
  transition: height 0.6s ease;
}
.gallery-grid::after {
  content: "";
  position: absolute;
  bottom: 76px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #fff);
}
.gallery-item {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item.placeholder {
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    border: 1px dashed #ccc;
}
.view-more-btn {
    background: none;
    border: 2px solid #daa520;
    color: #daa520;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.view-more-btn:hover {
    background: #daa520;
    color: white;
}
/* Quote Section Styles */
.quote-section {
    position: relative;
    background-image: url('img/bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 60vh;
    padding: 4rem 2rem;
}
.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.6);
}
.quote-content {
    position: relative;
    z-index: 1;
}
.quote-icon {
    font-size: 2.5rem;
    padding-bottom: 5.5rem;
    color: #daa520;
    margin-bottom: 1.5rem;
    transform: rotate(20deg);
}
.quote-content blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-style: italic;
    margin: 0 0 1rem 0;
}
.quote-content cite {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.save-the-date {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0rem;
    font-weight: bold;
    text-transform:uppercase ;
       font-weight: normal;
       color: #51627c;    
}
.names h1 {
font-family: 'Playfair Display', serif;
    font-size: 6rem;
    margin: 0;
    color: #0f172a;
  
    font-weight: 300;
}
.names h1 span{        
    font-size: 4.5rem;
    color: #b89e14;
    line-height: 1;
    }
.date {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #263142;
    font-family: 'Playfair Display', serif !important;
    line-height: 1rem;
}
.date span{
    font-size: 4.5rem;
    color: #b89e14;
}
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 3rem;
    margin: 2rem 0;
    font-weight: 300;
    color: #0f172a;  
    font-family: 'Playfair Display', serif !important;
}
.red-tex{color: #b89e14;}
.countdown > div {
    display: flex;
    flex-direction: column;
}
.countdown .label {
    font-size: 0.8rem;
    text-transform: uppercase;
}
.getting-married {
    font-size: 1rem;
   color: #b89e14;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 2rem;
    text-transform: uppercase;
}
/* Events Section Styles */
#events .container {
    max-width: 900px;
}
.event-list {
    width: 100%;
}
.event-item {
    display: flex;
    background: white;
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.event-image {
    flex: 0 0 300px;
    position: relative;
}
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.date-box {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
}
.date-box div:first-child {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}
.date-box div:last-child {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: normal;
    
}
.event-details {
    padding: 1.5rem;
}
.event-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
        margin-top: 0px;
}
.event-details p {
    color: #555;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    line-height: 1.4rem;
    font-size: 0.9rem;
}
.event-details hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1rem 0;
}
.event-sub-section {
    font-weight: 700;
    color: #daa520;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.address {
    font-style: italic;
    font-size: 0.9rem;
    margin-top:-0.6rem !important;
}
.event-details p i{ color: #daa520; margin-right: 0.3rem;}
.get-directions {
    color: #daa520;
    text-decoration: none;
    font-weight: 300;
    margin-top: 1rem;
    display: inline-block;
}
/* Footer Styles */
footer {
    background: #f9f9f9;
    padding: 4rem 2rem;
    border-top: 1px solid #eee;
}
.footer-content {
    max-width: 600px;
    margin: 0 auto;
}
.footer-icon {
    color: red;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.footer-poem {
    font-style: italic;
    color: #777;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.footer-contact span {
    margin: 0 0.5rem;
}
.footer-contact a {
    color: #0a2342;
    text-decoration: none;
    font-weight: 700;
}
.crafted-with-love {
    margin-top: 2rem;
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    nav ul {
        gap: 1.5rem;
    }
    nav a {
        font-size: 0.9rem;
    }
    .hearttw{left:45%;}
    .couple-image-container{height: auto;}
    .couple-image-container img{height: auto;}
    .container{margin: 0; padding: 0;}
    .cnt-wrpstry-right, .cnt-wrpstry-left{padding: 0;}
    .names h1{font-size:4rem;}
    .countdown{font-size: 2.7rem;}
    .quote-section {  
    background-size: cover;
    background-position: -500px 0px;
    min-height: 50vh;
    padding: 3rem 2rem;
}
.footer-contact span {
padding: 0.5rem;
        margin: 0;
}
.heart{top: 50%;}
.person-details {text-align: center !important;}
.timeline-item, .timeline-year, .timeline-content h3, .timeline-content p{text-align: center !important;  margin-top: 1rem;}
  .timeline-item {
    display: flex;
    flex-direction: column;
  }
  section h2{font-size: 2.3rem;}
  .timeline-content {
    order: 1; /* comes first */
  }
  .timeline-img {
    order: 2; /* comes after */
  }
  .names h1 span{display: block;}
  section{ padding: 4rem 1.5em !important;}
  .section-intro{margin-top: 3rem; margin-bottom: 0;}
  .timeline-item::after {top: 0%;}
  .footer-contact{line-height:26px;}
      .section-intro h2 {
        font-size: 34px;
    }

    .grid-Inviting {
        padding: 20px 10px;
    }
    .inviting-names h3 {
    font-size: 22px;}

    .wrp-inviting {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
    }

    .inviting-detil h4 {
        font-size: 18px;
        margin: 0 auto 30px;
    }
      .wrp-inviting::after {
        display: none;
    }
}
@media (max-width: 640px) {
    header {
        flex-direction: column;
        padding: 1rem 0;
                width: 100%;
    }
    
    nav {
           margin-top: 0.6rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }
    .couple-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item, .timeline-item-right {
        flex-direction: column;
    }
    .timeline-img, .timeline-content {
        width: 100%;
    }
    .timeline-item-right .timeline-content {
        text-align: left;
    }
    .event-item {
        flex-direction: column;
    }
    .event-image {
        flex: 0 0 200px;
    }
}
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
#lightbox.active {
    display: flex;
}
#lightbox img {
    max-width: 90%;
    max-height: 80%;
}
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
