.home {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 70px 5% 0;
    gap: 0px;
}

.cloud-container {
  position: relative;
  width: 100%;
  top: 60px;
}

.cloud {
    position: fixed;
    top: 60px;
    /* adjust height */
    left: -200px;
    /* start off-screen */
    width: 180px;
    animation: moveCloud 10s linear forwards;
    pointer-events: none;
    z-index: -1;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes moveCloud {
    0% {
        left: -200px;
        opacity: 1;
        transform: rotate(0deg);
    }

    80% {
        opacity: 1;
    }

    100% {
        left: calc(100vw);
        /* move across screen */
        opacity: 0;
        /* vanish on the right */
        visibility: hidden;
        scale: 1.9;
        transform: rotate(35deg);
    }
}


.wheel-container {
            position: fixed;
            top: -15%;
            right: -19%;
        }

        .icon-wheel {
            z-index: 10;
            position: fixed;
            top: -15%;
            right: -19%;
            /* top: 40%;
            right: 50%; */
            width: 200px;
            height: 200px;
            transform-origin: 50% 50%;
            transform: translate(-50%, -50%);
            animation: step-rotate 20s ease-in-out infinite;
            animation-delay: 2s;
        }

        .icon-wheel img {
            z-index: 100;
            position: absolute;
            top: 50%;
            left: 50%;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: contain;
            transform-origin: 0 0;
        }

        /* place images evenly in a circle (5 icons) */
        .icon-wheel img:nth-child(1) {
            transform: rotate(0deg) translateY(-200px) rotate(145deg);
        }

        .icon-wheel img:nth-child(2) {
            transform: rotate(72deg) translateY(-200px) rotate(145deg);
        }

        .icon-wheel img:nth-child(3) {
            transform: rotate(144deg) translateY(-200px) rotate(145deg);
        }

        .icon-wheel img:nth-child(4) {
            transform: rotate(216deg) translateY(-200px) rotate(145deg);
        }

        .icon-wheel img:nth-child(5) {
            transform: rotate(288deg) translateY(-200px) rotate(145deg);
        }

        @keyframes step-rotate {

            /* Step 1 */
            0% {
                transform: translate(-50%, -50%) rotate(-0deg);
            }

            10% {
                transform: translate(-50%, -50%) rotate(-72deg);
            }

            20% {
                transform: translate(-50%, -50%) rotate(-72deg);
            }

            /* Step 2 */
            30% {
                transform: translate(-50%, -50%) rotate(-144deg);
            }

            40% {
                transform: translate(-50%, -50%) rotate(-144deg);
            }

            /* Step 3 -216 */
            50% {
                transform: translate(-50%, -50%) rotate(-216deg);
            }

            60% {
                transform: translate(-50%, -50%) rotate(-216deg);
            }

            /* Step 4 */
            70% {
                transform: translate(-50%, -50%) rotate(-288deg);
            }

            80% {
                transform: translate(-50%, -50%) rotate(-288deg);
            }

            /* Step 5 */
            90% {
                transform: translate(-50%, -50%) rotate(-360deg);
            }

            100% {
                transform: translate(-50%, -50%) rotate(-360deg);
            }
        }


.myphoto {
    min-width: 30%;
    display: flex;
    justify-content: center;
}

.myphoto img {
    width: 180px;
    height: 180px;
}

.home-content {
    min-width: 70%;
    /* min-width: 600px; */
}

.home-content h3 {
    font-size: 27px;
    font-weight: 700;
}

.home-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin: -3px 0;
}

.home-content p {
    font-size: 22px;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #ff4d4d;
    border-radius: 50%;
    font-size: 20px;
    color: #ff4d4d;
    text-decoration: none;
    margin: 30px 15px 30px 0;
}

.home-sci a:hover {
    background: #ff4d4d;
    color: #fff;
    box-shadow: 0 0 20px #ff4d4d;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #ff4d4d;
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
}

.btn-box:hover {
    box-shadow: 0 0 10px #ff4d4d;
    cursor: pointer;
}

.tools-container {
    width: 100%;
    display: flex;
    /* flex instead of inline-block */
    margin-top: 20px;
    gap: 8px;
}

/* ----------- MOBILE RESPONSIVE ----------- */
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        /* stack image above text */
        padding: 80px 5% 50px;
        height: auto;
        /* height adjusts to content */
        text-align: center;
        /* center all text */
        gap: 10px;
    }

    .wheel-container {
    display: none;
  }


    .cloud {
        animation-delay: 1.5s;
    }

    .home-content {
        min-width: auto;
    }

    .home-content h3 {
        font-size: 22px;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-content p {
        font-size: 18px;
    }

    .tools-container {
        justify-content: center;
        /* center icons */
    }

    .home-sci a {
        margin: 15px 8px;
        /* smaller spacing */
    }

    .btn-box {
        padding: 10px 24px;
        font-size: 14px;
    }

    .myphoto img {
        width: 130px;
        height: 130px;
        margin-bottom: 0px;
    }
}