* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.glide__slides{
    margin-bottom: 0px!important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (min-width: 300px) {

    .body{
        display: grid;
        grid-template-areas: 
        "navbar"
        "main"
        "video"
        "nosotros"
        "labels";
        grid-template-rows: auto;
    }

    #navbar{
        grid-area: navbar;
    }

    #body_section_main{
        height: 100vh;
        width: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(236,128,10,0.4)), url("../resources/background_oil_extraction_machinery_mobile.gif");
        background-size: cover; 
        background-position: center; 
        text-align: center;
        text-align: -webkit-center;
        position: relative;
        grid-area: main;
        object-fit: cover;
        object-position: 50% 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #body_section_main h1{
        color: #fff;
        font-size: 26px;
        width: 90%;
        margin-top: 0;
        font-weight: 700;
        text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
        letter-spacing: 1px;
        line-height: 1.4;
        animation: fadeInUp 1s ease-out;
    }

    #body_section_main i{
        position: absolute;
        bottom: 30px;
        font-size: 3rem;
        color: #ec800a;
        cursor: pointer;
        animation: float 2s ease-in-out infinite;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
        transition: transform 0.3s ease;
    }

    #body_section_main i:hover{
        transform: scale(1.2);
    }

    #video_section {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        background: #000;
        grid-area: video;
    }

    #background_video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        z-index: 1;
    }

    #video_overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    #body_section_nosotros{
        height: auto;
        width: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(236,128,10,0.3)), url("../resources/insupetrol_srl_fabrica.jpeg");
        background-size: cover; 
        background-position: center; 
        text-align: center;
        padding: 5%;
        text-align: -webkit-center;
        top: 0vh;
        position: relative;
        grid-area: nosotros;
        object-fit: cover;
    }

    #body_section_nosotros_box_grid{
        margin: auto;
        width: 90%;
        height: auto;
        min-height: 60vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 1rem;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    #body_section_nosotros_box_grid:hover{
        transform: translateY(-5px);
        box-shadow: 0 25px 70px rgba(236,128,10,0.3);
    }

    #body_section_nosotros_box_grid_right{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 5%;
        margin: 5%;
    }

    #body_section_nosotros_box_grid h1{
        font-size: 2rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 15px;
    }

    #body_section_nosotros_box_grid p{
        font-size: 1rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: 400;
        width: 100%;
        color: #333;
        text-align: initial;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    #body_section_nosotros_box_grid span{
        height: 4px;
        width: 60px;
        background: linear-gradient(90deg, #ec800a, #ff9f4a);
        margin-bottom: 20px;
        border-radius: 2px;
    }



    #body_section_nustros_clientes{
        margin: auto;
        width: 100%;
        height: auto;
        background: #ffffff;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 40px 0;
    }

    #body_section_nosotros_box_grid{
        flex-direction: column-reverse;
        height: auto;
        width: auto;
        margin-top: 0px;
    }

    #body_section_nosotros_box_grid_right{
        margin: auto;
        padding: 50px;
    }

    #body_section_nosotros_box_grid_left{
        margin-bottom: 2rem!important;
    }

    #body_section_nosotros_box_grid_left img{
     width: 18rem!important;
     height: 26rem!important;
     border-radius: 15px;
     box-shadow: 0 15px 35px rgba(0,0,0,0.2);
     object-fit: cover;
     transition: transform 0.3s ease;
    }

    #body_section_nosotros_box_grid_left img:hover{
        transform: scale(1.05);
    }

    .glide__slide{
        display: contents!important;
    }

    #body_section_nustros_clientes img{
        width: 10rem!important;
        height: 10rem!important;
        object-fit: contain;
        filter: grayscale(100%);
        transition: all 0.3s ease;
        padding: 10px;
    }

    #body_section_nustros_clientes img:hover{
        filter: grayscale(0%);
        transform: scale(1.1);
    }

}

@media (min-width: 1024px) {

    #navbar{
        grid-area: navbar;
    }

    #body_section_main{
        min-height: 100vh;
        height: auto;
        background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(236,128,10,0.3)), url("../resources/fondo1.gif");
        width: 100%;
        background-size: cover;
        background-position: center; 
        background-attachment: fixed;
        padding: 15%;
        grid-area: main;
        position: relative;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #body_section_main h1{
        color: #fff;
        font-size: 3.5rem;
        width: 80%;
        margin: 0;
        font-weight: 700;
        text-shadow: 3px 6px 12px rgba(0,0,0,0.5);
        letter-spacing: 2px;
        line-height: 1.3;
        animation: fadeInUp 1.2s ease-out;
    }

    #body_section_main i{
        font-size: 2.5rem;
        color: #ec800a;
        position: absolute;
        bottom: 50px;
        animation: float 2s ease-in-out infinite;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
        transition: transform 0.3s ease;
    }

    #body_section_main i:hover{
        transform: scale(1.2);
    }

    #video_section {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        background: #000;
    }

    #background_video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        z-index: 1;
    }

    #video_overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    #body_section_nosotros{
        min-height: 80vh;
        height: auto;
        width: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(236,128,10,0.3)), url("../resources/insupetrol_srl_fabrica.jpeg");
        background-size: cover; 
        background-position: center; 
        background-attachment: fixed;
        text-align: center;
        padding: 5%;
        text-align: -webkit-center;
        grid-area: nosotros;
        position: relative;
        top: 0;
    }


    #body_section_nosotros_box_grid{
        margin: auto;
        width: 90%;
        height: auto;
        min-height: 50vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border-radius: 25px;
        box-shadow: 0 25px 70px rgba(0,0,0,0.3);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    #body_section_nosotros_box_grid:hover{
        transform: translateY(-8px);
        box-shadow: 0 30px 80px rgba(236,128,10,0.35);
    }

    #body_section_nosotros_box_grid_right{
        margin-right: 5%;
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 5%;
        padding: 40px;
    }

    #body_section_nosotros_box_grid h1{
        font-size: 3rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 20px;
    }

    #body_section_nosotros_box_grid p{
        font-size: 1.15rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: 400;
        width: 100%;
        text-align: initial;
        line-height: 1.8;
        color: #333;
        margin-bottom: 20px;
    }

    #body_section_nosotros_box_grid span{
        height: 5px;
        width: 120px;
        background: linear-gradient(90deg, #ec800a, #ff9f4a);
        margin-bottom: 25px;
        border-radius: 3px;
    }

    #body_section_nosotros img{
        min-width: 30rem;
        min-height: 45rem;
    }

    .glide__slide{
        display: flex!important;
    }

    #body_section_nosotros_box_grid_left {
        margin-top: 2rem!important;
        padding: 30px;
    }

    #body_section_nosotros_box_grid_left img{
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.25);
        transition: transform 0.3s ease;
    }

    #body_section_nosotros_box_grid_left img:hover{
        transform: scale(1.05) rotate(2deg);
    }

    #body_section_nustros_clientes img{
        width: 15rem!important;
        height: 10rem!important;
        object-fit: contain;
        filter: grayscale(100%);
        transition: all 0.4s ease;
        padding: 15px;
    }

    #body_section_nustros_clientes img:hover{
        filter: grayscale(0%);
        transform: scale(1.15);
    }


}