* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #E6F3FF, #B0E0E6);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    color: #4682B4;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(224, 243, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.password-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: bounceIn 1s forwards;
}

.password-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #B0E0E6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.password-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    margin-bottom: 20px;
    color: #4682B4;
}

.password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #B0E0E6;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.password-input:focus {
    border-color: #4682B4;
}

.submit-btn {
    background: #87CEEB;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #4682B4;
    transform: scale(1.05);
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E6F3FF, #B0E0E6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transition: opacity 0.8s ease;
}

.welcome-message {
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    color: #4682B4;
    text-align: center;
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    margin-top: 50px;
    box-sizing: border-box;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #5B9BD5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.tab.active {
    background: white;
    color: #4682B4;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.content-area {
    background: white;
    border-radius: 20px;
    padding: 30px;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

/* Love Letter Tab */
.letter {
    padding: 20px;
    background: #F0F8FF;
    border-radius: 15px;
    border: 2px dashed #ADD8E6;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.letter h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    color: #4682B4;
}



.letter p {
    color: #4682B4;
    margin-bottom: 10px;
}

/* Envelope Styling - Responsive Structure */
.envelope-wrapper {
    position: relative;
    width: min(280px, 90vw);
    height: min(210px, 67.5vw);
    margin: 40px auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4682B4;
    z-index: 0;
    max-width: calc(100% - 40px);
}

.envelope-lid {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-right: 140px solid transparent;
    border-bottom: 105px solid transparent;
    border-left: 140px solid transparent;
    transform-origin: top;
    transition: transform 0.25s linear;
}

/* Lid when closed */
.envelope-lid.one {
    border-top: 105px solid #5B9BD5;
    transform: rotateX(0deg);
    z-index: 3;
    transition-delay: 0.75s;
}

/* Lid when opened */
.envelope-lid.two {
    border-top: 105px solid #4682B4;
    transform: rotateX(90deg);
    z-index: 1;
    transition-delay: 0.5s;
}

.envelope-body {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-top: 105px solid transparent;
    border-right: 140px solid #B0E0E6;
    border-bottom: 105px solid #B0E0E6;
    border-left: 140px solid #ADD8E6;
    z-index: 3;
}

.envelope-seal {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    z-index: 4;
    opacity: 1;
    transition: opacity 0.5s ease 0.8s;
}

.envelope-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.envelope-cinomoroll3 {
    position: absolute;
    bottom: 40px;
    left: 55px;
    width: 40px;
    height: 40px;
    z-index: 3;
}

.envelope-cinomoroll3 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.envelope-cinomoroll4 {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    z-index: 3;
}

.envelope-cinomoroll4 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.envelope-cinomoroll4 {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    z-index: 3;
}

.envelope-cinomoroll4 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.envelope-cinomoroll5 {
    position: absolute;
    top: 50px;
    right: 25px;
    width: 35px;
    height: 35px;
    z-index: 3;
}

.envelope-cinomoroll5 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.envelope-stamp1 {
    position: absolute;
    bottom: 10px;
    right: 40px;
    width: 45px;
    height: 45px;
    z-index: 3;
}

.envelope-stamp1 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.envelope-stamp2 {
    position: absolute;
    bottom: 10px;
    right: 5px;
    width: 45px;
    height: 45px;
    z-index: 3;
}

.envelope-stamp2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.envelope-text {
    position: absolute;
    bottom: 10px;
    left: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 14px;
    color: #2E5090;
    font-weight: 600;
    z-index: 3;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.envelope-wrapper.opened .envelope-seal {
    opacity: 0;
    transition: opacity 0.5s ease 0s;
}

.paper-letter {
    position: absolute;
    top: 0;
    width: 80%;
    height: 80%;
    background-color: white;
    border-radius: 8px;
    z-index: 2;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 2px solid #E0E0E0;
}

.envelope-wrapper.opened .envelope-lid.one {
    transform: rotateX(90deg);
    transition-delay: 0s;
}

.envelope-wrapper.opened .envelope-lid.two {
    transform: rotateX(180deg);
    transition-delay: 0.25s;
}

.envelope-wrapper.opened .paper-letter {
    transform: translateY(-40px);
    transition-delay: 0.5s;
}

.paper-content {
    font-size: 14px;
    color: #4682B4;
    line-height: 1.4;
    font-family: 'Dancing Script', cursive;
    text-align: left;
    width: 100%;
}

/* Love Letter Modal */
.love-letter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.love-letter-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.3), rgba(176, 224, 230, 0.4));
    animation: fadeInOverlay 0.4s ease;
}

@keyframes fadeInOverlay {
    from { background: transparent; }
    to { background: linear-gradient(135deg, rgba(70, 130, 180, 0.3), rgba(176, 224, 230, 0.4)); }
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #FFFFFF, #F8FBFF);
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(70, 130, 180, 0.3), 0 0 0 1px rgba(176, 224, 230, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(176, 224, 230, 0.4);
}

.love-letter-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #E6F3FF, #B0E0E6, #87CEEB);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.4)"/><circle cx="60" cy="70" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="30" cy="80" r="2.5" fill="rgba(255,255,255,0.3)"/></svg>') repeat;
    animation: sparkle 4s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-2px); }
}

.modal-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    color: #2E5090;
    margin: 0;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}

.close-modal {
    background: rgba(255,255,255,0.9);
    border: 2px solid #87CEEB;
    font-size: 24px;
    color: #4682B4;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.close-modal:hover {
    background: #FFFFFF;
    border-color: #4682B4;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
}

.modal-body {
    padding: 35px;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #87CEEB #F0F8FF;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #F0F8FF;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #87CEEB;
    border-radius: 4px;
}

.letter-paper {
    background: linear-gradient(135deg, #FEFEFE, #F8FBFF);
    padding: 35px;
    border-radius: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 19px;
    line-height: 1.9;
    color: #2E5090;
    border: 1px solid rgba(176, 224, 230, 0.4);
    position: relative;
    box-shadow: inset 0 1px 3px rgba(135, 206, 235, 0.1), 0 3px 10px rgba(70, 130, 180, 0.1);
}

.letter-paper p {
    margin-bottom: 18px;
    text-indent: 20px;
    position: relative;
}

.salutation {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
    text-indent: 0;
    color: #4682B4;
}

.signature {
    text-align: right;
    margin-top: 35px;
    font-size: 22px;
    font-weight: 600;
    text-indent: 0;
    color: #4682B4;
    position: relative;
}

.signature::before {
    content: '✨';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
        margin-top: 20px;
    }
    
    .content-area {
        padding: 20px;
        border-radius: 15px;
    }
    
    .welcome-message {
        font-size: 28px;
        padding: 0 15px;
    }
    
    .password-content {
        padding: 20px;
        width: 95%;
    }
    
    .password-content h2 {
        font-size: 22px;
    }
    
    .password-input {
        width: 100%;
        font-size: 16px;
    }
    
    .tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .tab {
        width: 100%;
        justify-content: center;
        padding: 12px 15px;
        font-size: 14px;
        margin: 0;
    }
    
    .letter {
        padding: 15px;
        border-radius: 12px;
    }
    
    .letter h3 {
        font-size: 22px;
    }
    
    .envelope-wrapper {
        width: min(240px, 85vw);
        height: min(180px, 60.75vw);
        margin: 20px auto;
        max-width: calc(100% - 30px);
    }
    
    /* Scale envelope borders for mobile */
    .envelope-lid {
        border-right: 120px solid transparent;
        border-bottom: 90px solid transparent;
        border-left: 120px solid transparent;
    }
    
    .envelope-lid.one {
        border-top: 90px solid #5B9BD5;
    }
    
    .envelope-lid.two {
        border-top: 90px solid #4682B4;
    }
    
    .envelope-body {
        border-top: 90px solid transparent;
        border-right: 120px solid #B0E0E6;
        border-bottom: 90px solid #B0E0E6;
        border-left: 120px solid #ADD8E6;
    }
    
    .letter-paper {
        padding: 20px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .salutation {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .signature {
        font-size: 16px;
    }
    
    .song {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .song-info h4 {
        font-size: 16px;
    }
    
    .song-info p {
        font-size: 12px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item {
        width: 100%;
        height: 150px;
    }
    
    .note {
        padding: 12px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Mobile Large (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 18px;
        margin-top: 30px;
    }
    
    .content-area {
        padding: 25px;
        border-radius: 18px;
    }
    
    .welcome-message {
        font-size: 36px;
    }
    
    .password-content {
        padding: 25px;
        width: 90%;
    }
    
    .tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .tab {
        flex: 1;
        min-width: 120px;
        font-size: 15px;
    }
    
    .letter {
        padding: 18px;
    }
    
    .letter h3 {
        font-size: 26px;
    }
    
    .envelope-wrapper {
        width: 260px;
        height: 195px;
    }
    
    /* Scale envelope borders for medium mobile */
    .envelope-lid {
        border-right: 130px solid transparent;
        border-bottom: 98px solid transparent;
        border-left: 130px solid transparent;
    }
    
    .envelope-lid.one {
        border-top: 98px solid #5B9BD5;
    }
    
    .envelope-lid.two {
        border-top: 98px solid #4682B4;
    }
    
    .envelope-body {
        border-top: 98px solid transparent;
        border-right: 130px solid #B0E0E6;
        border-bottom: 98px solid #B0E0E6;
        border-left: 130px solid #ADD8E6;
    }
    
    .letter-paper {
        padding: 25px;
        font-size: 17px;
    }
    
    .salutation {
        font-size: 20px;
    }
    
    .song {
        flex-direction: row;
        text-align: left;
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .modal-content {
        width: 85%;
        margin: 20px;
    }
}

/* Tablet Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 750px;
        padding: 20px;
    }
    
    .welcome-message {
        font-size: 42px;
    }
    
    .tabs {
        gap: 12px;
    }
    
    .tab {
        padding: 14px 22px;
        font-size: 16px;
    }
    
    .content-area {
        padding: 35px;
    }
    
    .letter-paper {
        padding: 30px;
        font-size: 18px;
    }
    
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        height: 190px;
    }
    
    .song {
        padding: 18px;
    }
    
    .modal-content {
        width: 75%;
        max-width: 600px;
    }
}

/* Desktop Small (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 850px;
    }
    
    .welcome-message {
        font-size: 46px;
    }
    
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .modal-content {
        width: 65%;
        max-width: 700px;
    }
}

/* Desktop Large (1201px+) */
@media (min-width: 1201px) {
    .container {
        max-width: 1000px;
    }
    
    .welcome-message {
        font-size: 52px;
    }
    
    .content-area {
        padding: 40px;
    }
    
    .gallery {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .letter-paper {
        padding: 40px;
        font-size: 20px;
    }
    
    .modal-content {
        width: 55%;
        max-width: 800px;
    }
}

/* Landscape Orientation Fixes */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .welcome-message {
        font-size: 32px;
    }
    
    .password-content {
        padding: 20px;
    }
    
    .container {
        margin-top: 20px;
    }
}

/* Music Tab */
.song {
    background: #E8F4FD;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.song:hover {
    background: #D6EFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.2);
}

.song.playing {
    background: #B0E0E6;
    border: 2px solid #4682B4;
}

.song-icon {
    font-size: 24px;
    color: #5B9BD5;
}

.song-info {
    flex: 1;
}

.song-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.song-info p {
    color: #888;
    font-size: 14px;
}

.play-button {
    font-size: 20px;
    color: #4682B4;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    min-width: 30px;
    text-align: center;
}

.play-button:hover {
    background: rgba(70, 130, 180, 0.1);
    transform: scale(1.1);
}

.song.playing .play-button {
    color: #2E5090;
    background: rgba(70, 130, 180, 0.15);
}

.audio-controls {
    margin-top: 10px;
    width: 100%;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4682B4, #87CEEB);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-bar:hover .progress-fill {
    background: linear-gradient(90deg, #2E5090, #4682B4);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    font-family: 'Montserrat', sans-serif;
}

/* Notes Tab */
.note {
    background: #E1F0FF;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #87CEEB;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.dropdown-trigger {
    background: #E1F0FF;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #87CEEB;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.dropdown-trigger:hover {
    background: #B0E0E6;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #4682B4;
    font-weight: bold;
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown.open .dropdown-content {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #87CEEB #F0F8FF;
}

.dropdown.open .dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown.open .dropdown-content::-webkit-scrollbar-track {
    background: #F0F8FF;
    border-radius: 4px;
}

.dropdown.open .dropdown-content::-webkit-scrollbar-thumb {
    background: #87CEEB;
    border-radius: 4px;
}

.dropdown.open .dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #4682B4;
}

.dropdown-item {
    background: #F0F8FF;
    padding: 12px 15px;
    border-left: 4px solid #ADD8E6;
    margin-top: 5px;
}

.dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
}

.dropdown-item p {
    margin: 0;
    color: #4682B4;
}

/* Gallery Tab */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    justify-items: center;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    width: 200px;
    height: 200px;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(176, 224, 230, 0.3);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 25px rgba(70, 130, 180, 0.3);
    border-color: #87CEEB;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.image-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 90vw;
    max-height: 90vh;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2001;
}

.image-modal.active .image-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #87CEEB;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #4682B4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.image-modal-close:hover {
    background: #FFFFFF;
    border-color: #4682B4;
    transform: scale(1.1);
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid #B0E0E6;
}

.image-modal-caption {
    text-align: center;
    padding: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(70, 130, 180, 0.8);
    border-radius: 0 0 15px 15px;
    margin-top: -3px;
}

/* Decorative Elements */
.teddy-bear,
.hangyodon,
.pompompurin,
.usahana,
.cinomoroll2 {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.heart {
    color: #87CEEB;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

.teddy-bear {
    width: 40px;
    height: 40px;
    animation: float 8s ease-in-out infinite;
}

.teddy-bear img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hangyodon {
    width: 35px;
    height: 35px;
    animation: float 10s ease-in-out infinite;
}

.hangyodon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pompompurin {
    width: 38px;
    height: 38px;
    animation: float 12s ease-in-out infinite;
}

.pompompurin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.usahana {
    width: 36px;
    height: 36px;
    animation: float 9s ease-in-out infinite;
}

.usahana img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cinomoroll2 {
    width: 42px;
    height: 42px;
    animation: float 11s ease-in-out infinite;
}

.cinomoroll2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Enhanced Touch Interactions for Mobile */
@media (hover: none) and (pointer: coarse) {
    .tab:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.7);
    }
    
    .tab:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:active {
        transform: scale(0.95);
    }
    
    .song:hover {
        transform: none;
        background: #E8F4FD;
    }
    
    .song:active {
        background: #D6EFFF;
    }
    
    .letter:hover {
        transform: none;
    }
    
    .letter:active {
        transform: scale(0.98);
    }
}