/* Styles for reusable sections or layouts */

.section-dark-1 {
    background: black;
    color: white;
    padding: 30px 50px;
}

.section-dark-3 {
    background: #1A3A5F;
    color: white;
}

/* home screen specific sections and layouts */
#landing-initial {
    height: 70vh;
    background-image: url(../images/skyline.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-y: visible;
    overflow-x: clip;
    z-index: 1;
}

#landing-initial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  /* Triangle will span the full width of the container */
    height: 70vh;  /* Triangle will span the full height of the viewport */
    background: linear-gradient(to bottom right, rgba(93, 0, 255, 0.5), rgba(0, 119, 255, 0.5)); /* Gradient with opacity */
    clip-path: polygon(0 0, 45% 0, 0 100%);  /* Creates a triangle shape */
    z-index: 1;  /* Ensures the triangle stays on top of content */
    opacity: 0.3;
}

#landing-initial::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -180px;
    width: 100%;  /* Adjust this to control how much of the triangle is exposed */
    height: 70vh;  /* Smaller than the ::before triangle */
    background: linear-gradient(to bottom right, rgba(93, 0, 255, 0.5), rgba(0, 119, 255, 0.5)); /* Same gradient for consistency */
    clip-path: polygon(100% 100%, 100% 0, 55% 100%);  /* Inverted triangle with the same angle */
    z-index: 1;  /* Ensures it's positioned above the content */
    opacity: 0.3;
}

#landing-initial .headline-container {
    position: relative;
    top: 300px;
    left: 100px;
    width: 400px;
    padding: 20px;
    text-align: left;
    color: white;
    line-height: 2rem;
    font-size: 1.4rem;
}

.headline-container .box-bg {
    width: 100%;
    height: 100%;
    background: darkblue;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.5;
}

.headline-container h1 {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 100;
    font-weight: normal;
}

.alliances {
    position: absolute;
    z-index: 1000;
    bottom: -50px;
    right: 30px;
    gap: 25px;
    display: flex;
    flex-direction: row;
    color: white;
    align-items: center;
}

.alliances .tricentis-alliance {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.alliances .tricentis-alliance img {
    height: 24px;
}

.alliances .tricentis-alliance .label {
    font-size: 1rem;
    margin-top: 6px;
}

.alliances .company-logo {
    height: 40px;
}

/* Home Screen Mobile */
@media (max-width: 768px) {
    #landing-initial {
        height: 100vh;
        background-color: #121421;
        background-image: url(../images/backgrounds/skyline-mobile.png);
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
    }

    #landing-initial::before {
        width: 100%;  /* Triangle will span the full width of the container */
        height: 70vh;  /* Triangle will span the full height of the viewport */
        background: linear-gradient(to bottom right, rgba(93, 0, 255, 0.5), rgba(0, 119, 255, 0.5));
        clip-path: polygon(0 0, 80% 0, 0 100%);
    }
    
    #landing-initial::after {
        display: none;
    }

    #landing-initial .headline-container {
        width: auto;
        position: static;
        padding: 130px 16px 0 16px;
        margin-bottom: 20px;
    }

    #landing-initial .headline-container .box-bg {
        display: none;
    }

    .headline-container h1 {
        font-size: 2rem;
        line-height: 3rem;
    }

    .alliances {
        position: absolute;
        right: 0;
        left: 0;
        bottom: 0;
        justify-content: center;
        background: rgba(93, 0, 255, 0.2);
        padding: 24px 10px;
        gap: 30px;
    }

    .alliances .company-logo {
        height: 34px;
    }
}

/* Services section */
.services {
    padding: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}

    .services .service {
        height: 240px;
        padding: 25px;
        border-radius: 8px;
        text-align: center;
        flex: 1;
        display: flex;
        flex-direction: column;
        position: relative;
        border-width: 1px;
        border-style: solid;
        border-image: linear-gradient(to bottom, rgba(180, 180, 180, 0.8) 15%, #353535 50%) 1;
        background-color: black;  /* Content background stays black */
        z-index: 1;
    }

        .service h2 {
            font-size: 1.4rem;
            margin-bottom: 30px;
            font-weight: normal;
        }

        .service .service-description {
            font-size: 0.9rem;
            line-height: 1.6rem;
            color: #EFEFEF;
        }

        .service a {
            display: none;
        }

/* Services section end */

section#solutions-summary {
    height: auto;
    padding: 30px 50px 50px 100px;
    background-color: #19181d;
    color: white;
}

/* Home Screen Mobile */
@media (max-width: 768px) {
    section#solutions-summary {
        padding: 30px 16px 100px 16px;
    }
}

section#solutions-section {
    position: relative;
}

.summary-content {
    position: relative;
    top: -130px;
    line-height: 2.2rem;
    font-size: 1.2rem;
    border: 1px solid #353535;
    color: white;
    width: 50vw;
    box-sizing: border-box;
    padding: 30px;
    margin: 0 auto;
    border-width: 1px;
    border-style: solid;
    border-image: linear-gradient(to bottom, rgba(180, 180, 180, 0.8) 15%, #ffba1f 50%) 1;
}

section#solutions-section::after {
    content: '';
    position: absolute;
    bottom: 0px;  /* Moves the triangle completely above the container */
    right: 0;  /* Starts from the top right */
    width: 0;
    height: 0;
    border-left: 100vw solid transparent;  /* Full width of the triangle */
    border-bottom: 150px solid #19181d;  /* Triangle's height and color */
    z-index: -1;
}

/* Customer Success Section Start */
section#customer-section {
    height: auto;
    padding: 30px 50px 150px 100px;
    background-color: #19181d;
    color: white;
    position: relative;
    display: flex;
    flex-direction: row;
}

section#customer-section .description {
    width: 500px;
    margin-right: 50px;
    display: flex;
    flex-direction: column;
}

.carousel {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 120px;
    gap: 20px;
    width: 100%;
    padding: 20px;
}

.carousel .slide {
    height: 60px;
    width: 240px;
    text-align: center;
    position: relative;
    animation: float 6s ease-in-out infinite; /* Floating animation */
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.carousel .slide:hover {
    transform: scale(1.2); /* Slight scale on hover */
    opacity: 1; /* Fully opaque on hover */
  }
  

    .carousel .slide img {
        margin: 0;
        padding: 0;
    }

/* Customer Success Mobile */
@media (max-width: 768px) {
    section#customer-section {
        flex-direction: column;
    }

    section#customer-section .description {
        width: auto;
        margin: 0;
    }
    
    .carousel {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 120px;
        gap: 20px;
        width: 100%;
        padding: 20px;
    }
}

/* Customer Success Section End */


/* Mission Section Start */
section#eaf-section {

}

    section#eaf-section .section-image {
        width: 100vw;
        height: auto;
        display: block;
        position: relative;
        z-index: 10;
    }

    .section-image-description {
        position: absolute;
        top: 100px;
        left: 100px;
        width: 700px;
        z-index: 100;
    }

    .section-image-description h1 {
        font-size: 3rem;
    }

    .section-image-description p {
        font-size: 1.8rem;
        line-height: 2.6rem;
    }

/* Mission Mobile */
@media (max-width: 768px) {
    section#eaf-section {
        width: 100vw;
        overflow: hidden;
    }

    section#eaf-section .section-image {
        height: 100vh;
        width: auto;
        object-fit: cover;
        object-position: center;
        margin: 0;
    }

    .section-image-description {
        width: auto;
    }

    .section-image-description h1 {

    }

    .section-image-description p {

    }
}

/* Mission Section End */

/* Contact Section Start */
.contact-section {
    overflow: hidden;
    position: relative;
    background-image: url(../images/bulb_large_white.png);
    background-repeat: no-repeat;
    background-position: top 20px right 100px;
    background-size: auto;
}

.contact-section .background-bulbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.background-bulbs .bulb {
    position: absolute;
    opacity: 0;
    transition: opacity 3s ease-out, transform 1s ease-out;
}

.contact-section .form-wrapper {
    margin: 100px 10% 0 10%;
    position: relative;
    z-index: 10;
}

.tile.contact-form {
    flex: 1;
    padding: 0 80px;
}

.contact-form h2 {
    margin-bottom: 15px;
}


.row {
    height: 100%;
    display: flex;
    flex-direction: row;
}

.tile {
    display: flex;
    flex-direction: column;
}

/* Contact Mobile */
@media (max-width: 768px) {
    .contact-section {
        width: 100%;
    }
    
    .tile.contact-form {
        flex: 1;
        padding: 0;
    }

    .contact-section .form-wrapper {
        margin: 0;
    }

    .section-dark-1 {
        padding: 0 16px;
    }
}
/* Contact Section End */

/* Solutions Section Start */
.solutions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 12%;
}

    .solution-tile {
        padding-top: 15px;
        margin: 20px;
        flex: 1 1 calc(30% - 10px);
        border-top: 1px solid #303030;
        background-image: url(../images/bulb_white.png);
        background-repeat: no-repeat;
        background-position: 0 15px;
        background-size: 36px 36px;
        display: flex;
        flex-direction: row;
        transition: all 0.7s ease;
    }

    .solution-tile:hover {
        border-color: #FFBA1F;
        background-image: url(../images/bulb_orange.png);
    }

    .solution-tile strong {
        transition: all 0.7s ease;
    }

    .solution-tile:hover strong {
        color: #FFBA1F;
    }

        .solution-tile .icon {
            display: block;
            margin-right: 20px;
        }

        .solution-tile .content {
            margin-left: 56px;
        }

        .solution-tile h2 {
            margin-bottom: 15px;
            transition: all 0.7s ease;
        }

        .solution-tile .description {
            line-height: 1.8rem;
        }