/* ===== FONT & STYLE ASLI ===== */
@font-face { font-family: 'Coolvetica'; src: url('/font-aidila-birthday/coolvetica rg.otf') format('opentype'); }
@font-face { font-family: 'Struggle'; src: url('/font-aidila-birthday/struggle-regular.otf') format('truetype'); }
@font-face { font-family: 'Oi'; src: url('/font-aidila-birthday/Oi-Regular.ttf') format('truetype'); }
@font-face { font-family: 'VastMX'; src: url('/font-aidila-birthday/VAST_MX.ttf') format('truetype'); }
@font-face { font-family: 'Cinnabar'; src: url('/font-aidila-birthday/DK Cinnabar Brush.ttf') format('truetype'); }
@font-face { font-family: 'HeyComic'; src: url('/font-aidila-birthday/Hey Comic.ttf') format('truetype'); }
@font-face { font-family: 'CamelliaShine'; src: url('/font-aidila-birthday/Camellia Shine.otf') format('opentype'); }
@font-face { font-family: 'NexaHeavy'; src: url('/font-aidila-birthday/Nexa-Heavy.ttf') format('truetype'); }
@font-face { font-family: 'DrunkenHour'; src: url('/font-aidila-birthday/drunkenhourDEMO.otf') format('truetype'); }

:root {
    --pk-dk: #ff7597;
    --pk-md: #ff9ebe;
    --pk-lt: #ffe3ec;
    --pk-bg: #fff0f5;
}

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

html { background: black; }

body {
    color: #555;
    overflow-x: hidden;
    text-align: center;
    padding-bottom: 20px;
    font-family: 'Coolvetica';
    position: relative;
}

body.bg-show .bg-fixed { opacity: 0.50; }

body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.2); z-index: -1; pointer-events: none;
}

.bg-fixed {
    position: fixed; inset: 0; width: 100vw; height: 100vh;
    background-image: url('background.jpg'); background-position: center;
    background-repeat: no-repeat; background-size: cover; z-index: -2;
    opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}

#black-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: black; z-index: 9998; transition: opacity 0.6s ease;
}
#black-overlay.fade-out { opacity: 0; pointer-events: none; }

#particleCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

h1 {
    font-weight: normal;
    margin: 0;
    padding: 0;
}

.teks-atas {
    display: block;
    font-family: 'Oi'; 
    font-size: clamp(1.5rem, 4vw, 1rem); 
    color: white; 
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 158, 190, 0.8); 
}

.teks-bawah {
    display: block;
    font-family: 'Struggle'; 
    font-size: clamp(1.5rem, 5vw, 2.5rem); 
    color: #ff7597; 
    margin-top: -5px; 
    text-shadow: 0 0 15px rgba(255, 158, 190, 0.8); 
}

.inner-box h3, #tentang h3 {
    font-family: 'Cinnabar'; color: #ff7597 !important;
    border-bottom: 2px dashed #ff9ebe !important;
    display: inline-block; padding-bottom: 8px; margin-bottom: 15px;
    font-size: clamp(0.9rem, 3vw, 1.2rem); font-weight: normal;
}

.inner-box p {
    font-family: 'Coolvetica'; text-align: justify !important;
    line-height: 1.6; font-weight: normal; font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.birthdate-box {
    text-align: center; padding: 25px 15px; background: rgba(255, 255, 255, 0.80);
    border-radius: 25px; box-shadow: 0 10px 25px rgba(255, 117, 151, 0.6);
    border: 1px solid rgba(255, 117, 151, 0.3);
}

.birthdate-box .date {
    font-family: 'VastMX'; font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #ff7597; text-align: center; letter-spacing: 2px; margin: 0; display: block;
}

#typing-text {
    font-family: 'Coolvetica'; text-align: justify !important;
    line-height: 1.8; white-space: pre-wrap; font-size: clamp(0.9rem, 2.5vw, 1rem);
}

#typing-letter h3 {
    font-family: 'Cinnabar'; font-size: clamp(1rem, 3vw, 1.2rem); font-weight: normal;
    color: var(--pk-dk); border-bottom: 2px dashed var(--pk-lt);
    display: inline-block; padding-bottom: 8px;
}

.chat-header { font-family: 'HeyComic'; font-size: 1rem; letter-spacing: 1px; }

.chat-bubble {
    font-family: 'Coolvetica'; font-size: 0.85rem !important;
    padding: 8px 12px !important; max-width: 85% !important;
    word-wrap: break-word; text-align: left !important; font-weight: normal;
}
.chat-left { background: #f0f0f0; color: #333; align-self: flex-start; border-radius: 18px 18px 18px 5px; }
.chat-right { background: #ff7597; color: white; align-self: flex-end; border-radius: 18px 18px 5px 18px; }

.tab-btn { font-family: 'CamelliaShine'; font-size: clamp(0.8rem, 2vw, 1rem); letter-spacing: 1px; }
.chat-option-btn { font-family: 'Coolvetica'; }

#dump p { font-family: 'Coolvetica'; font-size: 0.85rem; color: #ff7597; margin-bottom: 15px; }

.spotify-box h4 { font-family: 'Coolvetica'; color: var(--pk-dk); margin-bottom: 12px; font-size: 0.65rem; }

#wishlist-section h3 { font-family: 'DrunkenHour'; font-size: 1.2rem; color: black; margin-bottom: 15px; }
#wishlist-section .btn-wishlist {
    font-family: 'Cinnabar'; background: #ff7597; color: white; border: none;
    padding: 14px 25px; border-radius: 30px; font-size: 1rem; font-weight: normal;
    cursor: pointer; width: 100%; transition: 0.3s; display: flex;
    justify-content: center; align-items: center; gap: 8px; outline: none; margin-bottom: 10px;
}
#wishlist-section .btn-wishlist:hover { background: #128C7E; transform: translateY(-2px); }

textarea, .pin-error { font-family: 'Coolvetica'; }

/* ===== TIRAI ===== */
#curtain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; cursor: pointer; overflow: hidden; display: none;
    background: black; transition: opacity 0.5s ease;
}
#curtain-overlay.show { opacity: 1; }
.curtain-video {
    width: 100%; height: 100%; object-fit: cover; pointer-events: none;
    position: absolute; top: 0; left: 0;
}
#curtain-video-open { z-index: 1; }
#curtain-video-close { z-index: 2; opacity: 0; transition: opacity 0.3s ease; }
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
    display: none !important; opacity: 0 !important; pointer-events: none !important;
}

#main-content { opacity: 0; transition: opacity 1s ease; }
#main-content.show-content { opacity: 1; }

header { padding: 40px 20px 10px 20px; }

.nav-tabs {
    display: flex; justify-content: center; gap: 10px;
    margin: 25px auto; max-width: 500px; width: 90%;
}

.tab-btn {
    background: white; border: 2px solid var(--pk-md); color: var(--pk-dk);
    padding: 10px 15px; border-radius: 30px; cursor: pointer;
    font-weight: bold; flex: 1; transition: 0.3s; outline: none;
}
.tab-btn.active, .tab-btn:hover { background: var(--pk-dk); color: white; border-color: var(--pk-dk); }

.tab-content {
    background: rgba(255, 255, 255, 0.9); margin: 0 auto 30px auto;
    padding: 25px; border-radius: 25px; max-width: 500px; width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.inner-box {
    background: rgba(255, 255, 255, 0.85); padding: 25px;
    border-radius: 25px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); margin-bottom: 20px;
}

#typing-letter {
    background: #fffdf9; border: 2px solid var(--pk-md);
    padding: 30px 25px; border-radius: 20px; text-align: left;
    line-height: 1.8; min-height: 200px; width: 100%;
}
#typing-letter h3 { color: var(--pk-dk); margin-bottom: 20px; }
#typing-letter.typing #typing-text::after {
    content: '|'; animation: blink 0.7s infinite; color: var(--pk-dk); font-weight: bold;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.gif-row, .pompompurin-row {
    display: flex; justify-content: center; gap: 12px; margin-top: 15px; flex-wrap: wrap;
}
.gif-row img, .pompompurin-row img {
    width: 75px; border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.visualizer {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 5px; height: 55px; margin: 0 auto 15px auto; max-width: 300px;
}
.bar { width: 12px; background: var(--pk-md); border-radius: 5px 5px 0 0; animation: bounce 0.6s infinite alternate; }
.bar:nth-child(1) { height: 25px; animation-delay: 0s; }
.bar:nth-child(2) { height: 45px; animation-delay: 0.1s; }
.bar:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 50px; animation-delay: 0.3s; }
.bar:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.bar:nth-child(6) { height: 40px; animation-delay: 0.5s; }
.bar:nth-child(7) { height: 18px; animation-delay: 0.6s; }
.bar:nth-child(8) { height: 48px; animation-delay: 0.7s; }
@keyframes bounce { 0% { height: 10px; } 100% { height: 55px; } }

.spotify-box {
    background: rgba(255, 255, 255, 0.80); padding: 12px;
    border-radius: 20px; box-shadow: 0 8px 16px rgba(255, 117, 151, 0.1);
    border: 2px solid var(--pk-lt); width: 100%; text-align: center;
}
.playlist-bg h4 {
    font-family: 'Coolvetica'; font-size: 0.75rem; color: #ff7597;
    font-weight: bold; letter-spacing: 1px; margin: 0 0 10px 0; text-align: center;
}
.spotify-track { margin-bottom: 10px; border-radius: 12px; overflow: hidden; line-height: 0; }
.playlist-container { margin-top: 15px; padding-top: 10px; border-top: 2px dashed var(--pk-lt); }
.playlist-bg {
    background: linear-gradient(135deg, rgba(255,117,151,0.15), rgba(255,158,190,0.1));
    border-radius: 20px; padding: 15px 12px; margin-top: 8px;
    border: 1px solid rgba(255,117,151,0.3); transition: all 0.3s ease;
}
.playlist-bg:hover {
    background: linear-gradient(135deg, rgba(255,117,151,0.25), rgba(255,158,190,0.15));
    border-color: rgba(255,117,151,0.6);
}

#chat-popup {
    position: fixed; bottom: 80px; right: 5%; width: 90%; max-width: 350px;
    max-height: 500px; background: white; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 117, 151, 0.3); z-index: 9999;
    display: none; flex-direction: column; overflow: hidden;
}
#chat-popup.show { display: flex; animation: slideUpChat 0.3s ease-out; }
@keyframes slideUpChat { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.chat-header { background: #ff7597; color: white; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; }
.chat-header span { cursor: pointer; font-size: 1.2rem; }
.chat-body { padding: 10px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.chat-typing { color: #aaa; font-size: 0.65rem; font-style: italic; padding: 5px 12px; display: none; }
.chat-typing.show { display: block; }
.chat-options { display: none; gap: 8px; padding: 10px; flex-wrap: wrap; border-top: 1px solid #ffe3ec; background: #fff; }
.chat-options.show { display: flex; }
.chat-option-btn {
    background: white; color: #ff7597; border: 2px solid #ff7597;
    padding: 8px 12px; border-radius: 20px; font-size: 0.75rem;
    cursor: pointer; white-space: nowrap; flex: 1; text-align: center; font-weight: bold;
}

#chat-btn {
    position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px;
    background: #ff7597; color: white; border: none; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer; z-index: 9998;
    box-shadow: 0 5px 20px rgba(255, 117, 151, 0.4); display: flex;
    align-items: center; justify-content: center; animation: bounceBtn 2s infinite;
}
#chat-btn:hover { transform: scale(1.1); }
#chat-btn .badge {
    position: absolute; top: -5px; right: -5px; width: 18px; height: 18px;
    background: #ff3d6e; border-radius: 50%; font-size: 0.6rem;
    display: flex; align-items: center; justify-content: center;
}
@keyframes bounceBtn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.flying-love {
    position: fixed; pointer-events: none; z-index: 10000; font-size: 2rem;
    animation: flyUp 1.5s ease-out forwards;
}
@keyframes flyUp {
    0% { opacity: 1; transform: translateY(0) scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: translateY(-80px) scale(1.2) rotate(15deg); }
    100% { opacity: 0; transform: translateY(-150px) scale(1.5) rotate(-15deg); }
}

.heart-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, 1fr);
    gap: 4px; width: 100%; max-width: 380px; aspect-ratio: 7/8; margin: 0 auto;
}
.heart-cell {
    width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition: transform 0.3s;
    cursor: pointer; aspect-ratio: 1 / 1;
}
.heart-cell.hc-24, .heart-cell.hc-25, .heart-cell.hc-26 { object-fit: cover; object-position: center; aspect-ratio: 1 / 1; }
.heart-cell.hc-24 { object-position: center 35%; }
.heart-cell.hc-25 { object-position: center 30%; }
.heart-cell.hc-26 { object-position: center 40%; }
.heart-cell:hover { transform: scale(1.25); z-index: 10; box-shadow: 0 5px 15px rgba(255, 117, 151, 0.5); }

.hc-1 { grid-column: 2; grid-row: 1; } .hc-2 { grid-column: 3; grid-row: 1; } .hc-3 { grid-column: 5; grid-row: 1; } .hc-4 { grid-column: 6; grid-row: 1; }
.hc-5 { grid-column: 1; grid-row: 2; } .hc-6 { grid-column: 2; grid-row: 2; } .hc-7 { grid-column: 3; grid-row: 2; } .hc-8 { grid-column: 4; grid-row: 2; }
.hc-9 { grid-column: 5; grid-row: 2; } .hc-10 { grid-column: 6; grid-row: 2; } .hc-11 { grid-column: 7; grid-row: 2; }
.hc-12 { grid-column: 1; grid-row: 3; } .hc-13 { grid-column: 2; grid-row: 3; } .hc-14 { grid-column: 3; grid-row: 3; } .hc-15 { grid-column: 4; grid-row: 3; }
.hc-16 { grid-column: 5; grid-row: 3; } .hc-17 { grid-column: 6; grid-row: 3; } .hc-18 { grid-column: 7; grid-row: 3; }
.hc-19 { grid-column: 2; grid-row: 4; } .hc-20 { grid-column: 3; grid-row: 4; } .hc-21 { grid-column: 4; grid-row: 4; } .hc-22 { grid-column: 5; grid-row: 4; }
.hc-23 { grid-column: 6; grid-row: 4; } .hc-24 { grid-column: 3; grid-row: 5; } .hc-25 { grid-column: 4; grid-row: 5; } .hc-26 { grid-column: 5; grid-row: 5; }
.hc-27 { grid-column: 4; grid-row: 6; }

.wishlist-container {
    background: rgba(255, 255, 255, 0.85); margin: 20px auto 40px auto; padding: 25px;
    border-radius: 20px; max-width: 500px; width: 90%; box-shadow: 0 8px 16px rgba(255, 117, 151, 0.2);
}
#wishlist-form { margin-top: 15px; }

.date-card {
    background: white; border-radius: 18px; padding: 18px; margin-bottom: 15px;
    border-left: 8px solid #ff7597; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); text-align: left;
}
.date-card:last-child { margin-bottom: 0; }
.date-title { font-family: 'Cinnabar'; font-size: 1.2rem; color: #ff7597; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.date-title span { font-size: 1.5rem; }
.date-item {
    font-family: 'Coolvetica'; padding: 8px 0; color: #555; font-size: 0.95rem;
    border-bottom: 1px dashed #ffe3ec; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.date-item:last-child { border-bottom: none; }
.item-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.item-left::before { content: "🎀"; font-size: 0.9rem; }
.item-right { display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }

.arrow-btn {
    background: #ff7597; width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    font-size: 1.2rem; font-weight: bold; color: white; transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 117, 151, 0.4); flex-shrink: 0;
}
.arrow-btn:hover { background: #ff5a80; transform: scale(1.1); box-shadow: 0 4px 12px rgba(255, 117, 151, 0.6); }
.arrow-btn.slide-left { transform: translateX(-20px); opacity: 0.7; }

.time-text {
    font-family: 'Coolvetica'; font-size: 0.75rem; color: #ff7597; background: #ffe3ec;
    padding: 2px 13px; border-radius: 20px; white-space: nowrap; opacity: 0;
    transform: translateX(10px); transition: all 0.3s ease; pointer-events: none;
}
.time-text.show { opacity: 1; transform: translateX(0); }

.wishlist-note {
    font-family: 'Coolvetica'; font-size: 0.75rem; color: #ff9ebe;
    text-align: center; margin-top: 2.5px; padding-top: 12px; border-top: 2px dashed #ff9ebe;
}
.response-buttons { display: flex; justify-content: space-between; margin-top: 10px; gap: 15px; flex-wrap: wrap; }
.response-btn {
    font-family: 'NexaHeavy'; padding: 10px 18px; border-radius: 40px; font-size: 0.85rem;
    cursor: pointer; border: none; transition: all 0.3s ease; display: flex;
    align-items: center; justify-content: center; gap: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1; white-space: nowrap;
}
.response-btn-yes { background: linear-gradient(135deg, #25D366, #128C7E); color: white; }
.response-btn-yes:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
.response-btn-no { background: linear-gradient(135deg, #ff6b6b, #ee5a5a); color: white; }
.response-btn-no:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(238, 90, 90, 0.4); }

footer {
    background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: none;
    color: white; padding: 14px 10px; font-size: 0.55rem;
    font-weight: bold; margin-top: 40px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-family: 'OpenSans'; letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(255, 158, 190, 0.8);
}

#gallery-slider {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 10px 0;
    cursor: grab; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
#gallery-slider:active { cursor: grabbing; }
.gallery-slide {
    min-width: 200px; height: 250px; scroll-snap-align: center; position: relative;
    flex-shrink: 0; border-radius: 15px; overflow: hidden; border: 3px solid #ff9ebe;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
img, button, div, canvas, input { -webkit-tap-highlight-color: transparent; user-select: none; }

/* ===== RESPONSIVE DESKTOP / LAPTOP TWEAKS ===== */
@media (min-width: 768px) {
    .nav-tabs, .tab-content, .wishlist-container { max-width: 600px; }
    .date-item { font-size: 1.05rem; }
    #chat-popup { right: 40px; bottom: 100px; }
    #chat-btn { right: 40px; bottom: 40px; width: 65px; height: 65px; font-size: 1.8rem; }
}

/* Flex adjustments for Easter Egg Photos to prevent overlapping text */
.tentang-wrapper {
    display: flex; align-items: center; justify-content: space-between; gap: 15px; text-align: left;
}
.tentang-text { flex: 1; }
.tentang-photos {
    position: relative; width: 95px; height: 110px; flex-shrink: 0; margin-right: 5px;
}
.tentang-photos img {
    width: 55px; height: 75px; object-fit: cover; border-radius: 15px;
    border: 1.5px solid white; box-shadow: 0 4px 8px rgba(0,0,0,0.1); cursor: pointer; position: absolute;
}
