/* --------------------*/
/* Custom properties   */
/* --------------------*/

:root {

    /* colors   */
    --clr-black: 0,100%,0%;
    --clr-blackgray: 225, 4%, 19.6%;
    --clr-dark: 213, 16%, 14%;

    --clr-white-not-selected: 240,2%,53.5%;
    --clr-white-not-selected-hover: 240,2%,73.5%;
    --clr-white: 0,0%,96.1%;
    
    /* fonts   */
    --fs-900: 4rem;
    --fs-800: 3rem;
    --fs-700: 2.0rem;
    --fs-600: 1.45rem;
    --fs-500: 1.125rem;
    --fs-400: 1rem;
    --fs-300: 0.875rem;
    --fs-250: 0.675rem;
    --fs-200: 0.55rem;

    --ff-serif:  'Open Sans',serif;
    --ff-sans-cond:  'Open Sans',serif;
    --ff-sans-normal:  'Open Sans',sans-serif;
   
}

@media (min-width: 50em){
    :root {
        --fs-900: 5rem;
        --fs-800: 5rem;
        --fs-700: 2.5rem;
        --fs-600: 1.75rem;      
        --fs-400: 1.25rem; 
        --fs-300: 1rem;
        --fs-250: 0.875rem;
        --fs-200: 0.675rem;
    }
}

@media (min-width: 65em){
    :root {

        /* colors   */ 
        --fs-900: 6rem;
        --fs-800: 6.25rem;
        --fs-700: 3.5rem;
        --fs-600: 2.5rem;
        --fs-500: 2rem;
        --fs-400: 1.5rem;
        --fs-300: 1.25rem;
        --fs-250: 1rem;
        --fs-200: 0.725rem;      
    }
}

/* --------------------*/
/* Reset               */
/* --------------------*/

*,
*::before,
*::after{
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture{
    margin:0;
}


h1
{
    font-size: var(--fs-900);
}

h2
{
    font-size: var(--fs-600);
}

h3{
    font-size: var(--fs-500);
}

h4{
    font-size: var(--fs-400);
}

h5{
    font-size: var(--fs-300);
}

p{
    font-size: var(--fs-200);
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
  }

/* set up the body */
body{
    font-family: var(--ff-sans-normal);
    font-size: var(--fs-400);
    color: hsl(var(--clr-white));
    background-color: hsl(var(--clr-black));
    line-height: 1.5;
    min-height: 100vh;   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.body-wrapper{
    width:100%;
    height:100%;
    position: relative;
    overflow-x: hidden;
}

img,
picture{
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font:inherit;
}


/* --------------------*/
/* Utility Classes     */
/* --------------------*/


.flex{
    display: flex;
    gap: var(--gap,1rem);
}

.grid {
    display: grid;
    gap: var(--gap,1rem);
}


.d-block{
    display: block;
}

.basic-bottom-margin{
    margin-bottom: 3rem;
}

.flow > *:where(:not(:first-child)){
    margin-top: var(--flow-space,1rem);  
}

.flex-center{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap,1rem);
}


.sr-only
{
position: absolute;
width:1px;
height: 1px;
padding: 0;
margin:-1px ;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;

}

.hover-scale-up:hover, 
.hover-scale-up:hover 
{
    transform: scale(1.1);
}

.active .hover-scale-up 
{
    transform: scale(1.3);
    color: hsl(ar(--clr-white));
}


/* --------------------*/
/* Colors     */
/* --------------------*/

/* colors */
.bg-black {background-color:  hsl(var(--clr-black));}
.bg-dark {background-color:  hsl(var(--clr-dark));}
.bg-dark-gray {background-color:  hsl(var(--clr-blackgray));}

.bg-white {background-color:  hsl(var(--clr-white));}

.text-dark {color:  hsl(var(--clr-black));}
.text-white {color:  hsl(var(--clr-white));}

.text-white-hover:hover, 
.text-white-hover:focus 
{
    color: hsl(var(--clr-white-not-selected-hover));
}

/* --------------------*/
/* Typography     */
/* --------------------*/

.ff-serif { font-family: var(--ff-serif); } 
.ff-sans-cond { font-family: var(--ff-sans-cond); } 
.ff-sans-normal { font-family: var(--ff-sans-normal); } 

.letter-spacing-1 { letter-spacing: 4.75px; } 
.letter-spacing-2 { letter-spacing: 2.7px; } 
.letter-spacing-3 { letter-spacing: 2.35px; } 

.uppercase { text-transform: uppercase; }

.fs-900 { font-size: var(--fs-900); }
.fs-800 { font-size: var(--fs-800); }
.fs-700 { font-size: var(--fs-700); }
.fs-600 { font-size: var(--fs-600); }
.fs-500 { font-size: var(--fs-500); }
.fs-400 { font-size: var(--fs-400); }
.fs-300 { font-size: var(--fs-300); }
.fs-200 { font-size: var(--fs-200); }

.fs-900,
.fs-800,
.fs-700,
.fs-600 {
    line-height: 1.1;
}

.justify{
    text-align: justify;
    text-justify: inter-word;
}

.text-center{
    text-align: center;
}

.font-weight-thin{
    font-weight: 200;
}

.font-weight-light{
    font-weight: 300;
}

.font-weight-regular{
    font-weight: 300;
}

.font-weight-semi-bold{
    font-weight: 500;
}

.font-weight-bold{
    font-weight: 700;
}

/* --------------------*/
/* Components   */
/* --------------------*/


/* -----------------------  */
/* Buttons            */
/* -----------------------  */

.icon-button
{
    background-color: transparent;
    border: 0;
    width: 4rem;
    height: 4rem;
}

.icon-button-scaled
{
    -webkit-transition: 0.15s ease-in-out;
    -moz-transition: 0.15s ease-in-out;
    -o-transition: 0.15s ease-in-out;
    transition: 0.15s ease-in-out;
}

.icon-button-scaled:hover
{
    transform: scale(1.2);
}

.icon-button-faded
{
    opacity: .5;
    transition: opacity .5s ease-out;
    -moz-transition: opacity .5s ease-out;
    -webkit-transition: opacity .5s ease-out;
    -o-transition: opacity .5s ease-out;
}

.icon-button-faded:hover
{
   opacity: 1;
}

.button-project {
  align-items: center;
  background-color: transparent;
  border: 2px solid hsl(var(--clr-white-not-selected));
  box-sizing: border-box;
  color: hsl(var(--clr-white-not-selected));
  cursor: pointer;
  display: inline-flex;
  fill: transparent;
  font-family: Inter,sans-serif;
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  justify-content: center;
  letter-spacing: -.8px;
  line-height: 24px;
  min-width: 140px;
  outline: 0;
  padding: 0 17px;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-project:focus {
  color: white;
}

.button-project:hover {
  border-color: hsl(var(--clr-white-not-selected-hover));
  color: hsl(var(--clr-white-not-selected-hover));
}

.button-project:active {
  border-color: white;
  color: white;
}

@media (min-width: 768px) {
  .button-project {
    min-width: 170px;
  }
}

/* -----------------------  */
/* Input field            */
/* -----------------------  */

.text-input
{
    width:300px;
    height:50px;
    position: relative;
    color: white;
    margin-top: 2rem;
}

.text-input input
{
    width: 100%;
    height: 100%;  
    border: 2px solid white;
    background: transparent;
    outline: none;
    padding: 0 10px;
    font-size: 20px;
}

.text-input label
{
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    text-transform: capitalize;
    font-size: var(--fs-300);
    transition: top .3s;
    padding: 0 5px; 
}

.text-input input[type="text"]:focus ~ label,
.text-input input[type="text"]:valid ~ label 
{
    top: -30px;
}

/* -----------------------  */
/* Page specific            */
/* -----------------------  */

body{
    background-size: cover;
    background-position: bottom center;
}

.title-data-brick{
    position: relative; 
    padding: 0; 
    width: 100%;
}

/* Primary -header */

#primary-header{
    position: fixed;
    top: 0;   
    width: 100%;
    height: 9rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-inline: 2rem;
    padding: 0;
    background: hsl(var(--clr-black),1);
    z-index: 1000;
    transition: 0.4s; 
}

.primary-header-wrapper{ 
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

@media (min-width: 45em)
{
    .primary-header-wrapper{--gap: 3.5rem;}
}

@media (min-width: 65em)
{
    .primary-header-wrapper{--gap: 4.5rem;}
}

.primary-navigation{  
    list-style: none;   
    padding: 0;
    margin: 0;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.primary-navigation a{
    text-decoration: none;
    color: hsl(var(--clr-white-not-selected));
}

.text-white-hover:hover , 
.text-white-hover:focus 
{
    color: hsl(var(--clr-white-not-selected-hover));
}

.nav-bar-options > *{
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 0;  
}

.active > .text-white-hover
{
    color: hsl(var(--clr-white));
}

#logo-header
{
    height: 7rem;
    transition: 0.4s; 
}


/* Main brick */

.first-title-data-brick{
    min-height: calc(100vh - 5rem);
    margin-top: 5rem;  
}

.carousel{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    position: relative;
}

.slider{
    height: calc(100vh - 5rem);
    display: flex;
    width: 400%;
    flex-shrink: 0;
    transition: all 0.5s ease-in-out;
}

.slider section{
    flex-basis: 100%;
    width:25%;
    display: flex;
    flex-shrink: 0;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.slider-image{
    width: 100%;
    height: 100%;
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
}

.button-left
{ 
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateX(-50%);
    transform: translateY(-50%);
}

.button-right
{
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateX(-50%);
    transform: translateY(-50%);   
}

.image-index{
    position: absolute;
    bottom: 5%;
    right: 50%;
    transform: translateX(-50%);
    transform: translateY(-50%);   
    list-style: none;
    display: flex;
}


.media-brick
{     
    position:absolute;
    bottom: 5%;
    width: 100vw; 
    height: 4rem;   
    display: flex;
    justify-content: center;   
    gap: var(--gap,2rem);
}

/* Project brick  */

#project-container
{
    padding-top: 2rem;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 5rem;
}

.gallery
{
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1fr,250px));
    grid-gap: 30px; 
}

@media (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
    }
  }

.gallery .gallery-item
{
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-item img
{
    -webkit-transition: 0.35s ease-in-out;
    -moz-transition: 0.35s ease-in-out;
    -o-transition: 0.35s ease-in-out;
    transition: 0.35s ease-in-out;
}

.gallery-item:hover img
{
    width: 100%;
    transform: scale(1.1);
}

.gallery-item:hover .img-text-wrapper
{
    opacity: 1;
}

.gallery-item .img-text-wrapper
{
    position: absolute;
    opacity: 0;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-transition: 0.35s ease-in-out;
    -moz-transition: 0.35s ease-in-out;
    -o-transition: 0.35s ease-in-out;
    transition: 0.35s ease-in-out;
    background: hsl(var(--clr-black),0.35);
}

.gallery-item button
{
    position: absolute;
    z-index: 130;
    background-color: transparent;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}


.img-text-wrapper h4{
    text-transform: uppercase;
}

.img-text-wrapper p{
    padding-top:20px;
}

@media (hover: none){

    .gallery-item .img-text-wrapper
    {
        opacity: 1;
    }

    .img
    {
        width: 100%;
    }
}

/* Pop-up  */

.popup-gallery
{
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    background-color: hsl(var(--clr-white),0.85);
    margin: 0;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s
}

.popup-gallery-wrapper
{
    position: absolute;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.popup-gallery-grid{
    margin: 0;
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr ;
    justify-items: center;
    justify-content: center;
    align-items: start;
    gap: 1rem;
    row-gap: 2rem;
}


/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
  }

/* Hide scrollbar for Chrome, Safari and Opera */
.popup-gallery-wrapper::-webkit-scrollbar 
{
    display: none;
}
  
  /* Hide scrollbar for IE, Edge and Firefox */
.popup-gallery-wrapper
{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.popup-gallery-exit
{
    grid-column: 1 / span 3;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    background-color: transparent;
    border: 0px;
}

.popup-gallery-exit img
{
    width: 2rem;
    height: 2rem;
    background-color: transparent;
    opacity: 0.8;
}

.popup-gallery-exit:hover img
{
    opacity: 1;
}

.popup-gallery-text-wrapper
{
    grid-column: 3 / span 1;
    color: hsl(var(--clr-blackgray))
}

.popup-gallery-img-wide
{
    aspect-ratio: 16/9;
    grid-column: 1 / span 2;
    object-fit: cover;
}

.popup-gallery-img-narrow-1
{
    aspect-ratio: 7/9;
    grid-column: 1 / span 1;
    object-fit: cover;
}
.popup-gallery-img-narrow-2
{
    aspect-ratio: 7/9;
    grid-column: 2 / span 1;
    object-fit: cover;
}

#about-us-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-us-wrapper{
    width: 90vw;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr ;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 5rem;
}

@media (min-width: 1200px) {
    .about-us-wrapper {    
        grid-template-columns: 1fr  1fr;
    }
  }

.anna-photo{
    width: 80%;
    align-self: center;
    justify-self: center;
    max-width: 350px;
    margin-bottom: 5rem;
}

.about-us-brick
{      
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    place-items: center;
    justify-content: center; 
    gap: var(--gap, 1rem);  
    max-width: 550px;
}

.about-us-brick > p
{   
    font-size: var(--fs-250);
    font-weight: 200;
    text-align: justify;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#contact-container{
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.contact-brick-wrapper{
    display: flex;
    flex-direction: column;
    justify-items: start;
    align-items: center; 
    gap: var(--gap,1rem);
}

.contact-brick-wrapper > h6
{
    margin: 0.25rem;
    font-weight: lighter;
}

.contact-data{
    display: flex; 
    flex-direction: row;  
    align-items: center;  
    justify-items: center;
    gap: var(--gap,5rem);
}

.address-panel-contact
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: stretch;
    gap: 0.25rem;
    max-width: 12.5rem;
    margin: 0;
}

.contact-form-panel
{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-content: stretch;
    max-width: 12.5rem;
    gap: 0.15rem;
}

@media (min-width: 65em)
{
    .address-panel-contact
    {       
        max-width: 18rem;
    }
    .contact-form-panel
    {
        max-width: 18rem;
    }
}



