/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Pink Theme */
:root {
    --primary-pink: #ff69b4;
    --light-pink: #ffb6c1;
    --dark-pink: #ff1493;
    --pale-pink: #ffc0cb;
    --rose-pink: #ff91a4;
    --blush-pink: #ffcccb;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --dark-gray: #222222;
    --text-dark: #1a1a1a;
    --shadow: rgba(255, 105, 180, 0.3);
    --gradient: linear-gradient(135deg, var(--pale-pink) 0%, var(--light-pink) 50%, var(--primary-pink) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Password Modal Styles */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 182, 193, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 40px var(--shadow);
    max-width: 400px;
    width: 90%;
    border: 3px solid var(--light-pink);
}

.heart-animation {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: heartBeat 1.5s infinite;
}

.modal-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

#passwordInput {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-pink);
    border-radius: 15px;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

#submitPassword {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

#submitPassword:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow);
}

.error-message {
    color: var(--dark-pink);
    margin-top: 1rem;
    font-weight: 500;
}

/* Regret Modal Styles */
.regret-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.regret-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.regret-modal-content {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--dark-pink);
    z-index: 10000;
    animation: slideUp 0.4s ease;
}

.close-regret-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--dark-pink);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10001;
}

.close-regret-modal:hover {
    background: #c41e3a;
    transform: rotate(90deg);
}

.regret-message-container {
    padding: 1rem;
}

.regret-message-container h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--dark-pink);
    text-align: center;
    margin-bottom: 2rem;
}

.regret-message-text {
    line-height: 1.8;
}

.regret-message-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-dark);
    text-align: justify;
}

.regret-message-text .message-highlight,
.regret-message-text .message-quote,
.regret-message-text .message-reflection,
.regret-message-text .message-promise,
.regret-message-text .message-final {
    margin: 2rem 0;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation Styles */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--light-pink);
    color: var(--primary-pink);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-pink);
    transition: 0.3s;
    border-radius: 2px;
}

/* Startup Page Styles */
.startup-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn 1s ease;
}

.startup-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow);
    max-width: 500px;
    width: 90%;
    border: 3px solid var(--light-pink);
    position: relative;
    overflow: hidden;
}

.startup-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.startup-hearts {
    margin-bottom: 2rem;
}

.big-heart {
    font-size: 5rem;
    animation: heartPulse 2s infinite;
    filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.5));
}

.startup-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.2);
}

.startup-content > p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 500;
}

.startup-message {
    background: rgba(255, 105, 180, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    border: 2px solid var(--light-pink);
    position: relative;
}

.startup-message::before,
.startup-message::after {
    content: '💕';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
}

.startup-message::before {
    top: -10px;
    left: 20px;
}

.startup-message::after {
    bottom: -10px;
    right: 20px;
}

.startup-message p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-pink);
    margin: 0;
    font-weight: 500;
}

.section-choices {
    margin-top: 2rem;
}

.section-choices h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    text-align: center;
}

.choice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--light-pink);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.1);
}

.choice-btn:hover {
    background: var(--pale-pink);
    border-color: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow);
}

.choice-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.choice-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-pink);
    margin-bottom: 0.3rem;
}

.choice-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.3;
    font-weight: 400;
}

.enter-all-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    opacity: 0.8;
}

.enter-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.enter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow);
}

.enter-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-hearts {
    font-size: 1rem;
    animation: bounce 2s infinite;
}

.startup-floating-cats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-cat {
    position: absolute;
    opacity: 0.5;
    animation: floatUp 8s infinite linear;
}

.floating-cat img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--light-pink);
    box-shadow: 0 2px 6px rgba(255, 105, 180, 0.3);
}

.floating-cat:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-cat:nth-child(2) {
    left: 35%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.floating-cat:nth-child(3) {
    left: 55%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.floating-cat:nth-child(4) {
    left: 75%;
    animation-delay: 6s;
    animation-duration: 10s;
}

.floating-cat:nth-child(5) {
    left: 85%;
    animation-delay: 8s;
    animation-duration: 6s;
}

/* Main Content Styles */
#mainContent {
    padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    display: none;
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
}

.section.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.hearts-decoration {
    font-size: 2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Message Section Styles */
.message-choice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.choose-header {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    color: white;
    padding: 1rem 3rem;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.4);
    width: 100%;
    text-align: center;
}

.message-choice-btn {
    background: var(--light-pink);
    color: #000;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
    font-style: italic;
}

.message-choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.6);
    background: var(--primary-pink);
}

.message-choice-btn:active {
    transform: translateY(-1px);
}

.message-choice-btn.active {
    background: var(--primary-pink);
    color: white;
}

.message-tabs {
    display: none;
}

.message-tab {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--light-pink);
    color: var(--primary-pink);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    min-height: 44px;
}

.message-tab:hover {
    background: var(--pale-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.message-tab.active {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--primary-pink);
    box-shadow: 0 5px 15px var(--shadow);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: none;
}

.back-to-choices-btn {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
    display: inline-block;
}

.back-to-choices-btn:hover {
    background: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.4);
}

.back-to-choices-btn:active {
    transform: translateY(0);
}

.message-category {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.message-category.active {
    display: block;
}

.message-text {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    line-height: 1.8;
    border: 2px solid var(--light-pink);
}

.message-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 400;
}

.message-highlight {
    background: var(--blush-pink);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 5px solid var(--primary-pink);
}

.message-quote {
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 105, 180, 0.1);
    border-radius: 15px;
    margin: 2rem 0;
    position: relative;
}

.message-quote::before,
.message-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--light-pink);
    position: absolute;
    top: 0;
}

.message-quote::before {
    left: 1rem;
}

.message-quote::after {
    right: 1rem;
    bottom: 0;
    top: auto;
}

.message-reflection {
    background: var(--pale-pink);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    font-style: italic;
}

.message-promise {
    text-align: center;
    padding: 2rem;
    background: var(--gradient);
    color: var(--white);
    border-radius: 15px;
    margin: 2rem 0;
    font-size: 1.2rem;
}

.message-final {
    background: rgba(255, 105, 180, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--light-pink);
    margin-top: 2rem;
}

/* Memories Section Styles */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.memory-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--light-pink);
}

.memory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow);
}

.memory-item img,
.memory-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.memory-item .media-info {
    padding: 1rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 500;
}

/* Media Modal */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-media-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
}

.media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.media-container img,
.media-container video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2001;
}

.media-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.prev-media,
.next-media {
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.prev-media:hover,
.next-media:hover {
    background: var(--dark-pink);
}

/* Notes Section Styles */
.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.note-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--shadow);
    border: 2px solid var(--light-pink);
    transition: transform 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow);
}

.note-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
    text-align: center;
}

.note-card ul {
    list-style: none;
    padding: 0;
}

.note-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.note-card li::before {
    content: '💕';
    position: absolute;
    left: 0;
}

.note-card p {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 400;
}

/* Music Section Styles */
.music-player {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--light-pink);
}

.current-song {
    text-align: center;
    margin-bottom: 2rem;
}

.current-song h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.music-controls button {
    background: var(--gradient);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.music-controls button:hover {
    transform: scale(1.1);
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    background: var(--light-pink);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.progress {
    background: var(--primary-pink);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.playlist {
    border-top: 2px solid var(--light-pink);
    padding-top: 1.5rem;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 0.5rem;
}

.song-item:hover {
    background: var(--blush-pink);
}

.song-item.active {
    background: var(--pale-pink);
    border: 2px solid var(--primary-pink);
}

.song-info h4 {
    color: var(--primary-pink);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.song-info p {
    color: var(--text-dark);
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Floating Cats Animation */
.floating-cats {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-cats .cat {
    position: absolute;
    opacity: 0.4;
    animation: floatCats 12s infinite ease-in-out;
}

.floating-cats .cat img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--light-pink);
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.2);
    transition: transform 0.3s ease;
}

.floating-cats .cat:hover img {
    transform: scale(1.2);
    opacity: 0.8;
}

.floating-cats .cat:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.floating-cats .cat:nth-child(2) {
    left: 15%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.floating-cats .cat:nth-child(3) {
    left: 25%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.floating-cats .cat:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.floating-cats .cat:nth-child(5) {
    left: 55%;
    animation-delay: 8s;
    animation-duration: 14s;
}

.floating-cats .cat:nth-child(6) {
    left: 70%;
    animation-delay: 10s;
    animation-duration: 16s;
}

.floating-cats .cat:nth-child(7) {
    left: 80%;
    animation-delay: 12s;
    animation-duration: 19s;
}

.floating-cats .cat:nth-child(8) {
    left: 90%;
    animation-delay: 14s;
    animation-duration: 13s;
}

.floating-cats .cat:nth-child(9) {
    left: 95%;
    animation-delay: 16s;
    animation-duration: 17s;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartBeat {
    0%, 50%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    75% { transform: scale(0.9); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
        transform: translateY(0vh) rotate(180deg);
    }
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    75% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

@keyframes floatCats {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    5%, 95% {
        opacity: 0.4;
    }
    25% {
        transform: translateY(75vh) rotate(90deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.1);
        opacity: 0.5;
    }
    75% {
        transform: translateY(25vh) rotate(270deg) scale(0.9);
        opacity: 0.4;
    }
}

/* Enhanced Mobile Support */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Touch optimization */
* {
    -webkit-tap-highlight-color: rgba(255, 105, 180, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection for text content */
.message-text,
.note-card p,
.startup-message p {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Improve button touch targets */
.nav-btn,
.choice-btn,
.enter-btn,
.enter-all-btn,
.music-controls button,
.song-item {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Safe area support for devices with notches */
body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Better mobile viewport */
    body {
        font-size: 16px;
    }
    
    .nav-buttons {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 5px 15px var(--shadow);
        border-radius: 0 0 15px 15px;
    }

    .nav-buttons.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .container {
        padding: 0 1rem;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .hearts-decoration {
        font-size: 1.5rem;
    }

    .message-text {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .message-text p {
        font-size: 1rem;
        text-align: left;
    }
    
    .message-choice-container {
        padding: 2rem 1rem;
    }
    
    .message-choice-btn {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }

    .memories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .memory-item img,
    .memory-item video {
        height: 150px;
    }

    .notes-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .note-card {
        padding: 1.5rem;
    }

    .music-player {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .heart-animation {
        font-size: 3rem;
    }

    .modal-content h2 {
        font-size: 1.8rem;
    }

    .floating-cats .cat img {
        width: 35px;
        height: 35px;
    }
    
    .floating-cat img {
        width: 25px;
        height: 25px;
    }
    
    .choice-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .choice-btn {
        padding: 1.2rem 0.8rem;
    }
    
    .choice-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* Smaller phones */
    body {
        font-size: 14px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }

    .section-header h1 {
        font-size: 1.8rem;
    }

    .memories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .memory-item {
        margin-bottom: 0.5rem;
    }

    .memory-item img,
    .memory-item video {
        height: 200px;
        width: 100%;
    }

    .message-text {
        padding: 1.2rem;
    }
    
    .message-text p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .message-choice-btn {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
        min-height: 54px;
    }
    
    .back-to-choices-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .startup-content {
        padding: 2rem 1.5rem;
    }
    
    .startup-content h1 {
        font-size: 2rem;
    }

    .modal-media-content {
        max-width: 95%;
        max-height: 85%;
    }

    .media-nav {
        padding: 0 10px;
    }

    .prev-media,
    .next-media {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* PWA and Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-pink: #d1477a;
        --light-pink: #e699b8;
        --dark-pink: #b8325f;
        --shadow: rgba(0, 0, 0, 0.5);
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus {
    outline: 3px solid var(--primary-pink);
    outline-offset: 2px;
}

/* PWA Install Banner */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--primary-pink), var(--light-pink));
    color: white;
    padding: 12px 16px;
    z-index: 10001;
    animation: slideDown 0.3s ease;
}

.install-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 500;
}

.install-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.install-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Improved button sizes for touch */
    .message-choice-btn {
        padding: 1.5rem 1rem;
        font-size: 1.1rem;
        margin: 0.8rem 0.5rem;
        min-height: 60px;
        touch-action: manipulation;
    }
    
    .choice-btn {
        padding: 2rem 1.5rem;
        font-size: 1rem;
        margin: 0.8rem;
        min-height: 120px;
    }
    
    .nav-btn {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    /* Better modal sizing */
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: 95%;
    }
    
    .regret-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 95%;
        max-height: 90vh;
    }
    
    /* Improved text sizing */
    .section-header h1 {
        font-size: 2.2rem;
    }
    
    .message-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Better navigation */
    .nav-buttons {
        gap: 0.5rem;
    }
    
    /* Improved floating elements */
    .floating-cats .cat img {
        width: 40px;
        height: 40px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .message-choice-btn {
        padding: 1.2rem 0.8rem;
        font-size: 1rem;
        margin: 0.5rem 0.2rem;
        min-height: 55px;
    }
    
    .choice-btn {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
        margin: 0.5rem;
        min-height: 100px;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        padding: 1.5rem 1rem;
    }
    
    .regret-modal-content {
        padding: 1rem;
    }
    
    .message-text {
        font-size: 0.95rem;
    }
}

/* Mobile-specific optimizations */
.mobile-device .floating-cats .cat img {
    width: 35px;
    height: 35px;
}

.mobile-device .choice-btn {
    padding: 1.8rem 1.2rem;
}

.mobile-device .nav-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
}

/* Reduced animations for low-end devices */
.reduced-animations * {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
}

.reduced-animations .floating-cats .cat {
    animation: none;
    opacity: 0.2;
}

/* Touch feedback */
.mobile-device button:active,
.mobile-device .choice-btn:active,
.mobile-device .nav-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Improve scrolling on mobile */
body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Prevent zoom on input focus (mobile) */
input,
select,
textarea {
    font-size: 16px !important;
}

/* Better mobile memory grid */
@media (max-width: 768px) {
    .memories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .memory-item img,
    .memory-item video {
        height: 180px;
    }
}

/* Single column for very small screens */
@media (max-width: 400px) {
    .memories-grid {
        grid-template-columns: 1fr;
    }
    
    .memory-item img,
    .memory-item video {
        height: 250px;
    }
}

/* Landscape orientation optimizations */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .startup-content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 2rem 1.5rem;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .choice-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
    
    .choice-btn {
        padding: 1rem 0.8rem;
    }
    
    .choice-icon {
        font-size: 1.8rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .floating-cats .cat img,
    .floating-cat img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-gray: #e0e0e0;
        --light-gray: #2a2a2a;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .navigation,
    .floating-cats,
    .music-player,
    .media-modal,
    .install-banner,
    .pwa-install-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .section {
        display: block !important;
        page-break-after: always;
    }
}
