* {
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    overflow-x: hidden; /* Only hide horizontal overflow */
    overflow-y: auto;   /* Allow vertical scrolling for page content */
    /* Ensure no element can exceed 100% of the viewport width */
    width: 100vw; 
    height: 100vh;
}

/* HERO SECTION */
.section-hero {
    position: relative;
    top: 60px;
    width: 100%; 
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1800px;
    aspect-ratio: 4 / 1;
}

.hero-container::before {
    content: "";
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    height: 100%; 
    z-index: -1; 
    background-image: url('./images/hero_2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.hero-container img {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: auto;
}

@media screen and (min-width: 600px) {
    .hero-container img {
        width: clamp(200px, 20%, 400px);
    }
}

@media screen and (min-width: 900px) {
    .section-hero {
        /* background-color: #ECECEC; */
    }
    .hero-container {
        max-width: 1800px;
    }
}



/* SERVICES SECTION */

.section-services {
    position: relative;
    top: 60px;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.service-heading {
    width: 100%;
    font-family: 'ATS', sans-serif;
    letter-spacing: 1px;
    color: #244969;
    text-align: center;
    margin: 30px 0;
    font-size: clamp(24px, 6vw, 40px);
}

.segment-container {
    scroll-margin-top: 80px !important;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.segment-container-flip {
    width: 100%;
    background-color: #ECECEC;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-segment {
    display: block; 
    padding: 20px;
    background-color: white;
    width: 100%;
    max-width: 1800px;
}

.service-segment-flip {
    display: block; 
    width: 100%;
    max-width: 1800px;
    padding: 20px;
    
}

.service-image-float {
    float: left; 
    width: 45%;
    max-width: 199px;
    height: auto;
    margin-bottom: 20px;
    margin-right: 16px;
    box-shadow: -4px 4px 5px 0px rgba(0,0,0,0.71);
}

.service-image-float-flip {
    float: right;
    width: 45%; 
    max-width: 199px;
    height: auto;
    margin-left: 16px;
    margin-bottom: 20px;
    box-shadow: -4px 4px 5px 0px rgba(0,0,0,0.71);
}

.service-title {
    text-align: left;
    font-family: 'ATS', sans-serif;
    color: #244969;
    font-size: clamp(22px, 4vw, 32px);
    overflow: hidden;
    text-align: center;
    margin: 30px 0;
    scroll-margin-top: 100px;
}

.service-text-wrap p {
    font-size: clamp(16px, 2.5vw, 20px);
}

.service-text-wrap li {
    margin-left: 20px;
    margin-bottom: 8px;
    font-size: clamp(16px, 2.5vw, 20px);
}

.example-panorama-container {
    width: 100%;
    height: fit-content;
    margin-top: 30px !important;
    background-color: rgb(255, 255, 255);
    border-radius: 4px;
    padding: 8px;
    box-shadow: -4px 4px 5px 0px rgba(0, 0, 0, 0.479);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px !important;
}

.example-panorama-container p, .example-chimney-container p, .example-prototyping-container p {
    margin: 6px 0;
    font-family: 'ATS', sans-serif;
    letter-spacing: 1px;
    font-size: 18px;
    color: #244969;
}
 
/* Base Styles for all segments */
.panorama-segment-a, .panorama-segment-b {
    border: solid 2px #244969;
    width: 100%; 
    aspect-ratio: 500/121.5; 
    
    background-image: url('./images/example_panorama.jpg');
    background-repeat: no-repeat;
    
    background-size: 300% 101%;
    background-position-y: 0; 
    border-radius: 4px;
    box-shadow: -4px 4px 5px 0px rgba(0,0,0,0.71);
    background-color: #244969;
    margin-top: 10px;
}

.panorama-segment-a {
    background-image: url('./images/example_panorama_a.jpg');
}

.panorama-segment-b {
    background-image: url('./images/example_panorama_b.jpg');
}

.panorama-segment-2, .panorama-segment-4 {
    background-position-x: 100%;
}

.panorama-segment-2 {
    margin-bottom: 20px;
}

.example-chimney-container, .example-prototyping-container {
    width: 100%;
    height: fit-content;
    margin-top: 100px !important;
    background-color: #ECECEC;
    border-radius: 4px;
    padding: 8px 0;
    box-shadow: -4px 4px 5px 0px rgba(0, 0, 0, 0.479);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 30px !important;
}

.example-prototyping-container {
    background-color: rgb(255, 255, 255);
}
.example-chimney-container p, .example-prototyping-container p {
    width: 100%;
    text-align: center;
}

.chimney-segment, .prototyping-segment {
     width: 30%; 
     height: auto;
     margin: 5px 0;
     border-radius: 4px;
     box-shadow: -4px 4px 5px 0px rgba(0,0,0,0.71);
     border: solid 2px #244969;
}

.pano-wrap {
    margin-bottom: 50px;
}

@media screen and (max-width: 370px) {
    .service-segment, .service-segment-flip {
        padding: 10px !important;
    }
}

@media screen and (min-width: 495px) {
    .drone-bullet, .drone-bullet-li, .pano-bullet, .pano-bullet-li, .chimney-bullet, .chimney-bullet-li, .bespoke-bullet, .bespoke-bullet-li {
        clear: both;
    }
}

@media screen and (min-width: 700px) {
    .example-container {
        width: 80%;
        margin: auto;
        max-width: 1000px;
        padding: 20px;
    }

    .example-container div {
        margin: clamp(5px, 1%, 20px) 0;
    }

    .panorama-segment-3 {
        margin-top: 100px;    
    }
}

@media screen and (min-width: 900px) {

    .drone-wrap > p:nth-child(1), .chimney-wrap > p:nth-child(1), .bespoke-wrap > p:nth-child(1) {
        margin-top: clamp(50px, 8%, 100px);
    }

    .service-segment,.service-segment-flip {
        display: block; 
        padding: 20px clamp(50px, 10%, 200px);
    }

    .service-image-float {
        width: 30%;
        max-width: 320px;
    }

    .service-image-float-flip {
        width: 30%;
        max-width: 320px;
    }
}

@media screen and (min-width: 950px) {
    .pano-wrap {
        padding-top: clamp(10px, 4% ,50px);
    }
}

@media screen and (min-width: 1239px) {

    .pano-wrap, .bespoke-wrap {
        padding-top: 0px;
    }

    .drone-wrap > p:nth-child(1), .bespoke-wrap > p:nth-child(1) {
        margin-top: 0;
    }
    .drone-bullet-li, .drone-bullet, .pano-bullet, .pano-bullet-li, .bespoke-bullet, .bespoke-bullet-li {
        
        clear: none;
    }

    .drone-bullet-li, .chimney-bullet-li {
        position: relative;
        right: -4%;
    }
}

@media screen and (min-width: 1550px) {

    .example-container-pano {
        margin-top: 100px !important;
    }

    .chimney-wrap > p:nth-child(1) {
        margin-top: 0;
    }
    .chimney-bullet, .chimney-bullet-li {
        clear: none;
    }
}

/* FOOTER */

footer {
    position: relative;
    top: 60px;
    width: 100%;
    background-color: #244969;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reference-container {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.reference-container li {
    list-style: none;
    color: white;
    margin: 5px 0;
    padding: 5px;
    font-size: clamp(14px, 3vw, 16px);
    border-bottom: solid 1px white;
}

.reference-container li a {
    cursor: pointer;
    color: #1FA0CB;
    font-size: clamp(14px, 3vw, 16px);
}

.contact-container {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    color: white;
    margin-bottom: 30px;
}

.contact-container p {
    font-weight: 200;
    font-size: clamp(14px, 3vw, 16px);
}

.contact-container a {
    text-decoration: none;
    color: #1FA0CB;
    font-size: clamp(14px, 3vw, 16px);
}

.iframe-container {
    height: 100%;
    width: 80%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

iframe {
    height: 100%;
    width: 100%;
    aspect-ratio: 1/1;
    border: none;
    padding: 0;
    margin: auto;
}

@media screen and (min-width: 650px) {
    footer {
        position: relative;
        top: 60px;
        width: 100%;
        background-color: #244969;
        display: flex;
        justify-content: center;
        align-content: center;
    }

    .footer-container {
        display: flex;
        width: 100%;
        max-width: 1800px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-content: center;
        padding: 30px 0;
    }

    .reference-container {
        width: 48%;
        padding: 20px 0;
    }

    .contact-container {
        width: 48%;
        margin-bottom: 0;
    }

    .iframe-container {
        margin-top: 40px;
        height: auto;
        width: 50%;
        margin-bottom: 0;
    }
}

@media screen and (min-width: 1000px) {
    .reference-container {
        width: 30%;
        padding: 0;
    }

    .contact-container {
        width: 30%;
        margin-bottom: 0;
        padding-right: 50px;
    }

    .contact-container p {
        text-wrap: nowrap;
    }

    .iframe-container {
        height: auto;
        width: 30%;
        margin-bottom: 0;
    }
}