/* Responsive overrides for home.html */
html {
    font-size: 16px;
}

.scroll-container {
    height: 100vh;
    /* Make the container take full viewport height */
    overflow-y: scroll;
    /* Enable vertical scrolling */
    scroll-snap-type: y mandatory;
    /* Enable vertical scroll snapping, mandatory means it must snap */
    -webkit-overflow-scrolling: touch;
    /* For smoother scrolling on iOS */
    scroll-behavior: smooth;
    /* Smooth scrolling when programmatically scrolling */
}

.section {
    height: 100vh;
    /* Each section takes full viewport height */
    width: 100vw;
    /* Each section takes full viewport width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    /* Snap to the start of each section */
    /* text-align: center; */
    position: relative;
    /* Needed for absolute positioning of elements if needed */
}

.header-section {
    height: 100vh;
    /* Each section takes full viewport height */
    width: 100vw;
    /* Each section takes full viewport width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    /* Snap to the start of each section */
    /* text-align: center; */
    position: relative;
    /* Needed for absolute positioning of elements if needed */
}

.section-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-radius: 9999px;
    /* Fully rounded */
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    /* Semi-transparent background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    outline: none;
    /* Remove focus outline */
    border: 2px solid transparent;
    /* Border for hover/active state */
}

.nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.nav-dot.active {
    background-color: white;
    transform: scale(1.3);
    border: 2px solid #6366f1;
    /* Highlight active dot */
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    /* Start slightly below and smaller */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* Smooth transition */
    will-change: opacity, transform;
    /* Optimize for animation */
}

/* End state (visible/on-screen) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Delay animation for paragraphs */
.section p.animate-on-scroll {
    transition-delay: 0.2s;
    /* P tag animates slightly after H1 */
}

.case-study-img {
    width: 200px;
    border-radius: 50%;
}

.hrLineWhite {
    border: none;
}

.borderRightWhite {
    border-right: 1px solid #fff;
}

#overviewSectionSystemView {
    display: none;
}

@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 576px) {

    html,
    body {
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
    }

    html {
        font-size: 12px;
    }

    .flexDirectionColumn {
        flex-direction: column !important;
    }

    .scroll-container section {
        height: auto !important;
    }

    .navbar-brand img {
        width: 250px;
    }

    .responsivePadding {
        padding: 0 1.5rem !important;
    }

    .section-padding-lg {
        padding: 2rem 2rem 2rem 2rem !important;
    }

    .justifyContentCenter {
        justify-content: center !important;
    }

    .laptop-img {
        height: 200px !important;
    }

    .screenshot-img {
        width: 150px !important;
        height: 150px !important;
    }

    .borderRight {
        border-right: none !important;
    }

    .borderRightWhite {
        border-right: none !important;
    }


    .hrLine {
        border: 2px solid #2790a5;
        width: 50%;
        margin: 10px auto;
    }

    .hrLineWhite {
        border: 2px solid #fff !important;
        width: 50%;
        margin: 15px auto 0px;
    }

    .factory-transformation-img {
        height: 150px !important;
    }

    .digital-strategy-img {
        width: 100px;
        height: 100%;
        object-fit: cover;
        position: relative;
        right: 0px !important;
    }

    .case-study-img {
        width: 150px !important;
    }

    .mes-feature-card-grid {
        height: 240px !important;
    }

    .margin-bottom-none {
        margin-bottom: 0 !important;
    }

    .mobileViewHidden {
        display: none !important;
    }

    .mobile-view-fontsize {
        font-size: 1.5rem !important;
    }

    .fs-1-5rem {
        font-size: 1.5rem !important;
    }

    .fs-0-8 {
        font-size: 0.8rem !important;
    }

    .morden-mes-img {
        height: 120px !important;
    }

    #overviewSection .overview-mes-feature-card-grid {
        width: 95% !important;
        height: 250px !important;
    }

    #overviewSection .carousel-card {
        flex: 0 !important;
    }

    .horizandal-center {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    #overviewSectionSystemView {
        display: block;
    }

    .hero-section-mobile-view {
        min-height: 68vh !important;
    }

    .hero-section-industries {
        min-height: 55vh !important;
    }

    .hero-title-mobile-view {
        font-size: 2rem !important;
    }

    .animate-on-scroll {
        opacity: 1 !important;
        transform: translateY(10px) scale(0.95);
        /* Start slightly below and smaller */
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        /* Smooth transition */
        will-change: opacity, transform;
        /* Optimize for animation */
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .justifyContentCenter {
        justify-content: center !important;
    }

    .moniterColumnHeight {
        height: 445px !important;
    }

    .fs-1-rem {
        font-size: 1rem !important;
    }
}

body,
p,
li,
a,
span,
label,
input,
button,
h1,
h2,
h3,
h4,
h5,
h6 {
    word-break: break-word;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.container,
.main-content,
.section,
.row,
.col {
    width: 100%;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {

    .container,
    .main-content,
    .section,
    .row,
    .col {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
}

/* @media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
} */