@font-face {
	font-family: 'DM Sans';
	src: url('fonts/DMSans-Light.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'DM Sans';
	src: url('fonts/DMSans-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'DM Sans';
	src: url('fonts/DMSans-BlackItalic.ttf') format('truetype');
	font-weight: 900;
	font-style: italic;
}

@font-face {
	font-family: 'Bebas Neue';
	src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Ball Blast';
	src: url('fonts/BallBlast-BoldItalic.ttf') format('truetype');
	font-weight: 700;
	font-style: italic;
}

/* main */

body {
	background: #000000;
	font-family: 'DM Sans', sans-serif;
	color: #FFFFFF;
	font-size: 18px;
}

* {
        padding: 0;
        margin: 0;
}

.main {
	max-width: 1000px;
	margin: 0 auto;
	padding: 50px 0px;
}

.frame {
	display: flex;
	flex-direction: column;
	gap: 50px;
	padding: 0 25px;
}

/* text*elements */

.bold {
	font-weight: 700;
}

a {
	color: inherit;
    text-decoration: none;
	cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

.text-secondary {
	color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
	.text-secondary {
		font-size: 16px;
	}
}

img, video {
    object-fit: cover;
    display: block;
	border-radius: 16px;
	width: 100%
}

/* previews */

.highlight-vertical {
	display: flex;
	flex-direction: column;
	gap: 25px;
	text-align: center;
}

.highlight-vertical .tag {
	justify-content: center
}

.highlight-responsive {
	display: flex;
	gap: 25px;
}

#bbt-preview {
	max-width: 400px;
	width: 100%;
}

#be-preview {
	width: 100%;
}

#fg-preview {
	max-width: 500px;
	width: 100%;
}

#ctr-preview {
	max-width: 250px;
	width: 100%;
}

#be-text {
	font-size: 48px
}

@media (max-width: 768px) {
	.highlight-responsive {
		flex-direction: column;
		text-align: center;
		align-items: center;
		gap: 5px;
	}
	.highlight-vertical {
		gap: 5px;
	}
	#bbt-preview {
		max-width: none;
	}
	#fg-preview {
		max-width: none;
	}
	#be-text {
		font-size: clamp(36px, 8vw, 48px);
	}
}

/* construct */

.text-frame {
	display: flex;
	flex-direction: column;
}

.block {
	display: flex;
	gap: 25px;
}

.block-vertical {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.block-responsive {
	display: flex;
	gap: 25px;
}

.tag {
	display: flex;
	gap: 25px;
	color:rgba(255, 255, 255, 0.4);
}

.tag-vertical {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color:rgba(255, 255, 255, 0.4);
}

.description-responsive {
	display: flex;
	justify-content: space-between;
	gap: 50px;
}

.credits {
	display: flex;
	flex-direction: column;
	text-align: right;
	gap: 5px;
}

.icon {
	width: 100%;
	max-width: 100px;
	border-radius: 20px;
}

.icon-container {
	display: flex;
	aspect-ratio: 1/1;
	width: 100px;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.bbt-icon {
	width: 100%;
	max-width: 100px;
	border-radius: 16px;
}

.bbt-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 25px;
	height: 100%;
}

.preview-icon-grid {
	font-size: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fill, 100px);
	justify-content: space-between;
	gap: 25px;
}

.icon-container .text-frame {
	white-space: nowrap;
}

@media (max-width: 768px) {
	.block {
		gap: 10px;
	}
	.block-vertical {
		gap: 10px;
	}
	.block-responsive {
		flex-direction: column;
		gap: 10px;
	}
	.tag-vertical, .tag {
		font-size: 14px;
	}
	.highlight-responsive .tag {
		justify-content: center
	}
	.bbt-grid {
		gap: 10px;
	}
	.description-grid {
		grid-template-columns: 1fr;
	}
	.description-grid .description {
	display: none;
	}
	.credits {
		text-align: initial;
	}
	.mobile-hide {
		display: none;
	}
	.icon {
		max-width: 75px;
	}
	.preview-icon-grid{
		grid-template-columns: repeat(auto-fill, 75px);
		font-size: 12px;
	}
	.icon-container {
		width: 75px;
	}
}

/* credentials */

.credentials {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.credentials > div {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 10px;
}

.email {
	font-size: 32px;
	font-weight: 700;
}

.description-responsive {
	display: flex;
	justify-content: space-between;
	gap: 50px;
}

/* bottom */

.bottom {
	padding: 25px 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.25);
}

.bottom p {
	font-weight: 900;
	font-style: italic;
}

.bottom a {
	font-size: 14px;
	color: inherit;
	text-decoration: none;
	margin: 0;
	padding: 0;
}

/* portfolio */

#portfolio-title {
	white-space: nowrap;
}

#portfolio-description {
	max-width: 50%;
	text-align: right;
}

#hero {
	min-height: 250px;
}

/* credentials&cv */

.credentials {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.credentials > div {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 10px;
}

.email {
	font-size: 32px;
	font-weight: 700;
}

#cv-preview {
    padding: 5px 65px;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
	font-size: 32px;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
	cursor: pointer;
}

#cv-container {
	display: flex;
	justify-content: center;
	width: 100%;
	overflow: hidden;
}

#cv-scale {
	width: 595pt;
	height: 100%;
	transform-origin: top center;
	will-change: transform;
}

@media (max-width: 768px) {
	.email {
		font-size: clamp(12px, 4vw, 32px);
	}
	#cv-preview {
		font-size: clamp(24px, 4vw, 32px);
		padding: 5px clamp(24px, 4vw, 64px);
	}
}

/* hover */

.hover, .hover-small {
	transition: transform 0.3s ease;
    transform-origin: center center;
	cursor: pointer;
}

.hover:hover {
    transform: scale(0.96);
}

.hover-small:hover {
    transform: scale(0.94);
}