/* Page-specific styles: index.html */

/* تحسينات إضافية للصفحة الرئيسية */
.hero {
    background: url('../images/image-1.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
}


/* تحسينات للهواتف المحمولة (Mobile) */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 100vh;
        background-size: cover;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

/* تحسينات للشاشات المتوسطة (Tablet) */
@media (min-width: 769px) and (max-width: 1199px) {
    .hero {
        background-size: cover;
    }
}

/* تحسينات للشاشات الكبيرة (Desktop) */
@media (min-width: 1200px) {
    .hero {
        background-size: cover;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: #ffffffff;
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    filter: none;
    display: inline-block;
}



.hero #title {
    color: inherit;
    font-weight: 900;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    letter-spacing: 2px;
    text-transform: uppercase;
    filter: none;
}

/* Isolate special-i styles into media queries to allow independent scaling */

@media (min-width: 1200px) {
    .hero #title .special-i {
        position: relative;
        display: inline-block;
        transform: scaleX(2);
        margin: 0 10px;
    }

    .hero #title .special-i::before {
        content: '';
        position: absolute;
        top: 36px;
        left: calc(50% - 1.24375px);
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 9.8px solid transparent;
        border-right: 9.8px solid transparent;
        border-top: 23px solid #ffffffff;
        z-index: 1;
    }

    .hero #title .special-i::after {
        z-index: 2;
        content: '';
        position: absolute;
        top: 36px;
        left: calc(50% - 1.24375px);
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 18.5px solid black;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {

    /* خصائص الـ i للتابلت (Tablet) - Shifted Left */
    .hero #title .special-i {
        position: relative;
        display: inline-block;
        transform: scaleX(2);
        margin: 0 7px;
    }

    .hero #title .special-i::before {
        content: '';
        position: absolute;
        top: 19px;
        left: calc(50% - 0.85px);
        /* Shifted Left */
        transform: translateX(-50%);
        border-left: 6.4px solid transparent;
        border-right: 6.4px solid transparent;
        border-top: 15.5px solid #ffffffff;
        z-index: 1;
    }

    .hero #title .special-i::after {
        z-index: 2;
        content: '';
        position: absolute;
        top: 20px;
        left: calc(50% - 0.85px);
        /* Shifted Left */
        transform: translateX(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 12px solid black;
    }
}

@media (max-width: 768px) {

    /* خصائص الـ i للموبايل (Mobile) */
    .hero #title .special-i {
        position: relative;
        display: inline-block;
        transform: scaleX(2);
        margin: 0 4px;
        /* Tight margin */
    }

    .hero #title .special-i::before {
        content: '';
        position: absolute;
        top: 13px;
        /* Adjusted Top */
        left: calc(50% - 0.7px);
        transform: translateX(-50%);
        border-left: 3.5px solid transparent;
        /* Width */
        border-right: 3.5px solid transparent;
        border-top: 8px solid #ffffffff;
        /* Height */
        z-index: 1;
    }

    .hero #title .special-i::after {
        z-index: 2;
        content: '';
        position: absolute;
        top: 13px;
        left: calc(50% - 0.7px);
        transform: translateX(-50%);
        border-left: 2.8px solid transparent;
        border-right: 2.8px solid transparent;
        border-top: 6.5px solid black;
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: white;
    font-weight: 600;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}


.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, #1B9BD8 0%, #0ea5e9 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.4s ease;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(27, 155, 216, 0.4), 0 0 30px rgba(27, 155, 216, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button::before {
    content: '';
    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.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(27, 155, 216, 0.6), 0 0 40px rgba(27, 155, 216, 0.4);
    background: linear-gradient(135deg, #0ea5e9 0%, #1B9BD8 100%);
}

.cta-button:active {
    transform: translateY(-2px);
}

.cta-button i {
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

/* تحسين قسم المميزات */
.features {
    background: linear-gradient(135deg, white 0%, var(--light-blue) 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.features h2 {
    color: var(--secondary-color);
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(74, 144, 226, 0.2);
    position: relative;
    z-index: 2;
}

.features h2::after {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    height: 4px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(27, 40, 72, 0.2);
    border-color: #1B2848;
    background: #1B2848;
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    display: block;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: white;
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card:hover h3 {
    color: white;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.1rem;
}

.feature-card:hover p {
    color: white;
}