/* ===== ROOT VARIABLES ===== */
:root {
    --brand-red: #e31e24;
    --dark-navy: #0f172a;
    --border-light: #e2e8f0;
    --bg-white: #ffffff;
    --text-gray: #64748b;
}

/* ===== BASE ===== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-navy);
    background: var(--bg-white);
    line-height: 1.6;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark-navy) !important;
}
.navbar-brand span {
    color: var(--brand-red);
}
.nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-navy) !important;
    margin: 0 10px;
    text-transform: uppercase;
}
.dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 10px;
    min-width: 240px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.dropdown-item {
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 10px 15px;
    color: var(--dark-navy);
    transition: 0.2s;
}
.dropdown-item:hover {
    background: #fff1f2;
    color: var(--brand-red);
    padding-left: 20px;
}
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 90px 0;
}
.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.red-line {
    height: 4px;
    width: 60px;
    background: var(--brand-red);
    margin-bottom: 30px;
}

/* ===== EXPERTISE SECTION ===== */
.expertise-item {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-light);
}
.expertise-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.expertise-icon-box {
    width: 60px;
    height: 60px;
    background: #fff1f2;
    color: var(--brand-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.expertise-img {
    transition: transform 0.3s ease;
    object-fit: cover;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.expertise-img:hover {
    transform: scale(1.02);
}

/* ===== SOLUTIONS / SERVICES CARDS ===== */
.sol-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.sol-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(227, 30, 36, 0.08);
}
.sol-icon {
    width: 70px;
    height: 70px;
    background: #fff1f2;
    color: var(--brand-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: 0.3s;
}
.sol-card:hover .sol-icon {
    background: var(--brand-red);
    color: white;
}
.sol-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
}
.sol-list li {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}
.sol-list i {
    color: var(--brand-red);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ===== PROJECTS SECTION ===== */
.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(227,30,36,0.08);
}
.project-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}
.project-card-body {
    padding: 28px;
}
.project-stat {
    background: #fff1f2;
    color: var(--brand-red);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 14px;
}

/* ===== BUTTONS ===== */
.btn-brand {
    background: var(--brand-red);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    display: inline-block;
}
.btn-brand:hover {
    background: #b91c1c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227,30,36,0.3);
}
.btn-read-more {
    color: var(--brand-red);
    font-weight: 700;
    background: none;
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: 0.3s;
    cursor: pointer;
}
.btn-read-more:hover {
    gap: 12px;
}

/* ===== WHY CHOOSE ===== */
.icon-circle-simple {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: 0.3s;
}
.simple-card:hover .icon-circle-simple {
    background: #dc3545;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.2);
}

/* ===== LEGACY SECTION ===== */
.experience-badge-premium {
    animation: floatBadge 5s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.legacy-content-card {
    transition: all 0.5s ease;
}

/* ===== CTA ===== */
.transition-up {
    transition: all 0.3s ease;
}
.transition-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220,53,69,0.3) !important;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-navy);
    color: white;
    padding: 80px 0 30px;
}
.footer-title {
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 5px;
    display: inline-block;
}
.premium-list li {
    margin-bottom: 12px;
}
.premium-list a {
    color: #ffffff;
    opacity: 0.75;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.premium-list a:hover {
    opacity: 1;
    color: #dc3545 !important;
    padding-left: 8px;
}
.hover-red:hover {
    color: #dc3545 !important;
    opacity: 1 !important;
}

/* ===== SIEMENS BADGE ===== */
#siemens-badge-wrapper {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.siemens-trigger-btn {
    background: #009999;
    color: white;
    border-radius: 50px;
    padding: 11px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0,153,153,0.4);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}
.siemens-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,153,153,0.5);
    background: #00aaaa;
}
.siemens-trigger-btn .s-logo {
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #009999;
    flex-shrink: 0;
}
.siemens-chevron {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    margin-left: 2px;
}
.siemens-chevron.open {
    transform: rotate(180deg);
}
.siemens-popper {
    position: absolute;
    bottom: 62px;
    right: 0;
    width: 310px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.15), 0 5px 20px rgba(0,153,153,0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.97);
    transform-origin: bottom right;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.siemens-popper.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}
.siemens-popper-header {
    background: linear-gradient(135deg, #009999 0%, #007777 100%);
    padding: 20px 22px;
    text-align: center;
    position: relative;
}
.siemens-logo-card {
    background: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    margin-bottom: 10px;
}
.siemens-logo-card .big-s {
    width: 32px;
    height: 32px;
    background: #009999;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: white;
}
.siemens-logo-card span {
    font-size: 1.25rem;
    font-weight: 900;
    color: #009999;
    letter-spacing: 2px;
}
.siemens-partner-label {
    color: rgba(255,255,255,0.95);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}
.verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
}
.siemens-popper-body {
    padding: 20px 22px 22px;
}
.siemens-desc {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 16px;
}
.siemens-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}
.siemens-tag {
    background: #f0fafa;
    color: #007070;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #b2dede;
}
.siemens-cta {
    display: block;
    text-align: center;
    background: #009999;
    color: white;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}
.siemens-cta:hover {
    background: #007777;
    color: white;
}
@keyframes siemensPulse {
    0%   { box-shadow: 0 8px 30px rgba(0,153,153,0.4), 0 0 0 0 rgba(0,153,153,0.3); }
    70%  { box-shadow: 0 8px 30px rgba(0,153,153,0.4), 0 0 0 12px rgba(0,153,153,0); }
    100% { box-shadow: 0 8px 30px rgba(0,153,153,0.4), 0 0 0 0 rgba(0,153,153,0); }
}
.siemens-trigger-btn.pulse-once {
    animation: siemensPulse 1.8s ease 1s 3;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    background: var(--dark-navy);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(227,30,36,0.08) 0%, transparent 60%);
    z-index: 1;
}
.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}
.page-hero h1 span {
    color: var(--brand-red);
}
.page-hero .lead {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.8;
}
.hero-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-red) !important;
    background: rgba(227,30,36,0.12);
    border: 1px solid rgba(227,30,36,0.25);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.brand-pill {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    margin: 4px 3px 0 0;
}
.hero-stat-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: 0.3s;
}
.hero-stat-box:hover {
    background: rgba(227,30,36,0.1);
    border-color: rgba(227,30,36,0.3);
}
.hero-stat-box .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.hero-stat-box .lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ===== EXPERTISE CARDS (SCADA / inner pages) ===== */
.expertise-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 36px 28px;
    height: 100%;
    position: relative;
    transition: all 0.4s ease;
}
.expertise-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(227,30,36,0.08);
}
.expertise-card .card-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(227,30,36,0.07);
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}
.expertise-card .card-icon-box {
    width: 56px;
    height: 56px;
    background: #fff1f2;
    color: var(--brand-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: 0.3s;
}
.expertise-card:hover .card-icon-box {
    background: var(--brand-red);
    color: white;
}
.expertise-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.expertise-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ===== SPECS / DARK SECTION ===== */
.specs-section {
    background: var(--dark-navy);
}
.spec-item {
    padding: 40px 32px;
    transition: background 0.3s;
}
.spec-item:hover {
    background: rgba(255,255,255,0.03);
}
.spec-item i {
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 18px;
    display: block;
}
.spec-item h5 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}
.spec-item p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== STAT BOXES (inner pages) ===== */
.stat-box {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    transition: 0.3s;
}
.stat-box:hover {
    border-color: var(--brand-red);
    box-shadow: 0 10px 30px rgba(227,30,36,0.07);
}
.stat-box .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1;
}
.stat-box .lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ===== APPLICATION BADGES ===== */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--dark-navy);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    margin: 5px;
    transition: 0.25s;
}
.app-badge:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    box-shadow: 0 4px 12px rgba(227,30,36,0.1);
}
.app-badge i {
    color: var(--brand-red);
    font-size: 0.75rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .legacy-content-card {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-top: 24px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    }
    .legacy-img-wrapper img {
        height: 350px !important;
    }
    footer {
        padding-top: 140px !important;
    }
    .premium-list a {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .section-title { font-size: 1.9rem; }
    .border-start,
    .border-end { border: none !important; }
    .simple-card { padding: 20px 0; border-bottom: 1px solid #eee; }
    .legacy-stats h4 { font-size: 1.1rem; }
    .legacy-stats img { max-width: 60px; }
    .expertise-img { height: 220px !important; }
    .project-card-img { height: 180px; }
    .cta-section { padding: 30px 20px !important; }
    #siemens-badge-wrapper { bottom: 16px; right: 12px; }
    .siemens-popper { width: 280px; right: 0; }
    .siemens-trigger-btn { padding: 9px 16px; font-size: 0.78rem; }
    .footer-contact-row { text-align: center; }
    .premium-list a { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .navbar-logo { height: 70px !important; }
    .legacy-stats .col-3 { flex: 0 0 50%; max-width: 50%; margin-bottom: 12px; }
    .legacy-stats .col-3.border-start:nth-child(odd) { border-left: none !important; }
    .section-padding { padding: 60px 0; }
}
 /* --- Expertise Cards --- */
        .expertise-card { background: #fff; border: 1px solid var(--border-light); border-radius: 20px; padding: 35px 28px; height: 100%; position: relative; overflow: hidden; transition: all 0.35s ease; }
        .expertise-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 4px; background: var(--brand-red); transition: width 0.3s ease; }
        .expertise-card:hover { transform: translateY(-8px); border-color: var(--brand-red); box-shadow: 0 20px 40px rgba(227,30,36,0.08); }
        .expertise-card:hover::after { width: 100%; }
        .card-num { position: absolute; top: 20px; right: 24px; font-size: 3.5rem; font-weight: 800; color: rgba(227,30,36,0.06); line-height: 1; }
        .card-icon-box { width: 56px; height: 56px; background: #fff1f2; color: var(--brand-red); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; transition: 0.3s; }
        .expertise-card:hover .card-icon-box { background: var(--brand-red); color: #fff; }
        .expertise-card h4 { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.75rem; }
        .expertise-card p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.7; margin: 0; }

        /* --- Specs --- */
        .specs-section { background: var(--dark-navy); }
        .spec-item { padding: 32px 28px; border-top: 3px solid transparent; transition: all 0.25s ease; }
        .spec-item:hover { border-top-color: var(--brand-red); background: rgba(255,255,255,0.03); }
        .spec-item i { color: var(--brand-red); font-size: 1.5rem; margin-bottom: 0.85rem; display: block; }
        .spec-item h5 { color: #fff; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 0.5rem; }
        .spec-item p { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.65; margin: 0; }

        /* --- Stats --- */
        .stat-box { background: #f8fafc; border: 1px solid var(--border-light); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; transition: 0.3s; }
        .stat-box:hover { border-color: var(--brand-red); background: #fff; transform: translateY(-4px); box-shadow: 0 10px 25px rgba(227,30,36,0.07); }
        .stat-box .num { font-size: 2.8rem; font-weight: 800; color: var(--brand-red); line-height: 1; }
        .stat-box .lbl { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-gray); margin-top: 0.4rem; font-weight: 600; }

        /* --- Industry 4.0 Section --- */
        .i40-card { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 28px 24px; transition: 0.3s; }
        .i40-card:hover { border-color: var(--brand-red); box-shadow: 0 10px 30px rgba(227,30,36,0.07); transform: translateY(-4px); }
        .i40-icon { width: 48px; height: 48px; background: #fff1f2; color: var(--brand-red); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem; }

        /* --- Process Steps --- */
        .process-step { position: relative; padding-left: 70px; margin-bottom: 40px; }
        .step-num { position: absolute; left: 0; top: 0; width: 50px; height: 50px; background: var(--brand-red); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; flex-shrink: 0; }
        .process-step h5 { font-weight: 800; font-size: 1rem; margin-bottom: 0.4rem; }
        .process-step p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.7; margin: 0; }
        .process-connector { position: absolute; left: 25px; top: 50px; width: 2px; height: calc(100% + 10px); background: linear-gradient(to bottom, var(--brand-red), transparent); }

        /* --- Footer --- */
        .social-glass { width: 45px; height: 45px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 12px; text-decoration: none; transition: 0.3s; }
        .social-glass:hover { background: #dc3545; border-color: #dc3545; transform: translateY(-5px) rotate(8deg); color: white; }
        .premium-list li { margin-bottom: 15px; }
        .premium-list a { color: rgba(255,255,255,0.65); text-decoration: none; transition: 0.3s ease; font-size: 0.9rem; display: flex; align-items: center; }
        .premium-list a:hover { color: #fff; padding-left: 10px; }
        .transition-up { transition: all 0.3s ease; }
        .transition-up:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(220,53,69,0.3) !important; }

        /* --- Application Areas --- */
        .app-badge { display: inline-flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 50px; padding: 8px 18px; font-size: 0.82rem; font-weight: 600; color: var(--dark-navy); margin: 4px; transition: 0.2s; }
        .app-badge:hover { background: #fff1f2; border-color: var(--brand-red); color: var(--brand-red); }
        .app-badge i { color: var(--brand-red); font-size: 0.8rem; }