﻿/* 
    base color: #7b1fa2 
    dark tint: #621982
    light shade: #954CB5
*/

:root {
    --negative-color: #2b2e5c;
    --negative-text: #ffffff;
    --positive-color: #f8f0de;
    --positive-text: #2b2e5c;
    --accent-color: #b5b7d8;
    --danger-color: #C62828;
    --edge-padding: 2rem;
    --border-radius: 8px;
    --font-standard: 1.25rem;
    --animate-time: 0.5s;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    background-color: var(--positive-color);
}

body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    height: 100%;
}

@font-face {
    font-family: 'Garamond Pro';
    src: url('assets/fonts/adobe-garamond-pro/AGaramondPro-Regular.otf') format('opentype');
}

h1, h2, h3 {
    font-family: 'Garamond Pro', 'Roboto', sans-serif;
    text-transform: uppercase;
}

h1 {
    font-size: 1.75rem;
}

p {
    font-size: 1.25rem;
}

.glass {
    background: rgba( 255, 255, 255, 0.6 );
    box-shadow: 0 8px 32px 0 #1f26875e;
    backdrop-filter: blur( 4px );
    -webkit-backdrop-filter: blur( 4px );
}

/* dev */

.dev-button {
    position: fixed;
    right: 0;
    top: 0;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    background-color: var(--positive-color);
    color: var(--positive-text);
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 32px;
    padding-right: 20px;
    z-index: 999;
    box-shadow:  4px 4px 12px rgb(0,0,0, 0.15),
             -4px -4px 12px rgb(0,0,0, 0.15);
}

.dev-bug {
    color: var(--danger-color);
}

/* banner */

.banner,
img,
.button-container {
  transition: 0.6s;
}

header {
    height: 100%;
}

.banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  height: 100%;
  background: url("assets/beach.jpeg");
}

.parallax {
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: 0.5s;
}

.banner img {
    margin-left: var(--edge-padding);
    margin-right: var(--edge-padding);
    margin-bottom: var(--edge-padding);
    max-width: 700px;
    width: 100%;
}

.button-container {
    max-width: 768px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.button-container > * + * {
    margin-left: 4rem;
}
  
.banner-button {
    display: flex;
    background-color: transparent;
    color: var(--positive-text);
    border-radius: var(--border-radius);
    border: none;
    flex-basis: 0;
    flex-grow: 1;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.banner-button:hover {
    transition: 0.5s;
    box-shadow: 4px 4px 12px #1f26875e,
             -4px -4px 12px #1f268733;
}

.banner-button div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* buttons */
button {
    cursor: pointer;
}

/* sections */

.info-container {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    column-gap: 2rem;
}
  
.image-container {
    padding: var(--edge-padding);
    width: 80%;
    display: flex;
    align-items: center;
}

.image-container img {
    object-fit: cover;
    border-radius: 50%;
    height: 256px;
    width: 256px;
}
  
.text-container {
    width: 66%;
    align-items: center;
}

.positive-back {
    color: var(--positive-text);
    box-sizing: border-box;
    width: 100%;
    padding: 48px;
    background-color: var(--positive-color);
    box-shadow:  4px 4px 12px rgb(0,0,0, 0.15),
             -4px -4px 12px rgb(0,0,0, 0.15);
}

.positive-back .image-container {
    justify-self: end;
    justify-content: end;
}

.positive-back .text-container {
    justify-self: start;
    text-align: start;
}

.positive-shadow {
    box-shadow:  8px 8px 16px #d9d9d9,
             -8px -8px 16px #ffffff;
}

.negative-back .image-container {
    justify-self: start;
}

.negative-back .text-container {
    justify-self: end;
    text-align: end;
}

.negative-back {
    color: var(--negative-text);
    text-shadow: 1px 1px 2px var(--negative-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    height: 100%;
    background: url("assets/forest.jpeg");

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: 0.5s;
}

.negative-back .material-symbols-outlined {
    padding: 8px;
    font-variation-settings:
    'FILL' 1,
    'wght' 700,
    'GRAD' 0,
    'opsz' 48
}

/* technologies */
.tech-container {
    display: flex;
    justify-content: start;
}

.tech-container > * + * {
    margin-left: 2rem;
}

.tech-badge {
    width: 64px;
    height: 64px;
}

.social-button-container {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.social-button-container > * + * {
    margin-left: 2rem;
}

.social-button-sub-container > * + * {
    margin-left: 1rem;
}

.expertise-container {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
}

.expertise-item {
    color: white;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
    display: flex;
    flex-direction: row;
    align-items: center;

    font-size: larger;
}

.expertise-item:nth-child(1) {
    animation-delay: 0.5s;
}

.expertise-item:nth-child(2) {
    animation-delay: 1s;
}

.expertise-item:nth-child(3) {
    animation-delay: 1.5s;
}

.expertise-item img {
    margin-right: 0.5rem;
}

.expertise-container > * + * {
    margin-top: 1rem;
}

.social-button {
    background-color: transparent;
    color: var(--accent-color);
    border-radius: 50%;
    border: none;
    width: 64px;
    height: 64px;
    padding: 8px;
}

.social-button:hover {
    transition: 0.5s;
    box-shadow:  4px 4px 12px #d9d9d9,
             -4px -4px 12px #ffffff;
}

.social-button img {
    width: 32px;
    height: 32px;
}

.social-link {
    display: flex;
    justify-items: center;
    align-items: center;
    text-align: center;
    width: 100%;
    color: var(--accent-color);
    margin-top: 1rem;
}

.social-link img {
    width: 24px;
    height: 24px;
    padding: 8px;
}

/* footer */

.centered-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

footer img {
    object-fit: cover;
    height: 64px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-email {
    justify-content: flex-end;
}

.contact-phone {
    justify-content: left;
}

.copyright {
    margin-top: var(--edge-padding);
    font-weight: 100;
}

/* effects */

.js-scroll {
    opacity: 0;
    transition: opacity 500ms;
}

.js-scroll.scrolled {
    opacity: var(--animate-time);
}

.scrolled.fade-in {
    -webkit-animation: fade-in var(--animate-time) ease-in-out both; 
    -moz-animation: fade-in var(--animate-time) ease-in-out both;
    -o-animation: fade-in var(--animate-time) ease-in-out both;
    animation: fade-in var(--animate-time) ease-in-out both;
}

.scrolled.fade-in-bottom {
    -webkit-animation: fade-in-bottom var(--animate-time) ease-in-out both; 
    -moz-animation: fade-in-bottom var(--animate-time) ease-in-out both;
    -o-animation: fade-in-bottom var(--animate-time) ease-in-out both;
    animation: fade-in-bottom var(--animate-time) ease-in-out both;
}

.scrolled.slide-left {
    -webkit-animation: slide-in-left var(--animate-time) ease-in-out both; 
    -moz-animation: slide-in-left var(--animate-time) ease-in-out both;
    -o-animation: slide-in-left var(--animate-time) ease-in-out both;
    animation: slide-in-left var(--animate-time) ease-in-out both;
}

.scrolled.slide-right {
    -webkit-animation: slide-in-right var(--animate-time) ease-in-out both; 
    -moz-animation: slide-in-right var(--animate-time) ease-in-out both;
    -o-animation: slide-in-right var(--animate-time) ease-in-out both;
    animation: slide-in-right var(--animate-time) ease-in-out both;
}

@keyframes slide-in-left {
    0% {
      -webkit-transform: translateX(-100px);
      -ms-transform: translateX(-100px);
      transform: translateX(-100px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slide-in-right {
    0% {
      -webkit-transform: translateX(100px);
      -ms-transform: translateX(100px);
      transform: translateX(100px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes fade-in-bottom {
    0% {
      -webkit-transform: translateY(50px);
      -ms-transform: translateY(50px);
      transform: translateY(50px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes fade-in {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  
@media screen and (max-width: 767px) {
    .info-container {
        grid-template-columns: 100%;
    }

    .banner img {
        width: 256px;
    }

    .button-container {
        flex-direction: column;
        margin: 0;
        margin-left: 0;
    }

    .button-container > * + * {
        margin-left: 0rem;
    }

    .button-container button {
        margin-right: 0;
        margin-bottom: 1rem;
        width: auto;
    }
  
    .image-container,
    .text-container {
        padding: 0;
        width: 100%;
        justify-content: center;
    }

    .positive-back .image-container {
        justify-self: end;
        justify-content: center;
    }

    .social-button-container {
        justify-content: center;
        flex-direction: column;
        margin-left: 0;
    }

    .social-button-container > * + * {
        margin-left: 0;
        margin-bottom: 1rem;
    }

    .negative-back .text-container {
        text-align: start;
    }

    .parallax {
        background-attachment: scroll;
    }

    .negative-back {
        background-attachment: scroll;
    }

    .contact-email {
        justify-content: center;
    }
    
    .contact-phone {
        justify-content: center;
    }
}

/* icons */
.material-symbols-outlined {
    padding: 8px;
    font-variation-settings:
    'FILL' 0,
    'wght' 700,
    'GRAD' 0,
    'opsz' 48
}
