* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body{
    font-family:'Poppins',sans-serif;
    overflow:hidden;
    overflow-x:hidden;
    background:#fcf6ea;
    color:#333;
}

/* Loader */
.loader-text{
    margin-top:15px;
    margin-bottom:25px;
    color:#777;
    font-size:15px;
    letter-spacing:1px;
}

#openInvitation{
    padding:14px 35px;
    border:none;
    border-radius:50px;
    background:#6b2232;
    color:#fff;
    font-size:16px;
    cursor:pointer;
    transition:.35s;
    box-shadow:0 8px 20px rgba(107,34,50,.25);
}

#openInvitation:hover{
    transform:translateY(-3px);
    background:#812b3d;
}

#loader{
    transition:opacity .8s ease, visibility .8s ease;
}

#loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#faf7f2;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    z-index:9999;

    transition:opacity .8s ease;
}

.ring {
    font-size: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

#loader h1 {
    margin-top: 20px;
    font-size: 40px;
    font-family: 'Great Vibes', cursive;
    color: #6b2232;
}

/* Hero Section */
#hero {

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* background: linear-gradient(180deg, #faf7f2, #ffffff); */
    overflow: hidden;
    padding: 20px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #ffffff80 0%, transparent 80%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.top-text {
    letter-spacing: 3px;
    color: #8c8c8c;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 80px;
    font-family: 'Great Vibes', cursive;
    color: #6b2232;
    line-height: 1.1;
    word-wrap: break-word;
}

.hero-content h1 span {
    font-size: 45px;
    margin: 5px 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    display: inline-block;
}

.invite {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    font-style: italic;
    padding: 0 10px;
}

/* Enhanced Date Box */
.date-box {
    margin: 35px auto;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #6b223225;
    border-bottom: 1px solid #6b223225;
    padding: 15px 10px;
    max-width: 450px;
}

.date-side small {
    font-size: 13px;
    letter-spacing: 1px;
    color: #555;
    font-weight: 500;
}

.day h2 {
    font-size: 56px;
    color: #6b2232;
    font-weight: 400;
    line-height: 1;
}

.day span {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #6b2232;
    white-space: nowrap;
}

button, .maps-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #6b2232;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(107, 34, 50, 0.15);
    transition: .3s ease;
    margin-bottom: 30px;
}

button:hover, .maps-btn:hover {
    transform: translateY(-2px);
    background: #812b3d;
    box-shadow: 0 6px 20px rgba(107, 34, 50, 0.25);
}

/* Details & Countdown Section */
#details {
    /* background: #ffffff; */
    text-align: center;
}
/* Couple Image */
.couple-image{
    display: block;
    width: 35%;
    max-width: 420px;
    min-width: 250px;
    margin: 0 auto 30px;
    height: auto;
    border-radius: 10%;
}

#details h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 45px;
    color: #6b2232;
    margin-bottom: 35px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0 auto 40px auto;
    max-width: 500px;
}

.time-box {
    background: #faf7f2;
    padding: 15px 10px;
    border-radius: 12px;
    flex: 1;
    min-width: 70px;
    max-width: 90px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.time-box span {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: #6b2232;
}

.time-box small {
    color: #777;
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.separator {
    width: 60px;
    height: 1px;
    background: #6b223230;
    border: none;
    margin: 35px auto;
}

/* Venue Info */
.venue-info h3 {
    font-size: 24px;
    color: #6b2232;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.venue-info .time {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
}

.venue-info .location-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.venue-info .address {
    color: #6b2232;
    font-size: 26px;
    margin-bottom: 25px;
    padding: 0 15px;
}

/* ... باقي الـ CSS القديم ... */

/* Details Image */
.details-image {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Venue Gallery */
.venue-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px auto;
    max-width: 400px;
}

.gallery-image {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.gallery-image img {
    width: 100%;
    display: block;
    transition: transform .35s ease, filter .35s ease;
}

.gallery-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}



/* ==========================================================
   Media Queries (الميديا كويري لضبط الموبايل تماماً)
   ========================================================== */

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 55px; /* صغرنا الاسم عشان ميتكسرش على الموبايلات الضيقة */
    }
    
    .hero-content h1 span {
        font-size: 30px;
        display: block; /* علامة & هتبقى في سطر لوحدها بشكل شيك */
        margin: 2px 0;
    }
    
    .top-text {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .invite {
        font-size: 15px;
    }

    /* تحويل صندوق التاريخ لشكل رأسي متناسق للموبايل */
    .date-box {
        flex-direction: column;
        gap: 12px;
        padding: 20px 10px;
        max-width: 280px;
    }

    .date-side small {
        font-size: 14px;
    }

    .day h2 {
        font-size: 50px;
    }

    .day span {
        font-size: 12px;
    }
    
    /* ضبط كروت العداد التنازلي */
    .countdown-container {
        gap: 8px;
    }
    
    .time-box {
        padding: 12px 5px;
    }
    
    .time-box span {
        font-size: 22px;
    }
    
    .time-box small {
        font-size: 10px;
    }

    #details h2 {
        font-size: 38px;
    }
    
    button, .maps-btn {
        width: 100%; /* الزرار بياخد العرض كامل في الموبايل عشان يبقى أسهل في الدوس */
        max-width: 280px;
        padding: 14px 20px;
        font-size: 15px;
    }
    /* Couple Image */
.couple-image{
    width: 80%;
    max-width: 320px;
    min-width: unset;
    margin-bottom: 25px;
}
}

/* ضبط الشاشات المتوسطة (Tablets) */
@media (min-width:481px) and (max-width:768px){

    .hero-content h1{
        font-size:70px;
    }

    .date-box{
        gap:20px;
    }

    .couple-image{
        width:55%;
        max-width:360px;
    }

}