:root {
    --parchment: #f5f1e6;
    --gold: #d4af37;
    --bronze: #cd7f32;
    --brown: #8b4513;
    --dark: #2c1810;
    --hero-gradient-start: rgba(44, 24, 16, 0.9);
    --hero-gradient-end: rgba(139, 69, 19, 0.8);
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.serif {
    font-family: 'Crimson Text', serif;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
    object-fit: contain;
}

.lightbox.active {
    display: flex;
}

.clickable-image {
    cursor: pointer;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gold);
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
}

/* Hero text glow effects */
.hero-title {
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Aurora animation */
@keyframes aurora {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(0, 0, 0, 0.95),
            0 0 40px rgba(0, 0, 0, 0.9),
            0 4px 8px rgba(0, 0, 0, 0.8),
            0 0 60px rgba(212, 175, 55, 0.5),
            0 0 80px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0, 0, 0, 0.95),
            0 0 40px rgba(0, 0, 0, 0.9),
            0 4px 8px rgba(0, 0, 0, 0.8),
            0 0 60px rgba(205, 127, 50, 0.5),
            0 0 80px rgba(205, 127, 50, 0.3);
    }
}

.aurora-text {
    color: #ffffff;
    animation: aurora 4s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Floating animation for icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-up {
    animation: scaleUp 0.6s ease-out;
}

/* Shimmer effect for buttons */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer-button {
    background: #d4af37 !important; /* Gold fallback */
    background-color: var(--gold) !important;
    background-image: linear-gradient(90deg, var(--gold) 0%, var(--bronze) 50%, var(--gold) 100%) !important;
    background-size: 200% auto;
    transition: all 0.3s ease;
    border: 2px solid var(--bronze) !important;
    border-color: #cd7f32 !important; /* Bronze fallback */
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    color: white !important;
    text-decoration: none !important;
    min-height: 48px !important;
    min-width: 200px !important;
    position: relative !important;
    z-index: 10 !important;
    transform: scale(1) !important; /* Normal size by default */
}

.shimmer-button:hover {
    animation: shimmer 2s linear infinite;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #d4af37 !important;
}

.shimmer-button:focus,
.shimmer-button:active,
.shimmer-button:visited {
    opacity: 1 !important;
    visibility: visible !important;
    background: #d4af37 !important;
    color: white !important;
}

/* Card hover tilt effect */
.card-tilt {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tilt:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Rotate icon on hover */
.rotate-on-hover {
    transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
    transform: rotate(360deg);
}

/* Fade in up with delay */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Stagger delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Gradient border animation */
@keyframes gradientBorder {
    0% {
        border-image-source: linear-gradient(90deg, var(--gold), var(--bronze));
    }
    50% {
        border-image-source: linear-gradient(90deg, var(--bronze), var(--gold));
    }
    100% {
        border-image-source: linear-gradient(90deg, var(--gold), var(--bronze));
    }
}

.animated-border {
    border: 2px solid transparent;
    border-image-slice: 1;
    animation: gradientBorder 3s linear infinite;
}

/* Bounce in animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Text unblur reveal animation */
@keyframes unblur {
    from {
        filter: blur(10px);
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0);
    }
}

.text-unblur {
    filter: blur(10px);
    opacity: 0;
    animation: unblur 1s ease-out forwards;
}

.text-unblur.visible {
    filter: blur(0);
    opacity: 1;
}

/* Character by character reveal */
@keyframes charReveal {
    from {
        filter: blur(8px);
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
    }
    to {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.char-reveal {
    display: inline-block;
    filter: blur(8px);
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    transform-origin: center bottom;
}

.char-reveal.visible {
    animation: charReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Text split animation for hero title */
.text-split {
    overflow: hidden;
}

.text-split .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotateX(90deg);
    transform-origin: center bottom;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-split .char.animate {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Word by word reveal */
.word-reveal {
    display: inline-block;
    filter: blur(6px);
    opacity: 0;
}

.word-reveal.visible {
    animation: unblur 0.6s ease-out forwards;
}

/* Heading unblur with scale */
@keyframes headingUnblur {
    from {
        filter: blur(12px);
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        filter: blur(0);
        opacity: 1;
        transform: scale(1);
    }
}

.heading-unblur {
    filter: blur(12px);
    opacity: 0;
    animation: headingUnblur 1.2s ease-out forwards;
}

.heading-unblur.visible {
    filter: blur(0);
    opacity: 1;
}

/* Paragraph unblur */
.paragraph-unblur {
    filter: blur(8px);
    opacity: 0;
    transform: translateY(10px);
}

.paragraph-unblur.visible {
    animation: unblur 0.9s ease-out forwards;
}

/* Modern Hero Section Styles */
.hero-background {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%),
                url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYIiH6W-jkGkbcb44D9xzGAxbFZ7DWzPXSqY-vP0LqVlDkvu49tkvTH98sE99lCdMLpqCXYuq8Sw3xakih37dVjAUdERIm-75DZrFULnXmPo1v43GKv16HKSV1Uq59eb67cq3FoV86VRV4/w1200-h630-p-k-no-nu/1925+sinagoga.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(44, 24, 16, 0.65) 0%,
        rgba(139, 69, 19, 0.55) 30%,
        rgba(101, 67, 33, 0.50) 70%,
        rgba(69, 39, 18, 0.45) 100%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.2) 2px, transparent 2px),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: float 8s ease-in-out infinite;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-title {
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #cd7f32 50%, #f4d03f 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 4s ease infinite;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    animation: float 6s ease-in-out infinite 0.5s;
}

.hero-cta-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #d4af37 0%, #cd7f32 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: float 6s ease-in-out infinite 1s;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(212, 175, 55, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-cta-primary:hover .cta-shine {
    left: 100%;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite 1.5s;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: float 3s ease-in-out infinite;
}

/* Hero-specific Keyframe Animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
}

/* Hero Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
    
    .hero-badge {
        padding: 6px 16px;
        font-size: 0.875rem;
    }
}
