/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #ecf0f1;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    transition: max-height 0.3s ease-in-out;
}

.nav-links li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #3498db;
}

/* Navbar: hamburger menu untuk layar kecil */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #ecf0f1;
    margin-bottom: 4px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background-color: #2c3e50;
        border-radius: 0 0 10px 10px;
    }
    .nav-links.active {
        max-height: 300px;
    }
    .menu-toggle {
        display: flex;
    }
}

/* About: gambar dan teks stack vertikal di layar kecil */
@media (max-width: 480px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-img {
        margin: 0 auto 1rem auto;
        width: 140px;
        height: 140px;
    }
}

/* Projects: grid 1 kolom di layar kecil */
@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Skills: stack vertikal di layar kecil */
@media (max-width: 480px) {
    .skills-content {
        flex-direction: column;
        text-align: center;
    }
    .skills-img {
        margin: 0 auto 1rem auto;
        width: 150px;
    }
    .skills-list {
        justify-content: center;
    }
}

/* Certificates: grid 1 kolom di layar kecil */
@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Form: full width di layar kecil */
@media (max-width: 480px) {
    form {
        width: 90%;
        padding: 1.5rem;
    }
}

/* Footer: padding lebih kecil di layar kecil */
@media (max-width: 480px) {
    footer {
        padding: 1rem 0;
    }
}


/* Hero Section */
#hero {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    color: #ecf0f1;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: #3498db;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Sections */
.section {
    padding: 4rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.project-card p {
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background-color: #2c3e50;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #34495e;
}

/* Skills */
.skills-list li {
    background-color: #3498db;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.4);
}

.skills-img {
    width: 200px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #3498db;
    color: #fff;
    border-radius: 20px;
    padding: 1rem 1.2rem;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
    width: 110px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.skill-item:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 16px rgba(52,152,219,0.25);
}

.skill-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.skill-item span {
    margin-top: 0.3rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Responsive untuk skill grid */
@media (max-width: 768px) {
    .skills-list {
        gap: 1rem;
    }
    .skill-item {
        width: 90px;
        padding: 0.7rem 0.8rem;
    }
    .skill-item img {
        width: 36px;
        height: 36px;
    }
}


/* Contact */
.contact-list {
    list-style: none;
    text-align: center;
    font-size: 1.1rem;
}

.contact-list li {
    margin-bottom: 0.8rem;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.contact-list a:hover {
    text-decoration: underline;
}


/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    #hero {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* ... kode CSS sebelumnya tetap ... */

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.about-content p {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
    text-align: left;
    min-width: 220px;
}

/* Responsive: Stack vertikal di layar kecil */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    .about-content p {
        text-align: center;
    }
}


/* Projects Section */
.project-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Certificates Section */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.certificate-card:hover {
    transform: translateY(-10px);
}

.certificate-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.certificate-card h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* Contact Form */
form {
    max-width: 600px;
    margin: 1.5rem auto 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    resize: vertical;
}

.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Contact Info */
.contact-info {
    text-align: center;
    margin-top: 1rem;
}

.contact-list {
    list-style: none;
    font-size: 1.1rem;
}

.contact-list li {
    margin-bottom: 0.8rem;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Responsive updates */
@media (max-width: 768px) {
    .about-content,
    .skills-content {
        flex-direction: column;
        text-align: center;
    }

    .about-img,
    .skills-img {
        margin: 0 auto 1.5rem auto;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    #hero {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}
