@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Poppins:wght@300;400;600&family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;600;700&display=swap');

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

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(to bottom, #faf8f5 0%, #fff 50%, #faf8f5 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.heart {
    position: absolute;
    background: linear-gradient(135deg, rgba(218, 165, 140, 0.3), rgba(188, 143, 143, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 8s ease-in-out infinite;
    filter: blur(0.5px);
}

.heart:nth-child(odd) {
    animation-delay: -2s;
    background: linear-gradient(135deg, rgba(222, 184, 135, 0.4), rgba(205, 133, 63, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heart:nth-child(even) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Lily Decorations */
.lily-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Top Left Corner - Fixed */
.lily-top-left {
    top: 20px;
    left: 20px;
    width: 200px;
    height: auto;
    transform: rotate(-15deg);
    opacity: 0.6;
}

/* Top Right Corner - Gentle Float */
.lily-top-right {
    top: 30px;
    right: 30px;
    width: 180px;
    height: auto;
    transform: rotate(15deg);
    animation: floatGentle 6s ease-in-out infinite;
    opacity: 0.65;
}

/* Bottom Left - Swaying */
.lily-bottom-left {
    bottom: 40px;
    left: 40px;
    width: 220px;
    height: auto;
    transform: rotate(-10deg) scale(-1) !important;
    transform-origin: center !important;
    animation: sway 8s ease-in-out infinite;
    opacity: 0.6;
}

/* Bottom Right - Fixed */
.lily-bottom-right {
    bottom: 30px;
    right: 20px;
    width: 190px;
    height: auto;
    transform: rotate(-20deg);
    opacity: 0.65;
}

/* Center Left - Floating */
.lily-center-left {
    top: 40%;
    left: -30px;
    width: 150px;
    height: auto;
    transform: scaleX(-1) !important;
    animation: floatSlow 10s ease-in-out infinite;
    opacity: 0.5;
}

/* Center Right - Floating */
.lily-center-right {
    top: 45%;
    right: -20px;
    width: 160px;
    height: auto;
    transform: translateY(-50%) rotate(25deg);
    animation: floatSlow 9s ease-in-out infinite reverse;
    opacity: 0.55;
}

/* Small accent lily - Top Center */
.lily-accent-top {
    top: 5%;
    left: 50%;
    width: 40%;
    height: auto;
    transform: translateX(-50%) rotate(5deg) !important;
    animation: gentleRotate 12s ease-in-out infinite;
    opacity: 0.3;
}

/* Small accent lily - Middle */
.lily-accent-middle {
    top: 60%;
    left: 45%;
    width: 100px;
    height: auto;
    transform: rotate(-10deg);
    animation: floatGentle 7s ease-in-out infinite;
    opacity: 0.35;
}

/* Lily Animations */
@keyframes floatGentle {
    0%, 100% {
        transform: rotate(15deg) translateY(0px);
    }
    50% {
        transform: rotate(18deg) translateY(-15px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(-50%) rotate(-25deg) translateX(0px);
    }
    50% {
        transform: translateY(-50%) rotate(-22deg) translateX(10px);
    }
}

@keyframes sway {
    0%, 100% {
        transform: rotate(10deg) translateX(0px);
    }
    25% {
        transform: rotate(12deg) translateX(8px);
    }
    75% {
        transform: rotate(8deg) translateX(-8px);
    }
}

@keyframes gentleRotate {
    0%, 100% {
        transform: translateX(-50%) rotate(5deg);
    }
    50% {
        transform: translateX(-50%) rotate(-5deg);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.language-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px;
    border: 2px solid rgba(218, 165, 140, 0.2);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
}

.lang-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    background: transparent;
    color: #6b4423;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #daa58c, #bc8f8f);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.lang-btn:hover::before, .lang-btn.active::before {
    left: 0;
}

.lang-btn:hover, .lang-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(218, 165, 140, 0.3);
}

.main-header {
    margin: 30px 0 0;
    position: relative;
    padding: 10px;
}

.main-header::before {
    content: '✿';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #daa58c;
    opacity: 0.4;
}

.couple-names {
    font-family: 'Allura', cursive;
    font-size: clamp(4.5rem, 14vw, 9rem);
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    letter-spacing: 3px;
    color: #5d4037;
}

.name {
    display: inline-block;
    background: linear-gradient(135deg, #8b5a3c 0%, #a0826d 50%, #6b4423 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(139, 90, 60, 0.1));
}

.name:first-child {
    animation-delay: 0s;
}

.name:last-child {
    animation-delay: 1.5s;
}

.name:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(139, 90, 60, 0.2));
}

.heart-separator {
    display: inline-block;
    font-size: clamp(2rem, 6vw, 3.5rem);
    animation: heartBeat 2.5s ease-in-out infinite;
    color: #daa58c;
    text-shadow: 0 2px 8px rgba(218, 165, 140, 0.3);
    transition: all 0.3s ease;
    margin: 0;
}

.heart-separator:hover {
    color: #bc8f8f;
    text-shadow: 0 4px 12px rgba(188, 143, 143, 0.5);
    transform: scale(1.2);
}

.couple-names:hover .name {
    animation-play-state: paused;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wedding-date {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #8b6f47;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.countdown-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 30px;
    margin: 50px 0;
    box-shadow:
        0 10px 40px rgba(139, 69, 19, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(218, 165, 140, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #daa58c, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.countdown-container:hover::before {
    opacity: 1;
}

.countdown-container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 50px rgba(139, 69, 19, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: #5d4037;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 1px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.time-unit {
    background: linear-gradient(135deg, #f5f0eb 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 30px 20px;
    color: #5d4037;
    box-shadow:
        0 4px 15px rgba(139, 69, 19, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(218, 165, 140, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #daa58c, #bc8f8f, #daa58c);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.time-unit:hover::before {
    transform: scaleX(1);
}

.time-unit:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 10px 30px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(218, 165, 140, 0.4);
}

.time-number {
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.time-unit:hover .time-number {
    color: #8b5a3c;
    transform: scale(1.05);
}

.time-number {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.time-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    opacity: 0.8;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.invitation-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow:
            0 10px 40px rgba(139, 69, 19, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 50px 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.invitation-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), transparent, rgba(212, 175, 55, 0.2));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.invitation-section::after {
    content: '🌸';
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 2.5rem;
    opacity: 0.2;
    filter: grayscale(0.5) sepia(0.3);
}

.invitation-section:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 50px rgba(139, 69, 19, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #e5c158;
}

@keyframes gentleSwayMid {
    0%, 100% {
        transform: translateY(-50%) rotate(-15deg) translateX(0px);
    }
    50% {
        transform: translateY(-50%) rotate(-12deg) translateX(3px);
    }
}



.invitation-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #5d4037;
    margin-bottom: 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.invitation-title:hover {
    color: #8b5a3c;
    transform: scale(1.02);
}

.venue-info {
    color: #6b4423;
    margin: 25px 0;
}

.venue-name {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: #5d4037;
}

.venue-details {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 400;
    margin: 12px 0;
    font-family: 'Cormorant Garamond', serif;
    color: #8b6f47;
}

.map-button {
    display: inline-block;
    padding: 16px 35px;
    background: linear-gradient(135deg, #d4af37, #f4e4c1, #d4af37);
    background-size: 200% 200%;
    color: #5d4037;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 25px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.map-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.map-button:hover::before {
    left: 100%;
}

.map-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #f4e4c1, #d4af37, #f4e4c1);
}

.arabic-text {
    font-family: 'Amiri', serif;
    direction: rtl;
    text-align: center;
}

.love-message {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    color: #8b6f47;
    margin: 30px 0 0;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.6;
}

.sparkles {
    display: inline-block;
    animation: sparkle 2s linear infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}
.arabic-text .couple-names {
    font-family: 'El Messiri', sans-serif !important;
}
/* Mobile optimizations */
@media (max-width: 768px) {

    .main-header {
        margin: 0;
        padding: 10px 10px;
    }

    .language-switcher {
        padding: 6px;
        position: static;
        justify-content: center;
        margin: 20px auto 10px;
        max-width: 90%;
        top: auto;
        right: auto;
    }

    .lang-btn {
        padding: 8px 14px;
        font-weight: 500;
        font-size: 13px;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .time-unit {
        padding: 25px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .invitation-section {
        padding: 35px 25px;
    }

    .countdown-container {
        padding: 35px 20px;
        margin: 35px 0;
    }

    /* Adjust lily sizes for mobile */
    .lily-top-left {
        width: 120px;
        top: 10px;
        left: 10px;
    }

    .lily-top-right {
        width: 100px;
        top: 15px;
        right: 15px;
    }

    .lily-bottom-left {
        width: 130px;
        bottom: 20px;
        left: 15px;
    }

    .lily-bottom-right {
        width: 110px;
        bottom: 15px;
        right: 10px;
    }

    .lily-center-left,
    .lily-center-right {
        display: none; /* Hide side lilies on mobile */
    }

    .lily-accent-top {
        width: 100%;
    }

    .lily-accent-middle {
        width: 60px;
    }

    /* Arabic names keep horizontal layout like English/French */
    .arabic-text .name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .arabic-text .heart-separator {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .time-unit {
        padding: 20px 12px;
    }

    .invitation-section {
        padding: 30px 20px;
    }

    .countdown-container {
        padding: 30px 15px;
    }

    /* Enhanced Arabic mobile styling - keep horizontal */
    .arabic-text .couple-names {
        font-size: clamp(4.5rem, 14vw, 9rem);
        font-family: 'El Messiri', sans-serif !important;
        margin-bottom: 25px;
    }

    .arabic-text .name {
        font-size: clamp(2rem, 15vw, 3.5rem);
        line-height: 1.2;
    }

    .arabic-text .heart-separator {
        font-size: clamp(1.2rem, 10vw, 2rem);
        margin: 0 8px;
    }

    .arabic-text .heart-separator:hover {
        margin: 0 4px;
    }

    /* Adjust Arabic text direction and spacing on mobile */
    .arabic-text .main-header {
        margin: 20px 0 30px;
    }

    .arabic-text .wedding-date {
        font-size: clamp(0.95rem, 5vw, 1.4rem);
        margin-bottom: 15px;
        font-weight: bolder !important;
        line-height: 1.5;
    }
}

.pulse {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.contact-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 243, 237, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    margin: 30px 0;
    box-shadow: 
        0 8px 30px rgba(139, 69, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '✤';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #d4af37;
    opacity: 0.15;
}

.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #e5c158;
}

.phone-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    color: #5d4037;
    font-weight: 600;
    margin: 15px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.phone-number::before {
    content: '✆';
    margin-right: 10px;
    font-size: 1.2em;
    display: inline-block;
    color: #d4af37;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50%, 100% { transform: rotate(0deg); }
}

.phone-number:hover {
    color: #d4af37;
    transform: scale(1.05);
}

.contact-label {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #8b6f47;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

