/* ===========================
   CSS Variables & Base
   =========================== */
:root {
    --gold: #D4AF37;
    --gold-light: #F5E6A3;
    --gold-dark: #B8960C;
    --emerald: #0D6B3E;
    --emerald-dark: #064A2A;
    --emerald-light: #1A9E5C;
    --navy: #0A1628;
    --navy-light: #132240;
    --cream: #FFF8E7;
    --bkash-pink: #E2136E;
    --white: #FFFFFF;
    --text-light: #E8E0D0;
    --text-muted: #A69F92;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background: linear-gradient(180deg, 
        #0A1628 0%, 
        #0D1F3C 15%, 
        #0F2847 30%,
        #0D2240 50%,
        #0A1930 70%,
        #081428 85%,
        #060F20 100%
    );
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===========================
   Particle Background
   =========================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===========================
   Floating Lanterns
   =========================== */
.lantern {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    animation: lanternFloat 6s ease-in-out infinite;
}

.lantern-1 { top: 5%; left: 5%; animation-delay: 0s; }
.lantern-2 { top: 8%; right: 8%; animation-delay: 2s; }
.lantern-3 { top: 3%; left: 50%; animation-delay: 4s; }

.lantern-body {
    width: 30px;
    height: 40px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 5px 5px 15px 15px;
    position: relative;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 60px rgba(212, 175, 55, 0.15);
}

.lantern-body::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: var(--gold-dark);
    border-radius: 5px 5px 0 0;
}

.lantern-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(255, 230, 150, 0.8), transparent);
    border-radius: 50%;
    animation: lanternGlow 2s ease-in-out infinite alternate;
}

.lantern-string {
    width: 2px;
    height: 30px;
    background: var(--gold-dark);
    margin: 0 auto;
    position: relative;
    top: -48px;
}

@keyframes lanternFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes lanternGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ===========================
   Container
   =========================== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0 20px;
    position: relative;
}

/* Moon */
.moon-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.crescent-moon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.4),
        0 0 60px rgba(212, 175, 55, 0.2),
        0 0 100px rgba(212, 175, 55, 0.1),
        inset -5px -5px 15px rgba(184, 150, 12, 0.5);
    animation: moonPulse 4s ease-in-out infinite;
}

.moon-inner {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D1F3C, #0A1628);
    position: absolute;
    top: -5px;
    right: -10px;
    box-shadow: inset 3px 3px 10px rgba(0,0,0,0.3);
}

@keyframes moonPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 0 60px rgba(212, 175, 55, 0.2), 0 0 100px rgba(212, 175, 55, 0.1); 
    }
    50% { 
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6), 0 0 80px rgba(212, 175, 55, 0.3), 0 0 120px rgba(212, 175, 55, 0.15); 
    }
}

/* Stars */
.star {
    position: absolute;
    color: var(--gold-light);
    font-size: 14px;
    animation: twinkle 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.star-1 { top: 10%; left: 15%; animation-delay: 0s; font-size: 18px; }
.star-2 { top: 25%; right: 10%; animation-delay: 0.5s; font-size: 12px; }
.star-3 { top: 5%; right: 25%; animation-delay: 1s; font-size: 16px; }
.star-4 { bottom: 30%; left: 8%; animation-delay: 1.5s; font-size: 10px; }
.star-5 { bottom: 20%; right: 15%; animation-delay: 2s; font-size: 14px; }
.star-6 { top: 40%; left: 5%; animation-delay: 2.5s; font-size: 11px; }
.star-7 { top: 15%; left: 40%; animation-delay: 0.8s; font-size: 13px; }

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Mosque Silhouette */
.mosque-silhouette {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    opacity: 0.5;
}

/* Arabic Greeting */
.arabic-greeting {
    text-align: center;
    margin-top: 10px;
}

.arabic-text {
    font-family: 'Noto Sans Bengali', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark), var(--gold-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
    text-shadow: none;
    letter-spacing: 2px;
}

@keyframes shimmerText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===========================
   Photo Section
   =========================== */
.photo-section {
    display: flex;
    justify-content: center;
    padding: 40px 0 20px;
}

.photo-frame {
    position: relative;
}

.photo-border {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark), var(--gold-light), var(--gold));
    background-size: 300% 300%;
    animation: borderRotate 6s ease-in-out infinite;
    position: relative;
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.3),
        0 0 50px rgba(212, 175, 55, 0.15);
}

.photo-border::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    animation: borderPulse 3s ease-in-out infinite;
}

.photo-border::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.photo-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    z-index: 3;
}

.corner-tl { top: -8px; left: -8px; border-top: 3px solid; border-left: 3px solid; border-radius: 5px 0 0 0; }
.corner-tr { top: -8px; right: -8px; border-top: 3px solid; border-right: 3px solid; border-radius: 0 5px 0 0; }
.corner-bl { bottom: -8px; left: -8px; border-bottom: 3px solid; border-left: 3px solid; border-radius: 0 0 0 5px; }
.corner-br { bottom: -8px; right: -8px; border-bottom: 3px solid; border-right: 3px solid; border-radius: 0 0 5px 0; }

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ===========================
   Name Section
   =========================== */
.name-section {
    text-align: center;
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.decorative-line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.name-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 1px;
}

/* ===========================
   Greeting Section
   =========================== */
.greeting-section {
    padding: 20px 0;
}

.greeting-card {
    background: linear-gradient(135deg, rgba(13, 107, 62, 0.15), rgba(10, 22, 40, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.greeting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.greeting-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.card-ornament {
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.6;
}

.top-ornament { margin-bottom: 15px; }
.bottom-ornament { margin-top: 15px; }

.greeting-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: shimmerText 4s ease-in-out infinite;
    background-size: 200% 200%;
}

.greeting-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.greeting-divider::before,
.greeting-divider::after {
    content: '';
    flex: 1;
    max-width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-star {
    color: var(--gold);
    font-size: 1.5rem;
    animation: twinkle 3s ease-in-out infinite;
}

.greeting-message {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 450px;
    margin: 0 auto;
}

/* ===========================
   Salami Section
   =========================== */
.salami-section {
    padding: 30px 0 40px;
}

.salami-card {
    background: linear-gradient(135deg, rgba(19, 34, 64, 0.9), rgba(10, 22, 40, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.salami-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald));
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.gift-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounceGift 2s ease-in-out infinite;
}

@keyframes bounceGift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.salami-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.salami-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Form Styles */
.salami-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(166, 159, 146, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Amount Buttons */
.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.amount-btn {
    padding: 8px 18px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: var(--gold-light);
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.amount-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* bKash Section */
.bkash-section {
    background: linear-gradient(135deg, rgba(226, 19, 110, 0.08), rgba(226, 19, 110, 0.03));
    border: 1px solid rgba(226, 19, 110, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 5px 0;
}

.bkash-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.bkash-logo svg {
    filter: drop-shadow(0 0 8px rgba(226, 19, 110, 0.3));
}

.bkash-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bkash-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bkash-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bkash-pink);
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: rgba(226, 19, 110, 0.15);
    border: 1px solid rgba(226, 19, 110, 0.3);
    border-radius: 10px;
    color: var(--bkash-pink);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: rgba(226, 19, 110, 0.25);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: rgba(26, 158, 92, 0.2);
    border-color: rgba(26, 158, 92, 0.4);
    color: var(--emerald-light);
}

.bkash-instructions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bkash-instructions p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    border: none;
    border-radius: 14px;
    color: var(--white);
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 107, 62, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px 20px;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounceGift 1.5s ease-in-out infinite;
}

.success-message h3 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

.reset-btn {
    padding: 12px 30px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: var(--gold-light);
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

/* ===========================
   Footer
   =========================== */
.footer {
    text-align: center;
    padding: 40px 20px 60px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-ornament {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 10px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.footer-text {
    font-size: 1rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-dua {
    font-size: 1.3rem;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 5px;
    direction: rtl;
}

.footer-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   Animations
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 35vh;
        padding: 40px 0 15px;
    }
    
    .moon-container {
        width: 160px;
        height: 160px;
    }
    
    .crescent-moon {
        width: 90px;
        height: 90px;
    }
    
    .moon-inner {
        width: 72px;
        height: 72px;
    }
    
    .arabic-text {
        font-size: 2.2rem;
    }
    
    .photo-border {
        width: 180px;
        height: 180px;
    }
    
    .name-text {
        font-size: 1.6rem;
    }
    
    .greeting-title {
        font-size: 2rem;
    }
    
    .greeting-card, .salami-card {
        padding: 25px 18px;
    }
    
    .bkash-number {
        font-size: 1.2rem;
    }
    
    .amount-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
    
    .lantern { display: none; }
}

@media (min-width: 768px) {
    .hero {
        min-height: 50vh;
    }
    
    .moon-container {
        width: 240px;
        height: 240px;
    }
    
    .crescent-moon {
        width: 140px;
        height: 140px;
    }
    
    .moon-inner {
        width: 110px;
        height: 110px;
    }
    
    .arabic-text {
        font-size: 3.5rem;
    }
    
    .photo-border {
        width: 260px;
        height: 260px;
    }
    
    .name-text {
        font-size: 2.5rem;
    }
    
    .greeting-card, .salami-card {
        padding: 40px 35px;
    }
}

/* ===========================
   Scrollbar
   =========================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
