body {
    background-color: #121212;
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

.hero-container {
    padding: 3% 0%;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Big Text Styling */
.big-text-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.big-text {
    padding-top: 2%;
    font-weight: 900;
    font-size: 24vw; /* Sesuai request kamu */
    text-transform: uppercase;
    letter-spacing: -2.5vw;
    line-height: 0.75;
    margin: 0;
}

.porto-text {
    align-self: flex-start;
    margin-left: -1vw;
    -webkit-text-stroke: 2px #000;
}

/* FOLIO Wrapper: Untuk layering depan/belakang */
.folio-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Align ke kanan */
    margin-top: -1vw; /* Merapatkan PORTO dan FOLIO */
}

.folio-bg {
    color: white;
    z-index: 1; /* Di paling belakang */
}

.folio-outline {
    position: absolute;
    right: 0;
    top: 0;
    color: transparent;
    -webkit-text-stroke: 2px #000; /* Outline hitam 3px */
    z-index: 3; /* Di paling depan */
    pointer-events: none; /* Biar tetap bisa klik elemen di bawahnya */
}

/* Bio Content: Naik ke atas agar dekat dengan PORTO */
.bio-content {
    margin-top: -15vw; /* Menaikkan konten bio ke atas */
    position: relative;
    z-index: 4; /* Di atas segalanya agar terbaca */
    max-width: 500px;
    padding-left: 2%;
}

/* Foto Styling dengan Fade */
.photo-wrapper {
    position: absolute;
    right: -3%;
    top: 2%;
    width: 45%;
    z-index: 2; /* DI ANTARA folio-bg (1) dan folio-outline (3) */
    text-align: right;
}

.profile-img {
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.terminal-text {
  font-family: 'Fira Code'; 
  font-size: 1rem; 
  opacity: 0.8; 
  padding-left: 2%;
  z-index: 4;
}

.social-icons a {
    color: white;
    font-size: 2.5rem;
    margin-right: 24px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #0d6efd;
    transform: translateY(-3px);
}

#yellow {
  color: yellow;
}
#gray {
  color: gray;
}
#blue {
  color: rgb(86, 86, 253);
}

#projects {
    padding: 32px 0;
    background-color: #0c0c0c;
    position: relative; /* Wajib ada ini */
}

/* Membuat lapisan gradasi di paling atas section project */
#projects::before {
    content: "";
    position: absolute;
    top: -100px; /* Menjorok ke atas (ke area Hero Section) */
    left: 0;
    width: 100%;
    height: 100px; /* Tinggi area fadingnya */
    /* Gradasi dari transparan ke hitam pekat (#0c0c0c) */
    background: linear-gradient(to bottom, transparent, #0c0c0c);
    z-index: 1; /* Di bawah teks Project tapi di atas background */
    pointer-events: none; /* Biar gak ganggu klik */
}

/* Pastikan header tetap di atas gradasi */
.sticky-project-header {
    position: sticky;
    top: 0;
    background-color: #0c0c0c;
    z-index: 10;
    padding-top: 20px;
}

.project-title {
    font-weight: 900;
    font-size: calc(2rem + 2vw);
    margin: 0;
}

.project-line {
    height: 2px;
    background-color: white;
    width: 100%;
    margin-top: 5px;
}

.year {
    font-family: 'Fira Code', monospace;
    color: #888;
    padding: 50px 0 15px 0;
    font-size: 2rem;
    transition: top 0.3s ease;
}

/* Project Card Styling */
.project-card {
    margin-bottom: 40px;
    transition: 0.3s;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-name {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}
.project-links {
    padding-right: 20px;
}
.project-links a {
    color: white;
    font-size: 2.5rem;
    margin-left: 30px;
    transition: 0.2s;
}

.project-links a:hover { color: #0d6efd; }

.project-desc {
    color: #adb5bd; /* Secondary color */
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Tech Badges */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge-outline {
    border: 1px solid #444;
    color: white;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    background: transparent;
}

/* Image Grid Fix & Clickable */
.img-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: brightness(0.7);
    object-position: top center;
}

.img-wrapper:hover img { transform: scale(1.05); }

@media (min-width: 768px) {
    .project-card:nth-child(odd) {
        padding-right: 80px; /* Kasih ruang di kanan kartu ganjil */
    }
    .project-card:nth-child(even) {
        padding-left: 80px;  /* Kasih ruang di kiri kartu genap */
    }
}

/* Penyesuaian Mobile */
@media (max-width: 768px) {
    .hero-container {
        padding: 5% 5%;
    }
    .big-text {
        font-size: 25vw; /* Lebih besar di mobile agar impactfull */
        letter-spacing: -10px;
    }
    .photo-wrapper {
        position: relative;
        width: 100%;
        margin-top: -50px;
        margin-bottom: -36px;
        right: auto;
    }
    .bio-content {
        margin-top: 20px;
        text-align: center;
        max-width: 100%;
    }
    .folio-container {
        justify-content: center;
        margin-top: -4vw;
    }

    .porto-text {
      -webkit-text-stroke: 1px #000;
    }

    .folio-bg {
      opacity: 0; /* Di paling belakang */
    }

    .folio-outline {
      color: white;
      z-index: 1;
      position: absolute;
      right: 0;
      top: 0;
      -webkit-text-stroke: 1px #000;
    }

    .terminal-text {
      /* display: none;  */
         font-size: 0.5rem;
    }

    .sticky-project-header, .year {
        text-align: center;
    }
    .project-line {
        width: 80%;
        margin: 5px auto;
    }
    .project-header {
        flex-direction: column;
        text-align: center;
    }
    .project-links { margin-top: 10px; margin-left: 0; }
    .project-desc { text-align: center; }
    .tech-stack { justify-content: center; }
    .project-links a {
        font-size: 2rem;  
    }
}

.minimal-footer {
    padding: 20px 0;
    background-color: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Garis tipis halus */
}

.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #555; /* Warna abu-abu gelap agar tidak mencolok */
    letter-spacing: 1px;
}

.footer-text span {
    color: #888;
}
