@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f0f0;
    color: #333;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #333;
}

.logo img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(360deg);
}

.hero {
    background: linear-gradient(to right, #ff5f6d, #ffc371);
    color: white;
    padding: 100px 20px;
    text-align: center;
    flex-grow: 1;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.2em;
    margin: 20px 0;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
}

.cta {
    background-color: #333;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.4s ease forwards;
}

.cta:hover {
    background-color: #555;
    transform: scale(1.05);
}

.about, .features, .contact, .premium-apps {
    padding: 60px 20px;
    text-align: center;
    flex-grow: 1;
    background-color: white;
    margin: 0 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1em;
    color: #555;
    opacity: 0; /* Tambahkan untuk animasi */
    transform: translateY(20px); /* Tambahkan untuk animasi */
    animation: fadeInUp 1.4s ease forwards; /* Tambahkan untuk animasi */
}

.features {
    background-color: #f9f9f9;
}

.feature-item {
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.6s ease forwards;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h3 {
    font-weight: 600;
    color: #333;
}

.feature-item p {
    color: #777;
}

.feature-item i {
    color: #ff5f6d;
    font-size: 2em;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: auto;
    font-size: 0.9em;
}

/* CSS untuk Modal (Popup) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.modal input,
.modal textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.modal button {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal button:hover {
    background-color: #555;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .cta {
        padding: 10px 20px;
    }

    .contact form {
        width: 90%;
    }

    .about p, .features p {
        font-size: 1em;
    }

    .about, .features, .contact, .premium-apps {
        margin: 10px;
        padding: 40px 20px;
    }
}

/* CSS untuk Logo Aplikasi Premium */
.premium-apps {
    background-color: #f9f9f9;
}

.premium-apps h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.app-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.app-logo-item {
    background-color: white;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    margin: 10px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.6s ease forwards;
}

.app-logo-item:hover {
    transform: translateY(-10px);
}

.app-logo-item img {
    max-width: 80%;
    max-height: 80%;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .app-logo-item {
        flex: 1 1 45%;
    }
}
