@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

body {
    transition: 0.3s;
    margin: 0;
    padding: 0;
    background-color: rgb(244, 241, 241);
    font-family: 'Poppins', sans-serif;
    color: rgb(57, 57, 57);
}

h1 {
    font-size: 70px;
    line-height: 70px;
    font-weight: 300;
    margin: 10px 0;
}

h2 {
    font-size: 40px;
    line-height: 40px;
    font-weight: 300;
    margin: 50px 0 10px 0;
}

p {
    margin: 0px;
    font-size: 20px;
}

a {
    color: rgb(162, 0, 255);
    font-size: 20px;
    text-decoration: none;
    font-weight: 100;
}

.dark a {
    color: rgb(246, 169, 241);
}

header {
    display: flex;
    justify-content: flex-end;
    padding: 30px;
}

.switch {
    width: 80px;
    height: 40px;
    border-radius: 20px;
    background-color: rgb(39, 38, 38);
    position: relative;
}

.flicker {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: rgb(255, 255, 255);
    position: absolute;
    top: 5px;
    left: 5px;
    transition: 0.3s;
    box-shadow: inset 4px 4px 4px rgb(255, 255, 255),
    inset -4px -4px 4px rgb(195 193 198 / 90%);
}

.dark {
    background-color: rgb(57, 57, 57);
    transition: 0.3s;
}

.moon {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    box-shadow: 4px 4px 0 0 rgb(255, 255, 255);
    position: absolute;
    top: 5px;
    left: 45px;
}

.dark .flicker {
    transform: translateX(40px);
}

.dark > * {
    color: rgb(255, 255, 255);
}

.main {
    height: 80vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

.main-text {
    padding: 30px;
    margin-bottom: 100px;
}

.experience {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

.experience-text {
    padding: 30px;
}

.square {
    width: 98%;
    margin: 1%;
    height: fit-content;
    background-color: rgb(255, 255, 255);
    text-align: center;
}

.dark .square {
    background-color: rgb(71, 71, 71);
}

#revenoo {
    background-image: url("images/revenoo-app.png");
    background-size: cover;
}

#burgerrator {
    background-image: url("images/burgerrator.png");
    background-size: cover;
}

#news {
    background-image: url("images/news-app.png");
    background-size: cover;
}

#dates {
    background-image: url("images/dates-app.png");
    background-size: cover;
}

.sub-section {
    display: flex;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    width: 50%;
    height: 350px;
    display: block;
    margin-bottom: 100px;
}

.cube {
    position: absolute;
    width: 80px;
    height: 80px;
    transform: rotate(-25deg) skew(25deg);
}

.cube:before {
    position: absolute;
    content: "";
    width: 21px;
    height: 100%;
    transform: skewY(-45deg);
    left: -20px;
    bottom: -10px;
}

.cube:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 21px;
    transform: skewX(-45deg);
    left: -10px;
    bottom: -20px;
}

#cplusplus {
    left: 100px;
    bottom: 80px;
    background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/cplusplus/cplusplus-original.svg");
    background-size: cover;
    background-color: rgb(37, 68, 220);
    box-shadow: -60px 60px 20px rgb(50 50 50/ 15%);
}

#cplusplus:before {
    background-color: rgb(75, 102, 239);
}

#cplusplus:after {
    background-color: rgb(123, 141, 225);
}

#unity {
    left: 250px;
    bottom: 240px;
    background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/unity/unity-original.svg");
    background-size: cover;
    background-color: rgb(209, 204, 176);
    box-shadow: -100px 100px 20px rgb(50 50 50/ 15%);
}

#unity:before {
    background-color: rgb(224, 220, 200);
}

#unity:after {
    background-color: rgb(176, 176, 172);
}

#java {
    left: 450px;
    bottom: 200px;
    background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/java/java-original.svg");
    background-size: cover;
    background-color: rgb(232, 119, 14);
    box-shadow: -40px 40px 20px rgb(50 50 50/ 15%);
}

#java:before {
    background-color: rgb(235, 145, 61);
}

#java:after {
    background-color: rgb(199, 146, 91);
}


#python {
    left: 350px;
    bottom: 40px;
    background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/python/python-original.svg");
    background-size: cover;
    background-color: rgb(119, 193, 227);
    box-shadow: -80px 80px 20px rgb(50 50 50/ 15%);
}

#python:before {
    background-color: rgb(154, 189, 221);
}

#python:after {
    background-color: rgb(188, 200, 221);
}

.thumbnail-images {
    display: block;  /* Make it a block element */
    margin: 0 auto;
    height: 400px;
    width: 500px;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 30px;
    background-color: rgb(136, 136, 136);

}

.dark footer {
    background-color: rgb(28, 28, 28);
}

@media only screen and (min-width: 970px) {
    .main-text {
        width: 50%;
    }

    .square {
        display: flex;
        text-align: center;
        flex-direction: column;
        width: 48%;
        margin: 1%;
        height: 600px;
    }
}

@media only screen and (max-width: 1300px) {
    .hero-image {
        display: none;
    }