@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


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

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #fff8f0 0%, #f5e6d3 100%);
    margin: 0;
    padding: 0;
    text-align: center;
    color: #5a3e36;
    min-height: 100vh;
    /* cursor: url('images/bow.png') 16 16, auto; */
    position: relative;
    overflow-x: hidden;
}


body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(231,183,160,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 30s ease-in-out infinite;
}

body::after {
    content:'';
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,165,116,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
    z-index: 0;
}


@keyframes float {
    0%,100% {
        transform: translate(0,0) rotate(0deg);
    }
    33% {
        transform: translate(20px,-20px) rotate(2deg);
    }
    66% {
        transform: translate(-15px,15px) rotate(-2deg);
    }
}

.music-control{
    position:fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    animation: fadein 1s ease-out 0.5s both;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to{
        opacity: 1;
    };
    }


.music-btn {
    padding: 10px 15px;
    border-radius:25px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    font-weight: 600;
    color:#5a3e36;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.music-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255,255,255,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/*Will add it soon*/

/* .music-btn.playing {

} */

.landing{
    display: flex;
    position: relative;
    padding-top: 80px;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.landing::before{
    content: '';
    position: absolute;
    top:-100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events:none;
    animation:float 20s ease-in-out infinite;
    background: linear-gradient(circle, rgba(232, 153, 129, 0.08)0%, transparent 70%);
}

.landing::after{
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
    background: radial-gradient(circle, rgba(212,165,116,0.06) 0%, transparent 70%);
}

.landing h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-style:italic;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #3f2017;
    position: relative;
    z-index:1;
    animation: fadeinup 1s ease-out;
}

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

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: #9a7e6f;
    margin-bottom: 50px;
    position: relative;
    z-index:1;
    animation: fadeinup 1s ease-out 0.2s both;
}

.bouquet-images {
    display: flex;
    justify-content: center;
    gap:30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    position:relative;
    z-index: 1;
}

.bouquet-images img {
    width:150px;
    transition: none;
    cursor:default;
    filter: brightness(1) contrast(1);
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    animation: fadeinup 1s ease-out both;
}

.bouquet-images img:nth-child(1) {animation-delay: 0.4s;}
.bouquet-images img:nth-child(2) {animation-delay: 0.5s;}
.bouquet-images img:nth-child(3) {animation-delay: 0.6s;}
.bouquet-images img:nth-child(4) {animation-delay: 0.7s;}

.bouquet-images img:hover {
    transform: none;
    filter: brightness(1) contrast(1);
    box-shadow: none;
}

.start-btn {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    color: #5b4235;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 40px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: fadeinup 1.2s ease-out 0.6s both;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.start-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255,255,255,0.5);
    box-shadow:0 6px 20px rgba(0,0,0,0.15);
}

#builderSection {
    width: 100%;
}

header {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    animation: fadeinup 0.5s ease-out;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -1px;
    color: #7a4e3a;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

header p {
    color: #8b6f47;
    font-size: 1.1rem;
    font-weight: 300;
}

.form-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position:relative;
    z-index: 10;
}

.flower-section {
    margin-bottom: 60px;
    animation: fadeinup 0.8s ease-out both;
}

.flower-section:nth-child(1) { 
    animation-delay:0.2s;
}
.flower-section:nth-child(2) {
    animation-delay: 0.4s;
}

.flower-section h2 {
    font-family: 'Playfair Display' , serif;
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -1px;
    color: #7a4e3a;
    margin-bottom: 40px;
}

.transparent-container {
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding:40px;
    margin: 0 auto;
    max-width: 900px;
    box-shadow: 0 12px 35px rgba(0,0,0,0,08);
    transition: all 0.4s cubic-bezier(0.25 , 0.46, 0.45, 0.94);
}

.transparent-container:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.flower-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px, 1fr));
    gap: 40px;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.flower-option {
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    transition: all 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
    width:200px;
    height: 250px;
    overflow:visible;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    box-shadow: 0 8px 25px rgba(0,0,0,0,08), inset 0 1px 0 rgba(255,255,255,0.6);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 20px;
    animation: fadein 0.6s ease-out both;
}

.flower-option:hover {
    transform: translateY(-12px) scale(1.05) rotate(2deg);
    border-color: rgba(240,182,164,0.8);
    box-shadow: 
    0 25px 50px rgba(240,182,164,0.3),
    0 10px 30px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255,255,255,0.5);
    background: rgba(255, 255, 255, 0.5);
}

.flower-option img {
    width: 147px !important;
    height: 155px !important;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.05);
    margin-bottom: 10px;
}

.flower-option:nth-child(1) {animation-delay: 0.1s;}
.flower-option:nth-child(2) {animation-delay: 0.2s;}
.flower-option:nth-child(3) {animation-delay: 0.3s;}
.flower-option:nth-child(4) {animation-delay: 0.4s;}
.flower-option:nth-child(5) {animation-delay: 0.5s;}
.flower-option:nth-child(6) {animation-delay: 0.6s;}

.flower-option:hover img {
    transform: scale(1.1);
    filter: brightness(1.15) contrast(1.1) saturate(1.15);
}

.flower-option p {
    position: relative;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #5a3e36;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    width: 100%;
    text-align: center;
}

.flower-option.selected {
    border-color: rgba(231, 183, 160, 0.9);
    transform: translateY(-8px) scale(1.06);
    box-shadow: 
    0 30px 60px rgba(231,183,160,0.35),
    0 15px 35px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8)
    ;
    background: rgba(255,255,255,0.6);
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%,100% {
        box-shadow: 
        0 30px 60px rgba(231,183,160,0.35),
        0 15px 35px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8)
        ;
    }
    50% {
        box-shadow: 
        0 30px 60px rgba(231,183,160, 0.4),
        0 15px 35px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.9)
        ;
    }
}

.flower-option.selected::after {
    content: '✔';
    position: absolute;
    top: -8px;
    right: -8px;
    width:32px;
    height: 32px;
    background: linear-gradient(135deg, #e7b7a0 0%, #d4a574 100%);
    color: white;
    border-radius: 50%;
    display:flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    animation: checkmark 0.4s ease;
    box-shadow: 0 4px 15px rgba(231,183,160,0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255,255,255,0.8);
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-180deg); 
        opacity:0;
    }
    50% {
        transform:scale(1.3) rotate(-90deg);
        opacity:1;
    }
    100% {
        transform:scale(1) rotate(0deg);
        opacity: 1;
    }
}

.message-section{
    margin: 70px 0;
    animation: fadeinup 1s ease-out 0.6s both;
}

.message-box-container {
    max-width: 700px;
    margin: 0 auto;
}

.message-box-container label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -1px;
    color: #7a4e3a;
    margin-bottom: 25px;
}

.message-input-wrapper {
    position: relative;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    border:2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 8px;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.message-input-wrapper:hover {
    border-color: rgba(231,183,160,0.6);
    cursor: text;
}

.message-input-wrapper:focus-within {
    border-color: rgba(231,183,160,0.8);
    box-shadow: 
    0 15px 40px rgba(231,183,160,0.2),
    0 8px 25px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.7);
    transform: translateY(-5px) scale(1.01);
    background: rgba(255,255,255,0.45);
}

textarea {
    width: 100%;
    height: 140px;
    border: none;
    background: transparent;
    border-radius: 15px;
    padding: 25px;
    font-family: inherit;
    font-size: 1rem;
    color: #5a3e36;
    resize: none;
    outline: none;
    line-height: 1.5;
    cursor:text;
    transition: all 0.3s ease;
}

textarea:placeholder {
    color : rgba(90,62,54,0.6);
    font-style: italic;
}

.message-decoration {
    position: absolute;
    bottom: 10px;
    right: 25px;
    font-size: 1.3rem;
    opacity: 0.7;
    pointer-events:none;
    animation: float 3s ease-in-out infinite;
}

.class-btn {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 25px;
    padding: 10px 20px;
    cursor:pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #5a3e36;
    margin: 35px auto 0 auto;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block ;
    position:relative;
    overflow: hidden;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.create-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255,255,255,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.create-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.preview {
    margin-top: 60px;
    padding: 30px;
    text-align: center;
    position:relative;
    z-index: 10;
}

.bouquet-card{
    background:rgba(255,255,255,0.4);
    backdrop-filter: blur(15px);
    border:2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    display:inline-black;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    max-width: 450px;
    animation: fadeinup 0.8s ease-out;
    
}

.bouquet-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
    0 30px 70px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.bouquet-card img {
    width: 150px !important;
    height: 155px !important;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    object-fit: contain;
    margin-bottom: 10px;
}

.bouquet-card h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -1px;
    color: #7a4e3a;
    margin: 25px 0 15px 0;
    font-size: 2rem;
}

.message {
    color: #8b6f47;
    font-style: italic;
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 18px;
    border-left: 4px solid #e7b7a0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.6)
    ;
}

.download-btn {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 25px;
    padding: 10px 20px;
    cursor:pointer;
    font-weight: 600;
    font-size:1rem;
    color: #5a3e36;
    margin: 30px auto 60px auto;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    text-shadow: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255,255,255,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.download-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 768px) {
    .music-control {
        top: 20px;
        right:20px;
    }

    .music-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .flower-section h2 {
        font-size: 2rem;
    }

    .message-box-container label {
        font-size: 1.6rem;
    }

    .flower-gallery {
        grid-template-columns: repeat(2,1fr);
        gap: 25px;
    }

    .flower-option {
        width: 180px;
        height: 200px;
        padding: 15px;
    }

    .flower-option img {
        height: 100px;
    }

    .flower-option p {
        font-size: 1rem;
        padding: 5px 10px;
    }

    .transparent-container {
        padding: 25px;
    }
    }