@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@200;400;700&display=swap');

* {
	margin: 0;
	padding: 0;
}

body {
	background: #edf2f4;
	color: #2b2d42;
	font-family: 'Titillium Web', sans-serif;
	font-weight: 400;
	font-size: 16px;
}
a, a:visited {
	text-decoration: underline;
	color: #2b2d42;
}
a:hover,
a:focus,
a:active {
	text-decoration: none;
}
ul {
	list-style-type: none;
}
strong {
	font-weight: 700;
}
.light {
	color: #797c89;
}

header {
	position: relative;
	z-index: 0;
	background-color: #2b2d42;
	color: #edf2f4;
	font-weight: 200;
}
header::before {
    content: '';
	display: block;
  	position: absolute;
	z-index: 1;
	width: 100%;
	height: 100%;
	opacity: 1;
	background-image: url('img/csaba-varga-header.png');
	background-repeat: no-repeat;
    background-position: right 10% top 20px;
    background-size: contain;
}
header::after {
	position: absolute;
	z-index: 2;
    content: '';
    height: 0;
    width: 0;
    left: 0;
    bottom: 0;
    border-width: 25px 50vw;
    border-style: solid;
    border-color: transparent #edf2f4 #edf2f4 transparent;
}
h1 {
	font-size: 80px;
	font-weight: 200;
	position: relative;
	z-index: 3;
	padding: 100px 100px 20px;
}
header p {
	font-size: 20px;
	max-width: 550px;
	position: relative;
	z-index: 3;
	padding: 0 100px 100px;
	line-height: 36px;
}

.content {
	padding: 80px 100px 0;
}
.section {
	margin-bottom: 80px;
}
h2 {
	font-size: 40px;
	font-weight: 200;
}

.expertise div {
	border-radius: 20px;
	padding: 20px 28px;
	margin-top: 20px;
	color: #edf2f4;
}
.product-leadership {
	background: #535998;
	width: 50%;
}
.design-management {
	background: #43466a;
	width: 70%;
}
.ux-design {
	background: #2b2d42;
}
.expertise h3 {
	font-weight: 700;
	font-size: 20px;
}

.experience .areas {
	margin-top: 40px;
	position: relative;
}
.experience .area.active {
	position: relative;
}
.experience .area.inactive {
	position: absolute;
	top: 0;
}
.experience .area.active ul {
	display: block;
}
.experience .area.inactive ul {
	display: none;
}
.experience area.active {
	z-index: 1;
}
.experience .area:nth-child(1 of .inactive) {
	z-index: 3;
}
.experience .area:nth-child(2 of .inactive) {
	z-index: 2;
}
.experience .area:nth-child(2) h3 {
	margin-left: 164px;
}
.experience .area:last-child h3 {
	margin-left: 310px;
}
.experience .area h3 {
	display: inline-block;
    position: relative;
    padding-bottom: 4px;
	margin-bottom: 40px;
	font-weight: 400;
	font-size: 20px;
	cursor: pointer;
}
.experience .area.active h3 {
	font-weight: 700;
}
.experience .area.active h3::after {
	content: '';
	width: 100%;
	height: 4px;
	background: #2b2d42;
	position: absolute;
    bottom: 0;
    left: 0;
}
.experience ul li {
	display: flex;
	flex-flow: row wrap;
	justify-content: left;
}
.experience ul.dates > li {
	margin-bottom: 40px;
}
.experience ul.dates > li:last-child {
	margin-bottom: 0;
}
.experience ul li h4 {
	font-weight: 400;
	font-size: 16px;
	width: 120px;
	line-height: 20px;
}
.experience .description ul {
	margin-top: 10px;
}
.experience .description ul li {
	margin-bottom: 4px;
}
.experience .description ul li:last-child {
	margin-bottom: 0;
}
.experience .description ul li span:first-child {
	width: 120px;
}
.experience .description img {
    height: 20px;
}
.experience .area.design ul li:first-child h4,
.experience .area.design ul li:nth-child(3) h4,
.experience .area.education ul li:nth-child(3) h4,
.experience .area.community ul li:first-child h4 {
	line-height: 24px;
}
.experience .area.design ul li:first-child img,
.experience .area.design ul li:nth-child(3) img,
.experience .area.education ul li:nth-child(3) img,
.experience .area.community ul li:first-child img {
    height: 24px;
}
.experience .area.design ul li:nth-child(2) p {
	line-height: 20px;
}
.experience .area.education ul li:nth-child(2) img {
	height: 18px;
}
.experience .area.education ul li:nth-child(2) h4 {
	line-height: 18px;
}
.experience .area.community ul li:nth-child(2) img {
	height: 16px;
}
.experience .area.community ul li:nth-child(2) h4 {
	line-height: 16px;
}

.stories h3 {
	font-size: 30px;
	line-height: 40px;
	font-weight: 200;
	margin-top: 60px;
}
.stories .container {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}
.stories .story {
	margin-top: 40px;
	width: 45%;
}
.stories .story img {
	width: 100%;
	border-radius: 10px;
}
.stories .story p {
	margin-top: 20px;
}
.stories p.disclaimer {
	margin-top: 60px;
	margin-bottom: -20px;
	color: #797c89;
}
.stories h4 {
	font-weight: 700;
	font-size: 16px;
	margin-top: 40px;
}
.stories .logos {
	display: grid;
	grid-template-columns: auto auto auto auto;
	justify-content: space-between;
	column-gap: 60px;
	padding-bottom: 20px;
}
.stories .logos a {
	align-self: center;
	justify-self: center;
    margin-top: 60px;
	max-width: 100%;
}
.stories .logos a:first-child,
.stories .logos a:nth-child(2),
.stories .logos a:nth-child(3),
.stories .logos a:nth-child(4) {
	margin-top: 40px;
}

.personal p,
.contact p {
	margin-top: 10px;
}
.personal h2 + p,
.contact h2 + p {
	margin-top: 0;
}

.contact {
	position: relative;
	z-index: 0;
	margin-bottom: 0;
	padding-bottom: 200px;
}
.contact::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	z-index: 1;
	width: 100%;
	height: 400px;
	background-image: url('img/csaba-varga-footer.png');
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: contain;
}
.contact h2,
.contact p {
	position: relative;
	z-index: 2;
}

@media only screen and (max-width : 860px) {

	header::before {
		background-position: right -100px top 20px;
		opacity: 0.8;
	}
	h1 {
		font-size: 50px;
		padding: 220px 40px 0;
	}
	header p {
		padding: 0 40px 100px;
		line-height: normal;
	}
	.content {
		padding: 80px 20px 0;
	}
	.experience ul.dates > li {
		flex-flow: column wrap;
	}
	.experience .description ul li span:first-child {
		width: 100px;
	}
	.experience .area:nth-child(2) h3 {
		margin-left: 140px;
	}
	.experience .area:last-child h3 {
		margin-left: 270px;
	}
	.experience .description {
		margin-top: 10px;
	}
	.stories .container {
		flex-flow: column wrap;
		justify-content: unset;
	}
	.stories .story {
		width: 100%;
	}
	.stories .logos {
		grid-template-columns: auto auto;
		justify-content: space-around;
		column-gap: 60px;
	}
	.stories .logos img {
		margin-top: 60px;
	}
	.stories .logos img:first-child,
	.stories .logos img:nth-child(2) {
		margin-top: 40px;
	}
	.contact::after {
		top: unset;
		margin-top: 60px;
	}

}
