/* =========================
   HERO WRAPPER
========================= */

.hero{
    position:relative;
    padding-top:140px;
}

.hero::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:160px;

    background:linear-gradient(
        to bottom,
        rgba(10,15,25,0.95),
        rgba(10,15,25,0.5),
        transparent
    );

    pointer-events:none;
    z-index:1;
}

.hero-content{
    position:relative;
    z-index:2;
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* =========================
   HERO MAIN
========================= */

.hero-main{
    position:relative;
    display:flex;
    align-items:center;
}

/* LEFT TEXT AREA */
.hero-text{
    z-index:3;
    padding:0 30px 30px 30px;
}

.hero h1{
    font-size:55px;
    font-weight:800;
    line-height:1.1;
}

.subtitle-list{
    margin-top:20px;
    list-style:none;
    font-size:22px;
    line-height:1.4;
    color:#d7e2ef;
}

.subtitle-list li::before{
    content:"• ";
    color:#0b8fff;
    font-weight:bold;
}

/* ICONS IN LIST */
.icon-logo{
    height:3.5em;
    object-fit:contain;
    vertical-align:middle;
    margin-right:8px;
    display:inline-block;
    border-radius:50%;
}

/* =========================
   HERO BUTTONS (layout only)
========================= */

.hero-buttons{
    margin-top:25px;
    display:flex;
    gap:20px;
}

/* =========================
   FEATURES STRIP
========================= */

.hero-features{
    margin-top:40px;
    display:flex;
    flex-wrap:nowrap;
    gap:25px;
    overflow-x:auto;
}

.feature{
    display:flex;
    align-items:center;
    gap:8px;

    flex-shrink:0;
    white-space:nowrap;
    color:#dbe6f3;
    font-size:16px;
}

/* =========================
   HERO IMAGE (RIGHT SIDE)
========================= */

.hero-image{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);

    width:90%;
    height:450px;

    overflow:hidden;

    background:
        url("../images/control_room_4K.png") center/cover no-repeat;

    box-shadow:0 30px 80px rgba(0,0,0,0.45);

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 10%,
        rgba(0,0,0,0.6) 18%,
        rgba(0,0,0,1) 25%,
        rgba(0,0,0,1) 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 10%,
        rgba(0,0,0,0.6) 18%,
        rgba(0,0,0,1) 25%,
        rgba(0,0,0,1) 100%
    );
}

/* =========================
   HERO CARDS SECTION
========================= */

.hero-cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:0;
}

/* CARD BASE */
.hero-cards .card{
    padding:32px 28px;
    min-height:320px;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    background-size:cover;
    background-position:center;

    transition:transform .4s ease, box-shadow .4s ease;
}

/* inner layout */
.card-content{
    display:flex;
    flex-direction:column;
    flex:1;
}

/* TITLE */
.hero-cards .card h2{
    font-size:24px;
    font-weight:800;
    margin-bottom:18px;
}

/* TEXT */
.hero-cards .card p{
    font-size:16px;
    line-height:1.6;
    color:#d7e2ef;
    margin-bottom:10px;
}

/* CARD ICON */
.icon-card{
    width:45%;
    max-width:240px;
    height:auto;
    object-fit:contain;

    margin:12px 0 30px 0;
    display:block;
    border-radius:24%;
}

/* BUTTON POSITION INSIDE CARD */
.hero-cards .card .btn{
    align-self:flex-start;
    margin-top:auto;
}

/* CARD BACKGROUNDS */
.hero-cards .card:nth-child(1){
    background:
        linear-gradient(
            to bottom,
            rgba(4,11,20,0.15),
            rgba(4,11,20,0.75)
        ),
        url("../images/plc_cabinet_card1.png") center/cover no-repeat;
}

.hero-cards .card:nth-child(2){
    background:
        linear-gradient(
            to bottom,
            rgba(4,11,20,0.15),
            rgba(4,11,20,0.75)
        ),
        url("../images/scada_workstation_card2.png") center/cover no-repeat;

    padding-left:65px;
}

/* HOVER EFFECT */
.hero-cards .card:hover{
    transform:translateY(-6px) scale(1.02);
    box-shadow:0 30px 90px rgba(0,0,0,0.6);
}

/* =========================
   MOBILE (INDEX ONLY)
========================= */

@media (max-width:900px){

    .hero{
        padding-top:120px;
    }

    .hero-main{
        display:block;
    }

    .hero-image{
        display: none;
    }

    .hero h1{
        font-size:34px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-cards{
        grid-template-columns:1fr;
        gap:20px;
    }
    .icon-card{
        display: none;
    }
}
/* =========================
   MOBILE EXTRA (INDEX)
========================= */

@media (max-width:900px){

    /* hero-features jedna ispod druge */
    .hero-features {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 14px;
        overflow-x: visible;
    }

    .feature {
        white-space: normal;
    }

    /* hero-cards vise blura na telefonu */
    .hero-cards .card:nth-child(1){
        background:
            linear-gradient(
                to bottom,
                rgba(4,11,20,0.55),
                rgba(4,11,20,0.88)
            ),
            url("../images/plc_cabinet_card1.png") center/cover no-repeat;
    }

    .hero-cards .card:nth-child(2){
        background:
            linear-gradient(
                to bottom,
                rgba(4,11,20,0.55),
                rgba(4,11,20,0.88)
            ),
            url("../images/scada_workstation_card2.png") center/cover no-repeat;
        padding-left: 28px;
    }
}