:root {
    --bg-dark: #4c0519;
    --bg-light: #831843;
    --accent: #fbbf24;
    --text: #fff1f2;
    --glass: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    /* تحسين جودة الخطوط */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

.scroll-container {
    height: 100vh; /* fallback */
    height: 100dvh; /* Dynamic Viewport Height for mobile */
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.full-page {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 1.5rem; /* مسافة أمان للجوانب */
}

.content-box {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 450px; /* عرض مناسب جداً لجميع الشاشات */
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

/* لمنع الـ Card من الخروج بره الشاشات الصغيرة جداً */
@media (max-width: 350px) {
    .content-box {
        padding: 2rem 1rem;
        border-radius: 1.5rem;
    }
}

.main-title {
    font-size: clamp(1.8rem, 10vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(to bottom, #fff, #fecdd3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title {
    font-size: clamp(1.3rem, 7vw, 2.2rem);
    margin-bottom: 2.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.next-btn {
    background: var(--accent);
    color: #4c0519;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 160px;
}

.next-btn:hover {
    transform: scale(1.08) translateY(-2px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.4);
}

.next-btn:active {
    transform: scale(0.95);
}

.floating-hearts {
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin-bottom: 1rem;
    display: block;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.final-text {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    line-height: 1.8;
    color: #fecdd3;
}

.final-heart {
    font-size: clamp(3rem, 15vw, 5rem);
    margin-top: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(225, 29, 72, 0.5));
}

/* تخصيص الشاشات العريضة (Desktops) */
@media (min-width: 1024px) {
    .content-box {
        max-width: 550px;
        padding: 4rem 3rem;
    }
}

/* تخصيص الوضع الأفقي في الموبايلات (Landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .full-page {
        padding: 1rem;
    }
    .content-box {
        padding: 1.5rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        max-width: 80%;
    }
    .main-title, .sub-title {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
    .floating-hearts {
        font-size: 2rem;
        margin-bottom: 0;
    }
}
