/* -------------------------------------------
          MAIN.CSS STYLESHEET FILE

    CONTENTS:
        00. Imports and keyframes
        01. Background
        02. Frosted glass
        03. Photo
        04. Text
        05. Buttons

------------------------------------------- */

/* -------------------------------------------
    00. Imports and keyframes
------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Spartan&display=swap');

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* -------------------------------------------
    01. Background
------------------------------------------- */

body {
    margin: 0;
    background: linear-gradient(0deg, rgba(102,63,42,1) 0%, rgba(0,140,174,1) 100%);
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.background {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    display: block;
    z-index: 1;
    background: linear-gradient(225deg, rgba(2,0,36,0) 0%, rgba(0,0,0,0.3) 100%), url('../images/background.webp');
    background-size: cover;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

/* -------------------------------------------
    02. Frosted glass
------------------------------------------- */

.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.main {
    position: absolute;
    width: 60%;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .2); 
    border-radius: 5px;
    position: relative;
    z-index: 1;
    background: inherit;
    overflow: hidden;
    background-attachment: fixed;
    animation: fadein 1.3s;
        -webkit-animation: fadein 1.3s;
        -moz-animation: fadein 1.3s;
        -ms-animation: fadein 1.3s;
        -o-animation: fadein 1.3s;
}

@media only screen and (max-width: 1200px) {
    .main {
        width: 80%;
    }
}

@media only screen and (max-width: 920px) {
    .main {
        width: 85%;
    }
}

@media only screen and (max-width: 618px) {
    .main {
        width: 85%;
    }
}

@media only screen and (max-width: 506px) {
    .main {
        width: 88%;
    }
}

@media only screen and (max-width: 340px) {
    .main {
        width: 92%;
    }
}

.main:before {
    content: "";
    position: absolute;
    background: inherit;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
    filter: blur(10px);
    margin: -20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 6rem;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
      "left right-upper right-upper"
      "left right-lower right-lower";
    width: 100%;
    height: 100%;
}
  
    .grid .left { grid-area: left; }
    .grid .right-upper { grid-area: right-upper; }
    .grid .right-lower { grid-area: right-lower; }

.img-container {
    position: relative;
    margin: 1rem;
    height: calc(100% - 2rem);
    white-space: nowrap;
    text-align: center;
}

    .left {
        background-color: rgba(255, 255, 255, 0.35);
    }

    .right-lower {
        vertical-align: bottom;
    }

.text-container {
    position: relative;
    margin: 1.5rem;
    height: calc(100% - 3rem);
    text-align: left;
}

.icon-container {
    position: relative;
    margin: 2rem 1.5rem;
    height: calc(100% - 4rem);
    text-align: left;
}

.icons {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* -------------------------------------------
    03. Photo
------------------------------------------- */

.photo {
    /* position: absolute;
    top: 0;
    bottom: 0;
    margin-bottom: auto;
    margin-top: auto; */
    width: 100%;
    padding-bottom: 100%;
    height: 0;
    background-color: rgba(199, 199, 199, 0.8);
    background-image: url('../images/photo.webp');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
    vertical-align: middle;
    animation: loading-background 1s alternate linear infinite;
}

@keyframes loading-background {
    from {
        background-color: rgba(199, 199, 199, 0.8);
    }
    to {
        background-color: rgba(189, 189, 189, 0.8);
    }
}

.signature {
    display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-bottom: 33%;
    margin-bottom: .5rem;
    height: 0;
    background: url('../images/signature.png') no-repeat;
    background-size: cover;
    vertical-align: middle;
}

@media only screen and (max-width: 618px) {
    .signature {
        display: block;
    }
}

/* -------------------------------------------
    04. Text
------------------------------------------- */

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: white;
}

p {
    font-family: 'Spartan', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: white;
}

@media only screen and (max-width: 320px) {
    h1 {
        font-size: 1.6rem;
    }
    
    p {
        font-size: .8rem;
    }
}

/* -------------------------------------------
    05. Buttons
------------------------------------------- */

.contact-button {
    border: 1.5px white solid;
    border-radius: 50%;
    padding: .8rem .95rem;
    font-size: 1.5rem;
    color: white;
    margin-right: 1rem;
    transition: .3s;
    cursor: pointer;
}

.contact-button:hover {
    color: rgba(67, 164, 228, 0.9);
    border: 1.5px rgba(67, 163, 228, 0.9) solid;
}

@media only screen and (max-width: 470px) {
    .contact-button:nth-child(3){
        display: none;
    }
}

svg {
    width: 1.4rem !important;
}

@media only screen and (max-width: 320px) {
    .contact-button {
        margin-right: .5rem;
        font-size: 1.2rem;
    }

    svg {
        width: 1.1rem !important;
    }
}