/* Ask Alex v24 - video hero + rotating slogan */
.hero-v24 {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(52, 152, 219, 0.16), transparent 28%),
                linear-gradient(rgba(7, 10, 14, 0.86), rgba(7, 10, 14, 0.86)),
                url('https://images.unsplash.com/photo-1621905252472-e8fdb0b3a1e0?auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-position: center;
    padding: 135px 0 90px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
    pointer-events: none;
}

.hero-container-v24,
.hero-layout-v24,
.hero-copy-v24,
.hero-media-v24 {
    position: relative;
    z-index: 1;
}

.hero-layout-v24 {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 420px);
    align-items: center;
    gap: 38px;
}

.hero-copy-v24 {
    text-align: left;
}
html[lang="ar"] .hero-copy-v24 {
    text-align: right;
}

.hero-copy-v24 .hero-image {
    width: 122px;
    height: 122px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #39a4ff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
    margin-bottom: 16px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #70c0ff;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-copy-v24 h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin: 0 0 12px;
    line-height: 1.02;
}

.hero-copy-v24 h2 {
    font-size: clamp(1.25rem, 2.3vw, 2rem);
    font-weight: 500;
    margin: 0 0 14px;
    color: #f4f7fb;
    text-align: inherit;
}

.hero-rotating {
    min-height: 68px;
    margin: 0 0 28px;
    font-size: 1.14rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    max-width: 760px;
    border-inline-start: 3px solid #39a4ff;
    padding-inline-start: 14px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-rotating.fade-out {
    opacity: 0.15;
    transform: translateY(8px);
}

.hero-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
}
html[lang="ar"] .hero-buttons {
    justify-content: flex-start;
}

.hero-media-v24 {
    display: flex;
    justify-content: center;
}

.hero-video-card {
    width: min(100%, 380px);
    background: rgba(11, 17, 24, 0.82);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 16px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.hero-video-badge {
    display: inline-block;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(57,164,255,0.16);
    color: #8fd3ff;
    font-weight: 700;
    font-size: 0.95rem;
}

.hero-video {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    object-fit: cover;
    display: block;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.hero-video-caption {
    margin-top: 12px;
    color: rgba(255,255,255,0.88);
    font-size: 0.98rem;
    line-height: 1.7;
}

.project-card-with-image {
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
    filter: contrast(1.04) saturate(1.05);
}

.project-card-with-image .project-content {
    padding-top: 22px;
}

.project-card-with-image h3 {
    margin-top: 0;
}

.project-card-with-image .project-stat {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .hero-v24 {
        padding-top: 120px;
        padding-bottom: 78px;
    }
    .hero-layout-v24 {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .hero-copy-v24 {
        text-align: center;
    }
    html[lang="ar"] .hero-copy-v24 {
        text-align: center;
    }
    .hero-rotating {
        margin-inline: auto;
        text-align: center;
        border-inline-start: 0;
        border-top: 3px solid #39a4ff;
        padding-inline-start: 0;
        padding-top: 14px;
    }
    .hero-buttons,
    html[lang="ar"] .hero-buttons {
        justify-content: center;
    }
    .hero-media-v24 {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-v24 {
        padding: 110px 0 70px;
    }
    .hero-copy-v24 .hero-image {
        width: 104px;
        height: 104px;
    }
    .hero-rotating {
        min-height: 96px;
        font-size: 1rem;
        line-height: 1.7;
    }
    .hero-video-card {
        width: min(100%, 320px);
        padding: 14px;
        border-radius: 24px;
    }
    .project-image {
        height: 170px;
    }
}


/* Ask Alex v25 - video moved below electrical topics */
.hero-layout-v24 {
    grid-template-columns: 1fr;
    max-width: 950px;
    margin-inline: auto;
}

.hero-copy-v24 {
    text-align: center;
}

html[lang="ar"] .hero-copy-v24 {
    text-align: center;
}

.hero-rotating {
    margin-inline: auto;
    text-align: center;
    border-inline-start: 0;
    border-top: 3px solid #39a4ff;
    padding-inline-start: 0;
    padding-top: 14px;
}

.hero-buttons,
html[lang="ar"] .hero-buttons {
    justify-content: center;
}

.electrical-video-section {
    background: #111820;
    color: #f5f7fa;
    padding: 78px 0;
}

.electric-video-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 360px);
    gap: 42px;
    align-items: center;
}

.electric-video-text {
    text-align: left;
}

html[lang="ar"] .electric-video-text {
    text-align: right;
}

.section-kicker {
    display: inline-block;
    color: #5db7ff;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.electric-video-text h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin: 0 0 18px;
    color: #ffffff;
}

.electric-video-text p {
    font-size: 1.12rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.86);
    max-width: 720px;
}

.electric-video-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.electric-video-points span {
    background: rgba(52, 152, 219, 0.14);
    color: #a8ddff;
    border: 1px solid rgba(52, 152, 219, 0.25);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.electric-video-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 28px;
    padding: 16px;
    box-shadow: 0 24px 55px rgba(0,0,0,0.34);
    max-width: 360px;
    margin-inline: auto;
}

.electric-video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    object-fit: cover;
    background: #000;
}

@media (max-width: 900px) {
    .electric-video-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .electric-video-text,
    html[lang="ar"] .electric-video-text {
        text-align: center;
    }

    .electric-video-text p {
        margin-inline: auto;
    }

    .electric-video-points {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .electrical-video-section {
        padding: 58px 0;
    }

    .electric-video-card {
        max-width: 300px;
        padding: 12px;
        border-radius: 22px;
    }

    .electric-video {
        border-radius: 18px;
    }
}


/* v26 minor fix */
.electrical-video-section .lang {
    transition: none;
}


/* v27 homepage CTA */
.home-quick-cta {
    background: #0f151c;
    color: #fff;
    padding: 34px 0;
}

.quick-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 28px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(52,152,219,0.18), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 18px 38px rgba(0,0,0,0.20);
}

.quick-cta-box h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.quick-cta-box p {
    margin: 0;
    color: rgba(255,255,255,0.86);
    line-height: 1.75;
}

.quick-cta-button {
    border: 0;
    background: #3498db;
    color: #fff;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    min-width: 150px;
    box-shadow: 0 12px 24px rgba(52,152,219,0.23);
}

.quick-cta-button:hover {
    background: #2583c2;
}

@media (max-width: 760px) {
    .quick-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
    }
    .quick-cta-button {
        width: 100%;
    }
}


/* v34 bottom auto gallery */
.work-gallery-section {
    background: #0f151c;
    color: #fff;
    padding: 78px 0;
}

.work-gallery-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 34px;
}

.work-gallery-head h2 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
}

.work-gallery-head p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
}

.work-gallery-frame {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 55px rgba(0,0,0,0.35);
}

.work-gallery-image {
    display: block;
    width: 100%;
    height: clamp(260px, 54vw, 520px);
    object-fit: cover;
    transition: opacity .35s ease, transform .35s ease;
    background: #111;
}

.work-gallery-image.is-fading {
    opacity: .3;
    transform: scale(1.015);
}

.work-gallery-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 18px 22px;
    background: linear-gradient(transparent, rgba(0,0,0,0.74));
    color: #fff;
    font-weight: 700;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(52,152,219,0.86);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.work-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.work-gallery-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    cursor: pointer;
}

.work-gallery-dot.active {
    background: #3498db;
    transform: scale(1.16);
}

@media (max-width: 640px) {
    .work-gallery-section {
        padding: 58px 0;
    }

    .work-gallery-frame {
        border-radius: 18px;
    }

    .work-gallery-image {
        height: 330px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.7rem;
    }
}


/* v35 gallery text fix */
.work-gallery-section {
    padding-top: 64px;
}

.work-gallery-head {
    margin-bottom: 28px;
}

.work-gallery-head .section-kicker {
    color: #69bdff;
    font-size: 0.95rem;
}

.work-gallery-head h2 {
    letter-spacing: 0.01em;
}

.work-gallery-head p {
    max-width: 760px;
    margin-inline: auto;
}
