body {
    margin: 0;
    padding: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateIn {
    from { transform: rotate(-90deg) scale(0.5); opacity: 0; }
    to { transform: rotate(-90deg) scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.about {
    width: 100%;
    min-height: 100vh;
    animation: fadeIn 0.8s ease-out;
}

.bg {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('./pantai\ sanur2.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
}

.left {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
}

.header-group {
    margin-bottom: 30px;
    overflow: hidden;
}

.left h1 {
    font-size: 100px;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

#span1 {
    color: #96a9ff;
    font-size: 50px;
    vertical-align: middle;
    margin-right: -1px;
    animation: rotateIn 1s ease-out both;
}

#span2 {
    font-size: 35px;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: rgb(174, 190, 255);
    font-weight: 00;
    background-color: #0045c527;
    padding: 8px 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.805);
    margin-top: 15px;
    margin-left: 10px;
    display: block;
    animation: fadeIn 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
}

#span2:hover {
    background-color: #00308b;
    transform: translateX(10px);
}

.text-content {
    margin-left: 150px;
    margin-top: 20px;
    max-width: 600px;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.bg p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    margin: 0;
    transition: all 0.3s ease;
}

.bg p:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.right-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    max-width: 30%;
    animation: slideInRight 1s ease-out 0.8s both;
    transition: all 0.5s ease;
}

.right-image:hover {
    transform: translateY(-50%) scale(1.05);
    filter: brightness(1.1);
}

.about img{
    width: 540px;
}

@media (max-width: 900px) {
    .bg {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 20px;
        background-attachment: scroll;
    }

    .left {
        max-width: 100%;
        width: 100%;
    }

    .left h1 {
        font-size: 40px;
        text-align: left;
        word-break: break-word;
    }

    #span1 {
        display: none; 
    }

    #span2 {
        font-size: 18px;
        margin-left: 0;
        margin-top: 10px;
        padding: 6px 12px;
        display: inline-block;
    }

    .text-content {
        margin-left: 0;
        margin-top: 15px;
        max-width: 100%;
    }

    .bg p {
        font-size: 1rem;
        padding: 15px;
        border-radius: 8px;
    }

    .about img{
        width: 300px;
    }
}
