/* CSS for Guardian UI Section */
#guardian-intro-section {
    background-image: url('https://d24is0aquw4u7l.cloudfront.net/images/guardian/bg_1_launch.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#guardian-intro-section .machine-container {
    position: relative;
    width: 100%;
    padding-left: 4vw;
}

#guardian-intro-section .machine-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

#guardian-intro-section .screen-area {
    position: absolute;
    top: 28%;
    left: 29%;
    width: 53%;
    height: 33%;
    z-index: 2;
    overflow: hidden;
}

#guardian-intro-section .screen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#intro-text {
    background: linear-gradient(150deg, #DB609B 50%, #5753F5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 10vh;
    font-size: 1.5rem;
    font-weight: bold;
    justify-self: end;
}

.guardian-logo {
    max-width: clamp(300px, 300px + 5vw, 400px);
}

#heading {
    font-size: clamp(1.5rem, 1.5rem + 2vw, 2.5rem);
}

/* guardian-detail-video */
#guardian-detail-video {
    position: relative;
}
.play-div {
    top: 50%;
    cursor: pointer;
}

#guardian-detail-video-div {
    height: 50% !important;
}

@media (min-width: 992px) {
    #guardian-detail-video-div {
        height: 100% !important;
    }
}

/* scroll animation */
/* set background */
#guardian-ui-section {
    background-image: url('https://d24is0aquw4u7l.cloudfront.net/images/guardian/bg_2_scroll_down.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* scroll animation */
#guardian-ui-section .scroll-container {
    height: 300vh;
    position: relative;
}

#guardian-ui-section .sticky-wrapper {
    position: sticky;
    top: 15vh;
    height: 85vh;
}

#guardian-ui-section #machine-text {
    margin-bottom: 30vh;
}

#guardian-ui-section .machine-container {
    position: relative;
    width: 100%;
    padding-left: 4vw;
}

#guardian-ui-section .machine-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

#guardian-ui-section .screen-area {
    position: absolute;
    top: 28%;
    left: 28%;
    width: 53%;
    height: 33%;
    z-index: 2;
    overflow: hidden;
}

#guardian-ui-section .screen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

#guardian-ui-section .screen-img.img-1 {
    opacity: 1;
}

#guardian-ui-section .text-wrapper {
    position: relative;
    height: 300px;
}

#guardian-ui-section .text-content {
    position: absolute;
    top: 0;
    left: 2vw;
    right: 15px;
    display: none;
    opacity: 0;
}

#guardian-ui-section .text-content.text-1 {
    display: block;
    opacity: 1;
}

.text-content h1 {
    font-size: 1.8rem;
    white-space: nowrap;
}

#why {
    height: 100vh !important;
}

#why-text {
    padding-left: 9vw;
    padding-top: 3rem;
    text-wrap: pretty;
}

#why-text h1 {
    font-size: 2vw;
}

#why-image {
    width: 100%;
}

/* clarity (hyperspace) section */
#clarity-video {
    position: relative;
}

#clarity-video-div {
    height: 100vh !important;
    position: relative;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.trace-heading {
    position: absolute;
    top: 25%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.trace-heading .text-heading {
    font-size: 4rem;
}

.trace-heading-detail {
    font-size: 1.5rem;
}

/*desktop*/
#clarity-video video {
    object-fit: cover !important;
}

/* ========================================= */
/* RESPONSIVE STYLES FOR TABLET AND MOBILE   */
/* ========================================= */
@media (max-width: 991.98px) {
    /* Force single column for main sections */
    #guardian-intro-section .col-md-5,
    #guardian-ui-section .col-md-6,
    #why .col-md-5,
    #why .col-md-7 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    #guardian-intro-section .screen-area {
        left: 23%;
        width: 54%;
    }

    /* Intro Section */
    #guardian-intro-section {
        padding-top: 120px;
        height: auto !important;
        align-items: center !important;
    }
    #guardian-intro-section .row {
        text-align: center;
    }
    #intro-text {
        padding-top: 0;
        padding-bottom: 2rem;
        justify-self: center;
    }
    .guardian-logo {
        margin: 0 auto;
    }
    #guardian-intro-section .machine-container {
        padding-left: 0;
        margin: 0 auto;
        max-width: 60%;
    }

    /* UI Scroll Section */
    #guardian-ui-section .row {
        align-items: center !important;
    }
    #guardian-ui-section .machine-container {
        padding-left: 0;
        margin: 0 auto;
        max-width: 60%;
    }

    #guardian-ui-section .screen-area {
        left: 22%;
        width: 55%;
    }

    #guardian-ui-section .sticky-wrapper {
        height: auto;
        min-height: 85vh;
        display: flex;
        align-items: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #guardian-ui-section #machine-text {
        margin-bottom: 0;
        text-wrap: pretty;
    }
    #guardian-ui-section #machine-text h1 {
        text-align: center;
    }
    #guardian-ui-section .text-wrapper {
        height: 250px;
    }
    #guardian-ui-section .text-content {
        left: 15px;
        right: 15px;
    }
    .text-content h1 {
        white-space: normal;
    }

    /* Why Section */
    #why {
        height: auto !important;
        padding-top: 3rem;
    }
    #why-text {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 0;
        text-align: center;
    }
    #why-text h1 {
        font-size: 2.5rem;
        white-space: normal !important;
    }
    #why-image {
        margin-top: 2rem;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Clarity Video Section */
    #clarity-video video {
        width: 100% !important;
        height: 100% !important;
    }
    #clarity-video-div {
        height: 70vh !important;
    }
    .trace-heading {
        width: 90%;
    }
    .trace-heading .text-heading {
        font-size: 6vw;
    }
}

@media (max-width: 767.98px) {
    /* Intro Section */
    #guardian-intro-section .machine-container {
        max-width: 90%;
    }

    .guardian-logo {
        max-width: clamp(200px, 250px + 5vw, 300px);
    }

    #heading {
        font-size: clamp(1.2rem, 1.2rem + 2vw, 2rem);
    }

    #intro-text {
        font-size: 1.2rem;
    }

    /* UI Scroll Section */
    #guardian-ui-section .machine-container {
        max-width: 80%;
    }
    #guardian-ui-section .text-wrapper {
        height: 350px;
    }
    .text-content h1 {
        font-size: 1.3rem;
    }

    /* Why Section */
    #why-text h1 {
        font-size: 2rem;
    }

    /* Clarity Video Section */
    .trace-heading .text-heading {
        font-size: 9vw;
    }
    .trace-heading-detail {
        font-size: 1rem;
    }
    .audit-trail span {
        font-size: 1rem;
    }
}