/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e84e89; /* Deep Pink from Book */
    --secondary-color: #3bbcb2; /* Teal Accent */
    --accent-color: #9254a3; /* Purple Accent */
    --bg-color: #f7e4d8; /* Visible warm beige/peach tint from the book cover */
    --text-dark: #201e30; /* Dark Navy matching book spine for text */
    --text-muted: #5e5a75;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Quicksand', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Mandala Backgrounds */
.mandala {
    position: fixed;
    width: 800px;
    height: 800px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="none" stroke="rgba(232,78,137,0.15)" stroke-width="1"/><circle cx="50" cy="50" r="35" fill="none" stroke="rgba(59,188,178,0.2)" stroke-width="1" stroke-dasharray="2 2"/><path d="M50,2 L50,98 M2,50 L98,50 M16,16 L84,84 M16,84 L84,16" stroke="rgba(146,84,163,0.15)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(232,78,137,0.2)" stroke-width="1.5"/></svg>');
    background-position: center;
    background-size: cover;
    z-index: 0;
    opacity: 0.6;
    animation: spin 60s linear infinite;
    pointer-events: none;
}

.mandala-1 {
    top: -300px;
    left: -300px;
}

.mandala-2 {
    bottom: -400px;
    right: -200px;
    width: 1000px;
    height: 1000px;
    animation: spin-reverse 80s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Blurry Blobs Effect */
.blurry-blobs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background-color: var(--primary-color);
    animation-delay: 0s;
    opacity: 0.3; /* التخفيف من سطوع الجزء الأيسر بناء على طلبك */
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background-color: var(--secondary-color);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%; left: 60%;
    width: 40vw; height: 40vw;
    background-color: var(--accent-color);
    animation-delay: -10s;
}

.blob-4 {
    bottom: 20%; left: -10%;
    width: 45vw; height: 45vw;
    background-color: #ffba08; /* Yellow/Gold */
    animation-delay: -15s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, -5vh) scale(1.1); }
    100% { transform: translate(-3vw, 5vh) scale(0.9); }
}

/* Artistic Background Particles */
.art-particles {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    opacity: 0;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* Background Overlay for readability */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(200, 160, 150, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Layout Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header */
header {
    padding-top: 1rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 4px;
    color: var(--text-dark);
}

.logo span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Main Content Wrapper */
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 4rem;
    padding: 4rem 0;
}

/* Text Content */
.text-content {
    flex: 1;
    max-width: 600px;
    animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(232, 78, 137, 0.5);
    border-radius: 30px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    background: rgba(232, 78, 137, 0.1);
    box-shadow: 0 0 20px rgba(232, 78, 137, 0.2);
}

.headline {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s linear infinite;
}

.description {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Form */
.notify-form {
    display: flex;
    gap: 1rem;
    position: relative;
    max-width: 500px;
}

.notify-form input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.notify-form input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
}

.notify-form button {
    padding: 0 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notify-form button:hover {
    background: #ff5272;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.6);
    transform: translateY(-2px);
}

/* Visual / Book Content */
.visual-content {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.book-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    /* removed transition: transform 0.5s ease; as JS handles animation */
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 
        -15px 15px 25px rgba(0, 0, 0, 0.15),
        -1px 0px 0px rgba(0,0,0,0.05),
        -2px 0px 0px #fff,
        -3px 0px 0px #eee,
        -10px 0px 0px #ddd;
    position: relative;
    z-index: 2;
    background-color: #fff;
}

/* Magical Glow behind the book */
.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(232,78,137,0.3) 0%, rgba(59,188,178,0.2) 40%, transparent 70%);
    z-index: 1;
    filter: blur(25px);
    animation: pulse 4s infinite alternate;
}

/* Footer */
footer {
    text-align: center;
    padding-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 968px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .notify-form {
        margin: 0 auto;
        flex-direction: column;
    }

    .notify-form button {
        padding: 1.2rem;
    }

    .book-container {
        /* let inline JS transform apply without resetting */
    }

    .headline {
        font-size: 3.5rem;
    }
}