/* ═══════════════════════════════════════════
   NOOR THEME — Islamic Calligraphy light
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Lateef:wght@400;700&display=swap');

:root {
    --noor-emerald: #0A6847;
    --noor-dark: #043927;
    --noor-gold: #C9A84C;
    --noor-gold-light: #E8D48B;
    --noor-ivory: #F5F0E8;
    --noor-cream: #FBF8F1;
    --noor-teal: #0D8B6A;
    --noor-text: #1a2e1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Naskh Arabic', 'Amiri', serif;
    background: var(--noor-cream);
    color: var(--noor-text);
    overflow-x: hidden;
}

/* ─── Floating Lanterns Canvas ─── */
.noor-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ─── Islamic Pattern Overlay ─── */
.islamic-pattern-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23C9A84C' stroke-width='0.5' opacity='0.08'/%3E%3Cpath d='M40 10L70 40L40 70L10 40Z' fill='none' stroke='%23C9A84C' stroke-width='0.3' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ─── Navigation ─── */
.noor-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    transition: all 0.4s ease;
}

.noor-nav.scrolled {
    background: rgba(4, 57, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 40px;
    box-shadow: 0 4px 30px rgba(10,104,71,0.3);
}

.noor-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.noor-brand .brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--noor-gold), var(--noor-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.noor-brand .brand-text {
    font-family: 'Amiri', serif;
    color: var(--noor-gold);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.noor-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.noor-menu a {
    color: var(--noor-gold-light);
    text-decoration: none;
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.noor-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--noor-gold);
    transition: width 0.3s;
}

.noor-menu a:hover { color: var(--noor-gold); }
.noor-menu a:hover::after { width: 100%; }

.noor-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.noor-toggle span {
    width: 25px; height: 2px;
    background: var(--noor-gold);
    transition: 0.3s;
}

/* ─── Hero ─── */
.noor-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(145deg, var(--noor-dark) 0%, var(--noor-emerald) 50%, var(--noor-teal) 100%);
    overflow: hidden;
}

.noor-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(201,168,76,0.15) 0%, transparent 50%);
}

.noor-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 40px;
}

/* Mosque Arch SVG */
.noor-arch {
    width: 280px;
    margin: 0 auto 20px;
}

.noor-arch svg { width: 100%; }

.noor-bismillah {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--noor-gold);
    margin-bottom: 10px;
    display: block;
}

.noor-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--noor-gold), var(--noor-gold-light));
    color: var(--noor-dark);
    padding: 6px 22px;
    border-radius: 25px;
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.noor-couple-names {
    font-family: 'Amiri', serif;
    font-size: 4rem;
    color: var(--noor-ivory);
    line-height: 1.2;
    margin-bottom: 10px;
}

.noor-couple-names .amp {
    display: block;
    font-size: 2rem;
    color: var(--noor-gold);
    margin: 5px 0;
}

.noor-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.noor-divider .line {
    width: 70px; height: 1px;
    background: linear-gradient(to right, transparent, var(--noor-gold), transparent);
}

.noor-divider .star {
    color: var(--noor-gold);
    font-size: 18px;
}

.noor-invitation-text {
    font-family: 'Amiri', serif;
    color: var(--noor-gold-light);
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 25px;
}

.noor-dates {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.noor-date-item {
    text-align: center;
    padding: 12px 25px;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 10px;
    background: rgba(201,168,76,0.05);
}

.noor-date-item .dlabel {
    display: block;
    color: var(--noor-gold);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: 'Noto Naskh Arabic', serif;
}

.noor-date-item .dval {
    display: block;
    color: var(--noor-ivory);
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
}

/* Countdown */
.noor-countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.noor-countdown .cb {
    text-align: center;
    min-width: 65px;
}

.noor-countdown .cn {
    display: block;
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--noor-gold);
    line-height: 1;
}

.noor-countdown .cl {
    display: block;
    color: var(--noor-gold-light);
    font-size: 0.8rem;
    margin-top: 5px;
}

.noor-countdown .cs {
    color: var(--noor-gold);
    font-size: 2rem;
    opacity: 0.4;
    align-self: flex-start;
    margin-top: 5px;
}

/* Scroll Down */
.noor-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--noor-gold);
    font-size: 1.5rem;
    animation: noor-bounce 2s infinite;
}

@keyframes noor-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ─── Section Headers ─── */
.noor-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.noor-section-subtitle {
    display: inline-block;
    color: var(--noor-gold);
    font-family: 'Amiri', serif;
    font-size: 1rem;
    margin-bottom: 8px;
}

.noor-section-title {
    font-family: 'Amiri', serif;
    font-size: 2.8rem;
    color: var(--noor-emerald);
    margin-bottom: 12px;
}

.noor-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.noor-section-divider span {
    width: 50px; height: 1px;
    background: var(--noor-gold);
}

.noor-section-divider i {
    color: var(--noor-gold);
    font-size: 14px;
}

/* ─── Couple ─── */
.noor-couple {
    padding: 100px 0;
    background: var(--noor-ivory);
    position: relative;
}

.noor-person {
    text-align: center;
    padding: 25px;
}

.noor-person-frame {
    width: 200px; height: 200px;
    margin: 0 auto 20px;
    position: relative;
}

.noor-person-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--noor-gold);
    border-radius: 50%;
    opacity: 0.4;
}

.noor-person-frame::after {
    content: '';
    position: absolute;
    inset: -18px;
    border: 1px solid var(--noor-emerald);
    border-radius: 50%;
    opacity: 0.2;
}

.noor-person-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--noor-gold);
}

.noor-person-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--noor-emerald), var(--noor-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    border: 3px solid var(--noor-gold);
}

.noor-person h3 {
    font-family: 'Amiri', serif;
    font-size: 1.7rem;
    color: var(--noor-emerald);
    margin-bottom: 5px;
}

.noor-person .ptitle {
    color: var(--noor-gold);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.noor-person .pdesc {
    color: #555;
    font-size: 1rem;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.7;
}

.noor-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: var(--noor-gold);
}

/* ─── Story ─── */
.noor-story {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--noor-dark), var(--noor-emerald));
    position: relative;
}

.noor-story .noor-section-title { color: var(--noor-ivory); }

.noor-timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

.noor-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--noor-gold), rgba(201,168,76,0.1));
}

.noor-tl-item {
    display: flex;
    margin-bottom: 45px;
    position: relative;
}

.noor-tl-item:nth-child(odd) { justify-content: flex-start; padding-right: 55%; }
.noor-tl-item:nth-child(even) { justify-content: flex-end; padding-left: 55%; }

.noor-tl-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    background: var(--noor-gold);
    border-radius: 50%;
    border: 3px solid var(--noor-dark);
    z-index: 1;
}

.noor-tl-dot::before {
    content: '✦';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: var(--noor-dark);
}

.noor-tl-content {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 12px;
    padding: 22px;
    backdrop-filter: blur(5px);
}

.noor-tl-content .tdate {
    color: var(--noor-gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: 'Amiri', serif;
}

.noor-tl-content h4 {
    font-family: 'Amiri', serif;
    color: var(--noor-ivory);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.noor-tl-content p {
    color: var(--noor-gold-light);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
}

/* ─── Events ─── */
.noor-events {
    padding: 100px 0;
    background: var(--noor-cream);
}

.noor-event-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(10,104,71,0.06);
    border: 1px solid rgba(201,168,76,0.15);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.noor-event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--noor-emerald), var(--noor-gold), var(--noor-emerald));
}

.noor-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(10,104,71,0.12);
}

.noor-event-card.featured {
    background: linear-gradient(135deg, var(--noor-emerald), var(--noor-teal));
    color: white;
}

.noor-event-card.featured h4,
.noor-event-card.featured p { color: white; }

.noor-event-card .eicon {
    width: 55px; height: 55px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    color: var(--noor-gold);
    font-size: 22px;
}

.noor-event-card.featured .eicon {
    background: rgba(255,255,255,0.15);
    color: white;
}

.noor-event-card h4 {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    color: var(--noor-emerald);
    margin-bottom: 12px;
}

.noor-event-card .einfo p {
    color: #666;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.noor-event-card .einfo i {
    color: var(--noor-gold);
    margin-left: 8px;
    width: 18px;
}

[dir="ltr"] .noor-event-card .einfo i {
    margin-left: 0;
    margin-right: 8px;
}

/* ─── Gallery ─── */
.noor-gallery {
    padding: 100px 0;
    background: var(--noor-ivory);
}

.noor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 850px;
    margin: 0 auto;
}

.noor-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.noor-gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.noor-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.noor-gallery-item:hover img { transform: scale(1.08); }

.noor-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,104,71,0.5), rgba(201,168,76,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.noor-gallery-item:hover .noor-gallery-overlay { opacity: 1; }

.noor-gallery-overlay i { color: white; font-size: 22px; }

.noor-gallery-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--noor-emerald), var(--noor-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
}

/* ─── RSVP ─── */
.noor-rsvp {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--noor-dark), var(--noor-emerald));
    position: relative;
}

.noor-rsvp-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 18px;
    padding: 45px 35px;
    backdrop-filter: blur(10px);
}

.noor-rsvp .noor-section-title { color: var(--noor-ivory); }

.noor-form-group { margin-bottom: 18px; }

.noor-form-group label {
    display: block;
    color: var(--noor-gold);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: 'Noto Naskh Arabic', serif;
}

.noor-form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 8px;
    color: var(--noor-ivory);
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.noor-form-control:focus {
    outline: none;
    border-color: var(--noor-gold);
    box-shadow: 0 0 12px rgba(201,168,76,0.15);
}

.noor-form-control::placeholder { color: rgba(245,240,232,0.3); }

.noor-form-control option { background: var(--noor-dark); color: var(--noor-ivory); }

textarea.noor-form-control { resize: vertical; min-height: 90px; }

.btn-noor-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--noor-gold), var(--noor-gold-light));
    color: var(--noor-dark);
    border: none;
    border-radius: 8px;
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-noor-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.3);
}

/* ─── Comments ─── */
.noor-comments {
    padding: 80px 0;
    background: rgba(10,104,71,0.03);
}

.noor-comment-item {
    background: white;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-right: 3px solid var(--noor-gold);
}

[dir="ltr"] .noor-comment-item {
    border-right: none;
    border-left: 3px solid var(--noor-gold);
}

.noor-comment-name {
    color: var(--noor-emerald);
    font-family: 'Amiri', serif;
    font-weight: 700;
    margin-bottom: 4px;
}

.noor-comment-text { color: #555; font-size: 0.95rem; }

.noor-comment-form {
    background: white;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    margin-bottom: 25px;
}

.noor-comment-form h4 {
    color: var(--noor-emerald);
    font-family: 'Amiri', serif;
    text-align: center;
    margin-bottom: 18px;
}

.noor-comment-form .form-control {
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Noto Naskh Arabic', serif;
}

.noor-comment-form .form-control:focus {
    border-color: var(--noor-gold);
    box-shadow: 0 0 8px rgba(201,168,76,0.1);
}

.btn-noor-comment {
    background: linear-gradient(135deg, var(--noor-emerald), var(--noor-teal));
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-family: 'Amiri', serif;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-noor-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(10,104,71,0.3);
}

/* ─── Footer ─── */
.noor-footer {
    padding: 60px 0 35px;
    background: linear-gradient(180deg, var(--noor-dark), #011f14);
    text-align: center;
}

.noor-footer .fnames {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--noor-gold);
    display: block;
    margin-bottom: 8px;
}

.noor-footer .fdate {
    color: var(--noor-gold-light);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.noor-footer .fverse {
    color: rgba(245,240,232,0.6);
    font-family: 'Amiri', serif;
    font-style: italic;
    max-width: 500px;
    margin: 0 auto 5px;
    font-size: 1.05rem;
}

.noor-footer .fsurah {
    color: var(--noor-gold);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.noor-footer .fsocial a {
    color: var(--noor-gold);
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s;
}

.noor-footer .fsocial a:hover { color: var(--noor-gold-light); }

.noor-footer .fcopy {
    color: rgba(245,240,232,0.3);
    font-size: 0.8rem;
    margin-top: 25px;
}

/* ─── Music Btn ─── */
.noor-music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px; height: 48px;
    background: var(--noor-emerald);
    color: var(--noor-gold);
    border: 2px solid var(--noor-gold);
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.noor-music-btn:hover {
    background: var(--noor-gold);
    color: var(--noor-dark);
    transform: scale(1.1);
}

.noor-music-btn.playing {
    animation: noor-pulse 1.2s infinite;
}

@keyframes noor-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 18px rgba(201,168,76,0.4); }
}

/* InstaPay */
.noor-insta-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    border: none;
    border-radius: 50%;
    width: 65px; height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: noor-pulse 1.5s infinite;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .noor-menu { display: none; }
    .noor-toggle { display: flex; }
    .noor-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(4,57,39,0.98);
        padding: 20px;
        gap: 12px;
    }
    .noor-couple-names { font-size: 3rem; }
    .noor-section-title { font-size: 2rem; }
    .noor-timeline::before { left: 25px; }
    .noor-tl-item:nth-child(odd),
    .noor-tl-item:nth-child(even) {
        padding-left: 55px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .noor-tl-dot { left: 25px; }
    .noor-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .noor-gallery-item.large { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 576px) {
    .noor-couple-names { font-size: 2.2rem; }
    .noor-dates { flex-direction: column; gap: 8px; }
    .noor-countdown .cn { font-size: 1.8rem; }
    .noor-rsvp-wrapper { padding: 28px 18px; }
    .noor-nav { padding: 15px 18px; }
    .noor-hero-content { padding: 20px; }
}
