.about-home {
    position: relative;
    background: url(../media/about/team.jpeg) no-repeat;
    background-size: cover;
    overflow: hidden;
}

.floating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* black overlay, 50% opacity */
    z-index: 1;
}
/* container always above floating images */
.about-home .container {
    position: relative;
    z-index: 10;
}

.floating-images {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.float-img {
    position: absolute;
    width: 420px;
    opacity: 0.5;
    animation: floatAnim linear infinite;
    pointer-events: none;
    filter: blur(1px);
}

/* 10 images with different positions & speeds */
.float-img:nth-child(1) {
    top: 5%;
    left: 10%;
    animation-duration: 14s;
}

.float-img:nth-child(2) {
    top: 25%;
    left: 75%;
    animation-duration: 18s;
    width: 150px;
}

.float-img:nth-child(3) {
    top: 70%;
    left: 20%;
    animation-duration: 20s;
    width: 90px;
}

.float-img:nth-child(4) {
    top: 10%;
    left: 85%;
    animation-duration: 16s;
}

.float-img:nth-child(5) {
    top: 55%;
    left: 5%;
    animation-duration: 24s;
    width: 130px;
}

.float-img:nth-child(6) {
    top: 80%;
    left: 60%;
    animation-duration: 22s;
    width: 110px;
}

.float-img:nth-child(7) {
    top: 30%;
    left: 45%;
    animation-duration: 26s;
    width: 100px;
}

.float-img:nth-child(8) {
    top: 15%;
    left: 55%;
    animation-duration: 17s;
    width: 140px;
}

.float-img:nth-child(9) {
    top: 65%;
    left: 80%;
    animation-duration: 23s;
    width: 125px;
}

.float-img:nth-child(10) {
    top: 40%;
    left: 30%;
    animation-duration: 19s;
    width: 105px;
}

/* FLOAT KEYFRAMES */
@keyframes floatAnim {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -40px) rotate(10deg);
    }

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

    75% {
        transform: translate(15px, 25px) rotate(6deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Small screens (mobiles) */
@media (max-width: 768px) {

    .float-img {
        width: 60px !important;
        /* smaller size */
        opacity: 0.15 !important;
        /* lighter for readability */
        filter: blur(0.5px);
    }

    /* Move images to simpler positions */
    .float-img:nth-child(1) {
        top: 8%;
        left: 15%;
    }

    .float-img:nth-child(2) {
        top: 30%;
        left: 65%;
    }

    .float-img:nth-child(3) {
        top: 75%;
        left: 20%;
    }

    .float-img:nth-child(4) {
        top: 12%;
        left: 80%;
    }

    .float-img:nth-child(5) {
        top: 55%;
        left: 10%;
    }

    .float-img:nth-child(6) {
        top: 70%;
        left: 60%;
    }

    .float-img:nth-child(7) {
        display: none;
    }

    /* hide extra for simplicity */
    .float-img:nth-child(8) {
        display: none;
    }

    .float-img:nth-child(9) {
        display: none;
    }

    .float-img:nth-child(10) {
        display: none;
    }

    /* Reduce animation intensity */
    @keyframes floatAnim {
        0% {
            transform: translate(0, 0) rotate(0deg);
        }

        50% {
            transform: translate(12px, -15px) rotate(4deg);
        }

        100% {
            transform: translate(0, 0) rotate(0deg);
        }
    }

    .home {
        padding: 90px 0;
        /* reduce padding for mobile */
    }
}
.goals-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
}

@media (max-width: 768px) {
    .goals-container {
        flex-direction: column;
        gap: 50px;
    }
}

.goals-container .goal {
    flex-basis: 50%;
}

#goals {
    padding: 60px 20px;
}
#values {
    padding: 20px 60px 60px 60px;
    background-color: var(--secondary-2);
}

.values-container {
    margin-top: 50px;
}

/* Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Individual Card */
.value-card {
    background-color: var(--secondary-1);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: justify;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.value-card h2 {
    font-size: 25px;
    color: #fff;
    margin: 0px;
}

.value-card p {
    font-size: 16px;
    color: #fff;
    opacity: 0.8;
    margin: 0px;
}

#values-goals {
    padding: 20px 60px 60px 60px;
}
.tree-root {
    text-align: center;
    position: relative;
}

.root-title {
    font-size: 32px;
    font-weight: bold;
    color: #7f7766;
    width: 100%;
    display: flex;
    justify-content: center;
}

.root-title .card {
    color: var(--secondary-1);
    border-radius: 12px;
    margin: 30px;
}

.root-title h2 {
    padding: 0px;
    margin: 0px;
}


.tree-branches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.branch {
    background: var(--secondary-2);
    border-radius: 12px;
    padding: 20px;
    width: 220px;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.branch::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 4px;
    height: 30px;
    background: #7f7766;
    transform: translateX(-50%);
}

.branch:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.branch-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.branch-desc {
    font-size: 14px;
    opacity: 0.8;
    color: #fff;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .branch {
        width: 100%;
    }
}
