/* ================= CHARTE GRAPHIQUE & VARIABLES ================= */
:root {
    --color-primary: #204080;
    --color-secondary: #50a0e0;
    --color-accent: #d68f15;
    --color-text-dark: #333333;
    --color-bg-light: #f9fbfd;
    --font-main: "Montserrat", sans-serif;
    --header-height: 80px;
}

@font-face {
    font-family: "Montserrat Variable";
    font-style: normal;
    font-weight: 100 900;
    src: url("../fonts/montserrat-variablefont_wght-webfont-0ALjCBB.woff2") format("woff2 supports variations"),
    url("../fonts/montserrat-variablefont_wght-webfont-fEtEfxQ.woff") format("woff supports variations"),
    url("../fonts/montserrat-variablefont_wght-webfont-uICNtOp.ttf") format("truetype");
}

@font-face {
    font-family: "Montserrat Variable";
    font-style: italic;
    font-weight: 100 900;
    src: url("../fonts/montserrat-italic-variablefont_wght-webfont-z2Jh_O-.woff2") format("woff2 supports variations"),
    url("../fonts/montserrat-italic-variablefont_wght-webfont-fVSgINw.woff") format("woff supports variations"),
    url("../fonts/montserrat-italic-variablefont_wght-webfont-enIWCFi.ttf") format("truetype");
}

/* ================= RESET & BASES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================= UTILITAIRES ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }

.two-col-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.col-text, .col-image {
    flex: 1;
}

.col-image img,
.img-rounded-shadow {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ================= BOUTONS ================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background-color: #c98d25;
    transform: translateY(-2px);
}

.btn-primary-outline {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-primary-outline:hover {
    background-color: var(--color-secondary);
    color: white;
}

.btn-white-outline {
    border: 2px solid white;
    color: white;
    font-weight: 600;
}

.btn-white-outline:hover {
    background-color: white;
    color: var(--color-primary);
}

/* ================= HEADER & NAV ================= */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    text-align: center;
}

.logo-text {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.logo-text img {
    max-width: 443px;
    max-height: 149px;
}

.logo-text span {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.dropdown-toggle:hover::after {
    width: 0;
}

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--color-accent);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background-color: #f9f9f9;
    color: var(--color-accent);
    padding-left: 25px;
}

.dropdown-link i {
    width: 25px;
    color: var(--color-secondary);
}

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= CARTES PARTAGÉES (Factorisation) ================= */
.service-card,
.feature-box,
.tech-card,
.problem-card,
.login-card {
    background: white;
    border-radius: 8px; /* Standardisé à 8px ou 12px selon préférence, harmonisé ici */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

/* ================= SERVICES GRID & CARDS ================= */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    flex: 1 1 280px;
    max-width: 350px;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.service-card h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-left-align { text-align: left; }

/* ================= HERO SECTIONS ================= */
#hero {
    background: linear-gradient(rgba(32, 64, 128, 0.75), rgba(32, 64, 128, 0.6)),
    url("../imgs/bg-Zo6OsXB.webp") no-repeat center center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    margin-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding-bottom: 40px;
}

.hero-subtitle, .hero-subtitle-box {
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 5px 15px;
}

.hero-subtitle {
    background-color: rgba(224, 160, 48, 0.2);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text, .hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto;
}

.hero-buttons, .cta-buttons-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-hero {
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: var(--header-height);
}

.hero-subtitle-box {
    border: 1px solid white;
    color: white;
}

.custom-shape-divider-bottom-1680000000 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom-1680000000 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1680000000 .shape-fill { fill: #ffffff; }

.hero-video-container {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: var(--header-height);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 64, 128, 0.6);
    z-index: -1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

/* ================= PAGES SPECIFIQUES (Features) ================= */

/* Listes */
.list-check li, .security-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.security-list li { align-items: flex-start; gap: 12px; font-size: 0.95rem; }

.list-check li i, .security-list i {
    color: var(--color-accent);
    margin-right: 12px;
    font-size: 1.1rem;
}
.security-list i { margin-top: 4px; margin-right: 0; }

.feature-box {
    padding: 25px;
    border: 1px solid #eee;
    height: 100%;
}
.feature-box:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.tech-card {
    flex: 1 1 280px;
    max-width: 350px;
    width: 100%;
    background: white;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-icon-wrapper {
    background-color: var(--color-bg-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    flex-shrink: 0;
}

.tech-card h3 {
    min-height: 3.5rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tech-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.tech-card > div:last-child {
    margin-top: auto;
}

.problem-card {
    padding: 25px;
    border-left: 5px solid var(--color-accent);
    height: 100%;
}
.problem-card h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-box-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 5px;
}
.info-box-link:hover { color: var(--color-accent); }

.thermal-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #eef7ff;
    color: var(--color-primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid #d0e6fa;
}
.thermal-badge i { color: var(--color-secondary); font-size: 1.2rem; }

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    opacity: 0.8;
}
.brand-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: #889bb0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.brand-item:hover { color: var(--color-primary); transform: scale(1.05); }

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}
.step-item { flex: 1; min-width: 250px; position: relative; }
.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 5px rgba(214, 143, 21, 0.2);
}
.step-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* ================= GALERIE (REALISATIONS) ================= */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #eee;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-main);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 80px 20px 20px;
    color: white;
    opacity: 1;
    transition: 0.3s;
}

.gallery-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.gallery-location { font-size: 0.9rem; color: var(--color-accent); font-weight: 600; text-transform: uppercase; }

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    pointer-events: none;
}

.gallery-item.hide { display: none; }
.gallery-item.show { animation: fadeIn 0.5s; }

/* ================= MAP SECTION ================= */
.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #eee;
}

.map-info-box {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-width: 300px;
    border-left: 5px solid var(--color-accent);
}
.map-info-box h3 { color: var(--color-primary); margin-bottom: 10px; }

.map-container iframe:hover { filter: grayscale(0%) !important; }

/* ================= FOOTER ================= */
footer {
    background-color: #1a2c50;
    color: #b0b8c6;
    padding-top: 80px;
    margin-top: auto;
}

.footer-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
    text-align: center;
}

.footer-col {
    flex: 1 1 250px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-links, .footer-contact { padding: 0; width: 100%; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--color-accent); padding-left: 5px; }

.footer-contact li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-contact i { color: var(--color-accent); font-size: 1.1rem; }

.logo-text-img { max-width: 100%; height: auto; margin-bottom: 20px; }

.footer-bottom {
    background-color: #12213f;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-bottom a:hover { color: var(--color-accent); opacity: 1 !important; }

#zone-apropos {
    scroll-margin-top: calc(var(--header-height) + 10px);
}

/* ================= BACKGROUNDS */
.bg { background: linear-gradient(rgba(32, 64, 128, 0.75), rgba(32, 64, 128, 0.6)),
    url("../imgs/bg-Zo6OsXB.webp") no-repeat center center/cover;}

/* ================= MEDIA QUERIES FINALES ================= */
@media (max-width: 1189px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; left: 0; top: -100%; gap: 0; flex-direction: column;
        background-color: white; width: 100%; text-align: center;
        transition: 0.4s ease-in-out; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0; border-bottom: 4px solid var(--color-accent); z-index: 999;
    }
    .nav-menu.active { top: var(--header-height); }
    .nav-item { margin: 16px 0; width: 100%; }
    .nav-link { font-size: 1.2rem; display: block; padding: 10px; }
    .nav-menu .btn { width: 80%; margin: 10px auto; display: block; }

    .dropdown-menu {
        display: block;
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        padding: 0;
        margin: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 800px;
        opacity: 1;
        transform: translateY(0);
    }

    /* Style the links to look integrated */
    .dropdown-link {
        padding: 15px 20px;
        border-bottom: 1px solid #e9ecef;
        color: var(--color-primary);
        text-align: center;
    }

    .dropdown-link:hover {
        background-color: transparent;
        color: var(--color-accent);
        padding-left: 20px;
    }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .two-col-flex { flex-direction: column; }
    .col-image { order: 0; width: 100%; }
    .col-image img {
        width: 80% !important;
        max-width: none !important;
        max-height: none !important;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .two-col-flex .col-text {
        order: 1;
    }

    .two-col-flex .col-image {
        order: 2;
        width: 100%;
        margin-top: 30px;
    }
    .two-col-flex .col-image img {
        width: 80% !important;

        max-width: none !important;
        max-height: none !important;
        height: auto;

        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    #hero { margin-top: 70px; padding: 60px 0 80px; text-align: center; min-height: auto; }
    .hero-buttons { justify-content: center; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .section-title { font-size: 1.8rem; }
    .section-padding { padding: 50px 0; }
    .emergency-content h3 { font-size: 1.4rem; }
    .cta-buttons-wrapper { align-items: center; }
    .cta-buttons-wrapper .btn { max-width: 300px; }

    .map-info-box {
        position: relative; top: 0; left: 0; transform: none; width: 100%; max-width: 100%;
        border-radius: 0; text-align: center; border-left: none; border-bottom: 5px solid var(--color-accent);
    }
    .map-container { height: auto; display: flex; flex-direction: column-reverse; }
    .map-container iframe { height: 300px; }
}

@media (max-width: 576px) {
    .back-link { top: calc(var(--header-height) + 10px); left: 20px; }
    .login-card { padding: 30px 20px; }
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #eee;
    z-index: 1;
}

.map-info-box {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
    border-left: 5px solid var(--color-accent);
}

@media (max-width: 768px) {
    .map-info-box {
        position: relative;
        top: 0; left: 0; transform: none;
        width: 100%; max-width: 100%;
        z-index: 1;
    }
}

.service-card i.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card img.service-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.bg-domotique {
    background-image: linear-gradient(rgba(32, 64, 128, 0.8), rgba(32, 64, 128, 0.7)),
    url('https://images.unsplash.com/photo-1558002038-1091a166111c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-page {
    margin-top: 100px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-domotique {
    background-image: linear-gradient(rgba(32, 64, 128, 0.75), rgba(32, 64, 128, 0.6)),
    url('https://images.unsplash.com/photo-1558002038-1091a166111c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.col-image img{
    max-height: 400px;
    max-width: 400px;
}

.tech-icon-wrapper {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 30px;
     margin-top: 40px;
 }

.service-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    flex: 0 1 450px;
    width: 100%;
    min-width: 300px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.tech-icon-wrapper {
    margin-bottom: 20px;
}

.tech-icon-wrapper i {
    color: #d68f15;
    font-size: 2.5rem !important;
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.thermal-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.badge-blue {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-yellow {
    background-color: #fff8e1;
    color: #fbc02d;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.list-check li {
    margin-bottom: 12px;
    color: #444;
    display: flex;
    align-items: flex-start;
}

.list-check i {
    color: #d68f15;
    margin-right: 10px;
    margin-top: 4px;
}

.info-box {
    background-color: #ffffff;
    padding: 30px;
    border-left: 5px solid #0b2e59;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 6px;
    text-align: left;
}

.list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-top: 25px;
    padding: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .list-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.list-grid li {
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.list-grid li i {
    color: #d68f15;
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.gallery-item{position:relative; cursor: pointer;}
.video-thumb{display:flex;align-items:center;justify-content:center;background:#f2f2f2;height:180px;overflow:hidden}
.video-thumb-inner{display:flex;align-items:center;justify-content:center;color:#666}
.video-badge{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,0.6);color:#fff;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;pointer-events:none}
.multi-icon {position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 5px 8px; border-radius: 4px; font-size: 0.8rem;}

.video-modal{display:none;position:fixed;inset:0;z-index:1200}
.video-modal.show{display:block}
.video-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,0.85);z-index:1200}

.video-modal-content{
    position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
    max-width:95%; width:900px;
    height: 90vh; max-height: 90vh;
    background:#000; padding:0; border-radius:6px;
    box-shadow:0 10px 30px rgba(0,0,0,0.5); z-index:1201;
    display: flex; flex-direction: column; overflow: hidden;
}

.media-container {
    flex: 1;
    width: 100%; display: flex; justify-content: center; align-items: center;
    overflow: hidden; background: #000; min-height: 0;
}

.video-modal-content video, .video-modal-content img {
    max-width:100%; max-height:100%; display:block; object-fit: contain;
}

.media-description {
    background: #000; color: #fff; text-align: center;
    padding: 15px 20px; font-size: 1rem; border-top: 1px solid #222;
    flex-shrink: 0;
}

.video-close{position:absolute;top:-40px;right:0;background:transparent;border:0;color:#fff;font-size:32px;cursor:pointer;z-index:1202}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1205;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev { left: 20px; }
.modal-nav.next { right: 20px; }

@media (max-width: 600px){
    .modal-nav { width: 40px; height: 40px; font-size: 1rem; }
    .modal-nav.prev { left: 10px; }
    .modal-nav.next { right: 10px; }
}

.modal-counter {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    color: #ccc; font-size: 0.9rem;
}

@media (max-width:1000px){
    .video-modal-content { height: 85vh; }
    .media-description { font-size: 0.9rem; padding: 10px; }
    .modal-nav.prev { left: 10px; background: rgba(0,0,0,0.5); }
    .modal-nav.next { right: 10px; background: rgba(0,0,0,0.5); }
    .video-close { top: 5px; right: 5px; text-shadow: 0 0 5px #000; font-size: 28px; z-index: 1210;}
    .video-close { position: absolute; top: 10px; right: 10px; }
}

.video-thumb img.generated-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
