/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 2rem;
    font-weight: bold;
    margin-right: auto; /* Tambahkan aturan CSS ini */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff4081;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background: linear-gradient(to right, #ff4081, #81d4fa);
    color: #fff;
    padding: 2rem;
    overflow: hidden;
}

.hero-section h1,
.hero-section p,
.cta-button {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation-delay: 0.5s;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation-delay: 1s;
}

.cta-button {
    background-color: #ff4081;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    animation-delay: 1.5s;
}

.cta-button:hover {
    background-color: #ff79a9;
}

.content-section {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #fff;
}

.content-section:nth-of-type(even) {
    background-color: #f9f9f9;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label {
    font-size: 1rem;
    margin-top: 1rem;
}

form input, form textarea {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #ff4081;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #ff79a9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* Tambahkan gaya ini ke file CSS kamu */
.content-section {
    max-width: 800px; /* Atur lebar maksimal sesuai kebutuhan */
    margin: 0 auto;   /* Agar elemen berada di tengah */
    text-align: center; /* Agar teks rata tengah */
    padding: 20px;    /* Tambahkan padding untuk ruang tambahan */
}

