@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic&family=Poppins:wght@400;700&family=Great+Vibes&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a3c34 0%, #ffd700 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Eid ul-Adha Stars BG */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}
.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Wrapper */
.wrapper {
    max-width: 700px;
    margin: 4vh auto 0 auto;
    padding: 40px 18px 30px 18px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 2.5rem;
    box-shadow: 0 1rem 3rem rgba(255,215,0,0.18);
    position: relative;
    z-index: 1;
    border: 2px solid #ffd700;
}

/* Header */
header {
    text-align: center;
    padding: 32px 10px 24px 10px;
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
    border-radius: 2rem 2rem 0 0;
    margin-bottom: 30px;
    box-shadow: 0 0 18px #ffd70044;
}
header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.7rem;
    color: #1a3c34;
    text-shadow: 0 0 15px #fffbe7, 0 0 30px #ffd700;
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
}
header h1:last-of-type {
    font-family: 'Playfair Display', serif;
    color: #ff9800;
    font-size: 2.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 1.5rem #ffd700;
    letter-spacing: 0.08em;
}
header .crescent {
    font-size: 2.7rem;
    color: #fffbe7;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ffd700, 0 0 18px #ff9800;
    animation: moonGlow 2.5s infinite alternate;
}
@keyframes moonGlow {
    0% { text-shadow: 0 0 8px #ffd700; }
    100% { text-shadow: 0 0 22px #ff9800; }
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 18px 0 12px 0;
    background: rgba(255, 215, 0, 0.13);
    border-radius: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.controls select, .controls button {
    padding: 12px 28px;
    font-size: 1.1rem;
    border: 2px solid #ffd700;
    border-radius: 30px;
    background: #fffbe7;
    color: #1a3c34;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
.controls select:focus, .controls button:focus {
    outline: none;
    border-color: #ff9800;
}
.controls select:hover, .controls button:hover {
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
    color: #fff;
    transform: scale(1.07);
    box-shadow: 0 0 20px #ffd70088;
}
.controls button {
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
    color: #1a3c34;
    font-weight: 700;
    border: none;
    box-shadow: 0 0.2rem 1rem rgba(255,215,0,0.13);
}
.controls button:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffd700 100%);
    color: #fff;
}

/* Dua Display */
.dua-display {
    padding: 32px 12px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px dashed #ffd700;
    box-shadow: 0 0 18px #ffd70022;
    min-height: 180px;
}
.dua-title {
    font-family: 'Great Vibes', cursive;
    font-size: 1.7rem;
    color: #ff9800;
    margin-bottom: 0.7rem;
    text-align: center;
    text-shadow: 0 0 1.5rem #ffd700;
}
.arabic {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.5rem;
    color: #1a3c34;
    direction: rtl;
    text-align: right;
    background: rgba(255, 215, 0, 0.08);
    padding: 18px;
    border-radius: 1rem;
    margin-bottom: 18px;
    border: 1px solid #ffd700;
}
.translation {
    font-size: 1.1rem;
    color: #222;
    line-height: 1.7;
    padding: 14px 10px;
    background: rgba(255, 215, 0, 0.13);
    border-radius: 1rem;
    border: 1px solid #ffd700;
    font-family: 'Poppins', sans-serif;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 18px 0;
}
.navigation button {
    padding: 12px 36px;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
    color: #1a3c34;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0.2rem 1rem rgba(255,215,0,0.13);
}
.navigation button:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffd700 100%);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 0 20px #ffd70099;
}

/* Footer */
footer {
    text-align: center;
    padding: 18px;
    font-size: 1.2rem;
    color: #ffd700;
    background: rgba(26, 60, 52, 0.9);
    border-radius: 0 0 20px 20px;
    margin-top: 30px;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 0.04em;
}
footer::after {
    content: " | Eid ul-Adha Mubarak!";
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 900px) {
    .wrapper { max-width: 98vw; padding: 18px 2vw 18px 2vw; }
    .dua-display { padding: 18px 4vw; }
}
@media (max-width: 600px) {
    header { padding: 18px 2vw 12px 2vw; }
    header h1 { font-size: 1.5rem; }
    header h1:last-of-type { font-size: 1.1rem; }
    .dua-title { font-size: 1.1rem; }
    .arabic { font-size: 1.1rem; padding: 10px; }
    .translation { font-size: 0.95rem; padding: 8px 6px; }
    .controls select, .controls button, .navigation button { font-size: 0.95rem; padding: 8px 12px; }
    .navigation { gap: 10px; }
}