/* ================================================
   COMPONENTS CSS - shared across pages
   Homepage-only sections live in homepage.css
   ================================================ */

/* ------------------------------------------------
   Bolt icon used in section headers
   About + Products use #EA1B07, everything else #D31F0D
   ------------------------------------------------ */
.icon-bolt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-bolt svg {
    width: 24px;
    height: 24px;
    fill: #EA1B07;
}

.icon-bolt--red svg {
    fill: #D31F0D;
}

.icon-bolt--yellow svg {
    fill: #FCD900;
}

@media (max-width: 767px) {
    .icon-bolt svg {
        width: 20px;
        height: 20px;
    }
}

/* ------------------------------------------------
   Clients carousel (homepage + inner pages)
   ------------------------------------------------ */
.clients-section {
    padding: 30px 0;
    overflow: hidden;
}

.clients-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 20px;
    text-align: center;
}

.clients-header h2 {
    margin-bottom: 0;
}

.clients-carousel {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    animation: scroll-clients 100s linear infinite;
}

.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.client-logo:hover img {
    transform: scale(1.05);
}

/* Swiper-based client logos (homepage and about-us) */
.section-clients .swiper-slide img,
.clients-section .swiper-slide img {
    transition: transform 0.3s ease;
}

.section-clients .swiper-slide:hover img,
.clients-section .swiper-slide:hover img {
    transform: scale(1.05);
}

.section-clients .swiper-slide,
.clients-section .swiper-slide {
    transition: none;
}

.section-clients .swiper-slide:hover,
.clients-section .swiper-slide:hover {
    transform: none;
    box-shadow: none;
}

@keyframes scroll-clients {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .clients-track { animation: none; }
}

@media (max-width: 767px) {
    .clients-section { padding: 36px 0; }

    .clients-header {
        gap: 6px;
        margin-bottom: 16px;
    }

    .client-logo {
        flex: 0 0 130px;
        height: 66px;
    }

    .clients-track {
        gap: 20px;
        animation-duration: 60s;
    }
}

/* ------------------------------------------------
   Services listing cards (services page)
   ------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Key features checklist */
.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5em;
    color: var(--color-body);
}

.features-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    color: #D31F0D;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ------------------------------------------------
   Gallery page
   ------------------------------------------------ */
.gallery-section {
    padding: 80px 0;
}

.gallery-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-video-item {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    position: relative;
}

.gallery-video-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.gallery-video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-video-item:hover .gallery-video-overlay {
    opacity: 1;
}

.gallery-video-title {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: white;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    max-width: 80%;
}

.gallery-video-item:hover .gallery-video-title {
    opacity: 1;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ------------------------------------------------
   Careers
   ------------------------------------------------ */
.careers-section {
    padding: 80px 0;
}

/* (Old contact styles removed - the Contact page now uses its own
   contact.css component styles.) */

/* ================================================
   SHARED CTA - "Ready to Power Your Next Project?"
   Used on Home, Products, Services and service-detail pages.
   bg CTA-Banner-2.jpg cover; heading Roboto Slab 48px white left.
   ================================================ */
.section-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 7em 0;
    background-image: url('../images/cta-banner.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, #0A0B14 0%, #7600002B 100%);
    pointer-events: none;
}

.section-cta .container {
    position: relative;
    z-index: 1;
}

.cta-inner {
    width: 50%;
    padding: 2em;
}

.cta-inner h2 {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1em;
    letter-spacing: -1px;
    color: #FFFFFF;
    margin-bottom: 16px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.cta-inner:hover h2 {
    color: var(--color-yellow);
    text-shadow: 0 0 10px rgba(252,217,0,0.5);
}

.cta-inner p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.cta-inner:hover p {
    opacity: 0.9;
}

/* lg button on desktop/tablet, xs on mobile.
   Scoped to .section-cta so these win over the generic `.btn`
   display rule in buttons.css regardless of stylesheet order. */
.section-cta .cta-btn-lg { display: inline-flex; }
.section-cta .cta-btn-xs { display: none; }

@media (max-width: 1024px) {
    .section-cta {
        padding: 3em 0;
        background-position: center right;
    }

    .cta-inner {
        width: 100%;
        margin-right: 40%;
    }

    .cta-inner h2 { font-size: 40px; }
}

@media (max-width: 767px) {
    .section-cta { padding: 2em 0; }

    .cta-inner {
        width: 100%;
        margin-right: 0;
    }

    .cta-inner h2 { font-size: 23px; }

    .cta-inner p { font-size: 14px; }

    .section-cta .cta-btn-lg { display: none; }
    .section-cta .cta-btn-xs { display: inline-flex; }
}

/* ================================================
   LIGHTBOX - fullscreen image viewer
   ================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain !important;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Make gallery images show pointer to indicate clickability */
.gallery-lightbox-img {
    cursor: zoom-in;
}
