html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

section[id] {
    scroll-margin-top: 90px;
}

/* Modern Harmonic Multilingual Typography Rules */
html[lang="he"] body,
html[lang="he"] button,
html[lang="he"] input,
html[lang="he"] select {
    font-family: 'Assistant', 'Heebo', 'Rubik', sans-serif;
    letter-spacing: -0.01em;
}

html[lang="he"] .font-serif-title,
html[lang="he"] h1.font-serif-title,
html[lang="he"] h2.font-serif-title {
    font-family: 'Frank Ruhl Libre', 'Playfair Display', serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select {
    font-family: 'Alexandria', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    letter-spacing: 0;
}

html[lang="ar"] .font-serif-title,
html[lang="ar"] h1.font-serif-title,
html[lang="ar"] h2.font-serif-title {
    font-family: 'Amiri', 'Alexandria', serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ultra Light Brand Doodle Wallpaper */
.brand-doodle-bg-light {
    background-color: #faf9f5;
    background-image: url('../assets/falafel_najla_doodle_lighter.png');
    background-repeat: repeat;
    background-size: 520px 520px;
}

.brand-doodle-bg-dark {
    background-color: #03140d;
    background-image: url('../assets/falafel_najla_doodle_dark.png');
    background-repeat: repeat;
    background-size: 520px 520px;
    animation: bgDrift 75s linear infinite;
}

@keyframes bgDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 520px 520px;
    }
}

/* Clean Flat Gold Button (No Glow) */
.btn-flat-gold {
    background-color: #b59410;
    color: #193b20;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-flat-gold:hover {
    background-color: #9c7f0d;
    transform: translateY(-1px);
}

.btn-flat-gold:active {
    transform: translateY(0);
}

/* Clean Flat Outline Button */
.btn-flat-outline {
    border: 1.5px solid #e5e4de;
    color: #193b20;
    border-color: #193b20;
    background-color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.btn-flat-outline:hover {
    border-color: #193b20;
    background-color: #ffffff;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* CINEMATIC INTRO OVERLAY */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #03140d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-overlay.hidden {
    display: none;
}

#intro-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(3, 20, 13, 0.95) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Logo stage */
#logo-stage {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(76vw, 76vh, 540px);
    height: min(76vw, 76vh, 540px);
    transition:
        width 0.85s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.85s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.85s cubic-bezier(0.4, 0, 0.2, 1),
        left 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

#video-circle {
    position: absolute;
    inset: 18.5%;
    border-radius: 50%;
    overflow: hidden;
    background: #193b20;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 46% 8%;
    transform: scale(0.96);
    display: block;
}

/* Canvas captures the last video frame for a seamless freeze */
#last-frame-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 46% 8%;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
}

#logo-end-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 46% 8%;
    transform: scale(0.96);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: opacity;
}

#frame-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.8));
}

#intro-tagline {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: clamp(12px, 1.6vw, 17px);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

#intro-tagline span {
    color: #b59410;
    font-weight: 800;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#skip-btn {
    position: absolute;
    top: 28px;
    right: 36px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(181, 148, 16, 0.3);
    color: #b59410;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

#skip-btn:hover {
    background: #b59410;
    color: #193b20;
}

/* Header & Content Reveal */
#site-header,
#page-content {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#site-header.revealed,
#page-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

#site-header.revealed #brand-logo {
    opacity: 1 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #faf9f5;
}

::-webkit-scrollbar-thumb {
    background: #193b20;
    border-radius: 4px;
}
