/* ===============================
   TORAH EVENT LANDING PAGE
   index.html — UPDATED CSS
   =============================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    --primary-gold: #d4af37;
    --secondary-gold: #f3e5ab;
    --deep-blue: #0f172a;
    --lighter-blue: #1e293b;
    --text-white: #f8fafc;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Assistant', sans-serif;
    background: var(--deep-blue);
    color: var(--secondary-gold);
    overflow-x: hidden;
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: radial-gradient(
            circle at center,
            var(--lighter-blue) 0%,
            var(--deep-blue) 100%
        );
    overflow: hidden;
}

/* ---------- SUBTLE PATTERN OVERLAY ---------- */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* ---------- PARTICLES LAYER ---------- */
.particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatUp linear infinite;
}

/* ---------- CONTENT CONTAINER ---------- */
.container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding: 3rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
}

/* ---------- BSD ---------- */
.bsd {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 0.9rem;
    color: var(--secondary-gold);
}

/* ---------- PORTRAIT STYLING (Newly Integrated) ---------- */
.portrait-outer {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.portrait-frame {
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.portrait-img {
    display: block;
    width: 220px;
    height: auto;
    border: 2px solid var(--deep-blue);
    border-radius: 2px;
}

/* ---------- HEADLINE ---------- */
h1 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
    line-height: 1.2;
    direction: rtl;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nameOfDeceasedHeb{
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 1rem;
    direction: rtl;
    text-align: center;
}

.nameOfDeceasedEng{
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 1rem;
    direction: ltr;
    text-align: center;
}   

/* ---------- HEBREW TEXT ---------- */
.hebrew-text {
    direction: rtl;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

/* ---------- DIVIDER ---------- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    width: 100px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-gold),
        transparent
    );
    margin: 0 15px;
}

/* ---------- ENGLISH TEXT ---------- */
.english-text {
    direction: ltr;
    text-align: center;
    font-family: 'Playfair Display', serif;
     font-size: 2rem;
    font-weight: 900;
    /* font-size: 1.25rem; */
    line-height: 1.6;
    color: var(--primary-gold);
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

.english-text2 {
    direction: ltr;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.6;
    color: var(--secondary-gold);
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

/* ---------- HIGHLIGHT ---------- */
.highlight {
    color: var(--secondary-gold);
    font-weight: 600;
}

/* ---------- CTA BUTTON ---------- */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: 'Assistant', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-blue) !important; /* Force visibility on gold */
    background: linear-gradient(
        135deg,
        var(--secondary-gold),
        var(--primary-gold)
    );
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(
        135deg,
        #ffffff,
        var(--secondary-gold)
    );
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hebrew-text { font-size: 1.2rem; }
    .english-text { font-size: 1.1rem; }
    .container { padding: 2rem 1rem; }
    .portrait-img { width: 180px; }
}