personal-site/main.css
2021-05-26 17:14:31 +01:00

758 lines
11 KiB
CSS

html {
width: 100%;
overflow-x: hidden;
font-display: swap;
scroll-behavior: smooth;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: Poppins, Helvetica;
font-display: swap;
font-size: 18px;
line-height: 1.5;
color: #222;
}
/*................................................... Body */
body {
width: 100%;
display: block;
margin: 0px;
overflow: hidden;
/*background-color: #B8FFE1;*/
}
header {
width: 100%;
padding: 20px 40px;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
z-index: 1000;
}
section {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 40px;
position: relative;
}
/*................................................... Text */
a {
text-decoration: none;
color: #222222;
border-bottom: 2px solid #222222;
cursor: pointer;
font-size: inherit;
}
a:hover {
border-bottom: 4px solid transparent;
}
h1 {
font-size: 64px;
margin-top: 0px;
margin-bottom: 15px;
color: inherit;
font-weight: 700;
width: 100%;
line-height: 1.2;
}
h2 {
font-size: 36px;
margin-top: 0px;
margin-bottom: 15px;
color: #252132;
font-weight: 700;
width: 100%;
line-height: 1.5;
}
h3 {
font-size: 24px;
margin-top: 0px;
margin-bottom: 10px;
color: inherit;
text-align: inherit;
width: 100%;
line-height: 1.5;
}
h4 {
font-size: 18px;
margin-top: 0px;
margin-bottom: 10px;
color: inherit;
width: 100%;
line-height: 1.5;
}
p {
font-size: 16px;
line-height: 1.5;
margin-top: 0px;
margin-bottom: 20px;
color: #48494e;
width: 100%;
font-weight: 400;
}
span {
font-size: inherit;
}
/*................................................... Interactives */
button {
border: none;
background-color: black;
padding: 10px 20px;
color: white;
cursor: pointer;
}
button:hover {
background-color: darkblue;
}
input, textarea {
padding: 15px;
border-radius: 5px;
border: 1px solid rgba(0,0,0,0.2);
margin-bottom: 15px;
width: 100%;
font-size: 14px;
}
input:focus {
border: 1px solid blue;
box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
}
/*................................................... General classes and IDs */
.container-1200px {
width: 100%;
max-width: 1200px;
display: flex;
align-items: flex-start;
position: relative;
}
.column-50 {
display: flex;
flex-direction: column;
width: 50%;
position: relative;
}
/*................................................... Nav */
.nav-link-block {
font-size: 30px;
font-weight: 800;
opacity: .6;
transition: all .3s ease-out;
}
.nav-link-block:hover {
opacity: 1;
}
.navlink-li {
display: inline-block;
}
.navlink {
padding: 10px;
margin: 10px;
}
.hero-subtext {
font-size: 24px;
font-weight: 500;
}
.nav-cta-button {
border: 3px solid transparent;
transition: all .3s ease-out;
}
.nav-cta-button:hover {
border: 3px solid black;
background-color: white;
color: black;
padding: 10px 25px;
}
.hamburger {
display: none;
cursor: pointer;
transition: all .3s ease-out;
}
.hamburger-line {
width: 30px;
height: 3px;
background-color: black;
}
/*................................................... Hero Section */
section.hero-section {
padding: 0px 40px 40px 40px;
}
.my-name {
color: #222;
padding: 0px;
font-size: 60px;
}
.body-bg {
position: fixed;
z-index: -1;
width: 100%;
opacity: .5;
min-height: 100vh;
background-image: url("images/stone-wall-bg.jpg");
background-size: cover;
}
#wavy-line {
width: 100%;
position: absolute;
z-index: -1;
top: 350px;
left: 0;
opacity: .5;
display: none;
}
.body-bg.gradient {
/*background-image: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0));*/
}
.hero-content-container {
align-items: center;
}
.hero-ctas-block {
display: flex;
align-items: center;
justify-content: flex-start;
margin-top: 15px;
}
.hero-content-link {
color: rgba(0,0,0,0.4);
transition: all .3s ease-out;
border-bottom: 2px solid rgba(0,0,0,0.4);
}
.hero-content-link:hover {
background-color: #222222;
color: white;
padding: 5px;
}
.main-cta-button {
margin: 0;
border: 3px solid #333;
background-color: #fff;
color: #222;
font-size: 18px;
font-weight: 600;
transition: all .3s ease-out;
padding: 15px 40px;
}
.main-cta-button:hover {
background-color: #222;
color: white;
padding: 15px 50px;
}
.linkedin-link {
border: none;
display: flex;
justify-content: flex-start;
margin-right: 20px;
}
.linkedin-link:hover {
border: none;
}
.linkedin-block {
padding: 10px 20px 10px 10px;
background-color: #0a66c2;
display: flex;
align-items: center;
border-radius: 100px;
transition: all .3s ease-out;
}
.linkedin-block:hover {
padding: 10px 25px 10px 15px;
background-color: #0C529B;
}
.linkedin-profile-pic-block {
width: 35px;
height: 35px;
border-radius: 100px;
margin-right: 10px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
border: 3px solid rgba(255,255,255,0.5);
}
#animation-half-column {
perspective: 600px;
z-index: -1;
}
#my-face {
width: 500px;
height: 500px;
position: relative;
z-index: 10;
mix-blend-mode: screen;
}
.face-wrapper {
width: 500px;
height: 500px;
position: relative;
animation: facehover 3s infinite;
animation-timing-function: ease;
transition: all .4s ease-out;
perspective: 600px;
/* transform: rotate3d(20,-20,0,20deg); rotateX(60deg) rotateY(60deg)*/
}
@keyframes facehover {
0% {top:0;}
50% {top:5px;}
100% {top:0;}
}
.centered-content {
display: flex;
align-items: center;
justify-content: center;
}
.linkedin-cta-text {
font-size: 16px;
font-weight: 500;
color: white;
margin: 0;
}
#color-overlay {
position: absolute;
width: 100%;
height: 100%;
background-color: transparent;
top: 0;
left: 0;
transition: all .3s ease-out;
z-index: 0;
}
.hero-image-blur {
width: 500px;
height: 500px;
background-color: #0D2659;
border-radius: 1000px;
position: absolute;
top: 0;
left: 0;
transform: translateZ(-400px);
filter: blur(50px);
z-index: -1;
opacity: .05;
}
.paint-spatter {
position: absolute;
top: 0;
left: 0;
background-image: url("images/pain-splatter-1.png");
background-size: cover;
width: 100%;
height: 100%;
z-index: -10;
transform: scale(1.5);
mix-blend-mode: lighten;
opacity: .1;
}
.morphing-shapes-container {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
mix-blend-mode: multiply;
z-index: -10;
transition: all .3s ease;
}
#morph-shape-1 {
width: 100px;
height: 100px;
position: absolute;
top: 10px;
left: 10px;
}
#morph-shape-2 {
width: 150px;
height: 150px;
position: absolute;
bottom: 120px;
right: -60px;
z-index: -10;
}
#morph-shape-3 {
width: 60px;
height: 60px;
position: absolute;
top: 30px;
right: 30px;
opacity: .5;
z-index: -10;
}
.scroll-down-icon {
font-size:80px;
font-weight:400;
transform:rotate(90deg);
}
.scroll-down-link-block {
border: none;
opacity: .5;
transition: all .3s ease-out;
position: relative;
animation: scrolldownicon 2s infinite;
animation-timing-function: ease-in-out;
}
.scroll-down-link-block:hover {
border: none;
opacity: 1;
animation-play-state: paused;
}
@keyframes scrolldownicon {
0% {top: 0;}
50% {top: 20px;}
100% {top: 0;}
}
/*.................................................................................................................. Mobile Styles */
@media (max-width: 950px) {
.hamburger {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
padding: 10px;
width: 40px;
height: 40px;
background-color: #fff;
}
.hamburger:hover {
padding: 18px 10px;
}
.hamburger-line {
}
nav {
display: none;
}
}
@media (max-width: 800px) {
.column-50 {
width: 100%;
}
.container-1200px {
flex-direction: column;
}
#my-face {
}
.face-wrapper {
margin-top: 0;
right: -20vw;
}
#wavy-line {
width: 300%;
top: 500px;
}
#morph-shape-1 {
top: 40px;
left: -100px;
width: 200px;
height: 200px;
}
#morph-shape-2 {
top: auto;
bottom: 50px;
left: 0px;
width: 100px;
height: 100px;
}
#morph-shape-3 {
top: 250px;
left: -150px;
width: 120px;
height: 120px;
}
}
@media (max-width: 550px) {
h1 {
font-size: 44px;
}
header {
padding: 20px;
}
section.hero-section {
padding: 20px;
}
.hero-subtext {
font-size: 20px;
}
.container-1200px.hero-content-container {
padding-right: 40vw;
}
.hero-content-link {
background-color: #fff;
}
.hero-ctas-block {
flex-direction: column;
align-items: flex-start;
}
.linkedin-cta-text {
font-size: 14px;
}
.linkedin-block {
padding: 7px 15px 7px 7px;
margin-bottom: 15px;
}
#my-face {
margin-top: 0;
}
.face-wrapper {
top: 0;
margin-top: -500px;
right: -60vw;
}
#morph-shape-1 {
top: 100px;
left: 40px;
width: 70px;
height: 70px;
}
#morph-shape-2 {
display: none;
}
#morph-shape-3 {
display: none;
}
}
@media (max-width: 450px) {
.my-name {
font-size: 48px;
}
#my-face {
margin-top: 0;
width: 400px;
height: 400px;
}
.face-wrapper {
margin-top: -530px;
width: 400px;
height: 400px;
right: -50vw;
}
#wavy-line {
width: 300%;
top: 450px;
}
#morph-shape-1 {
top: 80px;
left: 40px;
width: 50px;
height: 50px;
}
}
@media (max-width: 350px) {
.my-name {
font-size: 40px;
}
.face-wrapper {
margin-top: -550px;
width: 400px;
height: 400px;
right: -50vw;
}
#morph-shape-1 {
top: 20px;
left: 60px;
width: 50px;
height: 50px;
}
}