@import 'fonts.css';

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
    font-weight: 400;
}
strong{
    font-weight: bold;
}
html{
    scroll-padding-top: 4rem;
}

:root{
    --main-font: "Inter";
    --primary-color: #28316f;
    --primary-color-shadow: color-mix(in srgb, var(--primary-color) 30%, transparent 70%);
    --primary-color-light: #4454BB;
    --primary-accent: #1F2656;
    --accent-color: hsl(75, 71%, 44%);
    --accent-color-light: hsl(75, 71%, 70%);
    --accent-accent: #4F6411;
    --alert-color: #b12109;

    --accent-font: "KGInimitableOriginal", sans-serif;
    --outline-color: rgb(230, 230, 230);
    --outline-color-shadow: rgb(0, 0, 0, .1);
    --white-accent: rgba(0, 0, 0, .05);
    --white: rgba(255, 255, 255, .5);
    --green: rgb(70, 129, 137);
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--primary-color);
}

/* ----------- */
/* -- UTILS -- */
/* ----------- */

.bg-img{
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url("../assets/cloud-bg.webp");
    opacity: .5;
    background-size: cover;
    z-index: -1;
}
h1, h2, h3, h4, h5, h6{
    font-family: var(--accent-font);
    color: var(--primary-color);
    padding: .5rem 0;
    border-radius: 5px;
}
p{
    font-family: var(--main-font);
}
a{
    color: var(--primary-color);
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}

.line{
    display: flex;
    gap: 1rem;
    align-items: center;
}
.fill{
    flex: 1;
}
.grid{
    display: grid;
}
.grid-2 {
    grid-template-columns: 1fr 1fr;
}
.tag{
    --tag-color: var(--green);
    background-color: var(--tag-color);
    padding: .3rem .5rem;
    border-radius: 5px 0 5px 0;
    font-size: .8rem;
    color: white;
}
.tag:hover{
    text-decoration: underline;
    cursor: pointer;
}
button{
    --button-color: var(--accent-color);
    background-color: var(--button-color);
    padding: .5rem;
    border-radius: 5px;
    color: white;
    border: 2px solid transparent;
    font-weight: 700;
}
button:hover{
    background-color: transparent;
    border: 2px solid var(--button-color);
    color: var(--button-color);
    cursor: pointer;
}
.separator{
    width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid var(--outline-color-shadow);
}
/* ------------ */
/* -- HEADER -- */
/* ------------ */

header{
    position: sticky;
    top: 0;
    width: 100%;
    padding: .5rem 2rem .5rem 10%;
    justify-content: space-between;
    background-color: white;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, .05);
    z-index: 1;
}
header h1{
    font-family: var(--accent-font);
    font-size: 1.8rem;
}
header h1 span{
    font-family: var(--accent-font);
    font-size: 2.3rem;
}
.logo i{
    font-size: 2.5rem;
}
.logo img{
    width: 4rem;
}
.logo img.short{
    scale: 0;
    position: absolute;
}
.menu-item{
    position: relative;
}
.button{
    padding: .5rem;
}
.menu-item > a{
    display: flex;
    gap: .5rem;
    align-items: center;
    text-decoration: none;
}
.menu-item a:hover p{
    text-decoration: underline;
}
.menu-item a i{
    font-size: .7rem;
    transition: all .2s ease;
}
.menu-item a:focus i{
    rotate: 180deg;
}
.sub-menu{
    position: absolute;
    top: 100%;
    left: -.5rem;
    display: none;
    box-shadow: 0 0 5px 5px var(--outline-color-shadow);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}
.menu-item:hover .sub-menu,
.menu-item:has(a:focus) .sub-menu{
    display: grid;
}
.sub-menu-item{
    width: 100%;
    white-space: nowrap;
    padding: .7rem 1rem;
}
.sub-menu-item:hover{
    background-color: var(--white-accent);
}
header .socials{
    display: flex;
    width: fit-content;
    height: 1.5rem;
    gap: .5rem;
    font-size: 1.5rem;
}
header .socials *:hover{
    scale: 1.05;
}
header .socials a:has(i){
    translate: 0 -2px;
}
header .socials img{
    height: 100%;
}

main{
    width: 50%;
    min-width: 50rem;
    flex: 1;
    margin: 0 auto;
}
section{
    display: flex;
    gap: 2rem;
    margin: 5rem 0;
}
section iframe{
    width: 50vw;
    height: 100vh;
    border-radius: 10px;
}
/* ---------------- */
/* - SHORT HEADER - */
/* ---------------- */
header, header *{
    transition: all .2s ease;
}
header.short .logo img{
    position: absolute;
    width: 2.5rem;
    scale: 0;
} 
header.short .logo img.short{
    position: relative;
    scale: 1;
}
header.short h1{
    font-size: 1.5rem;
}
header.short h1 span{
    font-size: 1.8rem;
}

/* ---------- */
/* - FOOTER - */
/* ---------- */
footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    padding: .5rem 1rem;
    background-color: #fff;
    box-shadow: 0 0 5px 5px var(--outline-color-shadow);
}
footer mentions-footer{
    display: flex;
}
footer .mentions-footer a{
    padding: 0 .5rem;
}
footer .mentions-footer a:not(:last-child){
    border-right: 1px solid var(--primary-color);
}
footer .socials{
    display: flex;
    gap: .5rem;
}
footer .socials i{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .3rem .35rem;
    border-radius: 50%;
    aspect-ratio: 1;
    background-color: var(--primary-color);
    color: white;
}
footer .socials *:hover{
    scale: 1.05;
    cursor: pointer;
}

/* @media screen and (max-width: 1000px) { */
/*     header{ */
/*         width: 100vw; */
/*     } */
/*     nav{ */
/*         display: none !important; */
/*         background-color: red; */
/*     }   */
/* } */
