/* DASAR & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #111111;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 12px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo-mobile {
    display: none;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    font-size: 1.2rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--black);
    transition: all 0.3s ease;
}

/* HERO SECTION */
.hero {
    min-height: 100vh; /* Changed to min-height for mobile safety */
    display: flex;
    align-items: center;
    padding: 120px 10% 80px; /* Added top padding for fixed nav */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.badge {
    background: var(--light-gray);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
    margin: 20px 0 10px;
    line-height: 1.1;
}

.role {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 20px;
}

.cursor { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.bio {
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 550px;
    font-size: 1rem;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-black { background: var(--black); color: var(--white); border: 1px solid var(--black); }
.btn-black:hover { background: #333; }

.btn-outline { border: 1px solid var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-white { background: var(--white); color: var(--black); border: none; cursor: pointer; }

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px; /* Square with rounded corners looks more modern */
    box-shadow: 20px 20px 0px var(--black); /* Simple monochrome decoration */
    filter: grayscale(0%); /* Force monochrome */
    transition: 0.5s;
}

.hero-image img:hover { filter: grayscale(0%); box-shadow: 10px 10px 0px var(--black); }

.socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

.socials a {
    color: var(--black); /* Force ALL icons black */
    font-size: 1.5rem;
    transition: 0.3s;
}

.socials a:hover { transform: translateY(-3px); color: var(--gray); }

/* SECTIONS COMMON */
.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--black);
}

/* SKILLS SECTION */
.skills-section { padding: 80px 10%; background: var(--light-gray); }

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.skill-card:hover { border-color: var(--black); transform: translateY(-5px); }
.skill-card i { font-size: 2rem; margin-bottom: 15px; color: var(--black); }
.skill-card h4 { margin-bottom: 10px; font-weight: 700; }
.skill-card p { font-size: 0.85rem; color: var(--gray); }

/* EXPERIENCE SECTION */
.experience { padding: 80px 10%; }

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Better responsiveness */
    gap: 25px;
}

.exp-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--black);
}

.exp-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-3px); }

.date {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--light-gray);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 15px;
}

.exp-content h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--black); }
.exp-content p { color: var(--gray); font-size: 0.9rem; }

/* PROJECTS SECTION */
.projects { padding: 80px 10%; }

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

.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    /* PENTING: overflow hidden agar gambar mengikuti sudut melengkung */
    overflow: hidden; 
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--black);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

/* Styling Gambar Proyek */
.project-img {
    width: 100%;
    height: 200px; /* Tinggi gambar tetap agar seragam */
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar tidak gepeng/terdistorsi */
    transition: 0.5s;
}

/* Efek Hover pada Gambar (Opsional: Zoom in dikit) */
.project-card:hover .project-img img {
    transform: scale(1.05);
}

/* Container untuk Teks di bawah gambar */
.card-body {
    padding: 25px; /* Memberi jarak teks dari pinggir */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Agar tinggi kartu seragam */
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-top h4 { font-size: 1.1rem; max-width: 70%; line-height: 1.4; }

.badge-tech {
    font-size: 0.7rem;
    background: var(--black);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

a{
   text-decoration: none;
   color: #000;
}

.role-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.project-card p { font-size: 0.9rem; color: var(--gray); }

/* Education  section */
/* SECTION */
.education {
  padding: 80px 8%;
  background:var(--light-gray);
  font-family: 'Poppins', sans-serif;
}

/* TITLE */
.section-title {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #000;
}

/* CONTAINER */
.education-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

/* TEKS */
.education-text {
  display: flex;
  flex-direction: column;
  padding-left: 30px;
}

/* ITEM (logo kiri, teks kanan) */
.education-item {
  display: flex;       
  align-items: center;    /* logo dan teks sejajar di tengah secara vertikal */
  gap: 20px;
  margin-bottom: 40px;
}
/* Logo education */
.education-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}


.education-item h4 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}


.education-item p {
  font-size: 15px;
}

/* GAMBAR */
.education-image {
  display: flex;
  justify-content: center;
}

.education-image img {
  max-width: 500px;
  height: auto;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .section-title {
    font-size: 48px;
  }

  .education-container {
    grid-template-columns: 1fr;
  }

  .education-container::before {
    left: 10px;
    height: 90%;
  }

  .education-item {
    padding-left: 40px;
  }

  .education-image {
    margin-top: 40px;
  }
}


/* CONTACT SECTION */
.contact {
    background: var(--black);
    color: var(--white);
    padding: 80px 10%;
}


.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-text h3 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-text p { color: #aaa; margin-bottom: 30px; }
.info-details p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }

.contact-form input, .contact-form textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: var(--white);
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--white);
}

/* FOOTER */
footer {
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    border-top: 1px solid var(--border);
}

/* MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar { top: 0; padding: 0; }
    .nav-container { 
        width: 100%; 
        border-radius: 0; 
        border: none;
        border-bottom: 1px solid var(--border);
        background: rgba(255,255,255,0.98);
        padding: 15px 20px;
    }
    
    .logo-mobile { display: block; }
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 60px; /* Tinggi navbar */
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: 100vh;
        text-align: center;
        padding-top: 50px;
        transition: 0.3s;
        gap: 40px;
    }

    .nav-links.active { left: 0; }
    
    /* Layout Adjustments */
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .cta-group { justify-content: center; }
    .socials { justify-content: center; width: 100%; }
    
    .contact-container { grid-template-columns: 1fr; gap: 40px; }
}