@import url("switzer.css");

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #fff;
        --main-color: #17181C;
        --accent-color: #0047FF;
        --accent2-color: #E3E3E3;
        --shadow-color: rgba(23, 24, 28, 0.10);
        --mrb-photo: url("../assets/mrb.png");
    }
    [data-theme="light"] {
        --bg-color: #fff;
        --main-color: #17181C;
        --accent-color: #0047FF;
        --accent2-color: #E3E3E3;
        --shadow-color: rgba(23, 24, 28, 0.10);
        --mrb-photo: url("../assets/mrb.png");
    }
    [data-theme="dark"] {
        --bg-color: #17181C;
        --main-color: #fff;
        --accent-color: #4F82FF;
        --accent2-color: #545764;
        --shadow-color: rgba(23, 24, 28, 0.10);
        --mrb-photo: url("../assets/mrb2.png");
    }
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #17181C;
        --main-color: #fff;
        --accent-color: #4F82FF;
        --accent2-color: #545764;
        --shadow-color: rgba(23, 24, 28, 0.10);
        --mrb-photo: url("../assets/mrb2.png");
    }
    [data-theme="light"] {
        --bg-color: #fff;
        --main-color: #17181C;
        --accent-color: #0047FF;
        --accent2-color: #E3E3E3;
        --shadow-color: rgba(23, 24, 28, 0.10);
        --mrb-photo: url("../assets/mrb.png");
    }
    [data-theme="dark"] {
        --bg-color: #17181C;
        --main-color: #fff;
        --accent-color: #4F82FF;
        --accent2-color: #545764;
        --shadow-color: rgba(23, 24, 28, 0.10);
        --mrb-photo: url("../assets/mrb2.png");
    }
}

*,*::before,*::after{
    box-sizing:border-box;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
      scroll-behavior: smooth;
    }
}

html,body{
    padding:0;
    margin:0;
    min-height: 100vh;
    /* overflow-x: hidden; */
}

body{
    display: flex;
    flex-direction: column;
    font-family: 'Switzer-Regular',Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color:var(--main-color);
    font-size:16px;
}

a{
    color:var(--accent-color);
    text-decoration: underline;
}

#mail span,h2 a span{
    font-size:0;
}

.content{
    width:100%;
    max-width:2260px;
    margin:0 auto;
    padding:0 5rem;
}
#wrapper{
    flex: 1;
    display: flex;
    flex-direction: column;
}

header{
    flex:1;
    padding-top:2.5rem !important;
    position:relative;
}

#logo{
    display: block;
    width:59px;
    min-width:59px;
    height:48px;
    background-color: var(--main-color);
    -webkit-mask-image: url("../assets/logo.svg");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-clip: border-box;
    mask-image: url("../assets/logo.svg");
    mask-size: 100% 100%;
    mask-clip: border-box;
    margin-top: 8px;
}

header > div{
    height:64px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
}

div#nav{
    width:100%;
    position: relative;
}
label{
    visibility:hidden;
    font-size:0;
    margin:0;
    padding:0;
}
#chk{
    position: absolute;
    right:248px;
    top:16px;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	border: 0;
	outline: 0;
	cursor: pointer;
	margin: 0px;
}
#chk:after {
	content: '';
	width: 60px;
	height: 32px;
	display: inline-block;
	background-color: var(--bg-color);
    background-image: url("../assets/toggle_bg.svg");
    background-position: center;
    background-size: cover;
	border-radius: 30px;
    border: 1px solid var(--accent2-color);
	clear: both;
}

#chk:before {
	content: '';
	width: 24px;
	height: 24px;
	display: block;
	position: absolute;
	left: 4px;
	top: 4px;
	border-radius: 12px;
	background: var(--main-color);
    transition: left 0.2s ease-in-out;
}

#chk:checked:before {
	left: 32px;
}
/* Background color when toggle button will be active
#chck:checked:after {
	background: #16a085;
} */

nav{
    position: absolute;
    right: 40px;
    display: inline-grid;
    column-gap: 24px;
    grid-template-columns:repeat(4, 24px);
}
a.sm{
    display: block;
    width:24px;
    height:24px;
    background-color: var(--main-color);
    -webkit-mask-size: 100% 100%;
    -webkit-mask-clip: border-box;
    mask-size: 100% 100%;
    mask-clip: border-box;
    margin-top:20px;
    text-decoration: none;
}

a#a_li{
    -webkit-mask-image: url("../assets/li.svg");
    mask-image: url("../assets/li.svg");
}
a#a_in{
    -webkit-mask-image: url("../assets/in.svg");
    mask-image: url("../assets/in.svg");
}
a#a_be{
    -webkit-mask-image: url("../assets/be.svg");
    mask-image: url("../assets/be.svg");
}
a#a_db{
    -webkit-mask-image: url("../assets/db.svg");
    mask-image: url("../assets/db.svg");
}
#mail-wrapper{
    width:256px;
    min-width: 256px;
}
#mail{
    display: block;
    font-size:1.25rem;
    color:var(--main-color);
    width:256px;
    height:64px;
    border:1px solid var(--accent2-color);
    border-radius: 32px;
    padding: 0 0 0 8px;
    text-align: center;
    line-height: 64px;
    vertical-align: middle;
    position: relative;
    text-decoration: none;
}
#mail::before{
    content:"";
    display: block;
    width:48px;
    height:48px;
    border-radius: 24px;
    background:var(--mrb-photo) center no-repeat;
    background-size: cover;
    position: absolute;
    left:8px;
    top:8px;
}

#mail::after{
    content:"";
    display: block;
    width:24px;
    height:24px;
    background-color: var(--main-color);
    -webkit-mask-size: 100% 100%;
    -webkit-mask-clip: border-box;
    -webkit-mask-image: url("../assets/arr.svg");
    mask-image: url("../assets/arr.svg");
    mask-size: 100% 100%;
    mask-clip: border-box;
    background:var(--main-color);
    position: absolute;
    right:24px;
    top:20px;
}

section{
    padding-top:8rem !important;
    padding-bottom:6rem !important;
    align-self: flex-end;
    width:100%;
}

h1{
    font-weight: 400;
    font-size:4rem;
    line-height:5.5rem;
    margin:0 0 1rem 0;
    padding:0;
    width:100%;
}
h2{
    font-weight: 400;
    font-size:2rem;
    line-height:3rem;
    margin:0 0;
    padding:0;
    width:100%;
}

footer{
    font-weight: 400;
    font-size:1.25rem;
    line-height:2.25rem;
    width:100%;
}
h1,h2,footer{
    max-width:1391px;
}

#portfolio-wrapper{
    padding:5rem 0 4.5rem 0;
    width:100%;
    overflow:hidden;
}

#portfolio-container{
    display: flex;
    flex-wrap: nowrap;
    margin-left:calc(50% - 1050px);
    transition: transform .2s ease-in-out;
}

#portfolio-container > img{
    aspect-ratio: 331 / 248;
    width:1000px;
    min-width: 523px;
    padding-right:3rem;
    box-sizing: content-box;
}
#portfolio-container > img:last-of-type{
    padding-right:0 !important;
}

@media (max-width:2260px){
    #portfolio-container{
        margin-left:5rem;
    }
    #portfolio-container > img{
        width: calc(50% - 5rem);
    }
}
@media (max-width:1400px){

    h1{
        font-size:2.5rem;
        line-height:3.5rem;
    }
    h2{
        font-size:1.5rem;
        line-height:2.5rem;
    }
    
    footer{
        font-size:0.875rem;
        line-height:1.5rem;
    }
    h1,h2,footer{
        max-width:944px;
    }
    
    #portfolio-wrapper{
        padding:4rem 0 2rem 0;
    }
    #portfolio-container > img{
        padding-right: 2rem;
    }

    header{
        padding-top:2rem !important;
    }
    section{
        padding-top:6rem !important;
        padding-bottom:2rem !important;
    }
}

@media (max-width:840px){
    h1{
        font-size:1.75rem;
        line-height:2.5rem;
    }
    h2{
        font-size:1.25rem;
        line-height:2rem;
    }
    .content{
        padding:0 2rem;
    }
    #portfolio-container{
        margin-left:2rem;
    }
    section{
        padding-top:9em !important;
        padding-bottom:8rem !important;
    }
    #mail-wrapper{
        z-index:3000;
        position: fixed;
        width:100%;
        bottom:0;
        background-color: var(--bg-color);
        padding:1rem 0;
        box-shadow: 0px -2px 4px 0px var(--shadow-color);
        text-align: center;
        left:0;
    }
    #mail{
        margin:auto;
    }
    nav{
        right:unset;
        left: -59px;
        top: 92px;
    }
    #chk{
        right:0px;
    }
}

@media (max-width:575px){
    #portfolio-container > img{
        width: 90%;
        min-width:300px;
    }
}