
@font-face {
    font-family: 'Hadley';
    src: url('./fonts/Hadley.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-text: #e5dcd3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-y: auto;
    /* scroll-snap-type: y mandatory; */
    animation: pageFade 1.2s ease forwards;
    font-family: 'Hadley', sans-serif;
}

/* Universal Section Snap */
section {
    min-height: 100vh;
    /* scroll-snap-align: start;
    scroll-snap-stop: always; */
}


/* UNIVERSAL PAGE TRANSITION */
/* section:not(#home) {
    opacity: 0;
    transform: translateY(120px) scale(0.96);
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
} */

/* section {
    opacity: 0;
    transform: translateY(120px) scale(0.96);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
} */

section {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* section.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

section.out-view {
    opacity: 0;
    transform: translateY(-120px) scale(0.96);
} */

section.in-view {
    opacity: 1;
    transform: translateY(0);
}

section.out-view {
    opacity: 0;
    transform: translateY(40px);
}



@keyframes pageFade {
    from {
        opacity: 0;
        filter: blur(18px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* HEADER */

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 20px 0 0;
    display: flex;
    justify-content: center;
    z-index: 9999;
}


/* Header reveal */
header {
    opacity: 0;
    transform: translateY(-50px);
    animation: headerReveal 1s ease forwards;
    animation-delay: 0.4s;
}

@keyframes headerReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo {
    position: absolute;
    left: 65px;
    top: -20px;
    z-index: 99999;
    opacity: 0;
    transform: translateX(-120px);
    animation: logoReveal 1.4s ease forwards;
    animation-delay: 0.5s;
}

.logo img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

@keyframes logoReveal {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/*  LIQUID MENU */

.menu-wrap{
    position: relative;
    display:flex;
    align-items:center;
    padding:8px;
    border-radius:50px;

    background: rgba(255,255,255,.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.1);

    overflow:hidden;
}

.menu-wrap::before{
    content:'';
    position:absolute;
    inset:0;
    border-radius:inherit;
    padding:1.4px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,.45) 0%,
        rgba(255,255,255,.15) 20%,
        rgba(255,255,255,0) 40%,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,.15) 80%,
        rgba(255,255,255,.45) 100%
    );
 -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events:none;
    z-index:0;
}

.liquid-pill{
    position:absolute;
    left:8px;
    top:8px;
    width:80px;
    height:42px;
    border-radius:40px;

    background: rgba(255,255,255,.12);
    backdrop-filter: blur(18px);


    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.35),
        inset 0 -2px 4px rgba(255,255,255,.08),
        0 6px 12px rgba(255,255,255,.08);

        transition: transform .55s cubic-bezier(0.22,1,0.36,1);
}

.liquid-pill::before{
    background: rgba(255,255,255,.25);

}

nav{
    display:flex;
    position:relative;
    z-index:2;
    gap:6px;
}

.tab{
    min-width:80px;
    height:42px;
    padding:0 18px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    color:white;
    font-size:14px;
    border-radius:40px;
    transition:.35s ease;
}

/* .tab.active{
    color:#111;
}

/* Hover */
/* .tab:hover {
    color: #fff;
    transform: translateY(-1px);
} */ 

.tab,
.tab:hover,
.tab:focus,
.tab.active{
    color: #fff !important;
}


/* Shares Background */
.shared-bg-section{
    position: relative;
    z-index: 1;
}

.shared-bg{
    position: absolute;
    inset: 0;
    width:100%;
    height:100%;
    background: url("images/projects background.png") center center / cover no-repeat;
    z-index:-5;
}

/* dark overlay */
.shared-bg-section::before{
    content:"";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background: rgba(0,0,0,0.45);
    z-index:-4;
}

/* FOOTER  */

.site-footer{
    width:100%;
    margin-top:80px;
    padding:40px 60px;
    background: transparent;
    position: relative;
    z-index: 5;
}

/*==================================================
                INTRO LOADER
==================================================*/

html.loading,
body.loading{
    overflow:hidden;
}

/* Full Screen */

#introLoader{

    position:fixed;
    inset:0;

    width:100%;
    height:100%;

    background:#000;

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:999999999;

    opacity:1;
    visibility:visible;

    transition:
        opacity .9s ease,
        visibility .9s ease;

}

/* Hide Loader */

#introLoader.hide{

    opacity:0;
    visibility:hidden;
    pointer-events:none;

}

/* Video */

#introVideo{

    width:100%;
    height:100%;

    object-fit:cover;

}

/* Logo on loader */

#loaderHeaderLogo{
   position: absolute;
    left: 178px;
    top: -20px;
    z-index: 99999;
    opacity: 0;
    transform: translateX(-120px);
}

#loaderHeaderLogo img{

   width: 150px;
    height: auto;
    object-fit: contain;   

}

/* Show logo */

#loaderHeaderLogo.show{

    opacity:1;

}

/* Website Fade */

body{

    opacity:0;

    transition:opacity 1s ease;

}

body.loaded{

    opacity:1;

}



