/* Reset dan 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: #3b2727;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Navbar */
.navbar {
    background-color: #212d53;
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #295d80;
}

/* Hamburger menu for mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    display: block;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f6d27, #0f9fac);
    color: rgb(21, 44, 83);
    padding: 6rem 0;
    text-align: center;
    padding-top: 120px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 350px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-text h1 span {
    color: #c3bd89;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1 1 300px;
    text-align: center;
}

.hero-image img {
    width: 250px;
    max-width: 100%;
    border-radius: 50%;
    border: 5px solid #f39c12;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary {
    background-color: #f39c12;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 8px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.btn-primary:hover {
    background-color: #17a158;
}

/* Sections */
section {
    padding: 4rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #304f6d;
}

/* About */
.about {
    padding: 6rem 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    width: 100%;
    justify-content: center;
}

.about h2 {
    margin-bottom: 1rem;
    color: #222975;
}

.about p:first-of-type {
    font-weight: bold;
}
/* Projects */

.projects {
    padding: 6rem 0;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 0.75rem;
    color: #1a4969;
}

.project-card p {
    margin-bottom: 1rem;
    color: #666;
}

.project-card a {
    color: #f39c12;
    font-weight: 600;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

.project-card {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}


.project-card p {
    margin-bottom: 1rem;
    color: #666;
}

/* Skills */

.skills {
    padding: 6rem 0;
}

.skill-list li {
    background-color: #1f4f70;
    color: rgb(255, 255, 255);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}
.skill-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    cursor: default;
    transition: transform 0.3s ease;
}

.skill-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.skill-item p {
    font-weight: 600;
    color: #236b69;
    text-align: center;
}

.skill-item:hover {
    transform: scale(1.1);
}
/* Sertifikat */
.certificates {
    padding-top: 6rem;
}

.certificate-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.certificate-card {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-card img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.certificate-card h3 {
    margin-bottom: 0.5rem;
    color: #2980b9;
}

.certificate-card p {
    margin-bottom: 1rem;
    color: #666;
}

.certificate-card a {
    color: #f39c12;
    font-weight: 600;
    text-decoration: none;
}

.certificate-card a:hover {
    text-decoration: underline;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background-color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
    color: #343a40;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    width: 100%;
}

label {
    font-weight: 600;
    color: #555;
    text-align: left;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #6f42c1;
    box-shadow: 0 0 5px rgba(111, 66, 193, 0.5);
}

#form-message {
    margin-top: 1rem;
    font-weight: 600;
}


/* Footer */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        right: 0;
        background-color: #2c3e50;
        height: calc(100% - 60px);
        width: 200px;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: block;
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-image img {
        width: 180px;
        border-width: 4px;
    }
}
