/* قسم الترحيب المتجاوب */
.main {
    padding-top: 120px;
}

.home {
    text-align: center;
    position: relative;
    padding: 40px 20px;
}


/* توزيع الكتل في الصفحة الرئيسية */
.hero {
    display: grid;
    grid-template-columns: 60% 40%;
    position: relative;
    align-items: center;
    gap: 30px;
    padding-bottom: 3%;
}

.intro-image {
    width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 40px 0;
    text-align: right;
}

section h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.impact-line {
    display: inline-flex;
    align-items: baseline;
    /* أو center حسب التجربة */
    gap: 10px;
    line-height: 1.2;
}

.hero-title {
    background: linear-gradient(135deg, #FFD01B, #ffa41b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #FFD01B;
    animation: blink-caret 0.75s step-end infinite;

    display: inline-block;
    font-size: inherit;
    font-weight: bold;
    line-height: 1.7;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #FFD01B;
    }
}

section p {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 40px;
}

.buttons {
    display: flex;
    justify-content: right;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid;
}

.btn-primary {
    cursor: pointer;
    position: relative;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    transform-origin: center;

    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--standard-shadow);
        
    padding: 10px 20px;

    border-radius: var(--border-radius-lg);
    transform: scale(calc(1 + (var(--active, 0) * 0.1)));

    transition: transform var(--transtion);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD01B, #ffa41b);

    border-radius: var(--border-radius-lg);
    box-shadow: var(--standard-shadow);

    transition: all var(--transtion);
    z-index: 0;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);

    background-position: top;

    opacity: var(--active, 0);
    border-radius: var(--border-radius-lg);
    transition: opacity var(--transtion);
    z-index: 2;
}

.btn-primary:is(:hover, :focus-visible) {
    --active: 1;
}

.btn-primary:active {
    transform: scale(1);
}

.btn-primary .dots_border {
    --size_border: calc(100% + 4px);

    overflow: hidden;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: var(--size_border);
    height: var(--size_border);
    background-color: transparent;

    border-radius: var(--border-radius-lg);
    z-index: -10;
}

.btn-primary .dots_border::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: left;
    transform: rotate(0deg);

    width: 100%;
    height: 2rem;
    background-color: white;

    mask: linear-gradient(transparent 0%, white 120%);
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary .sparkle {
    position: relative;
    z-index: 10;

    width: 20px;
    height: 20px;
}

.btn-primary .text_button {
    position: relative;

    z-index: 10;

    background-color: #131313;
    background-clip: text;

    font-size: 1rem;
    font-weight: bold;
}

.btn-primary:hover .text_button {
    color: #FFD01B;
}

.btn-primary:hover .sparkle {
    stroke: #FFD01B;
}

/* إضافة ستروك خارجي خفيف */
.btn-primary:hover {
    box-shadow: var(--standard-shadow);
    transform: scale(0.93);
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-1 {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
    border: 0px;
}

.btn-secondary-1:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* جعل التصميم متجاوب مع جميع الأجهزة */
@media (max-width: 1194px) {
    .hero {
        grid-template-columns: 60% 40%;
        text-align: right;
        gap: 10px;
    }

    .intro-image {
        order: 1;
        width: 100%;
        margin: 0 auto;
    }

    section h1 {
        font-size: 2.8rem;
    }

    section p {
        font-size: 1.1rem;
    }

    .buttons {
        justify-content: right;
    }
}

/* شاشات الموبايل */
@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: right;
        gap: 10px;
    }

    section {
        padding: 20px 0;
    }

    section h1 {
        font-size: 1.7rem;
    }

    section p {
        font-size: 0.9rem;
    }

    .intro-image {
        width: 100%;
    }

    .btn {
        font-size: 0.8rem;
        padding: 7px 10px;
    }

    .btn svg {
        width: 16px;
        height: 16px;
    }
}