/* RESET DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Supaya semua link tidak ada garis bawah */
a {
    text-decoration: none;
}

/* VARIABEL WARNA */
:root {
    --bg-dark: #0f172a;       /* Hitam Kebiruan */
    --bg-card: #1e293b;       /* Abu Gelap */
    --text-main: #f8fafc;     /* Putih Terang */
    --text-muted: #94a3b8;    /* Abu-abu Teks */
    --accent: #06b6d4;        /* Cyan Terang */
    --accent-hover: #0891b2;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.status-badge {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(6, 182, 212, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 20px 0;
}

.highlight {
    color: transparent;
    background: linear-gradient(to right, var(--accent), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    border: 1px solid #334155;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent);
}

/* HERO IMAGE */
.hero-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.img-box {
    width: 350px;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid #334155;
    position: relative;
    box-shadow: 20px 20px 0px rgba(6, 182, 212, 0.1);
}

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

/* SKILLS & PROJECTS */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

/* SKILLS GRID */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Kartu ke tengah */
    gap: 30px;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #334155;
    text-align: center;
    transition: 0.3s;
    flex: 1 1 300px;
    max-width: 350px;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.skill-card .icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* PROJECT GRID */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #334155;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* IMAGE PROYEK */
.card-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #334155;
    background-color: #020617;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Gambar utuh, tidak terpotong */
    transition: transform 0.5s ease;
    cursor: zoom-in; /* Cursor berubah jadi kaca pembesar */
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

/* CARD BODY */
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack span {
    background-color: #0f172a;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid #334155;
}

.read-more {
    color: var(--text-main);
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
}

.read-more:hover {
    color: var(--accent);
}

/* --- CONTACT SECTION (FORM & DIRECT) --- */
.contact {
    padding: 100px 0;
    background-color: #0b1120; /* Sedikit lebih gelap */
    border-top: 1px solid #334155;
}

.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.sub-title {
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.contact .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Form Container */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #334155;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Input & Textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-dark);
    border: 1px solid #334155;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Tombol Kirim */
.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--accent);
    color: #0f172a;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

/* --- DIRECT CONTACT (ICON SOSMED DI BAWAH FORM) --- */
.direct-contact {
    margin-top: 40px;
    text-align: center;
}

.direct-contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.direct-contact p::before,
.direct-contact p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background-color: #334155;
}

.direct-contact p::before { left: -70px; }
.direct-contact p::after { right: -70px; }

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--bg-card);
    border: 1px solid #334155;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.contact-icons a:hover {
    background-color: var(--bg-dark);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.2);
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #334155;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* LIGHTBOX (MODAL) STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--accent);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
}

/* RESPONSIVE (HP) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        padding: 20px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        color: white;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-img {
        justify-content: center;
    }
    
    .img-box {
        width: 250px;
        height: 250px;
    }
}