/* -- Reset & Base Styles -- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
    --card-bg: #1e293b;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

span {
    color: var(--accent-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* -- Navigasi -- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* -- Hero Section -- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 30px;
    color: #cbd5e1;
    font-size: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* -- Tombol Global -- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #0f172a;
}

/* -- Section Global Spacing -- */
section {
    padding: 100px 5%;
}

/* -- Tentang & Skills -- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.skill-tag {
    background-color: var(--card-bg);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* -- Timeline Pengalaman & Pendidikan -- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--accent-color);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.timeline-item h4 {
    font-size: 1.3rem;
}

.timeline-item h5 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 500;
}

/* -- Proyek (DIROMBAK TOTAL) -- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Ukuran kartu lebih seragam */
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column; /* Biarkan info & tombol tersusun ke bawah */
}

/* Tata Letak Gambar Proyek agar tidak tumpang tindih */
.project-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Tentukan rasio aspek yang seragam untuk semua gambar */
    overflow: hidden;
    border-bottom: 2px solid var(--accent-color);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gunakan cover tetapi dalam aspect-ratio seragam */
    transition: transform 0.3s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05); /* Zoom saat hover */
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.project-info {
    padding: 25px; /* Padding kembali seragam */
    flex: 1; /* Biarkan info mengambil sisa ruang kartu */
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.project-meta {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px; /* Jarak untuk tombol */
}

.project-links {
    display: flex;
    justify-content: center; /* Tombol di tengah */
    margin-top: auto; /* Tekan tombol ke bawah kartu secara paksa */
}

/* Gaya Tombol Demo yang Lebih Ramping */
.btn-demo {
    display: inline-block;
    padding: 8px 18px;
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-demo:hover {
    background-color: var(--accent-color);
    color: #0f172a;
}

/* -- Kontak -- */
.contact {
    text-align: center;
}

.contact-links {
    margin-top: 30px;
}

/* -- Footer -- */
footer {
    text-align: center;
    padding: 30px;
    background-color: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* -- Responsive Media Queries -- */
@media screen and (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 25px 0;
    }

    .hamburger {
        display: block;
    }
}