:root {
    --bg-gradient: linear-gradient(135deg, #1a0b14 0%, #301124 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #fdf2f8;
    --text-secondary: #fbcfe8;
    --accent-color: #be185d;
    --accent-hover: #9d174d;
    --gold: #fde047;
}

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

html, body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a0b14 !important;
    background-image: var(--bg-gradient) !important;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: #1a0b14;
    background-image: var(--bg-gradient);
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 10vh;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hero {
    margin-bottom: 2rem;
}

.top-icon-container {
    font-size: 3rem;
    color: var(--gold); /* Ubah warna jadi emas agar cocok dengan kue/surat */
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.5));
}

.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #fef08a; }
    100% { transform: scale(1); }
}

.title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.title .highlight {
    color: var(--text-secondary);
    font-style: italic;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-height: 1.5em; /* Space for typewriter */
    margin-bottom: 2rem;
}

/* Button */
.premium-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(190, 24, 93, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 24, 93, 0.6);
}

.premium-btn i {
    transition: transform 0.3s ease;
}

.premium-btn:hover i {
    transform: translateX(3px);
}

/* Hidden Content Wrapper */
#mainContent {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* Letter Section */
.letter-section {
    width: 100%;
    max-width: 800px;
}

.letter-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.letter-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fbcfe8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.letter-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #fdf2f8;
    font-weight: 300;
}

.letter-content strong {
    font-weight: 600;
    color: #fbcfe8;
}

/* Sincerity Section Styles */
.sincerity-card {
    border-color: rgba(253, 224, 71, 0.2) !important; 
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(190, 24, 93, 0.15)) !important;
}

.text-center {
    text-align: center;
}

.icon-feather {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.5));
}

.signature {
    margin-top: 2rem !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem !important;
    font-style: italic;
    color: var(--gold) !important;
}

/* Gallery Section */
.gallery-section {
    width: 100%;
    max-width: 1100px;
    text-align: center;
    margin-top: 2rem;
}

.gallery-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fbcfe8;
}

.photo-grid {
    columns: 3 250px;
    column-gap: 25px;
    padding: 10px;
}

.photo-card {
    break-inside: avoid;
    margin-bottom: 25px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 10px solid #fff; /* Polaroid frame */
    border-bottom-width: 25px; /* Thicker bottom for polaroid look */
    background: #fff;
    transition: transform 0.4s ease;
}

.photo-card img, .photo-card video {
    width: 100%;
    display: block;
    border-radius: 2px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(90%);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 15px); /* Adjust for polaroid bottom */
    background: linear-gradient(to top, rgba(190, 24, 93, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-overlay i {
    color: var(--gold);
    font-size: 3rem;
    opacity: 0.8;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.photo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 10;
}

.photo-card:hover img, .photo-card:hover video {
    filter: brightness(110%);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-card:hover .photo-overlay i {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox:not(.hidden) .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body { background-color: #1a0b14; } /* Fallback background for mobile */
    .title { font-size: 2.2rem; }
    .glass-panel { padding: 1.5rem; }
    .letter-glass { padding: 2rem 1.5rem; }
    .wrapper { padding-top: 5vh; padding-left: 1rem; padding-right: 1rem; }
    .photo-grid { columns: 2; column-gap: 15px; }
    .photo-card { border-width: 6px; border-bottom-width: 15px; margin-bottom: 15px; }
    .gallery-title { font-size: 2rem; }
}
@media (max-width: 480px) {
    .title { font-size: 1.8rem; }
    .subtitle { font-size: 0.95rem; }
    .top-icon-container { font-size: 2.5rem; }
    .letter-content h2 { font-size: 1.8rem; }
    .letter-content p { font-size: 0.95rem; }
    .photo-grid { columns: 2; column-gap: 10px; }
    .photo-card { border-width: 5px; border-bottom-width: 12px; margin-bottom: 10px; }
}
