* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FF69B4 0%, #FF69B4 50%, #FF1493 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    width: 100%;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

.message-section {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    padding-top: max(40px, calc(40px + env(safe-area-inset-top)));
    padding-bottom: max(40px, calc(40px + env(safe-area-inset-bottom)));
    padding-left: max(20px, calc(20px + env(safe-area-inset-left)));
    padding-right: max(20px, calc(20px + env(safe-area-inset-right)));
    background: linear-gradient(180deg, rgba(255, 182, 193, 0.95) 0%, rgba(255, 105, 180, 0.9) 100%);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 20, 147, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.corner-photo {
    position: fixed;
    width: 150px;
    height: 150px;
    z-index: 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    transition: opacity 0.3s ease, visibility 0.3s;
}

.corner-photo.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.corner-photo:hover {
    transform: scale(1.05);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.corner-photo-left {
    top: max(30px, calc(30px + env(safe-area-inset-top)));
    left: max(30px, calc(30px + env(safe-area-inset-left)));
}

.corner-photo-right {
    top: max(30px, calc(30px + env(safe-area-inset-top)));
    right: max(30px, calc(30px + env(safe-area-inset-right)));
}

.corner-photo-center {
    top: max(30px, calc(30px + env(safe-area-inset-top)));
    left: 50%;
    transform: translateX(-50%);
}

.corner-photo-center:hover {
    transform: translateX(-50%) scale(1.05);
    /* Prevent jumping */
}

.corner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.corner-photo img[src="1.jpg"],
.corner-photo img[src*="1.jpg"] {
    object-position: center top;
}

.corner-photo:hover .corner-image {
    transform: scale(1.1);
}

.message-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 200px;
    padding-top: 20px;
}

.message-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow:
        0 20px 60px rgba(255, 20, 147, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.message-content:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(255, 20, 147, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.custom-text {
    font-size: 24px;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
}

.custom-text::before {
    content: '<3';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    font-weight: 300;
    color: rgba(186, 85, 211, 0.15);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.question-section {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    padding-top: max(40px, calc(40px + env(safe-area-inset-top)));
    padding-bottom: max(40px, calc(40px + env(safe-area-inset-bottom)));
    padding-left: max(20px, calc(20px + env(safe-area-inset-left)));
    padding-right: max(20px, calc(20px + env(safe-area-inset-right)));
    background: linear-gradient(180deg, rgba(255, 105, 180, 0.9) 0%, rgba(255, 20, 147, 0.95) 100%);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.question-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.question-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.question-text {
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 60px;
    letter-spacing: 1px;
    line-height: 1.3;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buttons-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.answer-btn {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 20px 60px;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.3s ease;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 0 0 rgba(255, 255, 255, 0.3);
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 150px;
    min-height: 44px;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.answer-btn:hover::before {
    width: 300px;
    height: 300px;
}

.answer-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
}

.answer-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.answer-btn .btn-text {
    position: relative;
    z-index: 1;
}

#yes-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 15px 40px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.6);
}

#no-btn:hover {
    background: rgba(255, 182, 193, 0.5);
}

.response-message {
    margin-top: 30px;
    padding: 20px;
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 30px;
}

.response-message.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .question-text {
        font-size: 36px;
        margin-bottom: 40px;
        line-height: 1.2;
    }

    .answer-btn {
        padding: 18px 50px;
        font-size: 28px;
        min-width: 120px;
    }

    .custom-text {
        font-size: 20px;
        line-height: 1.6;
    }

    .custom-text::before {
        font-size: 150px;
    }

    .message-content {
        padding: 40px 30px;
    }

    .message-container {
        margin-top: 160px;
    }

    .message-section {
        padding: 30px 15px;
        padding-top: max(30px, calc(30px + env(safe-area-inset-top)));
        padding-left: max(15px, calc(15px + env(safe-area-inset-left)));
        padding-right: max(15px, calc(15px + env(safe-area-inset-right)));
    }

    .question-section {
        padding: 30px 15px;
        padding-top: max(30px, calc(30px + env(safe-area-inset-top)));
        padding-left: max(15px, calc(15px + env(safe-area-inset-left)));
        padding-right: max(15px, calc(15px + env(safe-area-inset-right)));
    }

    .buttons-container {
        gap: 20px;
    }

    .corner-photo {
        width: 120px;
        height: 120px;
    }

    .corner-photo-left {
        top: max(20px, calc(20px + env(safe-area-inset-top)));
        left: max(20px, calc(20px + env(safe-area-inset-left)));
    }

    .corner-photo-right {
        top: max(20px, calc(20px + env(safe-area-inset-top)));
        right: max(20px, calc(20px + env(safe-area-inset-right)));
    }

    .scroll-arrow-btn {
        bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
    }
}

@media (max-width: 480px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    .question-text {
        font-size: 28px;
        margin-bottom: 30px;
        line-height: 1.2;
        padding: 0 10px;
    }

    .answer-btn {
        padding: 18px 45px;
        font-size: 26px;
        min-width: 110px;
        min-height: 56px;
    }

    .custom-text {
        font-size: 18px;
        line-height: 1.7;
        padding: 0 5px;
    }

    .custom-text::before {
        font-size: 120px;
    }

    .message-content {
        padding: 35px 20px;
        border-radius: 25px;
    }

    .message-container {
        margin-top: 120px;
    }

    .message-section {
        padding: 25px 15px;
        padding-top: max(25px, calc(25px + env(safe-area-inset-top)));
        padding-bottom: max(25px, calc(25px + env(safe-area-inset-bottom)));
        padding-left: max(15px, calc(15px + env(safe-area-inset-left)));
        padding-right: max(15px, calc(15px + env(safe-area-inset-right)));
    }

    .question-section {
        padding: 25px 15px;
        padding-top: max(25px, calc(25px + env(safe-area-inset-top)));
        padding-bottom: max(25px, calc(25px + env(safe-area-inset-bottom)));
        padding-left: max(15px, calc(15px + env(safe-area-inset-left)));
        padding-right: max(15px, calc(15px + env(safe-area-inset-right)));
    }

    .corner-photo {
        width: 90px;
        height: 90px;
        border-radius: 15px;
    }

    .corner-photo-left {
        top: max(15px, calc(15px + env(safe-area-inset-top)));
        left: max(15px, calc(15px + env(safe-area-inset-left)));
    }

    .corner-photo-center {
        top: max(15px, calc(15px + env(safe-area-inset-top)));
        width: 100px;
        height: 96px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background: rgba(255, 255, 255, 0.1);
        left: 50%;
        position: fixed;
        z-index: 10;
        transform: translateX(-50%);
    }

    .corner-photo-center:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .corner-photo-right {
        top: max(15px, calc(15px + env(safe-area-inset-top)));
        right: max(15px, calc(15px + env(safe-area-inset-right)));
    }

    .scroll-arrow-btn {
        width: 56px;
        margin-bottom: -100px;
        height: 56px;
        bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
    }

    .scroll-arrow-btn svg {
        width: 28px;
        height: 28px;
    }

    .response-message {
        font-size: 18px;
        padding: 15px;
    }
}

@media screen and (max-width: 390px) and (max-height: 900px) {
    .question-text {
        font-size: 26px;
    }

    .answer-btn {
        padding: 16px 40px;
        font-size: 24px;
        min-width: 100px;
    }

    .custom-text {
        font-size: 17px;
    }

    .custom-text::before {
        font-size: 100px;
    }

    .corner-photo {
        width: 80px;
        height: 80px;
    }

    .message-container {
        margin-top: 110px;
    }

    .corner-photo-left {
        top: max(15px, calc(15px + env(safe-area-inset-top)));
        left: max(10px, calc(10px + env(safe-area-inset-left)));
    }

    .corner-photo-right {
        top: max(15px, calc(15px + env(safe-area-inset-top)));
        right: max(10px, calc(10px + env(safe-area-inset-right)));
    }

    .scroll-arrow-btn {
        bottom: max(70px, calc(70px + env(safe-area-inset-bottom)));
    }
}

.scroll-arrow-btn {
    position: absolute;
    bottom: max(100px, calc(100px + env(safe-area-inset-bottom)));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: bounce 2s infinite;
    min-width: 44px;
    min-height: 44px;
}

.scroll-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.scroll-arrow-btn:active {
    transform: translateX(-50%) translateY(-2px) scale(1.05);
}

.scroll-arrow-btn svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.scroll-arrow-btn:hover svg {
    transform: translateY(3px);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Gallery Section Styles */
.gallery-section {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    position: relative;
    overflow: hidden;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 80vh;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: filter 0.5s ease;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-wrapper:hover .gallery-img {
    transform: scale(1.02);
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.click-text {
    font-size: 3rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 105, 180, 0.8);
    padding: 20px 40px;
    border-radius: 50px;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.gallery-wrapper.revealed .blur-overlay {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

/* Confetti keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .gallery-wrapper {
        height: 60vh;
    }

    .click-text {
        font-size: 2rem;
        padding: 15px 30px;
        white-space: nowrap;
    }
}

/* Lightbox Styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #FF69B4;
}

.main-footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* Feedback Form Styles */
.feedback-container {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.feedback-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-textarea {
    width: 100%;
    height: 100px;
    border-radius: 15px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    color: #FF1493;
    resize: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #FF1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

.feedback-btn {
    background: white;
    color: #FF1493;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#feedback-response {
    margin-top: 15px;
    font-weight: bold;
    min-height: 24px;
}