/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F4F1ED;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Main invitation container - Vertical flow layout */
.invitation-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1rem;
    gap: 0.5rem;
    overflow: hidden;
}

/* ===== FLOWER ANIMATIONS ===== */
@keyframes bloom {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== ENVELOPE BOUNCE ANIMATION ===== */
@keyframes envelopeBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-8px);
    }
}

/* ===== TOP LEFT FLOWER ===== */
.flower-image-left {
    position: absolute;
    top: 1%;
    left: 1%;
    width: clamp(40px, 8vw, 100px);
    height: auto;
    animation: bloom 0.8s ease-out, float 3s ease-in-out 1s infinite;
    z-index: 1;
}

/* ===== TOP RIGHT FLOWER ===== */
.flower-image-right {
    position: absolute;
    top: 2%;
    right: 1%;
    width: clamp(40px, 8vw, 100px);
    height: auto;
    animation: bloom 0.8s ease-out 0.2s both, float 3s ease-in-out 1.2s infinite;
    z-index: 1;
}

/* ===== NAMES CONTAINER - AT TOP ===== */
.names-container {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 95%;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.8s ease-out 0.4s both;
    order: 1;
}

.names-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #2c2c2c;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}

.name-mina,
.name-and,
.name-martina {
    display: inline-block;
    margin: 0;
}

.name-mina img,
.name-and img,
.name-martina img {
    height: auto;
    display: block;
}

.name-mina img {
    width: clamp(60px, 15vw, 180px);
}

.name-and img {
    width: clamp(30px, 8vw, 100px);
}

.name-martina img {
    width: clamp(60px, 15vw, 180px);
}

/* ===== ENVELOPE - IN THE MIDDLE ===== */
.envelope {
    position: relative;
    z-index: 3;
    cursor: pointer;
    animation: envelopeBounce 2s ease-in-out infinite;
    margin: 1rem 0;
    order: 2;
}

.envelope-image {
    width: clamp(120px, 35vw, 350px);
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.envelope:hover .envelope-image {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transform: scale(1.05);
}

/* ===== CLICK TO OPEN TEXT - UNDER ENVELOPE ===== */
.click-text {
    position: relative;
    text-align: center;
    z-index: 4;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    margin: 1.5rem 0;
    order: 3;
    
    
}

.envelope:hover ~ .click-text {
    animation: heartBeat 0.8s ease-in-out;
}

.click-text-image {
    width: clamp(100px, 25vw, 250px);
    height: auto;
    display: block;
}

/* ===== BOTTOM FLOWERS - AT BOTTOM ===== */
.flowers-bottom {
    position: absolute;
    transform: translateX(-50%);
    margin-top: 80%;
    width: 550px; 
    z-index: 0;
    animation: fadeInUp 0.8s ease-out 1s both;
    display: block;
}



/* ===== CUSTOM ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
    .invitation-container {
        min-height: 100vh;
        padding: 0.5rem 0.5rem;
        gap: 0.25rem;
    }

    .flower-image-left {
        top: 0.5%;
        left: 0.5%;
        width: 15vw;
    }

    .flower-image-right {
        top: 1%;
        right: 0.5%;
        width: 15vw;
    }

    .names-container {
        margin-top: 1rem;
        margin-bottom: 0.25rem;
        margin-bottom: -20%;
        
    }

    .names-title {
        gap: 0.25rem;
    }

    .name-mina img {
        width: 25vw;
    }

    .name-and img {
        width: 15vw;
        margin-left: -10%;
        margin-bottom: -10%;
    }

    .name-martina img {
        width: 25vw;
    }

    .envelope {
        margin: 0.5rem 0;
    }

    .envelope-image {
        width: 80vw;
    }

    .click-text {
        margin: -2rem 0;
        filter: drop-shadow(8px 8px 10px rgba(99, 90, 90, 0.7));
        top: -80px;
    }

    .click-text-image {
        width: 40vw;
    }

    

    .flowers-bottom img {
        width: 100%;
    }
}

/* ===== RESPONSIVE TABLET (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .invitation-container {
        padding: 1rem 1rem;
        gap: 0.5rem;
    }

    .flower-image-left {
        width: 10vw;
    }

    .flower-image-right {
        width: 10vw;
    }

    .names-title {
        gap: 0.75rem;
    }

    .name-mina img {
        width: 18vw;
    }

    .name-and img {
        width: 9vw;
    }

    .name-martina img {
        width: 18vw;
    }

    .envelope-image {
        width: 80vw;
    }
   .click-text {
        margin: -2rem 0;
        top: -450px;
    }

    .click-text-image {
        width: 22vw;
        top: -150px;
    }

    .flowers-bottom {
        max-width: 70vw;
    }

    .flowers-bottom img {
        width: 100%;
        
    }
}

/* ===== RESPONSIVE DESKTOP (min-width: 1025px) ===== */
@media (min-width: 1025px) {
    .invitation-container {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .flower-image-left {
        width: 12vw;
        top: 0.5%;
    }

    .flower-image-right {
        width: 12vw;
        top: 1%;
    }

    .names-container {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .names-title {
        gap: 1rem;
    }

    .name-mina img {
        width: 20vw;
    }

    .name-and img {
        width: 10vw;
    }

    .name-martina img {
        width: 20vw;
    }

    .envelope {
        margin: 1.5rem 0;
        top: -200px;
    }

    .envelope-image {
        width: 40vw;
    }

    .click-text {
        margin: -1.5rem 0;
        top: -380px;
    }

    .click-text-image {
        width: 20vw;
        top: -150px;
        
    }

    .flowers-bottom {
        max-width: 60vw;
        top: -600px;
        width: 200%;

    }

    .flowers-bottom img {
        width: 100%;
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 769px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

button, .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    button, .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
.fade-out{
    transform: scale(0) translateY(-100px);
    opacity: 0;
}
.magical-fade-out{
    animation: luxuryExit 1.2s ease-in-out forwards;
    pointer-events: none;
}
@keyframes luxuryExit{
    0% {opacity: 1;
    transform: scale(1) ;
filter: blur(0);
}
    50% {opacity: 0.5;
        transform: scale(1.05);
        filter: blur(2px);
    }
    100% {opacity: 0;
        transform: scale(0.9) ;
        filter: blur(10px);
    }
}
#topLeftFlower{
width:200px;
margin-top: -28px;
margin-left: -75px;
margin-bottom: 0;
}
#topRightFlower{
    width:180px;
    margin-top: 180px;
    margin-right: -75px;
    margin-bottom: 0;
    }