header {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    padding-top: 20px;
}

/* Intro Overlay Styles */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: var(--ivory-green);
    overflow: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    background-size: cover; 
    background-position: center center;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-flow: column;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}
.start-text{
    max-width: 320px;
    margin: 0 auto;
}
.start-text p{
    font-style: italic;
    font-weight: 600;
    color: #912e2d;
    font-size: 1.8rem;
    line-height: 1.3;
    font-family: 'Dancing Script', cursive;
}
.envelope-wrapper {
    position: relative;
    text-align: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.opened.envelope-wrapper {
    transform: scale(1.1);
}

.envelope {
    position: relative;
    width: 400px;
    height: 280px;
    background: #f4f4f4;
    margin: 0 auto 30px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
    z-index: 9999;
}

.flap {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 2005;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.4s;
}

/* Four triangles making the envelope */
.top-flap {
    top: 0;
    left: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-top: 140px solid var(--primary-red);
}

.bottom-flap {
    bottom: 0;
    left: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 140px solid var(--primary-red);
    opacity: 0.9;
}

.left-flap {
    top: 0;
    left: 0;
    border-top: 140px solid transparent;
    border-bottom: 140px solid transparent;
    border-left: 200px solid #912e2d;
}

.right-flap {
    top: 0;
    right: 0;
    border-top: 140px solid transparent;
    border-bottom: 140px solid transparent;
    border-right: 200px solid #912e2d;
}

/* Animations when opened */
.opened .top-flap {
    transform: translateY(-150%);
    opacity: 0;
}

.opened .bottom-flap {
    transform: translateY(150%);
    opacity: 0;
}

.opened .left-flap {
    transform: translateX(-150%);
    opacity: 0;
}

.opened .right-flap {
    transform: translateX(150%);
    opacity: 0;
}

.intro-circle-container {
    position: relative;
    width: 100px;
    height: 100px;
    cursor: pointer;
    animation: circlePulse 1.2s infinite;
    border-radius: 50%;
}

.intro-circle {
    width: 100px;
    height: 100px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(166, 44, 43, 0.3);
    border: 2px solid white;
}

@keyframes circlePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(166, 44, 43, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(166, 44, 43, 0); }
}

.circle-text {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    font-family:'Dancing Script', cursive;;
}

.intro-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-green);
    text-shadow: 1px 1px 0px #CCC;
    margin-top: 30px;
    transition: opacity 0.3s ease;
}

.opened + .intro-title {
    opacity: 0;
}

/* Trolly Wheel Animation */
.stroller-icon {
    width: 100%;
    height: 100%;
}

/* Target the wheels in trolly.svg */
.stroller-container img {
    animation: none; /* Disable the floating animation for wheels specifically if needed, or keep both */
}

/* We'll use a filter to find and animate the paths that look like wheels in the SVG */
.stroller-container {
    position: relative;
}

/* Since it's an img tag, we can't target internal paths easily with CSS unless we use a filter or object tag. 
   But we can add a rotation to the whole container or specific overlay. 
   Better approach: animate the entire stroller container with a slight sway, 
   and for wheel rotation we would ideally need the SVG inline. 
   I will provide a way to animate the container and suggest inline SVG if wheels need independent rotation.
*/

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

.stroller-icon {
    animation: strollerSway 3s ease-in-out infinite;
}

@keyframes strollerSway {
    0%, 100% { transform: translateX(-5px) rotate(-2deg); }
    50% { transform: translateX(5px) rotate(2deg); }
}

/* Door styles removed */
.door, .left-door, .right-door {
    display: none;
}
.wrapper{position: relative;}
/* Card visibility */
.card-container {
    width: 100%;
    max-width: 600px;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.card-container.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

:root {
    --primary-green: #2d5a27;
    --ivory-green: #f9fbf2;
    --primary-red: #a62c2b;
    --text-dark: #2d2d2d;
    --accent-red: #d94e41;
    --card-bg: #ffffff;
    --tag-bg: rgba(255, 255, 255, 0.95);
}

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

body {
    background-color: var(--ivory-green);
    font-family: 'Quicksand', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-dark);
    overflow: hidden;
}

.card {
    background: url('card-bg.jpg') center/cover no-repeat;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 
        0 20px 50px rgba(91, 75, 62, 0.2),
        inset 0 0 0 10px rgba(255, 255, 255, 0.4);
    text-align: center;
}

.card-container.active .card {
    animation: cardEntrance 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.screen1{
    background-size: cover;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    flex-flow: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.background-texture{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 70%);
    z-index: 0;
    pointer-events: none;
}
.card::-webkit-scrollbar,
.content::-webkit-scrollbar,
.card-container::-webkit-scrollbar {
    width:0;
}

.card::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track,
.card-container::-webkit-scrollbar-track {
    background: transparent;
}

.card::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb,
.card-container::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.content {
    position: relative;
    z-index: 2;
    padding: 0;
    background:#d8d8d8;
}

/* Typography */
.invite-text {
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--primary-red);
    margin-bottom: 5px;
    font-weight: 500;
    top: -30px;
    position: relative;
    font-family: 'Dancing Script', cursive;
}

.stroller-container {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
}

.stroller {
    width: 100%;
    height: 100%;
}

.honor-text {
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: #2d5a27;
    margin-bottom: 5px;
    font-weight: 500;
        font-family: 'Dancing Script', cursive;
}

.names {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: var(--primary-red);
    margin: 10px 0 0;
    text-shadow: 2px 2px 0px rgba(166, 44, 43, 0.1);
}

.main-event {
    position: relative;
    z-index: 1;
}

.event-title {
        font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-green);
    margin: 15px 0;
    line-height: 1;
    text-transform: uppercase;
    animation: bounceZoomIn 3s ease-in-out infinite;
}

.announcement {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--primary-green);
    max-width: 350px;
    margin: 0 auto;
    font-family: 'Dancing Script', cursive;
}
.screen2{
    padding: 20px 0 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
/* Scratch Card Styles */
.scratch-container {
    margin:0 auto 20px;
    width: 100%;
    max-width: 440px; /* Matching .content max-width */
}

.scratch-card-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.scratch-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    z-index: 1;
}

.reveal-content {
    text-align: center;
    color: var(--primary-red);
}

.reveal-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--primary-green);
}

.reveal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-family: 'Dancing Script', cursive;
}

.reveal-date {
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 0px;
    font-family: 'Dancing Script', cursive;
}

.reveal-time {
    font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
    letter-spacing: 2px;
    margin: 10px 0 0;
}

#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
    touch-action: none;
}

.scratch-instruction {
    font-size: 0.9rem;
    color: var(--primary-green);
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Dancing Script', cursive;
}

/* Countdown Styles */
.countdown-section {
    padding: 30px 20px;
    background:#FFF;
}

.countdown-section .section-title {
    font-size: 1.8rem;
    color: #9e2827;
    margin-bottom: 8px;
    font-family: 'Dancing Script', cursive;
    position: relative;
    z-index: 2;
    text-align: center;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width:400px;
    margin: 0 auto;
}

.countdown-item {
    position: relative;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-item span {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom:10px;
    animation: numberTick 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Playfair Display', serif;
}

@keyframes numberTick {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.countdown-item label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-green);
}

/* Navigation Arrow Styling */
.scroll-down-hint {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-down-hint:hover {
    transform: translateY(5px);
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-green);
    border-radius: 15px;
    position: relative;
    margin-bottom: 8px;
}

.wheel-icon {
    width: 4px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 25px;
}

.nav-arrow {
    font-size: 1rem;
    color: var(--primary-red);
    animation: arrowDown 1.5s infinite;
    line-height: 0.6;
}

.nav-arrow.delay-1 {
    animation-delay: 0.2s;
}

@keyframes arrowDown {
    0% { transform: translateY(0); opacity: 0.2; }
    50% { opacity: 1; }
    100% { transform: translateY(10px); opacity: 0.2; }
}

.nav-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    font-family: 'Quicksand', sans-serif;
}

/* Details Section Texture & Torn Edges */
.details-section {
    position: relative;
}

.details-texture {
        height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    padding: 30px 20px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-flow: column;
    justify-content: center;
}

.torn-edge-top {
    height: 25px;
    width: 100%;
    background:#2d5a27;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5,73.84-4.36,147.54,16.88,218.2,35.26,69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-1.42,1200,42.33V0Z' fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5,73.84-4.36,147.54,16.88,218.2,35.26,69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-1.42,1200,42.33V0Z' fill='%23000'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    transform: rotate(180deg);
}

.torn-edge-bottom {
    height: 25px;
    width: 100%;
    background:#2d5a27;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5,73.84-4.36,147.54,16.88,218.2,35.26,69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-1.42,1200,42.33V0Z' fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5,73.84-4.36,147.54,16.88,218.2,35.26,69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-1.42,1200,42.33V0Z' fill='%23000'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}

.details-section .info-box h3, 
.details-section .info-box p {
    color: white;
}

/* Bouncing Arrow Styling */
.screen-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.bouncing-arrow {
    font-size: 1rem;
    color: var(--primary-red);
    animation: arrowBounce 2s infinite ease-in-out;
    text-shadow: 0 5px 15px rgba(166, 44, 43, 0.2);
    background: #FFF;
    height: 40px;
    width: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    position: absolute;
    bottom: 20px;
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Floating Navigation Button Updated to Arrow Style */
.floating-nav-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(166, 44, 43, 0.3);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    animation: continuousBounce 2s infinite ease-in-out;
}

/* Zigzag Memories Section */
.zigzag-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.zigzag-photo {
    flex: 1;
    max-width:50%;
    overflow: hidden;
    border-radius: 5px;
    box-shadow:0 5px 10px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 5px;
    opacity: 0;
    line-height: 0;
}

.zigzag-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius:5px;
    max-height:180px;
}

.zigzag-content {
    flex: 1;
    text-align: left;
}

.reverse .zigzag-content {
    text-align: right;
}

.zigzag-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.zigzag-content p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Scroll Effects */
.reveal-elastic {
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
}

.reverse .reveal-elastic {
    transform: translateX(50px);
}

.reveal-elastic.active {
    transform: translateX(0) rotate(5deg);
    opacity: 1;
}

.fade-up {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.fade-up.active {
    transform: translateY(0);
    opacity: 1;
}

/* Clean up unused CSS */
.photo-gallery-row, .photo-frame-row, .photo-gallery, .photo-frame, .frame-border, .photo-container, .frame-decoration, .photo-left, .photo-right, .drop-item, .balloon, .scroll-down-hint {
    display: none;
}

/* Map & RSVP Section Styles */
.map-container {
    overflow: hidden;
    margin:20px 0 0;
}
.map-container iframe {
    height:260px;
    border-radius: 10px;
}
.map-btn{
    background: var(--primary-red);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 1rem;
    font-family: 'Dancing Script', cursive;
    margin: 0 0 20px;
    color: #FFF;
    outline: solid 1px #FFF;
    outline-offset: 3px;
    letter-spacing: 1px;
    display: inline-block;
}
.rsvp-form {
    padding: 25px 25px 50px;
    text-align: left;
}

.form-group {
        margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
}

.rsvp-form input, .rsvp-form textarea {
        width: 100%;
    padding: 12px 15px;
    border: 1px solid #CCC;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFF;
}
.rsvp-form input::placeholder, .rsvp-form textarea::placeholder {
    color: #FFF;
}
.rsvp-form input:focus, .rsvp-form textarea:focus {
    outline: none;
    border-color: #FFF;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Dancing Script', cursive;
    letter-spacing: 2px;
}

.submit-btn:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
}

/* Info Grid & Boxes */
.info-grid {
    display: grid;
}

.info-box {
    background: transparent;
    border-radius: 15px;
    padding: 35px 20px;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
    border: none;
    box-shadow: none;
}

.info-box:hover {
    transform: translateY(-5px);
}

/* Animated Border */
.border-animation {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-red), var(--primary-green));
    background-size: 200% 100%;
    animation: borderRotate 3s linear infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--ivory-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.animated-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.box-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.box-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.box-graphic {
    position: absolute;
    bottom: 35px;
    right: 15px;
    width: 40px;
    height: 40px;
    opacity: 0.3;
    color: var(--primary-red);
}

.info-box:hover .box-graphic {
    opacity: 0.3;
    transform: rotate(15deg) scale(1.1);
}

/* Floating Background Elements Removed */

/* Tag Shape Box */
.tag-box {
    background: transparent;
    box-shadow: none;
}

.tag-hole {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    z-index: 2;
}
.tag-box.tag-box.contact-box{padding-top:0;}
/* Dropping Elements */
.drop-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.drop-item {
    display: none;
}

@keyframes dropDown {
    from { opacity: 0; }
    to { opacity: 0; }
}

/* Scroll Animations */
/* General Reveal Fix */
.reveal {
    opacity: 1; /* Reset old reveal logic */
    transform: translateY(50px);
    transition: all 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.active.bounce {
    animation: revealBounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes revealBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.balloon {
    display: none;
}

/* Animations */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatBalloon {
    from { opacity: 0; }
    to { opacity: 0; }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

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

@keyframes bounceZoomIn {
    0% {
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-5px);
    }
}

/* Section Title Responsiveness */
.section-title {
    font-size: 3rem;
    color: #FFF;
    margin-bottom: 25px;
    font-family: 'Dancing Script', cursive;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Zigzag Section Responsiveness */
.zigzag-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.zigzag-content p {
        font-size: 1.2rem;
    line-height: 1.4;
    font-family: 'Dancing Script', cursive;
}

/* Details Section Responsiveness */
.details-section .info-box h3 {
    font-size: 3rem;
}

.details-section .info-box p {
        font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
}

/* Countdown Section Responsiveness */
.countdown-item span {
    font-size: 3rem;
}

.countdown-item label {
    font-size: 1rem;
}

/* Form Responsiveness */
.rsvp-form h3 {
    margin-bottom: 25px;
}

.rsvp-form input, .rsvp-form textarea {
    font-size: 0.9rem;
    padding: 12px 15px;
}

.submit-btn {
    font-size: 1.5rem;
    padding: 15px;
}

.card-footer{
    padding: 0;
    position: relative;
    min-height: 80vh;
    background-position: top center;
    display: flex;
    flex-flow: column;
    justify-content: center;
}
.card-footer:before {
        content: "";
    background: linear-gradient(180deg, #000 0%, transparent);
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background-color:rgba(0,0,0,0.6);
}
.wind-text span {
    display: inline-block;
    animation: windBlow 3s ease-in-out infinite;
    transform-origin: bottom;
}

.wind-text {
  display: inline-block;
}

.wind-text span {
  display: inline-block;
  animation: windBlow 3s ease-in-out infinite;
  transform-origin: bottom;
}

.wind-text span:nth-child(2) {
  animation-delay: 0.1s;
}
.wind-text span:nth-child(3) {
  animation-delay: 0.2s;
}
.wind-text span:nth-child(4) {
  animation-delay: 0.3s;
}
.wind-text span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes windBlow {
  0%,
  100% {
    transform: rotate(0deg) translateX(0);
  }
  25% {
    transform: rotate(3deg) translateX(5px);
  }
  50% {
    transform: rotate(-2deg) translateX(-3px);
  }
  75% {
    transform: rotate(1deg) translateX(2px);
  }
}
.card-footer .rsvp-form{background: transparent;position: relative;z-index: 9;}

.thankyou-msg {
    display: none;
    align-items: center;
    gap:15px;
    margin: 0 25px 40px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: #fff;
    position: relative;
    z-index:9;
}

.thankyou-msg.visible {
    display: flex;
    flex-flow: column;
}

.thankyou-msg .fa-check-circle {
    font-size: 2rem;
    color: #7ed87e;
    flex-shrink: 0;
    display: block;
}

.thankyou-msg span {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    line-height: 1.3;
}    
.trolly{
    position: relative;
    z-index: 2;
}

.screen-one-trolly.trolly{
    max-width: 104px;
    margin:20px auto;
}
.fs-bottom-img {
    max-width: 120px;
    margin: 20px auto;
}
.fs-bottom-img  img{
    max-width:100%;
}
.screen-one-trolly.trolly img{width:100%}
.screen-one-trolly.trolly .small-tyre {
        width: 25px;
        height: 25px;
        bottom: 5px;
        left: 23px;
    }
.screen-one-trolly.trolly .big-tyre {
        width: 30px;
        height: 30px;
        bottom: 7px;
    }

.small-tyre {
    width: 40px;
    position: absolute;
    height: 40px;
    bottom: 2px;
    left: 31px;
    -webkit-animation: rotating 2s linear infinite;
}
.big-tyre {
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: -1px;
    right: 12px;
    -webkit-animation: rotating 2s linear infinite;
}


@-webkit-keyframes rotating {
    from{
        -webkit-transform: rotate(0deg);
    }
    to{
        -webkit-transform: rotate(360deg);
    }
}

.gallery-section{
    padding: 20px 20px 60px;
    position: relative;
    overflow: hidden;
}
.gallery-section .section-title{
    color: #2d5a27;
}
.map-section {
    padding: 3rem 3rem 2rem;
}

@media(max-width:767px){
    .invite-text {
        letter-spacing: 2px;
        top: 0;
    }
    .names{
        font-size: 2.5rem;
        margin:15px 0;
    }
    .small-tyre {
        width: 35px;
        height: 35px;
        bottom: 5px;
        left: 30px;
    }
    .big-tyre {
        width: 45px;
        height: 45px;
        bottom: 7px;
    }
    .honor-text {
    letter-spacing: 1px;}
    .envelope{
        width: 320px;
        height: 220px;
        margin: 0 auto 30px;
    }
    .intro-title{
        margin: 8px 0;
    }
    .top-flap {
        border-left: 160px solid transparent;
        border-right: 159px solid transparent;
        border-top: 114px solid var(--primary-red);
    }
    .left-flap {
        border-top: 111px solid transparent;
        border-bottom: 110px solid transparent;
        border-left: 153px solid #912e2d;
    }
    .right-flap {
        border-top: 110px solid transparent;
        border-bottom: 110px solid transparent;
        border-right: 154px solid #912e2d;
    }
    .bottom-flap {
        border-left: 160px solid transparent;
        border-right: 160px solid transparent;
        border-bottom: 114px solid var(--primary-red);
    }

    .scratch-container{
        padding: 0 20px;
    }
}

.screen1,.screen2,.screen3,.screen4,.screen5{
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}