/* KEYFRAMES */

@keyframes pulse {
    0% {
        box-shadow: inset 0 0 80px rgba(255, 165, 0, 0.5), 
                inset 0 0 30px rgba(255, 69, 0, 0.4), 
                0 0 20px 8px rgba(255, 140, 0, 0.5), 
                0 0 40px 16px rgba(255, 215, 0, 0.4);
    }

    100% {
        box-shadow: inset 0 0 80px rgba(255, 165, 0, 0.9), 
                inset 0 0 30px rgba(255, 69, 0, 0.7), 
                0 0 20px 8px rgba(255, 140, 0, 0.9), 
                0 0 40px 16px rgba(255, 215, 0, 0.7);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 100%;
    }
}


/* GENERAL STYLING */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: black;
    color: aliceblue;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
}

button, .pointer, .click {
    cursor: pointer;
}

.container {
    padding: 50px 0;
    width: 100%;
}

.row {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
}

.click {
    transition: all 300ms ease;
}

.click:hover {
    transform: scale(1.1);
}

.click:active {
    transform: scale(0.8);
}

.link__hover--effect {
    position: relative;
}

.link__hover--effect:after {
    content: "";
    position: absolute;
    bottom: -3px;
    height: 2px;
    border-radius: 50px;
    width: 0;
    right: 0;
    background-color: aliceblue;
    opacity: 0.75;
    transition: all 300ms ease;
}

.link__hover--effect:hover:after {
    left: 0;
    width: 100%;
}

/* HERO LANDER PAGE */
nav,
header,
.solar-system--wrapper {
    opacity: 1;
    visibility: visible;
    transition: all 600ms ease;
    z-index: 2;
}

#landing-page {
    min-height: 100vh;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5px;
    height: 100px;
    animation: fade-in 2s linear;
}

.nav__link--list {
    display: flex;
}

.nav__link {
    margin: 0 12px;
}

.nav__link--anchor {
    color: royalblue;
    font-size: 16px;
    font-weight: 600;
}

.solar-system--wrapper {
    position: absolute;
    width: 100%;
    max-width: 1100px;
    left: 50%;
    transform: translateX(-50%);
    top: 100px;
    height: 500px;
}

.solar-system {
    position: relative;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fade-in 7s linear;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: pulse 1250ms infinite alternate-reverse;
    background-color: #ffcc33;
}

.sun:hover {
    background-color: #f5f5f5;
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: rotate linear infinite;
    transition: all 300ms ease;
}

.planet:hover {
    transform: scale(5)
}

.mercury {
    width: 10px;
    height: 10px;
    left: calc(50% + 25px);
    top: calc(50% + 25px);
    transform-origin: -25px -25px;
    background-color: #8d8d8d;
    animation-duration: 1440ms;
    box-shadow: inset 0 0 10px rgba(169, 169, 169, 0.9), 
                inset 0 0 3px rgba(128, 128, 128, 0.7),
                0 0 5px 2px rgba(169, 169, 169, 0.6);
}

.venus {
    width: 18px;
    height: 18px;
    left: calc(50% - 60px);
    top: calc(50% - 60px);
    transform-origin: 60px 60px;
    background-color: #e6c8aa;
    animation-duration: 3720ms;
    box-shadow: inset 0 0 15px rgba(230, 200, 170, 0.9),
                inset 0 0 3px rgba(200, 160, 120, 0.7),
                0 0 7px 3px rgba(230, 200, 170, 0.6);
}

.earth {
    width: 20px;
    height: 20px;
    left: calc(50% + 75px);
    top: calc(50% + 75px);
    transform-origin: -75px -75px;
    background-color: #00aaff;
    animation-duration: 60000ms;
    box-shadow: inset 0 0 15px rgba(0, 150, 255, 0.9),
                inset 0 0 3px rgba(0, 80, 170, 0.7),
                0 0 8px 3px rgba(0, 150, 255, 0.5);
}

.mars {
    width: 15px;
    height: 15px;
    left: calc(50% - 120px);
    top: calc(50% - 120px);
    transform-origin: 120px 120px;
    background-color: #d25a3c;
    animation-duration: 11280ms;
    box-shadow: inset 0 0 12px rgba(210, 90, 60, 0.9),
                inset 0 0 3px rgba(170, 50, 30, 0.7),
                0 0 7px 3px rgba(210, 90, 60, 0.5);
}

.jupiter {
    width: 35px;
    height: 35px;
    left: calc(50% + 140px);
    top: calc(50% + 140px);
    transform-origin: -140px -140px;
    background-color: #f0b48c;
    animation-duration: 71160ms;
    box-shadow: inset 0 0 20px rgba(240, 180, 140, 0.9),
                inset 0 0 10px rgba(200, 150, 110, 0.7),
                inset 0 0 7px rgba(255, 255, 255, 0.5),
                0 0 12px 5px rgba(240, 180, 140, 0.5);
}

.saturn {
    width: 30px;
    height: 30px;
    left: calc(50% - 185px);
    top: calc(50% - 185px);
    transform-origin: 185px 185px;
    background-color: #e6c8aa;
    animation-duration: 176760ms;
    box-shadow: inset 0 0 18px rgba(230, 200, 170, 0.9),
                inset 0 0 6px rgba(190, 160, 130, 0.7),
                0 0 10px 4px rgba(230, 200, 170, 0.5);
}

.saturn:after {
    content: "";
    height: 1px;
    width: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #b7bac5;
    border-radius: 50%;
    box-shadow: inset 0 0 18px rgba(230, 200, 170, 0.9),
                inset 0 0 6px rgba(190, 160, 130, 0.7)
                0 0 7px 3px #ebecf0;
}

.uranus {
    width: 25px;
    height: 25px;
    left: calc(50% + 200px);
    top: calc(50% + 200px);
    transform-origin: -200px -200px;
    background-color: #afeeee;
    animation-duration: 504060ms;
    box-shadow: inset 0 0 15px rgba(175, 238, 238, 0.9),
                inset 0 0 3px rgba(100, 180, 180, 0.7),
                0 0 7px 3px rgba(175, 238, 238, 0.5);
}

.neptune {
    width: 25px;
    height: 25px;
    left: calc(50% - 210px);
    top: calc(50% - 210px);
    transform-origin: 210px 210px;
    background-color: #4682b4;
    animation-duration: 988740ms;
    box-shadow: inset 0 0 15px rgba(70, 130, 180, 0.9),
                inset 0 0 3px rgba(30, 60, 130, 0.7),
                0 0 8px 3px rgba(70, 130, 180, 0.5);
}

header {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fade-in 3s linear;
}

.header__title {
    font-weight: 600;
    font-size: 64px;
    color: white;
}

.header__desc {
    margin-top: 16px;
    max-width: 600px;
    text-align: center;
}

/* PLANET INFORMATION SECTION */ 
.planet__info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.planet__info--box {
    padding: 15px;
    border-radius: 12px;
}

.planet__info--main {
    display: flex;
    width: 100;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.planet__info--wrapper {
    padding: 5px; 
}

.planet__info--planet {
    border-radius: 50%;
    opacity: 1;
    width: 100px;
    height: 100px;
}

.planet__info--title {
    font-size: 2em;
}

.planet__info--desc {
    font-size: 14px;
}

.sun__planet {
    background-color: #ffcc33;
    box-shadow: inset 0 0 80px rgba(255, 165, 0, 0.9), 
            inset 0 0 30px rgba(255, 69, 0, 0.7), 
            0 0 20px 8px rgba(255, 140, 0, 0.9), 
            0 0 40px 16px rgba(255, 215, 0, 0.7);
}

.sun__info {
    background-color: #ffcc3335;
}

.mercury__planet {
    background-color: #8d8d8d;
    box-shadow: inset 0 0 10px rgba(169, 169, 169, 0.9), 
                inset 0 0 3px rgba(128, 128, 128, 0.7),
                0 0 5px 2px rgba(169, 169, 169, 0.6);
}

.mercury__info {
    background-color: #8d8d8d35;
}

.venus__planet {
    background-color: #e6c8aa;
    box-shadow: inset 0 0 15px rgba(230, 200, 170, 0.9),
                inset 0 0 3px rgba(200, 160, 120, 0.7),
                0 0 7px 3px rgba(230, 200, 170, 0.6);
}

.venus__info {
    background-color: #e6c8aa35;
}

.earth__planet {
    background-color: #00aaff;
    box-shadow: inset 0 0 15px rgba(0, 150, 255, 0.9),
                inset 0 0 3px rgba(0, 80, 170, 0.7),
                0 0 8px 3px rgba(0, 150, 255, 0.5);
}

.earth__info {
    background-color: #00aaff35;
}

.mars__planet {
    background-color: #d25a3c;
    box-shadow: inset 0 0 12px rgba(210, 90, 60, 0.9),
                inset 0 0 3px rgba(170, 50, 30, 0.7),
                0 0 7px 3px rgba(210, 90, 60, 0.5);
}

.mars__info {
    background-color: #d25a3c35;
}

.jupiter__planet {
    background-color: #f0b48c;
    box-shadow: inset 0 0 20px rgba(240, 180, 140, 0.9),
                inset 0 0 10px rgba(200, 150, 110, 0.7),
                inset 0 0 7px rgba(255, 255, 255, 0.5),
                0 0 12px 5px rgba(240, 180, 140, 0.5);
}

.jupiter__info {
    background-color: #f0b48c35;
}

.saturn__planet {
    background-color: #e6c8aa;
    box-shadow: inset 0 0 18px rgba(230, 200, 170, 0.9),
                inset 0 0 6px rgba(190, 160, 130, 0.7),
                0 0 10px 4px rgba(230, 200, 170, 0.5);
}

.saturn__info {
    background-color: #e6c8aa35;
}

.uranus__planet {
    background-color: #afeeee;
    box-shadow: inset 0 0 15px rgba(175, 238, 238, 0.9),
                inset 0 0 3px rgba(100, 180, 180, 0.7),
                0 0 7px 3px rgba(175, 238, 238, 0.5);
}

.uranus__info {
    background-color: #afeeee35;
}

.neptune__planet {
    background-color: #4682b4;
    box-shadow: inset 0 0 15px rgba(70, 130, 180, 0.9),
                inset 0 0 3px rgba(30, 60, 130, 0.7),
                0 0 8px 3px rgba(70, 130, 180, 0.5);
}

.neptune__info {
    background-color: #4682b435;
}

/* RESPONSIVENESS */

@media (max-height: 720px) and (max-width: 1280) {
    #landing-page {
      min-height: calc(100vh + 500px);  
    }

    .header {
        top: 800px;
    }
}


/* tablets, large smart phones */
@media (max-width: 768px) or (max-height: 721px) {
    .sun {
        width: 25px;
        height: 25px;
    }

    .mercury {
        width: 5px;
        height: 5px;
    }

    .venus {
        width: 8px;
        height: 8px;
    }

    .earth {
        width: 10px;
        height: 10px;
    }

    .mars {
        width: 12px;
        height: 12px;
    }

    .jupiter {
        width: 22px;
        height: 22px;
    }

    .saturn {
        width: 15px;
        height: 15px;
    }

    .saturn:after {
        width: 30px;
    }

    .uranus {
        width: 17px;
        height: 17px;
    }

    .neptune {
        width: 15px;
        height: 15px;
    }

    .star {
        width: 15px;
        height: 15px;
    }

    .header {
        top: 600px;
    }

    .header__title {
        font-size: 48px;
    }

    .planet__info {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .section__desc {
        font-size: 16px;
    }

    .section__title {
        font-size: 32px;
    }

    .section__sub-title {
        font-size: 24px;
    }

    .nav__link--anchor {
        font-size: 16px;
    }

    .fa-language,
    .fa-circle-half-stroke {
        font-size: 16px;
    }

    .message__icon {
        right: 25px;
    }

    .row {
        padding: 0 20px;
    }

    .modal {
        top: 0;
        left: 0;
        transform: none;
        height: auto;
        width: 100%;
        flex-direction: column-reverse;
        border-radius: 0;
    }

    .modal__half {
        width: 100%;
    }

    nav {
        padding: 20px 10px;
    }
}

@media (max-width: 676px) {
    .header__title {
        font-size: 12px;
    }
}
 
/* small phone */
@media (max-width: 480px) {
.solar-system--wrapper {
    height: 350px;
}

    .sun {
        width: 20px;
        height: 20px;
    }

    .sun__info--sun {
        width: 100px;
        height: 100px;
    }

    .mercury {
        left: calc(50% + 15px);
        top: calc(50% + 15px);
        transform-origin: -15px -15px;
    }
    
    .venus {
        left: calc(50% - 35px);
        top: calc(50% - 35px);
        transform-origin: 35px 35px;
    }

    .earth {
        left: calc(50% + 40px);
        top: calc(50% + 40px);
        transform-origin: -40px -40px;
    }

    .mars {
        left: calc(50% - 65px);
        top: calc(50% - 65px);
        transform-origin: 65px 65px;
    }

    .jupiter {
        left: calc(50% + 80px);
        top: calc(50% + 80px);
        transform-origin: -80px -80px;
    }

    .saturn {
        left: calc(50% - 120px);
        top: calc(50% - 120px);
        transform-origin: 120px 120px;
    }

    .uranus {
        left: calc(50% + 140px);
        top: calc(50% + 140px);
        transform-origin: -120px -120px;
    }

    .neptune {
        left: calc(50% - 140px);
        top: calc(50% - 140px);
        transform-origin: 140px 140px;
    }

    .star {
        width: 10px;
        height: 10px;
    }

    .header {
        top: 580px;
        align-items: center;
    }

    .header__title {
        font-size: 36px;
        text-align: center;
    }

    .planet__info {
        grid-template-columns: 1fr;
    }

    .section__desc {
        font-size: 16px;
        text-align: center;
    }

    .section__title {
        font-size: 36px;
        text-align: center;
    }

    .section__sub-title {
        font-size: 24px;
        text-align: center;
    }

    .language__list {
        flex-direction: column;
    }

    .language__item {
        margin-bottom: 20px;
    }

    .projects__item {
        margin-bottom: 75px;
    }

    .projects__desc--title {
        font-size: 18px;
    }

    .projects__desc--sub-title {
        font-size: 16px;
    }

    .projects__desc--text {
        font-size: 12px;
    }

    .projects__desc {
        left: 20px;
        max-width: 90%;
    }
}

@media (max-width: 400px) {
    .scroll {
        display: none;
    }

    .message__icon {
        display: none;
    }
}