
/* 1. Variables & Colors */
.ebhero1 {

   
    --ebhero1-bg: #0e0c0a;
    --ebhero1-text: #e9e4da;
    --ebhero1-title: #ffffff;
    --ebhero1-border: rgba(255, 255, 255, 0.18);
    --ebhero1-padding-top: 2rem;
    --ebhero1-padding-bottom: 2rem;

  
    --ebhero1-brand-text: #d8b06a;
    --ebhero1-brand-line: #d8b06a;

  
    --ebhero1-overlay-start: rgba(8, 7, 6, 0.55);
    --ebhero1-overlay-end: rgba(6, 5, 4, 0.92);


    --ebhero1-call-bg: transparent;
    --ebhero1-call-text: #ffffff;
    --ebhero1-whatsapp-bg: #25d366;
    --ebhero1-whatsapp-text: #ffffff;


    --ebhero1-scroll-line: rgba(255, 255, 255, 0.5);


    --ebhero1-rule-color: #d8b06a;
    --ebhero1-dot-color: rgba(216, 176, 106, 0.55);

   
    --ebhero1-shine: rgba(255, 255, 255, 0.35);


    --ebhero1-call-border: rgba(255, 255, 255, 0.55);
    --ebhero1-whatsapp-border: rgba(216, 176, 106, 0.6);
}

*,
.ebhero1,
.ebhero1 *,
.ebhero1 *::before,
.ebhero1 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.ebhero1 {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--ebhero1-bg);
    direction: rtl;
    font-family: "El Messiri", sans-serif;
}

/* Background */
.ebhero1__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ebhero1__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transform: scale(1.08);
    animation: ebhero1-bg-zoom 16s ease-out forwards;
}

.ebhero1__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--ebhero1-overlay-end) 5%, var(--ebhero1-overlay-start) 70%);
}

.ebhero1__overlay-shift {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(216, 176, 106, 0.16), transparent 55%);
    animation: ebhero1-overlay-drift 12s ease-in-out infinite;
}


.ebhero1__dots {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ebhero1__dot {
    position: absolute;
    width: 0.3125rem;
    height: 0.3125rem;
    border-radius: 50%;
    background-color: var(--ebhero1-dot-color);
    box-shadow: 0 0 0.625rem var(--ebhero1-dot-color);
    animation: ebhero1-dot-glow 4s ease-in-out infinite;
}

.ebhero1__dot--1 {
    top: 18%;
    right: 12%;
    animation-delay: 0s;
}

.ebhero1__dot--2 {
    top: 38%;
    right: 22%;
    animation-delay: 1.3s;
}

.ebhero1__dot--3 {
    top: 62%;
    right: 8%;
    animation-delay: 2.6s;
}

/* Container */
.ebhero1__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: var(--ebhero1-padding-top) 1rem var(--ebhero1-padding-bottom);
}

.ebhero1__content {
    max-width: 42rem;
}


.ebhero1__rule {
    display: none;
}

/* Brand */
.ebhero1__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 700;
    color: var(--ebhero1-brand-text);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(0.625rem);
    animation: ebhero1-fade-up 0.8s ease forwards;
    animation-delay: 0.1s;
}

.ebhero1__brand-line {
    display: inline-block;
    width: 2.25rem;
    height: 0.0625rem;
    background-color: var(--ebhero1-brand-line);
    position: relative;
    overflow: hidden;
}

.ebhero1__brand-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: ebhero1-line-glow 2.6s ease-in-out infinite;
}

/* Title */
.ebhero1__title {
    font-size: clamp(1.85rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ebhero1-title);
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.ebhero1__title-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.9375rem);
    animation: ebhero1-fade-up 0.85s ease forwards;
}

.ebhero1__title-line:nth-child(1) {
    animation-delay: 0.25s;
}

.ebhero1__title-line:nth-child(2) {
    animation-delay: 0.4s;
    background: linear-gradient(90deg, #ffffff 60%, var(--ebhero1-rule-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Description */
.ebhero1__desc {
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    line-height: 1.85;
    color: var(--ebhero1-text);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(0.9375rem);
    animation: ebhero1-fade-up 0.9s ease forwards;
    animation-delay: 0.6s;
}

/* Actions */
.ebhero1__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.875rem;
    opacity: 0;
    transform: translateY(0.9375rem);
    animation: ebhero1-fade-up 0.9s ease forwards;
    animation-delay: 0.75s;
}

.ebhero1__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: clamp(0.8rem, 2.4vw, 0.95rem);
    font-weight: 700;
    padding: 0.9375rem 1.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
    isolation: isolate;
    flex: 1 1 0;
    justify-content: center;
    white-space: nowrap;
    transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.ebhero1__btn:hover {
    transform: translateY(-0.1875rem);
}

.ebhero1__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05em;
    position: relative;
    z-index: 2;
}

.ebhero1__btn-text {
    position: relative;
    z-index: 2;
}

/* تأثير اللمعة القطرية عند الـ hover */
.ebhero1__btn-shine {
    position: absolute;
    top: 0;
    right: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent, var(--ebhero1-shine), transparent);
    transform: skewX(-18deg);
    transition: right 0.7s ease;
    z-index: 1;
}

.ebhero1__btn:hover .ebhero1__btn-shine {
    right: 130%;
}

.ebhero1__btn--call {
    background-color: transparent;
    color: var(--ebhero1-call-text);
    border: 0.0625rem solid var(--ebhero1-call-border);
    backdrop-filter: blur(0.25rem);
}

.ebhero1__btn--call:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.ebhero1__btn--whatsapp {
    background-color: var(--ebhero1-whatsapp-bg);
    color: var(--ebhero1-whatsapp-text);
    border: 0.0625rem solid var(--ebhero1-whatsapp-border);
}

.ebhero1__btn--whatsapp:hover {
    box-shadow: 0 0.625rem 1.5625rem rgba(37, 211, 102, 0.4);
}

.ebhero1__pulse {
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    border: 0.125rem solid var(--ebhero1-whatsapp-bg);
    animation: ebhero1-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

/* Scroll indicator */
.ebhero1__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 1.5rem;
    height: 2.5rem;
    border: 0.0625rem solid var(--ebhero1-border);
    border-radius: 6.25rem;
    display: none;
}

.ebhero1__scroll-line {
    position: absolute;
    top: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.1875rem;
    height: 0.5rem;
    border-radius: 6.25rem;
    background-color: var(--ebhero1-scroll-line);
    animation: ebhero1-scroll-move 1.8s ease-in-out infinite;
}

/* Keyframes */
@keyframes ebhero1-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ebhero1-bg-zoom {
    to {
        transform: scale(1);
    }
}

@keyframes ebhero1-line-glow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes ebhero1-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

@keyframes ebhero1-scroll-move {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 0.5rem); opacity: 0.4; }
}

@keyframes ebhero1-overlay-drift {
    0%, 100% { opacity: 0.6; transform: translate(0, 0); }
    50% { opacity: 1; transform: translate(-2%, 2%); }
}

@keyframes ebhero1-dot-glow {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.6); }
}

@keyframes ebhero1-rule-draw {
    to { transform: scaleY(1); }
}

/* 4. Breakpoints بالترتيب */
@media (min-width: 481px) {
    .ebhero1__content {
        max-width: 30rem;
    }
}

@media (min-width: 601px) {
    .ebhero1__content {
        max-width: 34rem;
    }
}

@media (min-width: 769px) {
    .ebhero1 {
        --ebhero1-padding-top: 7rem;
        --ebhero1-padding-bottom: 6rem;
    }

    .ebhero1__content {
        max-width: 38rem;
    }

    .ebhero1__scroll {
        display: block;
    }
}

@media (min-width: 1025px) {
    .ebhero1__content {
        max-width: 42rem;
    }

    .ebhero1__container {
        padding-right: 3rem;
        padding-left: 3rem;
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }

    .ebhero1__rule {
        display: block;
        width: 0.0625rem;
        height: 9rem;
        background-color: var(--ebhero1-rule-color);
        transform: scaleY(0);
        transform-origin: top;
        animation: ebhero1-rule-draw 1s ease forwards;
        animation-delay: 0.15s;
        flex-shrink: 0;
    }
}

@media (min-width: 1281px) {
    .ebhero1__content {
        max-width: 46rem;
    }
}

@media (min-width: 1441px) {
    .ebhero1__container {
        max-width: 81.25rem;
    }
}

@media (min-width: 1921px) {
    .ebhero1__container {
        max-width: 90rem;
    }

    .ebhero1__content {
        max-width: 52rem;
    }
}