/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Navbar */
.navbar {
    background-color: #004aad;
    padding: 1rem 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar .nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: #ffcc00;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(18, 135, 135, 0.8), rgba(0, 74, 173, 0.8)), url('images/profile.jpg') center/cover no-repeat;
    color: white;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.intro-text h2 span {
    color: #c9a410;
}

.intro-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    background-color: #ffcc00;
    color: #121922;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #e6b800;
}

/* Section Titles */
section h2 {
    text-align: center;
    margin: 2rem 0 1rem;
    font-size: 2rem;
    color: #28c2ec;
}

/* About Section */
#about p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: #004aad;
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #555;
}

.btn-small {
    background-color: #004aad;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: #002f6c;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
    transition: transform 0.3s;
}

.skill-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.skill-item p {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #004aad;
    font-size: 1rem;
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.05);
}

/* Certificates Section */
.certificates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.certificate-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
    padding: 1rem;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.certificate-item img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.7rem;
    border: 2px solid #004aad;
}

.certificate-item p {
    font-size: 0.98rem;
    color: #004aad;
    text-align: center;
    font-weight: 500;
}

.certificate-item:hover {
    transform: translateY(-8px) scale(1.03);
}

/* Responsive for skills & certificates */
@media (max-width: 600px) {
    .skills-grid, .certificates-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Contact Form */
#contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form label {
    font-weight: 600;
}

#contact-form input,
#contact-form textarea {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
}

#contact-form button {
    align-self: flex-start;
}

#form-message {
    text-align: center;
    font-weight: 600;
    color: green;
}

/* Footer */
footer {
    background-color: #004aad;
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }
}
