@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #260d19;
    color:#e097bf;
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* =========================
   start screen
========================= */

.screen {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    background:
        radial-gradient(
            circle at center,
            #fca9d8 0%,
            #ff8ccd 45%,
            #fabee0 100%
        );

    overflow: hidden;
}


.lockBox {
    width: min(90%, 430px);

    padding: 45px 30px;

    text-align: center;

    border: 1px solid rgba(250, 249, 249, 0.3);

    border-radius: 30px;

    background: rgba(255, 253, 254, 0.838);

    backdrop-filter: blur(18px);

    box-shadow:
        0 0 60px rgb(255, 168, 224);

    animation: boxAppear 1.2s ease;
}


@keyframes boxAppear {

    from {
        opacity: 0;
        transform: scale(.8) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}


.lockIcon {
    font-size: 65px;

    color: #ff9ce8;

    text-shadow:
        0 0 25px #f796df;

    animation: heartbeat 2s infinite;
}


@keyframes heartbeat {

    50% {
        transform: scale(1.12);
    }

}


.lockBox h1 {
    margin-top: 15px;

    font-family: 'Playfair Display', serif;

    font-size: 32px;
}


.lockBox p {
    color: #ff0099;

    margin: 15px 0 25px;
}


.lockBox input {

    width: 100%;

    padding: 15px;

    border-radius: 15px;

    border: 1px solid #7d4468;

    outline: none;

    background: rgba(253, 172, 211, 0.05);

    color: rgb(253, 156, 224);

    text-align: center;

    font-size: 18px;

    letter-spacing: 4px;

}


.lockBox input:focus {

    border-color: #ff7cdc;

    box-shadow: 0 0 20px rgba(130,100,255,.25);

}


button {

    border: none;

    cursor: pointer;

    margin-top: 20px;

    padding: 14px 28px;

    border-radius: 30px;

    color: white;

    font-family: inherit;

    font-size: 15px;

    background:
        linear-gradient(
            135deg,
            #ff3fcc,
            #ff58d5
        );

    box-shadow:
        0 10px 30px rgba(75,80,255,.25);

    transition: .3s;
}


button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 40px rgba(255, 80, 223, 0.4);

}


#error {

    color: #f78ec4;

    min-height: 25px;

    margin-bottom: 0 !important;

}


/* =========================
    website
========================= */

.hidden {
    display: none;
}


#website {
    position: relative;

    background:
        radial-gradient(
            circle at 50% 0%,
            #3c0624,
            #3c0624 50%
        );
}


/* =========================
    floating elements
========================= */

#floatingElements {

    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 1;
}


.floating {

    position: absolute;

    bottom: -40px;

    opacity: 0;

    animation:
        floatup linear forwards;

}


@keyframes floatup {

    0% {

        transform:
            translateY(0)
            rotate(0deg)
            scale(.6);

        opacity: 0;

    }

    15% {
        opacity: .8;
    }

    85% {
        opacity: .8;
    }

    100% {

        transform:
            translateY(-110vh)
            rotate(360deg)
            scale(1.2);

        opacity: 0;

    }

}


/* =========================
    intro
========================= */

.intro {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    position: relative;

    z-index: 2;

    padding: 30px;
}


.introText {

    animation: introAppear 1.5s ease;
}


@keyframes introAppear {

    from {

        opacity: 0;

        transform:
            translateX(80px);

    }

    to {

        opacity: 1;

        transform:
            translateX(0);

    }

}


.smallText {

    color: #ffb0d5;

    letter-spacing: 4px;

    font-size:30px;
}


.intro h1 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(60px, 12vw, 15px);

    line-height: .9;

    margin: 25px 0;

}


.intro h1 span {

    display: block;

    background:
        linear-gradient(
            90deg,
            #fff,
            #feeffa,
            #fd5bc4
        );

    -webkit-background-clip: text;

    color: transparent;

}


.intro p {

    color: #ffffff;

    max-width: 550px;

    margin: auto;

    line-height: 2;

    font-size:xx-large;

    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

}


/* =========================
   Sections
========================= */

section:not(.intro):not(.screen) {

    position: relative;

    z-index: 2;

    padding:
        100px
        7%;

}


h2 {

    font-family: 'Playfair Display', serif;

    text-align: center;

    font-size: clamp(35px, 5vw, 60px);

    margin-bottom: 10px;
}


.sectionText {

    text-align: center;

    color: #a6949e;

    margin-bottom: 50px;
}


/* =========================
   pics
========================= */

.photoGrid {

    max-width: 1000px;

    margin: auto;

    display: flex;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    
}


.photoCard {

    height: 300px;

    position: relative;

    border-radius: 25px;

    overflow: visible;

    transform:
        rotate(
            calc(var(--rotation, 0) * 1deg)
        );

    transition: .4s;

}


.photoCard:nth-child(1) {
    --rotation: -3;
}

.photoCard:nth-child(2) {
    --rotation: 2;
}

.photoCard:nth-child(3) {
    --rotation: -2;
}

.photoCard:nth-child(4) {
    --rotation: 3;
}


.photoCard:hover {

    transform:
        rotate(0)
        translateY(-12px)
        scale(1.04);

    z-index: 5;

}


.photoCard img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 25px;

    border: 2px solid rgba(255,255,255,.12);

    box-shadow:
        0 20px 50px #fbbee265;

}


.photoCard span {

    position: absolute;

    right: -12px;

    top: -15px;

    font-size: 35px;

    color: #ffffff;

    text-shadow:
        0 0 15px #fe94cb;

}


/* =========================
    messages
========================= */

.messageGrid {

    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.message {

    min-height: 180px;

    padding: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 162, 202, 0.667),
            rgba(255, 162, 202, 0.667)
        );

    border:
        1px solid rgba(255, 122, 186, 0.2);

    color: #eee;

    line-height: 1.9;

    opacity: 0;

    transform:
        translateY(50px)
        scale(.9);

    transition:
        .7s ease;

}


.message.show {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);

}


.message:hover {

    border-color: #fdfcfe;

    transform:
        translateY(-8px)
        scale(1.03);

    box-shadow:
        0 15px 40px rgba(250, 88, 169, 0.537);

}


.messageNumber {

    position: absolute;

    top: 12px;

    left: 18px;

    font-size: 12px;

    color: #fffeff81;
}


.message {

    position: relative;
}


/* =========================
   ending
========================= */

.ending {

    min-height: 70vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    background:
        radial-gradient(
            circle,
            #2d131e,
            transparent 65%
        );

}


.heartBig {

    font-size: 90px;

    color: #ff7cc4;

    animation: heartbeat 2s infinite;

    text-shadow:
        0 0 35px #f1a6cf;

}


.ending p {

    max-width: 600px;

    color: #ffffff;

    line-height: 2;

    margin: 20px auto;

    font-size: larger;

}


.ending strong {

    font-family:
        'Playfair Display',
        serif;

    font-size: 30px;

    color: #fa64af;

}


/* =========================
   Responsive
========================= */

@media(max-width: 800px) {

    .photoGrid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .messageGrid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media(max-width: 500px) {

    .photoGrid,
    .messageGrid {

        grid-template-columns:
            1fr;

    }

    .photoCard {

        height: 350px;

    }

    section:not(.intro):not(.screen) {

        padding:
            80px 20px;

    }

}
