/* ==================================================
   TAKE MILLION — TECHNOLOGY PAGE
================================================== */

.technology-hero,
.technology-services {
    --technology-primary: #0066ff;
    --technology-light: #42a5ff;
    --technology-border: rgba(0, 119, 255, 0.45);
    --technology-bg: #030914;
}

/* ==============================
   HERO
============================== */

.technology-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 6%;
    min-height: 62svh;
    padding: 100px 0 14px;
    overflow: hidden;
    background: var(--technology-bg);
}

.technology-hero .hero-bg {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.technology-hero .hero-overlay{
    position:absolute;
    inset:0;
    z-index:1;
    background:rgba(255, 255, 255, 0);
}

.technology-hero .container,
.technology-services .container {
    width: min(1500px, calc(100% - 40px));
    margin-inline: auto;
}

.technology-hero .hero-content {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.technology-hero .hero-content h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
}

.technology-hero .hero-content h2 {
    margin: 0 0 25px;
    color: var(--technology-light);
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.45;
}

.technology-hero .hero-content p {
    max-width: 850px;
    margin: 0 auto 32px;
    color: #d8e5f5;
    font-size: 1.15rem;
    line-height: 1.9;
}

/* زر بنفس مقاس زر الرئيسية وكتابة بيضاء */
.technology-hero .btn-primary,
.technology-more .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 15px 35px;
    margin: 0;
    border: 0;
    border-radius: 50px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    background: linear-gradient(
        135deg,
        var(--technology-primary),
        var(--technology-light)
    );
    box-shadow: 0 10px 35px rgba(0, 102, 255, 0.32);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .technology-hero .btn-primary:hover,
    .technology-more .btn-primary:hover {
        transform: translateY(-5px);
        color: #fff;
        box-shadow: 0 20px 50px rgba(0, 102, 255, 0.52);
    }
}

/* ==============================
   CARDS — خارج الهيرو
============================== */

.technology-services {
    padding: 0 0 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 0%, rgba(0, 102, 255, 0.11), transparent 24%),
        linear-gradient(135deg, #020711, #06101f);
}

.technology-services .services-row-container {
    overflow: visible;
}

.technology-services .services-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    align-items: stretch;
}

.technology-services .service-card.technology-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--technology-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    transition:
        transform 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.technology-services .service-card.technology-card::before {
    position: absolute;
    z-index: 2;
    top: 0;
    inset-inline: 0;
    width: auto;
    height: 3px;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        var(--technology-primary),
        var(--technology-light),
        transparent
    );
}

.technology-services .service-image {
    position: relative;
    height: clamp(120px, 9vw, 145px);
    overflow: hidden;
    isolation: isolate;
}

.technology-services .service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.technology-services .service-overlay {
    background: linear-gradient(to top, rgba(2, 12, 28, 0.88), transparent);
}

/* مطابق لحجم أيقونة بطاقات الرئيسية */
.technology-services .service-icon {
    position: absolute;
    z-index: 2;
    right: auto;
    inset-inline-end: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(
        135deg,
        var(--technology-primary),
        var(--technology-light)
    );
    box-shadow: 0 0 35px rgba(0, 119, 255, 0.65);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.technology-services .service-body {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 16px 12px 18px;
    text-align: center;
}

.technology-services .service-body h3 {
    min-height: 2.9em;
    margin: 0 0 8px;
    color: var(--technology-light);
    font-size: 1rem;
    line-height: 1.45;
}

.technology-services .service-body p {
    display: -webkit-box;
    max-block-size: 5.25em;
    margin: 0;
    overflow: hidden;
    color: #d3e3f4;
    font-size: 0.83rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (hover: hover) and (pointer: fine) {
    .technology-services .service-card.technology-card:hover {
        transform: translateY(-8px);
        border-color: var(--technology-light);
        background: linear-gradient(145deg, #0051c9, #0066ff, #42a5ff);
        box-shadow: 0 19px 45px rgba(0, 102, 255, 0.34);
    }

    .technology-services .service-card.technology-card:hover .service-image img {
        transform: scale(1.1);
    }

    .technology-services .service-card.technology-card:hover .service-icon {
        transform: scale(1.12) rotate(8deg);
        box-shadow: 0 0 38px rgba(255, 255, 255, 0.5);
    }

    .technology-services .service-card.technology-card:hover h3,
    .technology-services .service-card.technology-card:hover p {
        color: #fff;
    }
}

.technology-more {
    margin-top: 22px;
    text-align: center;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1100px) {
    .technology-services .services-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .technology-services .service-image {
        height: 165px;
    }
}

@media (max-width: 768px) {
    .technology-hero {
        min-height: 560px;
        padding: 110px 0 12px;
    }

    .technology-hero .container,
    .technology-services .container {
        width: min(100% - 32px, 1500px);
    }

    .technology-hero .hero-content p {
        font-size: 1rem;
    }

    .technology-services {
        padding-bottom: 28px;
    }

    .technology-services .services-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .technology-services .service-image {
        height: 155px;
    }
}

@media (max-width: 540px) {
    .technology-services .services-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .technology-services .service-image {
        height: 210px;
    }

    .technology-services .service-body {
        padding: 20px;
    }

    .technology-services .service-body h3 {
        min-height: auto;
        font-size: 1.15rem;
    }

    .technology-services .service-body p {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .technology-hero *,
    .technology-hero *::before,
    .technology-hero *::after,
    .technology-services *,
    .technology-services *::before,
    .technology-services *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}.footer-bottom p{

    color:#9d9d9d;

    font-size:.95rem;

    line-height:2;

    text-align:center;

}/*==================================================
   TECHNOLOGY GLASS
   WIDE VERSION
==================================================*/

.technology-glass{

    position:relative;

    z-index:10;

    width:96%;

    max-width:1250px;

    margin:0 auto;

    padding:60px 90px;

    text-align:center;

    background:rgba(129, 128, 128, 0.1);

    border:1px solid rgba(255, 255, 255, 0.116);

    border-radius:30px;

    backdrop-filter:blur(14px) saturate(130%);

    -webkit-backdrop-filter:blur(14px) saturate(130%);

    box-shadow:

        0 20px 65px rgba(0,0,0,.35),

        inset 0 1px 0 rgba(255,255,255,.35),

        inset 0 -1px 0 rgba(255,215,0,.15),

        0 0 45px rgba(255,215,0,.10);

    overflow:hidden;

}/*==================================================
   TECHNOLOGY PAGE
   MOBILE HERO FIX
   لا يؤثر على باقي الصفحات
==================================================*/

@media (max-width: 768px){

    /* Hero */

    .technology-hero,
    .hero.technology-hero{

        min-height:auto !important;

        height:auto !important;

        padding:25px 12px 45px !important;

        overflow:hidden;

    }


    /* Container */

    .technology-hero .container{

        width:100%;

        max-width:100%;

        padding:0 8px;

        margin:0 auto;

    }


    /* Glass */

    .technology-hero .hero-content{

        width:100% !important;

        max-width:100% !important;

        margin:0 auto !important;

        padding:35px 22px 38px !important;

        border-radius:28px;

        text-align:center;

    }


    /* العنوان الرئيسي */

    .technology-hero .hero-content h1{

        width:100%;

        max-width:340px;

        margin:0 auto 18px;

        font-size:clamp(34px, 9vw, 46px) !important;

        line-height:1.3 !important;

        letter-spacing:0;

    }


    /* العنوان الفرعي */

    .technology-hero .hero-content h2{

        width:100%;

        max-width:320px;

        margin:0 auto 22px;

        font-size:clamp(21px, 6vw, 28px) !important;

        line-height:1.6 !important;

    }


    /* الوصف */

    .technology-hero .hero-content p{

        width:100%;

        max-width:320px;

        margin:0 auto 28px;

        font-size:16px !important;

        line-height:1.9 !important;

    }


    /* الزر */

    .technology-hero .hero-buttons{

        display:flex;

        justify-content:center;

        align-items:center;

        width:100%;

        margin:20px auto 0;

    }


    .technology-hero .hero-buttons .btn-primary{

        display:flex;

        align-items:center;

        justify-content:center;

        width:100%;

        max-width:260px;

        min-height:58px;

        padding:12px 20px;

        font-size:17px;

        line-height:1.4;

        border-radius:40px;

        text-align:center;

    }

}


/*==================================================
   SMALL MOBILE
==================================================*/

@media (max-width:480px){

    .technology-hero{

        padding:18px 10px 35px !important;

    }


    .technology-hero .hero-content{

        padding:30px 18px 35px !important;

        border-radius:25px;

    }


    .technology-hero .hero-content h1{

        max-width:330px;

        font-size:34px !important;

        line-height:1.3 !important;

    }


    .technology-hero .hero-content h2{

        max-width:300px;

        font-size:22px !important;

        line-height:1.65 !important;

    }


    .technology-hero .hero-content p{

        max-width:295px;

        font-size:15px !important;

        line-height:1.9 !important;

    }

}