:root{
    --immrsv-black: #000100;
    --immrsv-cream: #F3ECE7;
    --orange: #FE552B;
    --pink: #FE0064;
    --dark-blue: #00009B;
    --dark-purple: #0D0C22;
    --dark-grey: #262626;
    --light-grey: #D9C6CF;
    --blue-grey: #3c3c55;
    --dark-blue-grey: #19192e;
}

@font-face {
    font-family: "Gantari";
    src: url(/assets/font/Gantari-VariableFont_wght.ttf);
}

html{
    font-size: 18px;
    font-family: Gantari;
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color: white;
}

h1{
    font-size: 3.33rem;
    font-weight: 400;
}

h2{
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 100;
}

body{
    background-color: var(--immrsv-black);
    color: var(--immrsv-cream);
    margin: 0;
}

.max-width-large{
    max-width: 1200px;
}

.display-none{
    display: none;
}

/* COMPONENTS */
/* Components - Buttons */
.buttons{
    padding: 30px;
    display: flex;
}
.button{
    border-radius: 50px;
    padding: 15px 20px;
    border: var(--immrsv-cream) 1px solid;
    margin: 0 10px;
    transition-duration: 0.4s;
    cursor: pointer;
    opacity: 90%;
    width: fit-content;
    color: white;
    display: flex;
    align-items: center;
}
.button:hover{
    opacity: 100%;
    background-color: var(--immrsv-cream);
    color: var(--immrsv-black);
}
.button-white{
    background-color: var(--immrsv-cream);
    color: var(--immrsv-black);
}

p.title{
    padding-left: 10px;
}

@media only screen and (max-width: 720px) {
    .buttons{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .button{
        margin: 10px;
    }
}

/* Components - Swiper */
.swiper{
    max-height: 100vh;
    max-width: 100vh;
}

    


/* HEADER / NAV */

header{
    position: fixed;
    top: 0;
    width: 100%;
}

header > .max-width-large{
    display: flex;
    justify-content: space-between;
    margin: auto;
}

#header-v1{
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    z-index: 10;
}
#header-v1.scrolled{
    padding: 0 20px;
}

nav{
    /* flex-grow: 2; */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    transition: all 0.3s ease-in-out;
    width: 100vw;
    overflow: hidden;
}
nav.scrolled{
    /* flex-grow: 0; */
    /* display: none; */
    width: 0px;
    
}

nav > div{
    padding: 15px 20px;
    white-space: nowrap;
}

.logo-div{
    flex-grow: 0.00001;
    display: flex;
    align-items: center;
    margin: 0 7.5% 0 20px;
    transition: all 0.3s ease-in-out;
}
.logo-div.scrolled{
    flex-grow: 1;
    margin: 0;
    transition: all 0.3s ease-in-out;
    /* align-items: flex-start; */
}
.logo{
    height: 1rem;
    margin: 18px 0;
    transition: all 0.3s ease-in-out;
    margin: 0 auto;
    cursor: pointer;
}
.logo.scrolled{
    /* height: 0.7rem; */
    height: 40px;
    padding: 11px 15px;
    background: url(../assets/images/IMMRSV-Gradient3@4x.png);
    background-size: cover;
    background-position-y: center;
    border-radius: 0 0 5px 5px;
    margin-top: -34px;
}

/* Hamburger */
/* Styling Mobile Header Additions */
hamburger {
    display: none;
}

@media only screen and (max-width: 1200px) {
    header{
        width: 100vw;
    }

    #header-v1 {
        background-color: var(--dark-blue);
        opacity: 0.9;
        border-bottom: 1px var(--pink) solid;
    }

    #header-v1.scrolled{
        background-color: transparent;
        border-bottom: none;
    }

    #header-v1 > .max-width-large{
        flex-direction: column;
    }

    #header-v1 .logo-div {
        margin: 10px;
    }
    #header-v1 nav {
        /* order: 3; change so the nav links are after the hamburger btn... */
        /* flex-basis: 100%; ...and forced to wrap */
        /* max-height: 0; */
        /* overflow: hidden; */
        /* transition: max-height 0.5s ease; */
        flex-direction: column;
        width: 100%;
    }

    #header-v1 nav.opened  {
        max-height: 1000px;
    }

    #header-v1 nav a  {
        padding: 10px;
    }

    /* Scrolled states on smaller screen */
    #header-v1.scrolled{
        padding: 20px 20px;
    }
    nav.scrolled{
        /* flex-grow: 0; */
        /* display: none; */
        height: 0px;
    }


    hamburger {
        display: flex;
        flex: 1;
        justify-content: end;
        align-items: center;
        padding-right: 5px;
    }

    

}

@media only screen and (min-width: 1201px) {
    
}

.hamburger-menu {
    cursor: pointer;
    display: inline-block;
    position: relative;
    width: 20px; 
    height: 20px; 
}
  
.hamburger-menu .bar {
    background-color: #333;
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    transition: all 0.3s ease;
    border-radius: 10px;
}
  
.hamburger-menu .top {
    top: 0;
}
  
.hamburger-menu .middle {
    top: 50%;
    transform: translateY(-50%);
    width: 70%; 
    right: 0; 
}
  
.hamburger-menu .bottom {
    bottom: 0;
}
  
/* When hamburger icon is clicked, animate it */
.opened .top {
    transform: rotate(-45deg);
    top: 8px;
}
  
.opened .middle {
    opacity: 0;
}
  
.opened .bottom {
    transform: rotate(45deg);
    bottom: 9px;
}

/* MOST SECTIONS IN GENERAL */
.general-section{
    padding: 60px 40px;
}

@media only screen and (max-width: 720px) {
    .general-section{
        padding: 50px 10px;
    }
}

/* HERO SECTION */
.hero-section{
    height: 90vh; 
    max-height: 1000px;
    padding-top: 100px;
    display: flex;
    justify-content: center;
    z-index: 0;
    /* background-image: url(./assets/images/IMMRSV-Landing-Graphic_2-1.png); */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-size: cover; */
    text-align: center;
    /* overflow: hidden; */
    position: relative;
    min-height: 900px;
}

#hero-background{
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 95%;
    background-image: url(/assets/images/IMMRSV-Landing-Graphic_2-1.png);
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover;
    opacity: 0;
    top: 0;
}

.hero-section > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section > div > p {
    width: 66%;
    padding-top: 25px;
    line-height: 1.5;
}


@media only screen and (min-width: 1300px) {
    #hero-background {
        /* Avoid getting cut off at larger screen sizes */
        background-size: contain;
    }
}

/* LOGO SECTION */
#logo-section{
    position: relative;
    z-index: -2;
    display: flex;
    justify-content: center;
    background-color: var(--dark-purple);
    opacity: 0.9; /*TEMPPP*/
}

#logo-section > .max-width-large{
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 40px 10px; */
    /* background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), var(--dark-purple)); */
}
#logo-section > .max-width-large > p {
    width: 100%;
}

#logo-section .title {
    padding-bottom: 30px;
}

#logo-section .insert{
    display: flex;
    flex-direction:row;
    align-items: center;
    flex-wrap: wrap;
}
#logo-section .swiper{
    max-height: 120px;
    max-width: 300px;
    /* padding: 20px 5%; */
    /* width: 15%; */
    padding: 20px 1%;
    width: 23%;
}
#logo-section .swiper .swiper-slide{
    display: flex;
    justify-content: center;
    align-items: center;
}
#logo-section .swiper img{
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.client-logo{
    max-height: 100px;
}

#logo-section > .max-width-large > p {
    padding-left: 10px;
    box-sizing: border-box;
}

@media only screen and (max-width: 720px) {
    #logo-section .swiper{
        width: 40%;
    }
}

/* @media only screen and (max-width: 480px) {
    #logo-section .swiper{
        width: 95%
    }
} */

/* DEMO SECTION */
#demo-section{
    display: flex;
    justify-content: center;
    overflow: hidden;
}

#demo-section > .max-width-large{
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: center; */
    width: 99%;
}

.demo-iframe-parent{
    width: 80vw;
    max-width: 100%;
    height: 50vh;
    min-height: 700px;
    position: relative;
    /* margin: auto; */
    margin: 100px auto;
    
}

.demo-iframe-wrapper{
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--light-grey);
}

.demo-iframe-wrapper > iframe{
    width: 100%;
    height: 100%;
}

.iframe-label{
    position: absolute;
    padding: 2px 4px;
    white-space: nowrap;
}

/* Fade the iframe in */
iframe{
    opacity: 0;
    transition: opacity 0.6s ease;
}

iframe.loaded {
    opacity: 1;
}

.top-left-h{
    top: -40px;
    left: 0;
}
.top-left-v{
    top: 0;
    left: -40px;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: top left;
}
.top-right-h{
    top: -40px;
    right: 0;
}
.top-right-v{
    top: 0;
    right: -40px;
    transform: rotate(90deg) translateX(100%);
    transform-origin: top right;
}
.bottom-left-h{
    bottom: -40px;
    left: 0;
}
.bottom-left-v{
    bottom: 0;
    left: -40px;
    transform: rotate(90deg) translateX(-100%);
    transform-origin: bottom left;
}
.bottom-right-h{
    bottom: -40px;
    right: 0;

}
.bottom-right-v{
    bottom: 0;
    right: -40px;
    transform: rotate(-90deg) translateX(100%);
    transform-origin: bottom right;
}

@media only screen and (max-width: 720px) {
    .demo-iframe-parent{
        min-height: 450px;
        max-height: 80vh;
    }
}

/* SERVICES SECTION */
/* Solid to gradient color transition "hack" */
@property --servicesColor1 {
    syntax: '<color>';
    initial-value: blue; /*#262626*/
    inherits: false;
}

@property --servicesColor2 {
    syntax: '<color>';
    initial-value:  #ff0000;
    inherits: false;
}

#services-section{
    display: flex;
    justify-content: center;
}

.service-cards{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}

.service-card-gradient{
    --servicesColor1: #262626; /*#262626*/
    --servicesColor2: #262626; /*#262626*/

    width: 25%;
    margin: 70px 0px;
    border-radius: 20px;

    display: flex;
    align-items: center;
    background: 
        linear-gradient(var(--immrsv-black), var(--immrsv-black)) padding-box,
        linear-gradient(to bottom, var(--servicesColor1), var(--servicesColor2)) border-box;
    /* background-clip: padding-box; */
    border: solid 2px transparent;
    border-radius: 1em;
    padding: 1em;
    transition: --servicesColor1 0.5s, --servicesColor2 0.5s;
}

.service-card{
    padding: 30px;
    /* margin: 1px; */
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    line-height: 1.5;
    background: var(--immrsv-black);;
    /* border: solid var(--dark-blue-grey) 2px; */
    border-radius: 0.8em;
    height: 100%;
    
}

.service-card-gradient:hover {
    --servicesColor2: #D9C6CF;
}


.service-card img{
    width: auto;
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 50px 0px;
    box-sizing: content-box;
}

@media only screen and (max-width: 1200px) {

    .service-card{
        padding: 5px;
    }
}

@media only screen and (max-width: 720px) {
    .service-cards{
        flex-wrap: wrap;
    }

    .service-card-gradient{
        width: 90%;
        margin: 20px 0px;
    }

    .service-card{
        padding: 5px;
    }

    .service-card img{
        padding: 20px 0px;
    }
}

/* FEATURES SECTION */
#features-section{
    display: flex;
    justify-content: center;
}

.features-parent{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#features-section .title{
    padding-bottom: 70px;
}

img.feature{
    max-width: calc(16% - 3%);
    /* height: 200px; */
    padding: 50px 1%;
    box-sizing: content-box;
    object-fit: contain;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
img.feature:hover{
    opacity: 1;
}

@media only screen and (max-width: 720px) {
    .features-parent{
        flex-wrap: wrap;
        padding: 15px;
    }
    img.feature{
        max-width: calc(30% - 30px);
        padding: 15px;
    }
}
@media only screen and (max-width: 480px) {

    img.feature{
        max-width: calc(45% - 30px);
        padding: 15px;
    }
}

/* DELIVERABLES SECTION */
#deliverables-section{
    display: flex;
    justify-content: center;
    align-items: center;
    
}

#deliverables-section > .max-width-large{
    width: 100%;
    
}

#deliverables-section .title{
    padding-bottom: 20px;
}

.deliverables-div{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    margin: 50px;
    padding: 50px;
    border: var(--blue-grey) 1px solid;
    border-radius: 20px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

#deliverables-section .column{
    display: flex;
    flex-direction: column;
    line-height: 2;
}

.deliverables-div > .glowing-mouse-spot-overlay{
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    /* width: 100%; */
    /* height: 100%; */
    /*pointer-events: none;*/ /* To allow mouse to go through?a */
    /* background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 60%); */
    /* transition: background 0.05s; */
        height: 30px;
        width: 30px;
        border-radius: 50%;
        background: #D3126A;
        background: -moz-linear-gradient(#37019C, #790188, #D3126A, #FA3A3D);
        box-shadow: 0px 0px 20px #790188;
        background: linear-gradient(#37019C, #790188, #D3126A, #FA3A3D );
        filter: blur(10px);
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
}

@media only screen and (max-width: 720px) {
    .deliverables-div{
        margin: 10px auto;
        padding: 20px 10px;
        flex-wrap: wrap;
    }
    #deliverables-section .column{
        width: 90%;
    }

    .deliverables-div > .glowing-mouse-spot-overlay{
        display: none;
    }
}

/* CALL TO ACTION SECTION */
#cta-section{
    background-color: var(--immrsv-black);
    display: flex;
    justify-content: center;
}
#cta-section > .max-width-large > p {
    align-self: flex-start;
    padding-left: 10px;
    box-sizing: border-box;
}

#cta-section > .max-width-large {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 0px;
}
#cta-section > .max-width-large > img {
    width: 80%;
    
}

#glow-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20vh 20px;
    margin-top: 70px;
    min-height: 500px;
    width: 90%;
    border-radius: 20px;

    /* Initial visual state */
    background-color: black;
    box-shadow: 0px 9px 61px 23px rgb(126, 125, 125);
    border: 2px solid transparent;

    /* Smooth transitions */
    transition:
        background-color 0.6s ease,
        border 0.6s ease,
        box-shadow 0.6s ease,
        filter 0.6s ease;
}

#glow-box.glow-transition{
    background-color: var(--orange);
    box-shadow: 4px 5px 60px 11px var(--orange);
    border-color: transparent;
}


/* Optional: disable animation until fully visible */
#glow-box:not(.full-scrolled) {
    animation: none;
}

/* Half-visible: same shadow, black background, with orange border */
#glow-box.half-scrolled {
    background-color: var(--immrsv-black);
    border: 2px solid var(--orange);
    /* box-shadow: 0px 9px 61px 23px rgba(0, 0, 0, 0.6); */
}

/* Fully visible or below: orange background, animated glow, no border */
#glow-box.full-scrolled {
    background-color: var(--orange);
    border: 2px solid var(--orange);
    animation: glow-box-pulse 10s infinite alternate;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 4px 5px 60px 11px var(--orange);
}

#glow-box p {
    padding: 30px;
}

@keyframes glow-box-pulse {
    0%   { box-shadow: 4px 5px 60px 11px var(--orange); }
    70%  { box-shadow: 0px 9px 130px 23px var(--orange); }
    100% { box-shadow: 2px 7px 75px 17px var(--orange); }
}

@media only screen and (max-width: 720px) {
    #glow-box {
        padding: 5vh 20px;
    }

    #glow-box h2 {
        font-size: 1.7rem;
        line-height: 2rem;
    }
}


/* FOOTER */
footer{
    text-align: center;
    padding: 50px 10px 10px 10px;
}

@media only screen and (max-width: 720px) {
    footer {
        font-size: 0.6rem;
    }
}