* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #fff5f8;
    color: #3b2029;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 160, 190, 0.18), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255, 100, 150, 0.15), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.password-screen {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffedf3, #ffd8e5, #fff0f5);
    z-index: 30000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.password-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-card {
    width: min(90%, 480px);
    padding: 50px 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(150, 50, 80, 0.2);
    backdrop-filter: blur(15px);
    animation: cardAppear 1s ease;
}

.password-heart {
    font-size: 70px;
    margin-bottom: 15px;
    animation: heartbeat 1.5s infinite;
}

.password-card h1 {
    font-size: 38px;
    color: #a52b52;
    margin-bottom: 8px;
}

.password-card h2 {
    font-size: 23px;
    font-weight: normal;
    color: #d94f78;
    margin-bottom: 20px;
}

.password-card p {
    font-size: 17px;
    margin-bottom: 22px;
    line-height: 1.6;
}

#passwordInput {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ffd0dd;
    border-radius: 50px;
    outline: none;
    text-align: center;
    font-family: inherit;
    font-size: 17px;
    margin-bottom: 15px;
    background: white;
}

#passwordInput:focus {
    border-color: #ff477e;
}

#unlockButton {
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff477e, #d91f55);
    color: white;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(217, 31, 85, 0.3);
    transition: transform 0.3s ease;
}

#unlockButton:hover {
    transform: translateY(-3px) scale(1.04);
}

#passwordError {
    min-height: 25px;
    color: #d5285d;
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 0;
}

.start-screen {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffedf3, #ffd8e5, #fff0f5);
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.start-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-card {
    width: min(90%, 520px);
    padding: 55px 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(150, 50, 80, 0.2);
    backdrop-filter: blur(15px);
    animation: cardAppear 1.2s ease;
}

.big-heart {
    font-size: 80px;
    animation: heartbeat 1.5s infinite;
    margin-bottom: 15px;
}

.start-card h1 {
    font-size: 42px;
    color: #a52b52;
    margin-bottom: 8px;
}

.start-card h2 {
    font-size: 25px;
    font-weight: normal;
    color: #d94f78;
    margin-bottom: 25px;
}

.start-card p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

#startButton,
#finalButton {
    padding: 15px 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff477e, #d91f55);
    color: white;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(217, 31, 85, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#startButton:hover,
#finalButton:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 15px 35px rgba(217, 31, 85, 0.4);
}

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.small-title {
    color: #d84c74;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 75px);
    color: #9d244a;
    margin-bottom: 25px;
    animation: fadeUp 1s ease;
}

.hero-text {
    max-width: 650px;
    font-size: 20px;
    line-height: 1.8;
    color: #70404f;
}

.message-section {
    padding: 40px 20px 100px;
}

.message-card {
    max-width: 750px;
    margin: auto;
    padding: 50px;
    text-align: center;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(100, 30, 50, 0.1);
}

.message-card p {
    font-size: 25px;
    line-height: 1.7;
    font-style: italic;
}

.quote {
    display: block;
    font-size: 70px;
    height: 50px;
    color: #ef6c91;
}

.quote.right {
    text-align: right;
}

.gallery-section {
    padding: 80px 20px;
    text-align: center;
}

.gallery-section h2 {
    font-size: 42px;
    color: #9d244a;
}

.section-subtitle {
    margin-top: 10px;
    margin-bottom: 45px;
    color: #87515f;
}

.gallery {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 1 / 1;
    background: #ffdbe6;
    box-shadow: 0 15px 35px rgba(100, 30, 50, 0.15);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(100, 30, 50, 0.25);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.85);
}

.photo-number {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #a52b52;
    font-weight: bold;
}

.love-section {
    padding: 100px 20px;
}

.love-box {
    max-width: 800px;
    margin: auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #fff, #fff0f5);
    border-radius: 35px;
    box-shadow: 0 25px 70px rgba(100, 30, 50, 0.12);
}

.tiny-heart {
    font-size: 50px;
    margin-bottom: 20px;
    animation: heartbeat 1.5s infinite;
}

.love-box h2 {
    font-size: 35px;
    color: #a52b52;
    margin-bottom: 25px;
}

.love-box p {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.highlight {
    color: #d5285d;
    font-size: 24px !important;
    font-weight: bold;
}

.final-section {
    text-align: center;
    padding: 100px 20px 150px;
}

.final-section p {
    font-size: 20px;
    margin-bottom: 10px;
}

.final-section h2 {
    font-size: 38px;
    color: #9d244a;
    margin-bottom: 35px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(35, 5, 15, 0.88);
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 20000;
}

.modal-content {
    position: relative;
    max-width: 850px;
    max-height: 90vh;
    background: white;
    border-radius: 25px;
    padding: 15px;
    animation: modalAppear 0.4s ease;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 18px;
    display: block;
    margin: auto;
}

.popup-text {
    padding: 20px 10px 10px;
}

.popup-text p {
    font-size: 19px;
    line-height: 1.6;
    color: #65313f;
}

.close-button {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ff477e;
    color: white;
    font-size: 30px;
    z-index: 10;
}

.final-screen {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 220, 232, 0.98), rgba(255, 239, 245, 0.98));
    z-index: 25000;
}

.final-card {
    max-width: 650px;
    width: 100%;
    padding: 55px 35px;
    text-align: center;
    background: white;
    border-radius: 35px;
    box-shadow: 0 30px 100px rgba(130, 30, 60, 0.25);
    animation: finalAppear 1s ease;
}

.final-heart {
    font-size: 90px;
    animation: heartbeat 1.2s infinite;
}

.final-card h1 {
    font-size: 60px;
    color: #d5285d;
    margin: 15px 0;
}

.final-main {
    font-size: 23px !important;
    color: #9d244a;
    font-weight: bold;
}

.final-card p {
    font-size: 18px;
    line-height: 1.8;
    margin: 15px 0;
}

.final-message {
    margin-top: 30px;
    font-size: 22px;
    color: #d5285d;
    font-style: italic;
}

.close-final {
    margin-top: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffe1eb;
    font-size: 25px;
    transition: transform 0.3s ease;
}

.close-final:hover {
    transform: scale(1.15);
}

.floating-heart {
    position: fixed;
    bottom: -50px;
    z-index: 15000;
    pointer-events: none;
    animation: floatHeart linear forwards;
    filter: drop-shadow(0 5px 5px rgba(150, 20, 60, 0.2));
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes finalAppear {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {

    .password-card {
        padding: 40px 25px;
    }

    .password-card h1 {
        font-size: 32px;
    }

    .password-card h2 {
        font-size: 20px;
    }

    .start-card {
        padding: 40px 25px;
    }

    .start-card h1 {
        font-size: 32px;
    }

    .start-card h2 {
        font-size: 20px;
    }

    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 17px;
    }

    .message-card {
        padding: 35px 20px;
    }

    .message-card p {
        font-size: 20px;
    }

    .gallery-section h2 {
        font-size: 32px;
    }

    .love-box {
        padding: 40px 25px;
    }

    .love-box h2 {
        font-size: 28px;
    }

    .final-card {
        padding: 40px 20px;
    }

    .final-card h1 {
        font-size: 45px;
    }

    .final-heart {
        font-size: 70px;
    }
}