:root {
    --text-color: #3d2b1f;
    /* Dark, warm brown */
    --gold-color: #c9a464;
    /* Subtle gold */
    --bg-fallback: #f4edd8;
    /* Light beige/cream */

    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
    --font-arabic: 'Amiri', serif;
}

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

html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: clip;
}

body {
    background-color: #f6f1e3;
    /* Cream background instead of dark */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    font-family: var(--font-serif);
    padding: 0; /* Removed padding so hero section touches edges */
    gap: 40px;
}

.invitation-container {
    width: 100%; /* Full width */
    max-width: 550px;
    min-height: 850px;
    margin-top: 0 !important; /* Force to touch top edge */
    background-color: var(--bg-fallback);
    background-image: url('bg.png');
    background-size: cover;
    background-position: top center;
    border-radius: 0 0 40px 40px; /* Rounded only at bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Soft shadow for depth */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Lanterns */
.lantern {
    position: absolute;
    top: 0;
    width: 65px;
    z-index: 2;
    transform-origin: top center;
    opacity: 0;
}

.lantern-left {
    left: 10px;
    animation: dropBounce 1.2s cubic-bezier(0.28, 0.84, 0.42, 1) forwards, swing 6s ease-in-out infinite;
}

.lantern-right {
    right: 10px;
    animation: dropBounce 1.2s cubic-bezier(0.28, 0.84, 0.42, 1) 0.3s forwards, swing 6s ease-in-out 0.3s infinite;
}

@keyframes swing {
    0% {
        rotate: 2deg;
        opacity: 1;
    }

    50% {
        rotate: -2deg;
        opacity: 1;
    }

    100% {
        rotate: 2deg;
        opacity: 1;
    }
}

@keyframes dropBounce {
    0% {
        translate: 0 -100px;
        opacity: 0;
    }

    60% {
        translate: 0 10px;
        opacity: 1;
    }

    80% {
        translate: 0 -5px;
        opacity: 1;
    }

    100% {
        translate: 0 0;
        opacity: 1;
    }
}

/* Content Stack */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 85%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 100px 0 80px 0; /* Reduced top padding to move text up */
}

.content-wrapper>* {
    opacity: 0;
    animation: revealUp 0.8s ease-out forwards;
}

.content-wrapper> :nth-child(1) {
    animation-delay: 0.6s;
}

.content-wrapper> :nth-child(2) {
    animation-delay: 0.8s;
}

.content-wrapper> :nth-child(3) {
    animation-delay: 1.0s;
}

.content-wrapper> :nth-child(4) {
    animation-delay: 1.2s;
}

.content-wrapper> :nth-child(5) {
    animation-delay: 1.4s;
}

.content-wrapper> :nth-child(6) {
    animation-delay: 1.6s;
}

.content-wrapper> :nth-child(7) {
    animation-delay: 1.8s;
}

.content-wrapper> :nth-child(8) {
    animation-delay: 2.0s;
}

.content-wrapper> :nth-child(9) {
    animation-delay: 2.2s;
}

@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.arabic-bismillah {
    font-family: var(--font-arabic);
    font-size: 1.7rem;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.3;
}

.bismillah-translation {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--text-color);
    max-width: 80%;
    line-height: 1.4;
}

.arabic-verse {
    font-family: var(--font-arabic);
    font-size: 1.6rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 8px;
}

.verse-translation {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 6px;
}

.reference-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #6a5344;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55%;
    margin: 20px 0;
    gap: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: var(--gold-color);
}

.diamond {
    width: 4px;
    height: 4px;
    background-color: var(--gold-color);
    transform: rotate(45deg);
}

.heart {
    color: var(--gold-color);
    font-size: 1.2rem;
}

/* Text */
.welcome-text {
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 5px;
}

.host-name {
    font-family: var(--font-script);
    font-size: 3.8rem;
    color: #352115;
    margin: 0 0 10px 0;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 1px;
}

.invite-text {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Flowers */
.flower {
    position: absolute;
    bottom: -15px;
    width: 220px;
    z-index: 5;
    pointer-events: none;
}

.flower-left {
    left: -15px;
    opacity: 0;
    animation: slideRight 1.2s ease-out 2.4s forwards;
}

.flower-right {
    right: -15px;
    opacity: 0;
    animation: slideLeft 1.2s ease-out 2.4s forwards;
}

@keyframes slideRight {
    0% {
        transform: translateX(-40px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(40px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Bottom Ornament */
.bottom-ornament {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    animation: revealUp 1.2s ease-out 2.6s forwards;
}

/* Responsive */
@media (max-width: 500px) {
    body {
        padding: 20px 0;
    }

    .invitation-container {
        min-height: 100vh;
        max-width: 100%;
        box-shadow: none;
    }

    .lantern {
        width: 52px;
    }

    .flower {
        width: 180px;
    }

    .content-wrapper {
        padding: 135px 0 80px 0;
    }

    .host-name {
        font-size: 3.2rem;
    }

    .arabic-bismillah {
        font-size: 1.5rem;
    }

    .arabic-verse {
        font-size: 1.4rem;
    }

    .divider {
        width: 70%;
    }
}

/* =========================================
   Haldi Card Styles 
   ========================================= */
.haldi-card, .mehendi-card {
    width: calc(100% - 40px);
    /* 20px away from left and right */
    max-width: 550px;
    aspect-ratio: 396 / 555;
    /* Lock to image proportions */
    background-color: #fcfbf8;
    background-size: 100% 100%;
    /* Ensure exact fit */
    background-position: center;
    position: relative;
    border-radius: 40px;
    /* Increased border radius */
    /* Soft, multi-layered floating shadow */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left-align content */
    padding: 5% 4% 4% 4%;
    /* Reduced right/bottom padding to let the inner card expand */
    margin-bottom: 10px;
}

.haldi-card {
    background-image: url('Haldi Card BG.png');
    margin-bottom: -20px;
}

.mehendi-card {
    background-image: url('Mehendi Card.png');
}

.pill-badge {
    background-color: #fdf5d3;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pill-icon {
    font-size: 1rem;
}

.pill-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #df9e19;
    /* Gold */
    font-weight: 600;
}

.card-headings {
    text-align: left;
    margin-bottom: 5px;
    /* Reduced margin */
}

.heading-primary {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    /* Scaled down */
    color: #6d4b32;
    /* Slightly lighter brown */
    line-height: 1;
    font-weight: 600;
}

.heading-secondary {
    font-family: var(--font-script);
    font-size: 3.5rem;
    /* Scaled down */
    color: #df9e19;
    /* Gold */
    line-height: 0.8;
    margin-top: 5px;
    font-weight: 400;
}

.divider-line {
    width: 200px;
    max-width: 100%;
    height: 1px;
    background-color: #d8d0c5;
    margin: 10px 0;
    /* Scaled down margin */
}

.subheading-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    /* Scaled down */
    color: var(--text-color);
    margin-bottom: 15px;
    /* Scaled down margin */
    text-align: left;
    max-width: 220px;
    line-height: 1.4;
}

/* Countdown Widget */
.countdown-widget {
    width: 100%;
    max-width: 200px;
    /* Scaled down width */
    background-color: #fcfbf8;
    border-radius: 12px;
    /* Recessed / carved out shadow */
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.06),
        0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 15px;
    /* Reduced margin */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.countdown-body {
    display: flex;
    padding: 10px;
    /* Scaled down padding */
    align-items: center;
}

.countdown-left {
    flex: 1;
    display: flex;
    justify-content: center;
    border-right: 1px solid #efeae2;
}

.countdown-icon {
    width: 35px;
    /* Scaled down */
    height: auto;
}

.countdown-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-number {
    font-size: 2.2rem;
    /* Scaled down */
    font-family: 'Times New Roman', Times, serif;
    color: var(--text-color);
    line-height: 1;
    font-weight: 700;
}

.countdown-label {
    font-size: 0.75rem;
    /* Scaled down */
    font-family: 'Times New Roman', Times, serif;
    color: var(--text-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 3px;
}

.countdown-footer {
    background-color: #e5b022;
    padding: 8px;
    /* Scaled down padding */
    text-align: center;
    font-family: var(--font-serif);
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    /* Scaled down */
    /* Distinct shadow to pop it forward from recessed widget */
    box-shadow: 0 -4px 15px rgba(229, 176, 34, 0.4);
}

/* Event Details Container */
.event-details-container {
    width: 104%;
    /* Slightly wider than the text content above it */
    margin-left: -2%;
    /* Keep it centered relative to its expanded width */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
    /* Restored space */
    padding: 25px 15px;
    /* Reduced top padding to match bottom */
    border-radius: 25px;
    /* Reduced border radius */
    background-color: #f8f4ec;
    /* Solid matching background */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Pronounced bottom shadow */
    margin-bottom: -5px;
    /* Removed margin */
    margin-top: auto;
    /* Pushes the card to the absolute bottom */
}

.detail-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #e2d8c9;
    /* Vertical divider line */
}

.detail-column:nth-of-type(3) {
    border-right: none;
}

.detail-icon {
    width: 50px;
    /* Increased size */
    height: 50px;
    margin-bottom: 12px;
    /* Increased margin */
    object-fit: contain;
}

.detail-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    /* Increased font */
    font-weight: 500;
    color: #4a3831;
    /* Darker brown/grey text */
    line-height: 1.25;
}

/* CTA Button */
.cta-button {
    grid-column: 1 / -1;
    /* Spans all 3 columns */
    width: calc(100% - 20px);
    /* Account for padding */
    margin: 0 auto;
    background-color: #e5b022;
    color: #ffffff;
    /* White text */
    border: none;
    padding: 15px 25px;
    /* Increased padding */
    border-radius: 12px;
    /* Reduced border radius */
    font-family: var(--font-serif);
    font-size: 1.2rem;
    /* Increased font */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space out text and arrow */
    cursor: pointer;
    /* Prominent drop-shadow to float off page */
    box-shadow: 0 15px 25px rgba(229, 176, 34, 0.5);
    /* Stronger bottom shadow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(229, 176, 34, 0.6);
}

.cta-arrow {
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mehendi Card Specific Styles */
.mehendi-pill {
    background-color: #ffffff;
}

.mehendi-pill-text {
    color: #6a743a !important;
}

.mehendi-heading {
    color: #354425 !important;
}

.mehendi-theme-bg {
    background-color: #747c43 !important;
    box-shadow: 0 15px 25px rgba(116, 124, 67, 0.5) !important;
}

.cta-button.mehendi-theme-bg:hover {
    box-shadow: 0 15px 30px rgba(116, 124, 67, 0.6) !important;
}

.countdown-footer.mehendi-theme-bg {
    box-shadow: 0 -4px 15px rgba(116, 124, 67, 0.4) !important;
}

/* Final Invite Section */
.final-invite-section {
    text-align: center;
    margin: -10px 20px 0 20px; /* Reduced bottom gap */
    z-index: 10;
}

.final-invite-text {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.4;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.write-line {
    background: linear-gradient(to right, currentColor 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.final-invite-text .write-line {
    color: #211915;
}

.insha-allah {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: #111;
    font-weight: 400;
    margin-top: 10px;
}

/* Animations triggered via JS */
.animate-text .line-1 { animation: writeText 1s ease-out forwards; }
.animate-text .line-2 { animation: writeText 1s ease-out forwards 0.8s; }
.animate-text .line-3 { animation: writeText 1s ease-out forwards 1.6s; }
.animate-text .line-4 { animation: writeText 1.5s ease-in-out forwards 2.6s; }

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

/* =========================================
   Nikah Section Styles
   ========================================= */
.nikah-section {
    align-self: stretch;
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    background-color: #1b351e;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: -20px; /* Counteract flex gap */
    margin-bottom: 0;
    /* Sticky parallax properties */
    position: sticky;
    top: 0;
    z-index: 1;
}

.nikah-banner {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    border-bottom: 8px solid #c9a464; /* Golden strip */
}

.nikah-content {
    background-image: url('Nikah BG.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 4% 6% 4%;
    z-index: 2;
    margin-top: 0;
}

.nikah-circle {
    width: 90px;
    height: 90px;
    background-color: #1b351e; /* Dark green */
    border: 3px solid #c9a464; /* Gold */
    border-radius: 50%;
    margin-top: -45px; /* Overlap the banner */
    margin-bottom: 25px;
    /* Bottom golden shadow */
    box-shadow: 0 12px 25px rgba(201, 164, 100, 0.6), 0 5px 10px rgba(0, 0, 0, 0.2);
}

.nikah-headings {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.nikah-title {
    color: #ffffff !important;
    font-size: 3.2rem;
    letter-spacing: 1px;
}

.nikah-subtitle {
    color: #c9a464 !important;
    margin-top: 5px;
}

.nikah-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    width: 65%;
}

.nikah-line {
    flex-grow: 1;
    height: 1px;
    background-color: #c9a464;
}

.nikah-heart {
    color: #c9a464;
    font-size: 1.2rem;
}

.nikah-quote {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    text-align: center;
    margin: 15px 0 25px 0;
    line-height: 1.4;
}

.nikah-divider-bottom {
    display: flex;
    align-items: center;
    width: 80%;
    margin-bottom: 35px;
}

.nikah-line-long {
    flex-grow: 1;
    height: 2px;
    background-color: #c9a464;
}

.nikah-dot {
    width: 6px;
    height: 6px;
    background-color: #c9a464;
    border-radius: 50%;
}

.nikah-details {
    background-color: #f6ebd1;
    width: 100%;
    margin-left: 0;
    border-radius: 20px;
    margin-bottom: 20px;
    margin-top: 0;
}

.nikah-cta {
    background-color: #e3d8c8 !important;
    color: #1a2215 !important;
    border: 2px solid #c9a464 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    width: 100%;
}

.nikah-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3) !important;
}

/* =========================================
   Walima Section Styles
   ========================================= */
.walima-section {
    align-self: stretch;
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    background-color: #f7ecd7; /* Base cream color */
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: -40px; /* Counteract flex gap to touch Nikah section */
    margin-bottom: 0;
    /* Parallax overlay properties */
    position: relative;
    z-index: 2;
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.2); /* Top shadow for depth while sliding over */
}

.walima-banner {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    border-bottom: 8px solid #c9a464; /* Golden strip */
}

.walima-content {
    background-image: url('walima-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 4% 6% 4%;
    z-index: 2;
    margin-top: 0;
}

.walima-circle {
    width: 90px;
    height: 90px;
    background-color: #f6eed9; /* Cream background matching box */
    border: 3px solid #c9a464; /* Gold */
    border-radius: 50%;
    margin-top: -45px; /* Overlap the banner exactly */
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Softer shadow for lighter theme */
}

.walima-headings {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.walima-title {
    color: #4a3831 !important; /* Dark brown */
    font-size: 3.2rem;
    letter-spacing: 1px;
}

.walima-subtitle {
    color: #c9a464 !important; /* Gold */
    margin-top: 5px;
}

.walima-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    width: 65%;
}

.walima-line {
    flex-grow: 1;
    height: 1px;
    background-color: #c9a464;
}

.walima-heart {
    color: #c9a464;
    font-size: 1.2rem;
}

.walima-quote {
    color: #211915;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    text-align: center;
    margin: 15px 0 25px 0;
    line-height: 1.4;
}

.walima-divider-bottom {
    display: flex;
    align-items: center;
    width: 80%;
    margin-bottom: 35px;
}

.walima-line-long {
    flex-grow: 1;
    height: 2px;
    background-color: #c9a464;
}

.walima-dot {
    width: 6px;
    height: 6px;
    background-color: #c9a464;
    border-radius: 50%;
}

.walima-details {
    background-color: rgba(246, 238, 217, 0.7); /* Slightly transparent cream */
    width: 100%;
    margin-left: 0;
    border-radius: 20px;
    margin-bottom: 20px;
    margin-top: 0;
}

.walima-cta {
    background-color: #aa8649 !important; /* Solid brown-gold */
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(170, 134, 73, 0.4) !important;
    width: 100%;
}

.walima-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(170, 134, 73, 0.5) !important;
}

/* =========================================
   Welcoming Card Styles
   ========================================= */
.welcoming-card {
    background-color: #fdfaf4;
    background-image: 
        radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%),
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.04"/></svg>');
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(255, 255, 255, 0.6) inset;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.welcoming-intro {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #2b1e1a;
    font-weight: 500;
    margin-bottom: 0;
}

.welcoming-headline {
    font-family: var(--font-script);
    font-size: 3.8rem;
    color: #b08940;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 400;
    white-space: nowrap;
}

.welcoming-names {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #2b1e1a;
    font-weight: 500;
    line-height: 1.3;
    padding: 0 10px;
}

@media (max-width: 450px) {
    .welcoming-headline {
        font-size: 3.2rem;
    }
    .contact-name {
        font-size: 0.95rem;
    }
    .contact-number {
        font-size: 0.9rem;
    }
}

/* =========================================
   Footer Section Styles
   ========================================= */
.invitation-footer {
    width: 100%;
    position: relative;
    background-color: #fdfaf4; /* Fallback color for where the image doesn't cover */
    background-image: url('footer-bg.png');
    background-size: 100% auto; /* Forces image to full width and keeps aspect ratio */
    background-position: bottom center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px; /* Counteracts body gap to remove the space */
    z-index: 10;
}

.footer-top-border {
    width: 100%;
    height: 12px;
    background-color: #ceab6b; /* Warm gold matching image */
}

.footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 20px 15px 20px; /* Increased top padding by 4px */
}

.footer-arabic {
    font-family: var(--font-arabic);
    font-size: 2.2rem; /* Reduced further from 2.8rem */
    color: #344626; /* Dark olive green */
    line-height: 0.5; /* Reduced further from 0.7 */
    margin-bottom: 18px; /* Increased from 5px to push subtext lower */
    text-align: center;
}

.footer-subtext {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #2b1e1a; /* Deep dark brown */
    text-align: center;
    line-height: 1.1; /* Reduced from 1.4 */
    margin-bottom: 5px; /* Reduced from 15px */
    font-weight: 500;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 65%;
    max-width: 300px;
    margin-bottom: 5px; /* Reduced from 15px */
}

.footer-diamond {
    width: 6px;
    height: 6px;
    background-color: #c9a464;
    transform: rotate(45deg);
}

.footer-line {
    flex-grow: 1;
    height: 2px;
    background-color: #c9a464;
}

.footer-heart {
    color: #c9a464; /* Solid gold */
    font-size: 1.6rem;
}

.contact-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* Reduced from 40px */
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #2b1e1a;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px; /* Reduced from 20px */
    text-align: center;
}

.contact-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
}

.contact-pill {
    background-color: #fdfaf4; /* Off-white */
    border-radius: 30px;
    padding: 8px 12px 8px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1;
    max-width: 250px;
}

.contact-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.contact-icon-wrapper {
    width: 45px;
    height: 45px;
    background-color: transparent; /* Removed background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    width: 32px; /* Increased from 20px */
    height: 32px; /* Increased from 20px */
    object-fit: contain;
}

.contact-info {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.contact-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #2b1e1a;
    font-weight: 500;
    line-height: 1.2;
}

.contact-number {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    color: #5c4d44; /* Greyish brown */
    line-height: 1.2;
    font-weight: 400;
}

.move-to-top {
    background: transparent;
    border: 1px solid #dfcfb6;
    border-radius: 30px;
    padding: 8px 18px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #b59f7f;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    margin-bottom: 15px; /* Reduced from 30px */
}

.move-to-top:hover {
    background-color: #dfcfb6;
    color: #2b1e1a;
}

.arrow-up-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #b59f7f;
    border-radius: 50%;
    font-size: 0.9rem;
}

.branding-divider {
    width: 80%;
    max-width: 320px;
    height: 1px;
    background-color: #dfcfb6;
    margin-bottom: 5px; /* Reduced from 10px */
}

.footer-branding {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #2b1e1a;
    font-weight: 500;
    margin-bottom: 15px; /* Reduced from 40px */
}

/* Lenis Smooth Scroll */
html.lenis, html.lenis body {
  height: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

body {
  width: 100%;
  overflow-x: clip;
  position: relative;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}