/* Reset dan Font Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    overflow-y: scroll;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    padding: 0 2rem;
    height: 65px;
    position: fixed;
    top: 0;
    width: 100vw; /* Changed to 100vw */
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-brand a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links ul {
    list-style: none;
    display: flex;
}

av-links li {
    margin-left: 25px;
}.n

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #34495e;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Konten Utama */
.main-content-wrapper {
    width: 100%;
    padding-top: 65px; /* Offset for fixed navbar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeInAnimation ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.content {
    max-width: 960px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 20px;
    flex-grow: 1; /* Make content grow to push footer down */
}

section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}
section:last-child { border-bottom: none; }

h1, h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* Halaman Beranda */
.hero {
    text-align: center;
}

.home-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-button {
    display: inline-block;
    margin-top: 1rem; /* Use 1rem as in the original inline style */
    padding: 12px 25px;
    background-color: #34495e; /* Use the theme color */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Halaman Tentang Saya */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the items horizontally */
    gap: 40px; /* Increase gap slightly */
    flex-wrap: wrap; /* Allow wrapping if screen is narrow */
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.about-text {
    flex: 1;
    max-width: 500px; /* Add max-width for readability */
}

/* Halaman Pendidikan & Pengalaman (Timeline) */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.timeline-item h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Halaman Keterampilan */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Halaman Kontak */
section.contact {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.contact-form, .map-container {
    flex: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #34495e;
    box-shadow: 0 0 8px rgba(52, 73, 94, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: #34495e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #2c3e50;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 385px; /* Match form height better */
    border-radius: 8px;
    border: 0;
}

.social-media {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.social-media h3 {
    margin-bottom: 20px;
}

.social-media ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-media img,
.social-media svg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}

.social-media a:hover img,
.social-media a:hover svg {
    transform: scale(1.15);
}

.skill-category {
    width: 45%;
    min-width: 250px; /* Prevent it from getting too squished */
}

/* Skills Table Styles */
.skills-table-container {
    display: flex;
    justify-content: center; /* Center the table */
    margin-top: 20px; /* Add some space */
}

.skills-table {
    width: 100%; /* Take full width of its container */
    max-width: 800px; /* Limit max width for readability */
    border-collapse: collapse;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius applies to table corners */
}

.skills-table th, .skills-table td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: top; /* Align content to the top */
}

.skills-table th {
    background-color: #34495e;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.skills-table td {
    background-color: #ffffff;
}

.skills-table td ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-table td ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.skills-table td ul li:last-child {
    border-bottom: none;
}

/* Halaman Tentang Saya - Hobi */
.hobbies {
    margin-top: 40px;
    text-align: center;
}

.hobbies h3 {
    margin-bottom: 20px;
    text-align: center;
}

.hobbies ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0;
}

.hobbies li {
    background-color: #ecf0f1; /* Use a light blue-grey from the navbar palette */
    color: #34495e; /* Use a dark blue for the text */
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hobbies li:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Animasi Reveal on Scroll */
.reveal {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

.reveal:hover{
    transform: translateY(-5px);
}

.reveal.visible {
    opacity: 1;
}

/* Card Layout */
.experience-cards, .portfolio-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 10px;
    text-align: left;
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
}

.card-button {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: auto;
}

.card-button:hover {
    background-color: #555;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #2c3e50; /* Theme dark blue */
    color: #ecf0f1; /* Light text color */
    border-top: 1px solid #ddd; /* Keep border, but it might not be visible on dark background */
}

/* Responsif */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        background-color: #34495e;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #46627f;
    }
    .nav-links li:last-child a { border-bottom: none; }

    .hamburger-menu {
        display: block;
    }

    .content {
        padding: 0 15px;
        margin: 1.5rem auto;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form, .map-container {
        width: 100%;
    }

    .about-content {
        flex-direction: column;
    }

    .profile-pic {
        width: 150px; /* Smaller fixed size */
        height: 150px; /* Maintain aspect ratio */
        margin: 0 auto; /* Center the image */
    }

    .about-text {
        width: 100%; /* Keep text full width */
    }

    .skills-container {
        flex-direction: column;
    }

    .artikel-item {
        flex-direction: column; /* Stack image and text */
        align-items: center; /* Center items when stacked */
    }
    .artikel-gambar {
        width: 100%; /* Full width on mobile */
        height: auto; /* Maintain aspect ratio */
        max-height: 200px; /* Prevent image from being too tall */
        margin-bottom: 1rem; /* Add margin below image */
    }
}