/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: "Poppins", sans-serif;

    color: #5c2741;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 180, 210, 0.55),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(255, 205, 225, 0.7),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #fff7fa,
            #ffe7f0,
            #fff
        );

    overflow-x: hidden;
}


/* =========================================================
   FLOATING I LOVE YOU BACKGROUND
========================================================= */

#loveBackground {
    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 0;
}

.floating-love {
    position: absolute;

    bottom: -50px;

    white-space: nowrap;

    font-family: "Cormorant Garamond", serif;

    font-weight: 600;

    color: rgba(214, 70, 122, 0.13);

    letter-spacing: 2px;

    animation: floatLove linear forwards;

    user-select: none;
}

@keyframes floatLove {

    0% {
        transform:
            translateY(0)
            translateX(0)
            rotate(-4deg);

        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform:
            translateY(-50vh)
            translateX(35px)
            rotate(4deg);
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform:
            translateY(-115vh)
            translateX(-30px)
            rotate(-4deg);

        opacity: 0;
    }
}


/* =========================================================
   UTILITIES
========================================================= */

.hidden {
    display: none !important;
}

.screen {
    min-height: 100vh;

    display: none;

    align-items: center;
    justify-content: center;

    position: relative;

    z-index: 2;

    padding: 20px;
}

.screen.active {
    display: flex;
}


/* =========================================================
   GLASS
========================================================= */

.glass {

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.65),
            rgba(255, 255, 255, 0.25)
        );

    border: 1px solid rgba(255, 255, 255, 0.7);

    box-shadow:
        0 25px 70px rgba(184, 73, 119, 0.14),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}


/* =========================================================
   LOCK SCREEN
========================================================= */

.lock-card {

    width: min(390px, 92vw);

    padding: 38px 28px 32px;

    border-radius: 30px;

    text-align: center;

    animation: cardAppear 0.8s ease;
}

@keyframes cardAppear {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lock-icon {

    width: 54px;
    height: 54px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);
}

.lock-icon svg {

    width: 25px;
    height: 25px;

    fill: none;

    stroke: #c83d70;

    stroke-width: 1.7;

    stroke-linecap: round;
}

.lock-card h1 {

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(30px, 7vw, 40px);

    line-height: 1.05;

    color: #7a294c;

    margin-bottom: 10px;
}

.lock-subtitle {

    font-size: 13px;

    color: #9b647a;

    margin-bottom: 25px;
}

.pin-dots {

    display: flex;

    justify-content: center;

    gap: 13px;

    margin-bottom: 12px;
}

.pin-dots span {

    width: 11px;
    height: 11px;

    border-radius: 50%;

    border: 1.5px solid #d25a88;

    transition: 0.2s;
}

.pin-dots span.filled {

    background: #d25a88;

    transform: scale(1.08);
}

.pin-error {

    height: 20px;

    font-size: 12px;

    color: #c53c6d;

    opacity: 0;

    transition: 0.2s;
}

.pin-error.show {
    opacity: 1;
}


/* =========================================================
   KEYPAD
========================================================= */

.keypad {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    max-width: 275px;

    margin: 12px auto 0;
}

.keypad button {

    height: 58px;

    border: 1px solid rgba(255,255,255,0.7);

    border-radius: 18px;

    background: rgba(255,255,255,0.42);

    color: #71304d;

    font-size: 19px;

    cursor: pointer;

    transition: 0.2s;

    backdrop-filter: blur(10px);
}

.keypad button:hover {

    background: rgba(255,255,255,0.75);

    transform: translateY(-2px);
}

.keypad button:active {

    transform: scale(0.94);
}

.empty-key {

    visibility: hidden;
}

.delete-key {

    font-size: 23px !important;
}


/* =========================================================
   WEBSITE
========================================================= */

#website {

    position: relative;

    z-index: 2;

    min-height: 100vh;
}


/* =========================================================
   TOP LOCK BUTTON
========================================================= */

.top-lock {

    position: fixed;

    top: 22px;
    right: 22px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.8);

    background: rgba(255,255,255,0.42);

    backdrop-filter: blur(15px);

    box-shadow: 0 10px 30px rgba(182, 68, 113, 0.15);

    cursor: pointer;

    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.25s;
}

.top-lock:hover {

    transform: scale(1.08);

    background: rgba(255,255,255,0.7);
}

.top-lock svg {

    width: 22px;
    height: 22px;

    fill: none;

    stroke: #b93667;

    stroke-width: 1.8;

    stroke-linecap: round;
}


/* =========================================================
   PAGES
========================================================= */

.page {

    min-height: 100vh;

    padding: 80px 20px;

    position: relative;
}

.home-page {

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* =========================================================
   HOME HEADER
========================================================= */

.home-header {

    width: min(900px, 100%);

    text-align: center;

    margin: 20px auto 30px;
}

.rose-decoration {

    color: #c83d70;

    font-size: 30px;

    margin-bottom: 5px;
}

.home-header h1 {

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(40px, 8vw, 72px);

    font-weight: 600;

    line-height: 0.95;

    color: #792a4c;
}

.header-line {

    width: 90px;

    height: 1px;

    background: #d85b88;

    margin: 18px auto;
}

.home-header p {

    font-size: 13px;

    color: #9b6378;
}


/* =========================================================
   HERO
========================================================= */

.hero {

    width: min(650px, 94vw);

    padding: 55px 30px;

    border-radius: 35px;

    text-align: center;

    margin-top: 20px;
}

.rose-row {

    display: flex;

    justify-content: center;

    gap: 18px;

    font-size: 27px;

    margin-bottom: 18px;
}

.small-title,
.page-small-title {

    font-size: 11px;

    letter-spacing: 4px;

    color: #c04572;

    font-weight: 600;

    margin-bottom: 14px;
}

.hero h2 {

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(42px, 8vw, 68px);

    line-height: 0.95;

    font-weight: 600;

    color: #702744;

    margin-bottom: 30px;
}


/* =========================================================
   BUTTON
========================================================= */

.romantic-button {

    border: none;

    padding: 14px 30px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #dc5d89,
            #b93667
        );

    color: white;

    font-family: "Poppins", sans-serif;

    font-size: 13px;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(185, 54, 103, 0.25);

    transition: 0.25s;
}

.romantic-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(185, 54, 103, 0.3);
}

.romantic-button:active {
    transform: scale(0.96);
}


/* =========================================================
   CUTENESS METER
========================================================= */

.cuteness-container {

    width: min(600px, 94vw);

    margin-top: 25px;

    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cuteness-card {

    border-radius: 30px;

    padding: 35px 25px;

    text-align: center;
}

.meter-title {

    font-family: "Cormorant Garamond", serif;

    font-size: 26px;

    color: #7b294d;

    margin-bottom: 20px;
}

.meter {

    width: 100%;

    height: 18px;

    border-radius: 20px;

    background: rgba(255,255,255,0.65);

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.9);
}

.meter-fill {

    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #f3a2bd,
            #d53e72
        );

    transition: width 0.12s linear;
}

#meterPercent {

    margin-top: 10px;

    font-size: 15px;

    font-weight: 600;

    color: #c53d70;
}

#meterStatus {

    font-size: 12px;

    color: #9a6177;

    margin-top: 4px;
}


/* =========================================================
   OVERLOADED
========================================================= */

.overloaded {

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid rgba(198, 72, 115, 0.15);

    animation: warningAppear 0.6s ease;
}

@keyframes warningAppear {

    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    70% {
        transform: scale(1.04);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.warning-symbol {

    width: 50px;
    height: 50px;

    margin: auto;

    border-radius: 50%;

    background: rgba(211, 56, 103, 0.1);

    color: #c63367;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 25px;

    font-weight: 600;

    margin-bottom: 10px;
}

.overloaded h2 {

    font-family: "Cormorant Garamond", serif;

    font-size: 39px;

    line-height: 0.9;

    color: #b52f62;

    margin-bottom: 12px;
}

.overloaded p {

    font-size: 12px;

    line-height: 1.7;

    color: #956174;

    margin-bottom: 18px;
}


/* =========================================================
   SECTION MENU
========================================================= */

.section-menu {

    width: min(700px, 94vw);

    margin-top: 35px;

    padding-bottom: 50px;

    animation: fadeUp 0.6s ease;
}

.menu-title {

    text-align: center;

    font-family: "Cormorant Garamond", serif;

    font-size: 25px;

    color: #7a294c;

    margin-bottom: 18px;
}

.section-box {

    width: 100%;

    min-height: 105px;

    border: 1px solid rgba(255,255,255,0.75);

    border-radius: 25px;

    margin-bottom: 15px;

    padding: 18px 22px;

    display: grid;

    grid-template-columns: 60px 1fr 30px;

    align-items: center;

    gap: 15px;

    text-align: left;

    cursor: pointer;

    backdrop-filter: blur(20px);

    transition: 0.25s;

    box-shadow:
        0 15px 40px rgba(181, 65, 111, 0.08);
}

.section-box:hover {

    transform: translateY(-4px);

    box-shadow:
        0 20px 45px rgba(181, 65, 111, 0.14);
}

.person-box {
    background: rgba(255, 222, 234, 0.48);
}

.love-box {
    background: rgba(255, 236, 244, 0.58);
}

.wedding-box {
    background: rgba(255, 218, 229, 0.42);
}

.section-icon {

    width: 50px;
    height: 50px;

    border-radius: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 21px;

    background: rgba(255,255,255,0.45);
}

.section-box h3 {

    font-family: "Cormorant Garamond", serif;

    font-size: 27px;

    color: #702844;

    margin-bottom: 2px;
}

.section-box p {

    font-size: 11px;

    color: #98647a;
}

.section-arrow {

    font-size: 24px;

    color: #bd4773;
}


/* =========================================================
   SUB PAGES
========================================================= */

.sub-page {

    display: flex;

    align-items: center;
    justify-content: center;

    padding-top: 100px;
}

.sub-page-content {

    width: min(850px, 94vw);

    text-align: center;
}

.sub-page-content h2 {

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(42px, 8vw, 68px);

    line-height: 0.95;

    color: #702844;

    margin-bottom: 35px;
}

.back-button {

    position: fixed;

    top: 22px;
    left: 22px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.8);

    background: rgba(255,255,255,0.45);

    backdrop-filter: blur(15px);

    color: #a83361;

    font-size: 27px;

    cursor: pointer;

    z-index: 50;

    transition: 0.25s;
}

.back-button:hover {

    transform: translateX(-3px);

    background: rgba(255,255,255,0.75);
}


/* =========================================================
   PHOTOS
========================================================= */

.photo-container {

    width: min(600px, 92vw);

    margin: auto;
}

.photo-frame {

    position: relative;

    padding: 12px;

    border-radius: 28px;

    cursor: pointer;

    overflow: hidden;
}

.photo-frame img {

    display: block;

    width: 100%;

    max-height: 65vh;

    min-height: 300px;

    object-fit: contain;

    border-radius: 20px;

    background: rgba(255,255,255,0.25);

    transition: opacity 0.25s ease;
}

.photo-frame.changing img {

    opacity: 0;
}

.photo-overlay {

    position: absolute;

    bottom: 20px;
    left: 50%;

    transform: translateX(-50%);

    width: calc(100% - 40px);

    padding: 9px;

    border-radius: 12px;

    background: rgba(255,255,255,0.65);

    backdrop-filter: blur(10px);

    font-size: 11px;

    color: #7e3b58;

    pointer-events: none;
}

.photo-counter {

    margin-top: 15px;

    color: #c04371;

    font-size: 13px;

    font-weight: 600;
}

.photo-message {

    max-width: 500px;

    margin: 15px auto;

    color: #956174;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   LOVE MESSAGES
========================================================= */

.message-container {

    width: min(650px, 92vw);

    margin: auto;
}

.message-card {

    min-height: 330px;

    border-radius: 30px;

    padding: 45px 35px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: 0.25s;
}

.message-card:hover {

    transform: translateY(-3px);
}

.message-number {

    width: 52px;
    height: 52px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(217, 82, 130, 0.1);

    color: #c13d6d;

    font-family: "Cormorant Garamond", serif;

    font-size: 20px;

    margin-bottom: 25px;
}

.message-card p {

    max-width: 510px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(25px, 5vw, 34px);

    line-height: 1.25;

    color: #712946;
}

.tap-hint {

    margin-top: 30px;

    font-size: 10px;

    letter-spacing: 1px;

    color: #b2778e;

    text-transform: uppercase;
}

.message-counter {

    margin-top: 15px;

    color: #c04371;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   WEDDING
========================================================= */

.wedding-card {

    width: min(800px, 92vw);

    margin: auto;

    border-radius: 32px;

    padding: 45px 25px;
}

.rings {

    font-size: 40px;

    color: #c24370;

    margin-bottom: 15px;
}

.wedding-intro {

    font-size: 13px;

    color: #976277;

    margin-bottom: 12px;
}

.wedding-card h3 {

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(35px, 7vw, 55px);

    letter-spacing: 3px;

    color: #722946;

    margin-bottom: 35px;
}

.countdown {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    max-width: 650px;

    margin: auto;
}

.time-box {

    padding: 20px 10px;

    border-radius: 20px;

    background: rgba(255,255,255,0.48);

    border: 1px solid rgba(255,255,255,0.7);
}

.time-box span {

    display: block;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(30px, 6vw, 48px);

    font-weight: 600;

    color: #b83868;
}

.time-box small {

    display: block;

    margin-top: 4px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #956174;
}

.wedding-message {

    max-width: 600px;

    margin: 35px auto 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 22px;

    line-height: 1.5;

    color: #7a3c57;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .page {
        padding: 75px 15px 50px;
    }

    .top-lock,
    .back-button {

        width: 43px;
        height: 43px;

        top: 16px;
    }

    .top-lock {
        right: 16px;
    }

    .back-button {
        left: 16px;
    }

    .home-header {
        margin-top: 10px;
    }

    .home-header h1 {
        font-size: 46px;
    }

    .hero {
        padding: 45px 20px;
        border-radius: 27px;
    }

    .hero h2 {
        font-size: 45px;
    }

    .section-box {

        grid-template-columns: 50px 1fr 20px;

        min-height: 95px;

        padding: 15px;

        border-radius: 20px;

        gap: 10px;
    }

    .section-icon {

        width: 43px;
        height: 43px;

        border-radius: 14px;
    }

    .section-box h3 {
        font-size: 23px;
    }

    .section-box p {
        font-size: 10px;
    }

    .photo-frame {
        padding: 8px;
    }

    .photo-frame img {

        min-height: 250px;

        max-height: 58vh;
    }

    .photo-overlay {

        bottom: 15px;

        width: calc(100% - 30px);

        font-size: 9px;
    }

    .message-card {

        min-height: 300px;

        padding: 35px 20px;
    }

    .countdown {

        grid-template-columns: repeat(2, 1fr);
    }

    .wedding-card {

        padding: 35px 18px;
    }

    .wedding-message {
        font-size: 19px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .hero h2 {
        font-size: 39px;
    }

    .home-header h1 {
        font-size: 40px;
    }

    .section-box h3 {
        font-size: 20px;
    }

    .keypad button {
        height: 52px;
    }
}