@import "./fonts.css";

:root {
    --color-bg: linear-gradient(180deg, #ae46e8, #d387f0);
    --color-text: #f5f5f5;
    --color-text2: #ffbb00;
    --color-text3: #d387f0;
    --text-shadow: 1.75px 3.0625px 0 #191919,1.616825px .669725px 0 #191919,1.237425px 1.237425px 0 #191919,.669725px 1.616825px 0 #191919,3.0625px 1.75px 0 #191919,-.669725px 1.616825px 0 #191919,-1.237425px 1.237425px 0 #191919,-1.616825px .669725px 0 #191919,-1.75px 0 0 #191919,-1.616825px -.669725px 0 #191919,-1.237425px -1.237425px 0 #191919,-.669725px -1.616825px 0 #191919,0 -1.75px 0 #191919,.669725px -1.616825px 0 #191919,1.237425px -1.237425px 0 #191919,1.616825px -.669725px 0 #191919;
}

/* Base styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Roboto-Condensed, sans-serif;
    font-size: 14px;
}

body.overlay {
    overflow: hidden;
}

.main {
    max-width: 1230px;
    height: 100vh;
    padding: 0 30px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.menu-btn {
    width: 45px;
    position: absolute;
    top: 40px;
    right: 30px;
    z-index: 2;
    transition: all 0.2s ease-in;
    cursor: pointer;
}

.menu-btn:hover {
    transform: scale(1.1);
}

/* Logo styles */

.logo {
    width: 160px;
    position: absolute;
    top: 25px;
    left: 43.5%;
    z-index: 1;
    transition: 0.3s;
}

/* Trophy styles */

.trophy {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}

.trophy img {
    width: 70px;
    opacity: 0;
    animation: animationTrophy 7s linear infinite;
}

.trophy img:nth-child(1) {
    width: 40px;
    animation-delay: 2s;
}

.trophy img:nth-child(2) {
    width: 70px;
    animation-delay: 1s;
}

.trophy img:nth-child(3) {
    width: 50px;
    animation-delay: 5s;
}

.trophy img:nth-child(4) {
    width: 75px;
    animation-delay: 4s;
}

.trophy img:nth-child(5) {
    width: 60px;
    animation-delay: 1.5s;
}

.trophy img:nth-child(6) {
    width: 45px;
    animation-delay: 3s;
}

.trophy img:nth-child(7) {
    width: 65px;
    animation-delay: 5.5s;
}

@keyframes animationTrophy {
    0% {
        transform: translateY(0);
        transform: rotate(75deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(85vh);
        opacity: 0;
    }
}

/* Main-row styles */

.main-row {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 30px;
    padding: 0 45px;
}

.main-content {
    max-width: 700px;
    z-index: 1;
    color: var(--color-text);
    text-shadow: var(--text-shadow);
    cursor: default;
}

.main-heading {
    font-size: 45px;
    font-weight: 700;
}

.hero-name {
    display: inline-block;
    margin: 15px 0 16px 0;
    color: var(--color-text2);
    letter-spacing: 1.8px;
}

.main-description {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 1.5;
}

.main-img {
    max-width: 285px;
    z-index: 1;
    animation: floatImage 4s ease-in-out infinite;
    animation-delay: .3s;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-img {
    width: 100%;
}

/* Media queries */

@media (max-width: 1000px) {
    .main {
        overflow: auto;
    }
    .trophy {
        padding: 0 15px;
    }
    .logo {
        left: 30px;
    }
    .main-row {
        padding: 215px 0 0 0;
        flex-direction: column;
        justify-content: flex-start;
        row-gap: 70px;
    }
    .main-content {
        width: 100%;
        max-width: none;
        text-align: center;
    }
    .main-heading {
        font-size: 35px;
    }
    .main-img {
        max-width: 215px;
        padding-bottom: 40px;
        animation: none;
    }
}

@media (min-width: 700px) and (max-width: 1000px) {
    .main-heading {
        display: flex;
        justify-content: space-around;
        align-items: center;
        column-gap: 35px;
        margin-bottom: 50px;
        font-size: 38px;
    }
    .hero-name {
        margin: 0;
        font-size: 43px;
    }
}

@media (max-width: 580px) {
    .main {
        padding: 0 15px;
    }
    .main-row {
        padding-top: 185px;
        row-gap: 30px;
    }
    .main-heading {
        font-size: 27px;
        letter-spacing: 1px;
    }
    .main-description {
        height: 95px;
        font-size: 21px;
        letter-spacing: 1px;
    }
    .main-img {
        max-width: 170px;
    }
}
