:root {
    --background-color : #0f0e17;
    --background1-color : #000000;
    --button-color : #7f5af0;
    --white-color:#FFFFFF;
    --hover-background: linear-gradient(45deg, #0072ff, #00c6ff);
}

@font-face {
    font-family: 'LilitaOne-Regular';
    src: url('LilitaOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'coolvetica';
    src: url('coolvetica\ rg.otf') format('truetype');
}

@font-face {
    font-family: 'akira';
    src: url('Akira\ Expanded\ Demo.otf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    font-smooth: always;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    height: 80px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--background1-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--button-color);
    font-family: 'akira';
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'coolvetica';
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6600;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('bg1.jpg'); /* Gambar latar belakang */
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white-color);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    font-family: 'coolvetica';
    letter-spacing: 4px;
}

.cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background-color: var(--button-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 0 15px rgba(0, 47, 255, 0.7), 0 0 30px rgba(0, 47, 255, 0.5);
    transform: scale(1.05);
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin-left: 0;
        margin-right: 1rem;
    }
}


/*Character*/
.gallery {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 170px;
}
.gallery-item {
    filter: grayscale(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}
.gallery-item img {
    height: auto;
    width: 350px;
    border-radius: 1px;
}

/*biodata*/
.caracter {
    padding: 150px;
    padding-top: 200px;
    padding-bottom: 200px;
    background-color: var(--white-color);
}

.caracter1 {
    padding: 150px;
    padding-top: 200px;
    padding-bottom: 200px;
    background-color: var(--background-color);
}

.profile-container {
    display: flex;
    margin: 0 auto;
}

.profile-image {
    flex: 0 0 300px;
    margin-right: 40px;
    margin-left: 200px;
}
.profile-image img {
    aspect-ratio: 7/8;
    object-fit: cover;
    width: 350px;
    height: auto;
    display: block;
    border-color: #3e3d46;
}

.profile-content {
    flex: 1;
    padding: 20px;
}

.profile-content h1 {
    font-family: 'LilitaOne-Regular',sans-serif;
    font-size: 50px;
    margin: 0 0 10px 0;
    text-align: left;
    letter-spacing: 2px;
}

.profile-content p {
    font-family: 'LilitaOne-Regular';
    line-height: 1.6;
    color: #333;
    font-size: 22px;
    width: 600px;
}

.profile-container {
    display: flex;
    margin: 0 auto;
}

.profile-container1 {
    display: flex;
    flex-direction: row-reverse;
    margin: 0 auto;
}

.profile-image1 {
    flex: 0 0 300px;
    margin-left: 40px;
    margin-right: 200px;
}
.profile-image1 img {
    aspect-ratio: 7/8;
    object-fit: cover;
    width: 350px;
    height: auto;
    display: block;
    border-color: #3e3d46;
}

.profile-content1 {
    flex: 1;
    padding: 20px;
}

.profile-content1 h1 {
    font-family: 'LilitaOne-Regular',sans-serif;
    font-size: 50px;
    margin: 0 0 10px 0;
    text-align: right;
    letter-spacing: 4px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.profile-content1 p {
    font-family: 'LilitaOne-Regular';
    line-height: 1.6;
    color: #ffffff;
    font-size: 20px;
    text-align: right;
    width: 600px;
    margin-left: 200px;
}

.caracter2 {
    padding: 250px;
    background-color: var(--background-color);
}

.caracter2 h1 {
    display: flex;
    justify-content: center;
    text-align: center;
}

#title1 {
    color: #ff0697;
}
#title2 {
    color: #f86605;
}
#title3{
    color: #097b8f;
}
#title4 {
    color: #8c03fc;
}
#title5 {
    color: var(--button-color);
}
#char2 {
    padding-top: 300px;
    padding-bottom: 300px;
}

/*animate section*/
.animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1s cubic-bezier(0.25, 0.1, 0.25, 1); 
    will-change: opacity, transform; /* Optimalkan untuk animasi */
}

.animate-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Add a slight delay for each subsequent section */
.animate-section:nth-child(2) {
    transition-delay: 0.2s;
}

.animate-section:nth-child(3) {
    transition-delay: 0.4s;
}

.animate-section:nth-child(4) {
    transition-delay: 0.6s;
}