/* --- Reset & Global Styles --- */
:root {
    --primary-color: #0f3460;
    --accent-color: #e94560;
    --bg-dark: #1a1a2e;
    --bg-light: #16213e;
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(26, 26, 46, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://source.unsplash.com/random/1920x1080/?technology');
    background-size: cover;
    background-position: center;
    padding-top: 60px;
}

.hero h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.hero h1 {
    font-size: 3rem;
    margin: 10px 0;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--text-color);
    transition: transform 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #c0354c;
}

/* --- General Section Styles --- */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* --- About Section (Circular Photo) --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-img img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%; /* Ini membuat foto bulat */
    border: 5px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.about-text {
    max-width: 600px;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* --- Biodata Table --- */
.biodata-table {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

td:first-child {
    font-weight: 600;
    width: 200px;
    color: var(--accent-color);
}

/* --- Timeline (Education) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    padding-left: 30px;
    border-left: 2px solid var(--accent-color);
    margin-bottom: 30px;
    position: relative;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: -8.5px;
    top: 5px;
}

.timeline-content {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Skills --- */
.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill-box {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar span {
    display: block;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    width: 0; /* Animasi JS nanti */
    transition: width 1.5s ease-in-out;
}

/* --- PKL --- */
.pkl-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pkl-header {
    background-color: var(--primary-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.pkl-body {
    padding: 20px;
}

.pkl-body ul {
    list-style: disc;
    margin-left: 20px;
}

/* --- Projects --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* --- Contact --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    background-color: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        top: 60px;
        background-color: var(--bg-light);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in;
    }

    .nav-links.active {
        transform: translateY(0%);
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        text-align: center;
    }
    
    .about-img {
        margin-bottom: 20px;
    }

    .biodata-table td {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .biodata-table td:first-child {
        margin-top: 10px;
    }
}