:root {
    --dark-blue: #101835;
    --navy-blue: #192142;
    --accent-blue: #4169E1;
    --text-light: #FFFFFF;
}
#home {
    padding-top: 120px; 
    padding-bottom: 3rem;
}

html {
    overflow-x: hidden;
    position: relative; 
  }

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1A2646 0%, #0A0F1C 100%);
    color: var(--text-light);
    padding-top:0;
    overflow-x: hidden; 
}

.navbar {
    background-color: var(--dark-blue);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0px 10px #FFFFFF;
}

.nav-link {
    color: var(--text-light);
    margin-right: 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-blue);
}

.navbar-toggler {
    box-shadow: 0 0px 10px #4C83FF;
}

.btn-chirru {
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--text-light);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 0px 10px #FFFFFF;
}

.btn-chirru:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.main-content {
    padding: 2rem 0;
}

.prof-icon {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.prof-icon:hover {
    filter: grayscale(0%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--accent-blue);
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-description {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 90%;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    border: none;
    padding: 0.75rem 2rem;
    margin-right: 1rem;
    border-radius: 30px;
    box-shadow: 0 0px 10px #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    box-shadow: 0 0px 10px #4C83FF;
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.img-fluid {
    box-shadow: 0 0px 10px #4C83FF;
}

.profile-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0px 10px #FFFFFF;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.profile-image:hover {
    filter: grayscale(0%);
}

.about-me {
    padding: 3rem 0;
}

.skill-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skill-icon {
    width: 100px;
    height: 100px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.skill-icon:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}


.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
    width: 100%;
    height: auto; 
    border-radius: 15px;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: white;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* Timeline Experience Section Styles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background-color: #ffffff;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    width: 3px;
    background-color: #ffffff;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    z-index: 2;
}

.timeline-item::after {
    content: '';
    display: block;
    clear: both;
}

.timeline-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #192142;
    border: 3px solid #ffffff;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot i {
    color: #ffffff;
    font-size: 18px;
}

.timeline-content {
    position: relative;
    width: 45%;
}

.timeline-item.left .timeline-content {
    float: left;
    text-align: left;
    padding-right: 40px;
}

.timeline-item.right .timeline-content {
    float: right;
    text-align: left;
    padding-left: 40px;
}

.timeline-card {
    background-color: rgba(25, 33, 66, 0.8);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.timeline-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.timeline-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.8;
}

footer {
    background-color: var(--dark-blue);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    opacity: 0.7;
}


/* Responsive adjustments */
/* URUTAN DIMULAI DARI BESAR KE KECIL */

@media (max-width: 991px) {
    .timeline-line {
        left: 40px;
    }
    
    .timeline-dot {
        left: 40px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        float: right;
        padding-left: 40px;
        text-align: left;
    }
    
    .timeline-item.left .timeline-content {
        float: right;
        text-align: left;
        padding-left: 40px;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .profile-image {
        margin-top: 2rem;
    }
    
    /* Tombol hero sudah di-handle di 576px, tapi jika ingin di 767px juga, tambahkan di sini */
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-right: 0;
    }
}


@media (max-width: 576px) {
  /* HAPUS BLOK CSS YANG AGRESIF */
  /* BLOK INI DIGANTI DENGAN YANG LEBIH SPESIFIK DI BAWAH */

  /* MEMBUAT TAMPILAN HERO SECTION TEXT-ALIGN CENTER DI MOBILE */
  #home .col-lg-7 {
    text-align: center;
  }
  .hero-description {
    max-width: 100%; /* Izinkan deskripsi hero full width di center */
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .navbar-collapse.show {
    display: flex;
  }

  .nav-link {
    margin: 0.5rem 0;
    width: 100%;
    text-align: left;
  }

  .navbar,
  .navbar-brand,
  .nav-link {
    /* Hapus .btn-chirru dari sini */
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* PERBAIKI ATURAN TOMBOL */
  .hero-buttons .btn {
    /* Hanya target tombol di hero */
    width: 100%;
    margin: 0.5rem 0;
  }

  /* Biarkan .btn-chirru di navbar menggunakan style default-nya */
  /* tidak perlu aturan width: 100% untuk .btn-chirru di sini */


  .profile-image {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-item,
  .timeline-content {
    width: 100% !important;
    padding: 1rem;
    float: none;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  /* ATURAN DARI 575px DIGABUNG KE SINI */
  .timeline-card h3 {
        font-size: 1.1rem;
    }
    
    .timeline-card p {
        font-size: 0.9rem;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
}



