/* ==========================================================================
   Barakah Gathering - Premium Islamic Event Template
   ========================================================================== */

:root {
    /* Color Palette */
    --clr-cream: #FDFBF7;
    --clr-gold: #D4AF37;
    --clr-emerald: #046307;
    --clr-beige: #F5F5DC;
    --clr-dark: #1A1A1A;
    --clr-light: #FAFAFA;
    --clr-text: #333333;
    
    /* Typography */
    --font-heading: 'Amiri', serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, .bismillah, .arabic-quote {
    font-family: var(--font-heading);
    color: var(--clr-emerald);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--clr-beige); }
.w-100 { width: 100%; }

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--clr-emerald);
}

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

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--clr-gold);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: #C5A028;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   Opening Animation
   ========================================================================== */
.door-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-dark);
    perspective: 1500px;
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url('../images/door.png');
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: center;
    z-index: 10;
}

.door-left {
    left: 0;
    background-position: left center;
    transform-origin: left;
}

.door-right {
    right: 0;
    background-position: right center;
    transform-origin: right;
}

.door-content {
    z-index: 5;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
}

.door-content .bismillah {
    font-size: 3rem;
    color: var(--clr-gold);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.door-content .invite-text {
    font-size: 1.5rem;
    color: var(--clr-cream);
    font-family: var(--font-heading);
    margin-bottom: 30px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(253, 251, 247, 0.8), rgba(253, 251, 247, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-lantern {
    width: 150px;
    margin-bottom: 20px;
    animation: swing 4s ease-in-out infinite alternate;
    transform-origin: top center;
}

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

.event-title {
    font-size: 4.5rem;
    color: var(--clr-emerald);
    margin-bottom: 10px;
    line-height: 1.2;
}

.event-subtitle {
    font-size: 1.5rem;
    color: var(--clr-text);
    margin-bottom: 30px;
}

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

.detail-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 2.5rem;
    color: var(--clr-gold);
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.detail-card p {
    font-size: 1.1rem;
    color: #666;
}

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

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

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--clr-emerald);
    border: 3px solid var(--clr-cream);
}

.timeline-item .time {
    font-weight: 600;
    color: var(--clr-gold);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   Speaker Section
   ========================================================================== */
.speaker-card {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.speaker-img-placeholder {
    width: 300px;
    height: 300px;
    background-color: var(--clr-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 5rem;
}

.speaker-info {
    padding: 40px;
    flex: 1;
}

.speaker-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.speaker-info .designation {
    color: var(--clr-gold);
    font-weight: 500;
    margin-bottom: 15px;
}

/* ==========================================================================
   Quranic Quote
   ========================================================================== */
.quote-section {
    background-image: url('../images/bg.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    color: #fff;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(4, 99, 7, 0.85); /* Emerald overlay */
}

.quote-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 3rem;
    color: var(--clr-gold);
    margin-bottom: 20px;
    opacity: 0.8;
}

.arabic-quote {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.8;
}

.translated-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
}

.quote-source {
    color: var(--clr-gold);
    font-weight: 500;
}

/* ==========================================================================
   Map & RSVP
   ========================================================================== */
.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    color: #888;
    border: 2px dashed #ccc;
}

.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--clr-emerald);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
    background-color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-emerald);
    color: #fff;
    padding: 40px 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .event-title { font-size: 3rem; }
    .speaker-card { flex-direction: column; }
    .speaker-img-placeholder { width: 100%; height: 250px; }
    .rsvp-card { padding: 30px 20px; }
    .door-content .bismillah { font-size: 2rem; }
}
