/* ==========================================================================
   Ramadan Blessings - Warm Ramadan Event Template
   ========================================================================== */

:root {
    /* Color Palette */
    --clr-orange: #E67E22;
    --clr-orange-light: #F39C12;
    --clr-purple: #4A235A;
    --clr-dark-purple: #2C1A3A;
    --clr-gold: #F1C40F;
    --clr-cream: #FCF3CF;
    --clr-white: #FFFFFF;
    --clr-text: #333333;
    
    /* Typography */
    --font-heading: 'Amiri', serif;
    --font-body: 'Tajawal', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
h1, h2, h3, h4, .arabic-text, .ramadan-greeting {
    font-family: var(--font-heading);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--clr-white); }
.text-purple { color: var(--clr-purple); }
.text-orange { color: var(--clr-orange); }
.text-gold { color: var(--clr-gold); }
.text-muted { color: #777; }

.bg-cream { background-color: var(--clr-cream); }
.bg-purple { background-color: var(--clr-purple); }
.bg-darker-purple { background-color: var(--clr-dark-purple); }
.bg-white { background-color: var(--clr-white); }
.bg-orange { background-color: var(--clr-orange); }

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.p-4 { padding: 1.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.ml-3 { margin-left: 1rem; }

.w-100 { width: 100%; }
.shadow { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.rounded { border-radius: 8px; }
.font-weight-bold { font-weight: 700; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.max-w-3xl { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; }

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--clr-orange);
    margin: 0 auto 30px auto;
}
.divider-left {
    height: 3px;
    width: 60px;
    background-color: var(--clr-gold);
    margin: 0 0 30px 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--clr-orange);
    color: var(--clr-white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-primary:hover { background-color: var(--clr-orange-light); }

.btn-gold {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--clr-gold);
    color: var(--clr-purple);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
}
.btn-gold:hover { transform: translateY(-3px); }

/* ==========================================================================
   Opening Animation
   ========================================================================== */
.opening-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 9999;
    background-color: var(--clr-dark-purple);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.sunset-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, #4A235A, #E67E22);
    opacity: 0;
    z-index: 0;
}

.mosque-silhouette {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background-size: cover;
    background-position: bottom center;
    opacity: 0;
    z-index: 1;
    transform: translateY(50px);
}

.swinging-lantern {
    position: absolute;
    top: -20px;
    width: 150px;
    z-index: 2;
    transform-origin: top center;
    animation: swing 3s ease-in-out infinite alternate;
}

@keyframes swing {
    0% { transform: rotate(10deg); }
    100% { transform: rotate(-10deg); }
}

.opening-text {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 150px;
}

.invitation-text {
    font-size: 2.5rem;
    color: var(--clr-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(74, 35, 90, 0.7); /* Purple overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--clr-white);
}

.ramadan-greeting {
    font-size: 2.5rem;
    color: var(--clr-gold);
    margin-bottom: 10px;
}

.event-title {
    font-size: 4rem;
    margin-bottom: 10px;
}

.event-subtitle {
    font-size: 1.3rem;
}

/* Countdown */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.5);
    padding: 15px 25px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.countdown-box span {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--clr-gold);
    display: block;
    line-height: 1;
}

/* ==========================================================================
   Details Section
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.detail-card {
    background: var(--clr-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--clr-orange);
}

.detail-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--clr-purple);
    margin-bottom: 10px;
}

/* ==========================================================================
   Schedule Section
   ========================================================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 120px;
    width: 2px; height: 100%;
    background-color: var(--clr-orange);
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item .time {
    width: 100px;
    text-align: right;
    padding-right: 20px;
    font-weight: bold;
    color: var(--clr-purple);
    padding-top: 5px;
}

.timeline-item .content {
    flex: 1;
    padding-left: 40px;
    position: relative;
}

.timeline-item .content::before {
    content: '';
    position: absolute;
    top: 8px; left: -6px;
    width: 14px; height: 14px;
    background-color: var(--clr-gold);
    border-radius: 50%;
    border: 2px solid var(--clr-white);
}

.timeline-item h4 {
    font-size: 1.3rem;
    color: var(--clr-orange);
    margin-bottom: 5px;
}

/* ==========================================================================
   Charity Section
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.donation-list {
    list-style: none;
}

.donation-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.donation-list i {
    margin-right: 10px;
}

/* ==========================================================================
   Speaker & Quran Section
   ========================================================================== */
.speaker-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   Map & RSVP
   ========================================================================== */
.map-placeholder {
    width: 100%;
    height: 350px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    border-radius: 10px;
}

.border-orange { border: 1px dashed var(--clr-orange); }

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}
.form-control:focus { outline: none; border-color: var(--clr-purple); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { flex-direction: column; }
    .timeline-item .time { width: 100%; text-align: left; padding-left: 40px; margin-bottom: 10px; }
    .timeline-item .content::before { left: 14px; top: -30px; }
    .event-title { font-size: 3rem; }
}
