/* ============================================
   LEBARAN THEME - XYNTRIC 😈
   Theme: Idul Fitri 1446 H
   Responsive: Mobile First
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Space Grotesk', monospace;
    background: linear-gradient(135deg, #0a3b2a 0%, #1a5a3a 50%, #0e3d28 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========== BACKGROUND ELEMENTS ========== */
.lebaran-wrapper {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ketupat Background Pattern */
.ketupat-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" opacity="0.08"><path fill="%23ffd966" d="M30,8 L38,20 L30,32 L22,20 Z M30,28 L38,40 L30,52 L22,40 Z"/><circle cx="30" cy="20" r="3" fill="%23ffd966"/><circle cx="30" cy="40" r="3" fill="%23ffd966"/></svg>');
    background-repeat: repeat;
    background-size: 60px;
    pointer-events: none;
    animation: floatKetupat 80s linear infinite;
}

@keyframes floatKetupat {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

/* Lentera Floating */
.lentera-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.lentera {
    position: absolute;
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, #ffaa33, #ff8833);
    border-radius: 50% 50% 30% 30%;
    animation: floatLentera 8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 170, 51, 0.5);
    cursor: pointer;
}

.lentera::before {
    content: '🏮';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
}

.lentera::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 15px;
    background: #cc8844;
    border-radius: 0 0 5px 5px;
}

@keyframes floatLentera {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-30px) rotate(5deg); opacity: 1; }
}

/* Awan */
.awan-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.awan {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1000px;
    filter: blur(20px);
}

.awan-1 {
    width: 200px;
    height: 80px;
    top: 10%;
    left: -100px;
    animation: floatAwan 40s linear infinite;
}

.awan-2 {
    width: 300px;
    height: 100px;
    top: 30%;
    right: -150px;
    animation: floatAwan 50s linear infinite reverse;
}

.awan-3 {
    width: 250px;
    height: 90px;
    bottom: 20%;
    left: -120px;
    animation: floatAwan 45s linear infinite;
}

@keyframes floatAwan {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 300px)); }
}

/* ========== MAIN CONTAINER ========== */
.lebaran-container {
    position: relative;
    z-index: 10;
    max-width: 550px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

/* Card Utama */
.lebaran-card {
    background: rgba(10, 30, 20, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dekorasi Atas */
.decoration-top {
    margin-bottom: 20px;
}

.decoration-top i {
    font-size: 24px;
    color: #ffd966;
    margin: 0 8px;
    animation: pulse 2s ease-in-out infinite;
}

.decoration-top i:nth-child(2) {
    font-size: 32px;
    animation-delay: 0.3s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Tanggal Hijriah */
.tanggal-hijriah {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ffd966;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tanggal-hijriah i {
    font-size: 12px;
}

/* Title */
.lebaran-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd966, #ffaa33, #ff8833);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.lebaran-title span {
    font-size: 28px;
}

/* Subtitle */
.lebaran-subtitle {
    margin-bottom: 35px;
}

.lebaran-subtitle span:first-child {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.arabic {
    font-size: 18px;
    font-family: 'Amiri', 'Times New Roman', serif;
    color: #ffd966;
    letter-spacing: 2px;
}

/* ========== AMPLOP HIJAU (INTERACTIVE) ========== */
.amplop-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.amplop {
    width: 200px;
    height: 140px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.amplop:hover {
    transform: scale(1.05);
}

.amplop-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2e7d32, #1b5e20);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.amplop-flap {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(145deg, #3e8e41, #2e7d32);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    transition: all 0.5s ease;
}

.amplop-body {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffd966;
}

.amplop-body i {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.amplop-body span {
    font-size: 12px;
    font-weight: 500;
}

.amplop-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #145a14;
    border-radius: 0 0 15px 15px;
    z-index: 1;
}

/* Amplop Terbuka Animation */
.amplop.open .amplop-front {
    transform: translateY(-20px);
}

.amplop.open .amplop-flap {
    transform: rotateX(180deg);
    top: -10px;
}

.amplop.open .amplop-body i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== UCAPAN MAAF (HIDDEN INITIALLY) ========== */
.maaf-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 0;
}

.maaf-container.show {
    max-height: 600px;
    opacity: 1;
    margin: 20px 0;
}

.maaf-card {
    background: linear-gradient(135deg, rgba(255, 245, 200, 0.95), rgba(255, 235, 180, 0.95));
    border-radius: 30px;
    padding: 25px;
    text-align: center;
    border: 2px solid #ffd966;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeScale 0.5s ease;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.maaf-icon {
    font-size: 50px;
    color: #2e7d32;
    margin-bottom: 15px;
}

.maaf-title {
    font-size: 22px;
    color: #2e7d32;
    margin-bottom: 15px;
    font-weight: 700;
}

.maaf-content {
    text-align: left;
    color: #3e2a1f;
    line-height: 1.7;
    margin-bottom: 20px;
}

.maaf-content p {
    margin-bottom: 12px;
    font-size: 14px;
}

.maaf-quote {
    font-style: italic;
    border-left: 3px solid #ffd966;
    padding-left: 15px;
    color: #a5662a;
    font-size: 13px;
}

.maaf-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px dashed #ffd966;
    color: #2e7d32;
    font-weight: 500;
}

/* ========== THR SECTION ========== */
.thr-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed rgba(255, 215, 0, 0.4);
}

.thr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.thr-header i {
    font-size: 24px;
    color: #ffd966;
}

.thr-header h3 {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

.thr-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.thr-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.thr-icon-item:hover {
    transform: translateY(-5px);
}

.thr-icon-item i {
    font-size: 45px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.thr-icon-item span {
    font-size: 12px;
    color: #ffd966;
    font-weight: 500;
}

/* Warna Ikon THR */
.thr-icon-item .fa-money-bill-wave { color: #4caf50; }
.thr-icon-item .fa-coins { color: #ffc107; }
.thr-icon-item .fa-gift { color: #ff6b6b; }
.thr-icon-item .fa-utensils { color: #ff9966; }
.thr-icon-item .fa-hands-helping { color: #66cc99; }
.thr-icon-item .fa-heart { color: #ff3366; }

.thr-note {
    text-align: center;
    padding: 15px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 50px;
    margin-top: 15px;
}

.thr-note i {
    color: #ff6699;
    margin-right: 8px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.thr-note span {
    font-size: 13px;
    color: #ffd966;
}

/* Dekorasi Bawah */
.decoration-bottom {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.decoration-bottom i {
    font-size: 28px;
    color: #ffaa66;
    animation: sway 3s ease-in-out infinite;
}

.decoration-bottom i:nth-child(2) {
    animation-delay: 0.5s;
}

.decoration-bottom i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

/* Footer */
.lebaran-footer {
    text-align: center;
    padding: 25px 20px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    position: relative;
    z-index: 10;
    font-family: monospace;
}

/* ========== RESPONSIVE (Mobile & Tablet) ========== */
@media (max-width: 480px) {
    .lebaran-container {
        padding: 60px 15px 40px;
    }
    
    .lebaran-card {
        padding: 25px 18px;
        border-radius: 30px;
    }
    
    .lebaran-title {
        font-size: 26px;
    }
    
    .lebaran-title span {
        font-size: 22px;
    }
    
    .lebaran-subtitle span:first-child {
        font-size: 18px;
    }
    
    .arabic {
        font-size: 14px;
    }
    
    .amplop {
        width: 170px;
        height: 120px;
    }
    
    .amplop-body i {
        font-size: 32px;
    }
    
    .maaf-title {
        font-size: 18px;
    }
    
    .maaf-content p {
        font-size: 12px;
    }
    
    .thr-icons {
        gap: 15px;
    }
    
    .thr-icon-item i {
        font-size: 35px;
    }
    
    .thr-header h3 {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .lebaran-container {
        max-width: 650px;
        padding: 100px 20px 80px;
    }
    
    .lebaran-title {
        font-size: 44px;
    }
    
    .lebaran-title span {
        font-size: 38px;
    }
    
    .amplop {
        width: 240px;
        height: 160px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a3b2a, #1a5a3a);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    max-width: 500px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid #ffd966;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Dekorasi */
.deco {
    margin-bottom: 20px;
}

.deco i {
    font-size: 28px;
    color: #ffd966;
    margin: 0 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Judul */
.title {
    font-size: 32px;
    background: linear-gradient(135deg, #ffd966, #ffaa33);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.subtitle {
    color: #ffd966;
    font-size: 14px;
    margin-bottom: 20px;
}

/* AMPLOP */
.amplop {
    width: 200px;
    height: 140px;
    background: linear-gradient(145deg, #2e7d32, #1b5e20);
    margin: 20px auto;
    border-radius: 0 0 15px 15px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.amplop::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(145deg, #3e8e41, #2e7d32);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    transition: 0.5s;
}

.amplop-body {
    position: absolute;
    bottom: 20px;
    width: 100%;
    color: #ffd966;
}

.amplop-body i {
    font-size: 40px;
    display: block;
    margin-bottom: 5px;
}

.amplop-body span {
    font-size: 11px;
}

.amplop:hover {
    transform: scale(1.05);
}

/* Amplop terbuka */
.amplop.open::before {
    transform: rotateX(180deg);
    top: -10px;
}

.amplop.open .amplop-body i {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* UCAPAN MAAF */
.maaf-box {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.6s ease;
    margin: 20px 0;
    background: rgba(255, 245, 200, 0.95);
    border-radius: 20px;
    color: #2e7d32;
    text-align: center;
}

.maaf-box.show {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
}

.maaf-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1b5e20;
}

.maaf-box p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.maaf-box .quote {
    font-style: italic;
    border-left: 3px solid #ffd966;
    padding-left: 12px;
    margin: 12px 0;
    color: #a5662a;
}

/* THR SECTION */
.thr-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 215, 0, 0.3);
}

.thr-section h3 {
    font-size: 16px;
    color: #ffd966;
    margin-bottom: 15px;
}

.thr-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.thr-item {
    text-align: center;
}

.thr-item i {
    font-size: 30px;
    color: #ffd966;
    display: block;
    margin-bottom: 5px;
}

.thr-item span {
    font-size: 11px;
    color: #fff;
}

.note {
    font-size: 11px;
    color: rgba(255, 215, 0, 0.8);
}

.note i {
    color: #ff6699;
    margin-right: 5px;
}

/* ========== TOMBOL FOTO ========== */
.foto-section {
    margin-top: 25px;
    padding: 15px;
    background: rgba(46, 125, 50, 0.3);
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.foto-btn {
    display: block;
    text-decoration: none;
    background: linear-gradient(145deg, #2e7d32, #1b5e20);
    border-radius: 20px;
    padding: 15px;
    transition: 0.3s;
    border: 1px solid #ffd966;
}

.foto-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.foto-btn img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 10px;
}

.foto-btn span {
    display: block;
    color: #ffd966;
    font-size: 13px;
    font-weight: 500;
}

.foto-btn span i {
    margin-right: 5px;
}

.foto-note {
    font-size: 10px;
    color: rgba(255, 215, 0, 0.6);
    margin-top: 10px;
}

/* Footer */
.footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive HP */
@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
    }
    
    .title {
        font-size: 26px;
    }
    
    .amplop {
        width: 160px;
        height: 110px;
    }
    
    .thr-item i {
        font-size: 24px;
    }
    
    .foto-btn img {
        max-height: 150px;
    }
}