/* Copyright (c) Microsoft Corporation.
Licensed under the MIT license. */

@import url('Site.css');
:root {
    --EAW-ORANGE: #FF6600;
    --EAW-GRAY: #607A75;
    --EAW-DARK-ORANGE: #D86037;
    --EAW-GREEN: #819C71;
    --EAW-DARK-BLUE: #267E7E;
    --EAW-BLUE: #4D9FB2;
    --EAW-IMPACT-BLUE: #3ABFBA;
    --EAW-BLACK: #2b2b2b;
    --EAW-NAVY: #001D6D;
    --EAW-LAV: #C4A57A;
    --rotation: 10deg;
}

/** {
    outline: 1px solid red !important;
}*/

body {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

html, body {
    scroll-snap-type: y proximity;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

section {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    padding: 8rem 4rem;
}

.glass {
    backdrop-filter: blur(10px);
}

main {
    width: 100%;
    height: 100vh;
}

.scroll-down-container {
    background-color: rgb(255,255,255,0.1);
    color: red;
    position: fixed;
    bottom: 0px;
    height: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 9999;
}

/* Hero Section --------------------------------------------------------- */

.hero {
    width: 25%;
    margin: 0;
}

.hero-container {
    position: relative;
    height: 92vh;
    height: 92vh;
    animation: 1s hero-shapeshift ease-in;
    scroll-snap-align: start;
}

.hero-overlay video {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: -1;
    animation: videoZoom 30s linear infinite;
}

@keyframes videoZoom {
    0% {
        scale: 1;
    }

    50% {
        scale: 1.2;
    }

    100% {
        scale: 1;
    }
}

.hero-content {
    color: white;
    font-weight: 700;
    padding: 10% 0;
    width: 80%;
    z-index: 1;
    position: absolute;
    opacity: 0;
    left: -100%;
    animation: slideIn-hero 1.4s forwards;
    text-shadow: 2px 2px 1px black;
}

.hero-content > h2 {
    text-transform: uppercase;
    font-size: min(5vw, 3.2rem);
    text-shadow: 1px 1px 1.5px;
}

.hero-content > p {
    font-size: min(2vw, 1.2rem);
    width: 50%;
}

.hero-content span {
    background: linear-gradient(4deg, var(--EAW-IMPACT-BLUE) 33%, var(--EAW-ORANGE) 56%);
    background-clip: text;
    color: transparent;
    opacity: 0.9;
}

/* CARDS ------------------------------------------------ */

/*.our-process */
.card-group {
    justify-content: center;
}

.card-deck {
    justify-content: center;
    gap: 0;
}

.card {
    background: none;
    border: none;
    border: none;
    height: clamp(240px, 26vh, 40vh);
    position: relative;
    perspective: 1000px;
}

.card-img-top {
    object-fit: contain;
    height: clamp(120px,12vh, 160px);
    padding: 6%;
    border: none;
    opacity: 0.9;
}

.tools .card-img-top {
    border-radius: 9px 9px 0 0 !important;
}

.card-title {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    max-height: 1em;
    word-wrap: break-word;
    text-shadow: 1px 1px 1px rgb(0,0,0,0.3);
}

.card-body {
    background-color: white;
    color: var(--EAW-DARK-BLUE);
    padding: none;
    position: relative;
    overflow: hidden;
}

.card-body p {
    font-size: 0.8rem !important;
}

.tools .card-body {
    border-radius: 0 0 9px 9px;
}

.card-text {
    color: var(--EAW-BLUE);
    margin-top: 1rem;
    bottom: 1rem;
    line-height: 1rem;
}

/* PROCESS SECTION */
.our-process {
    background: linear-gradient(180deg, #0000009a, rgb(255,255,255,0.4));
}

.our-process .card {
    border-right: 2px solid rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}

.section-header {
    color: white;
    text-shadow: 3px 2px 5px black;
    font-size: min(8vw, 2.6rem);
    font-weight: 600;
    text-transform: uppercase;
    word-spacing: 1rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.card-container > h2 {
    position: relative;
}

.card-container {
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: auto;
    position: relative;
}

.card-container > h2:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 60%;
    background-color: var(--EAW-ORANGE);
}

.animate.card {
    opacity: 0;
    transition: transform 1.4s ease-out, opacity 0.8s ease-out;
}


/* TOOLS-AND-RESOURCES SECTION */

.tools {
    background: linear-gradient(180deg, #0000009a, #267e7e2f);
}

.animate.card:nth-child(1) .card-front .card-img-top, .our-process .animate.card:nth-child(1) .card-img-top {
    background-color: var(--EAW-DARK-ORANGE);
}

.animate.card:nth-child(2) .card-front .card-img-top, .our-process .animate.card:nth-child(2) .card-img-top {
    background-color: var(--EAW-GREEN);
}

.animate.card:nth-child(3) .card-front .card-img-top, .our-process .animate.card:nth-child(3) .card-img-top {
    background-color: var(--EAW-BLUE);
}

.animate.card:nth-child(4) .card-front .card-img-top {
    background-color: var(--EAW-IMPACT-BLUE);
}

.animate.card:nth-child(5) .card-front .card-img-top {
    background-color: var(--EAW-LAV);
}

.animate.card.in-view {
    opacity: 1;
}

.maintenance h3 {
    background: rgb(38, 126, 126, 0.7);
    border-radius: 20px;
    border: 2px solid #3ABFBA;
    padding: 0.4rem 0;
    margin: 1.2rem;
    font-size: clamp(14px, 1.2rem, 20px);
    text-shadow: 2px 2px 4px rgb(15, 65, 70, 0.4);
}

/* ------------------------------------------------- */
#text-container > div > p {
    font: 1.2em "Poppins", arial, sans-serif;
}

#report-container {
    height: calc(0.5625 * 61vw); /* 16:9 aspect ratio */
}

iframe {
    border: none;
}

@media only screen and (max-width: 574px) {
    #report-container {
        height: calc(0.5625 * 100vw); /* 16:9 aspect ratio */
    }
}


/* CARD FLIP ANIMATION */

.card-inner {
    margin: auto;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center;
    transition: transform 0.8s;
    will-change: transform;
}

.card:hover .card-inner {
    transform: rotateX(180deg);
    cursor: pointer;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back {
    background-color: var(--EAW-BLACK);
}


.tools .card-front, .tools .card-back {
    box-shadow: 8.0px 7.0px 7.0px hsl(0deg 0% 0% / 0.45);
    border-top: 2px solid rgb(255,255,255,0.4);
    border-left: 2px solid rgb(255,255,255,0.4);
    border-right: 5px solid rgb(0,0,0,0.6);
    border-bottom: 5px solid rgb(0,0,0,0.6);
    border-radius: 12px;
}

.our-process .card-front, .our-process .card-back {
    border: none;
}


.card-back {
    transform: rotateX(180deg);
}

    .card-back img {
        color: white;
        background: rgb(255,255,255,0.4);
        filter: invert(100%);
    }

    .card-back strong {
        color: white;
    }

#contact-section {
    height: 20vh;
    height: 20dvh;
}

footer {
    scroll-snap-align: end;
}

/* MEDIA QUERIES */

@media (min-width: 1920px) and (orientation: landscape) {
    section {
        padding-top: 24rem;
    }
}

@media (max-width: 1100px) and (max-height: 700px) and (orientation: portait) {
    section {
        background-color: red;
        max-height: 20% !important;
    }
}

@media (max-width: 912px) and (orientation: portrait) {
    section {
        padding: 20vh 4rem;
        scroll-snap-align: start;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .hero-content {
        animation: slideIn-hero-mobile 1.4s forwards;
    }

        .hero-content h2 {
            font-size: 1.6rem;
        }

        .hero-content p {
            font-size: 0.7rem;
        }

    .scroll-down-container {
        height: 10vh;
    }

    section {
        padding: 1rem 1rem;
        scroll-snap-align: start;
    }

        section .card {
            max-height: 14rem;
            max-width: 12rem;
        }
}

@media (max-width: 844px) and (orientation: landscape) {
    section .section-header {
        font-size: 1rem;
    }
}

@media (max-height: 390px) and (orientation: landscape) {
    .section-header {
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 724px) and (orientation: landscape) {
    section .card-title {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 667px) and (orientation: landscape) {
    section {
        scroll-snap-align: start;
    }

        section .card {
            padding: 0;
            margin: 0;
        }

    .card img {
        max-height: 6rem;
    }
}

@media (max-height: ) and (orientation: landscape) {
    section h2 {
        font-size: 1.2rem !important;
    }
}

@media only screen and (max-width: 1570px) {
    .card-back .card-text {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 1500px) {
    .card-back .card-text {
        font-size: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 1475px) {
    .maintenance h3 {
        position: absolute;
        margin: auto;
        font-size: 1.2rem;
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
    }

    .card-container .card-text {
        height: 40px;
    }
}

/* iPad specific fixes - add these to your existing media queries */

/* iPad Pro (1024x1366) and similar tablets in portrait */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .card {
        min-height: 18rem; /* Increase minimum height */
        max-height: none; /* Remove height restriction */
        height: auto; /* Allow dynamic height */
    }

    .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
        height: auto; /* Remove fixed height */
        min-height: 3rem; /* Ensure minimum space */
        overflow: visible; /* Prevent text cutoff */
    }

    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }

    .card-container {
        height: auto; /* Allow container to expand */
        min-height: 20rem;
    }
}

/* iPad in landscape mode */
@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .card {
        min-height: 16rem;
        max-height: none;
        height: auto;
    }

    .card-text {
        font-size: 0.85rem;
        line-height: 1.3;
        height: auto;
        min-height: 2.5rem;
        overflow: visible;
    }

    .card-title {
        font-size: 1rem !important;
    }
}

/* General fix for all tablet sizes */
@media only screen and (min-width: 768px) and (max-width: 1366px) {
    .card-back .card-text {
        padding: 1rem;
        height: auto !important;
        max-height: none;
        overflow-y: auto; /* Add scroll if needed */
    }

    /* Ensure card containers don't restrict height */
    .card-container .card-text {
        height: auto !important;
        min-height: 2rem;
    }
}

/* Iphone landscape */
@media only screen and (max-width: 1120px) {
    .maintenance h3 {
        position: absolute;
        margin: auto;
        font-size: 0.8rem;
        height: 2rem;
    }
}

@media only screen and (max-width: 1024px) {
    .card {
        max-height: 16rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card h3 {
        height: 1.8rem !important;
    }

    .tools .card-title {
        font-size: 0.8rem;
    }

    .section-header {
        font-size: 1.4rem;
    }

    .navbar-brand {
        margin-left: 1rem;
    }

    .navbar li {
        margin-right: 0;
        margin-left: 1.4rem;
    }
}

@media only screen and (max-width: 950px) {
    .card-container {
        width: 100%;
    }

    section .card-title {
        font-size: 0.6rem !important;
    }

    .card-container .card-text {
        font-size: 0.8rem;
        height: 2rem;
    }
}

@media only screen and (max-width: 800px) {
    .section {
        padding: 0px;
    }

    .card-title {
        font-size: max(1.4rem, 20px) !important;
    }

    .card img {
        width: 100%;
    }
}

@media only screen and (max-width: 575px) {
    section {
        scroll-snap-align: start;
        height: 100%;
        padding: 2rem !important;
        padding-left: clamp(2rem, 6rem, 10rem) !important;
        padding-right: clamp(2rem, 6rem, 10rem) !important;
    }

    .card {
        scroll-snap-align: center;
        margin: auto;
        width: auto;
    }

    section .card-container {
        margin-top: 0;
    }

    .card .card-title {
        font-size: min(0.8rem, 14px) !important;
    }

    .card-text {
        margin: 0;
    }
}



@media only screen and (max-width: 390px) {
    section {
        padding: 3rem !important;
    }

    .card-header {
        font-size: 1.4rem;
    }

    .card img {
        width: 100%;
    }

    .navbar-brand {
        width: 60vw;
    }
}

/* Animation Styling */
.scroll-down {
    display: inline-block;
    font-size: 2rem;
    color: var(--EAW-ORANGE);
    animation: bounce 1.5s infinite ease-in-out;
}

.in-view h2 {
    animation: fade-in 3s ease;
}

/* ------------------------------------------------------------------------ COMMON BREAKPOINTS */
/* Extra small (phones) */
/*@media (max-width: 480px) {
    ...
}*/

/* Small (phones in landscape & larger phones) */
/*@media (max-width: 600px) {
    ...
}*/

/* Medium (tablets) */
/*@media (max-width: 768px) {
    ...
}*/

/* Large (small laptops) */
/*@media (max-width: 1024px) {
    ...
}*/

/* Extra large (desktops) */
/*@media (max-width: 1200px) {
    ...
}*/

/* 4K / Very large screens */
/*@media (min-width: 1920px) {
    ...
}*/

/* ------------------------------------------------------------------------ ORIENTATION */
/*@media (orientation: portrait) {*/
/* Styles for portrait mode */
/*}

@media (orientation: landscape) {*/
/* Styles for landscape mode */
/*}*/


/* KEYFRAMES / ANIMATIONS*/

@keyframes hero-shapeshift {
    0% {
        clip-path: circle(15% at 0 0%);
    }

    100% {
        clip-path: circle(75% at 50% 50%);
    }
}

@keyframes slideIn-hero {
    0% {
        opacity: 0;
        left: -100%; /* Start off-screen to the left */
    }

    100% {
        opacity: 1;
        left: 10%; /* End at the normal position */
        top: 6%;
    }
}

@keyframes slideIn-hero-mobile {
    0% {
        opacity: 0;
        left: -100%; /* Start off-screen to the left */
    }

    100% {
        opacity: 1;
        left: 10%; /* End at the normal position */
        top: 0%;
    }
}

@keyframes bounce {
    0%, 100% {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }

    50% {
        -webkit-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
        transform: translateY(-10px); /* Moves the arrow up */
    }
}

.icon > a:hover {
    animation: bounceOnHover 1.6s ease-in infinite;
}

@keyframes bounceOnHover {
    0%, 100%, 20%, 50%, 80% {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0)
    }

    40% {
        -webkit-transform: translateY(-20px);
        -ms-transform: translateY(-20px);
        transform: translateY(-20px)
    }

    60% {
        -webkit-transform: translateY(-15px);
        -ms-transform: translateY(-15px);
        transform: translateY(-15px)
    }
}
