/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .home-image {
    width: 200px;
    border-radius: 50%;
    margin-top: 1rem;
    text-align: center;
    background-color: #4e342e;
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #4e342e;
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
  }
  
  .close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
  }
  
  body {
    background-color: #fff;
    color: #4e342e; /* coklat kopi */
    line-height: 1.6;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul {
    list-style: none;
  }
  
  /* Container */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
  }
  
  /* Header */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #4e342e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 10px;
  }
  
  
  .logo img {
    height: 40px;
    margin-right: 10px;
  }
  
  .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
  }
  
  nav {
    display: flex;
    gap: 1.5rem;
  }
  
  nav a {
    color: #fff;
    font-weight: 500;
  }
  
  .extra-nav button {
    background-color: #d7ccc8;
    color: #4e342e;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
  }
  
  .hamburger-menu {
    display: none;
  }
  
  /* Hero */
  .typewriter {
    display: inline-block;
    border-right: 2px solid #4e342e;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(20, end), blink 0.75s step-end infinite;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  @keyframes blink {
    50% { border-color: transparent }
  }
  
  .hero {
    background-color: #d7ccc8;
    padding: 40px 0;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
  }
  
  .hero h1 span {
    color: #6d4c41;
  }
  
  .hero button {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background-color: #4e342e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
  }
  
  /* About */
  .about-me {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* Supaya tetap responsif di layar kecil */
  }
  
  .about {
    padding: 4rem 0;
    background-color: #fff;
  }
  
  .about .content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
  }
  
  .profile .image-box img {
    width: 250px;
    border-radius: 12px;
  }
  
  .description h1 {
    font-size: 2rem;
  }
  
  .description h2 {
    color: #6d4c41;
    font-weight: 600;
  }
  
  .description p {
    margin-top: 1rem;
    max-width: 500px;
  }
  .cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.2rem;
    background-color: #4e342e;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .cta-btn:hover {
    background-color: #6d4c41;
  }
  .about-me {
    animation: fadeIn 1.2s ease-in;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
    
  
  /* Skills */
  .skill .content {
    max-width: 700px;
    margin: auto;
  }
  
  .skill-box {
    margin-bottom: 1.5rem;
  }
  
  .label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    color: #4e342e;
    margin-bottom: 0.5rem;
  }
  
  .skill-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }
  
  .progress-bar {
    width: 100%;
    background-color: #d7ccc8;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .progress {
    height: 100%;
    background-color: #4e342e;
    border-radius: 6px 0 0 6px;
    transition: width 1s ease-in-out;
  }
   
  
  .project {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .project .container {
    padding: 0 20px;
  }
  
  .project .projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Tetap 2 kolom */
    gap: 30px; /* Lebih longgar */
    justify-items: center;
  }
  
  .card {
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 450px; /* Lebih besar dari sebelumnya */
    cursor: pointer;
    position: relative;
  }
  
  .card img {
    width: 100%;
    height: 280px; /* Lebih tinggi, bisa sesuaikan lagi */
    object-fit: cover; /* Menjaga proporsi */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  
  .card .description {
    padding: 1rem;
    position: relative;
    z-index: 2;
    background-color: #f5f5f5;
  }
  
  .card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .card .action {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
  }
  
  .card .action button {
    background-color: #4e342e;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .card:hover {
    transform: scale(1.03);
  }
  
  .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #323cce;
    opacity: 0;
    transition: 0.5s ease;
    z-index: 1;
  }
  
  .card:hover::before {
    opacity: 0.8;
  }
  
  .card:hover .description h1,
  .card:hover .description p {
    color: #ffffff;
  }
  
  .card:hover .action button {
    background-color: #fff;
    color: #d7ccc8;
  }

  .contact {
    background-color: #efebe9;
    padding: 4rem 0;
  }
  
  .contact .title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #4e342e;
  }
  
  .contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .contact-info {
    flex: 1;
    color: #4e342e;
  }
  
  .contact-info ul {
    list-style: none;
    margin-top: 1rem;
  }
  
  .contact-info li {
    margin-bottom: 0.5rem;
  }
  
  .contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #d7ccc8;
    border-radius: 6px;
    font-size: 1rem;
  }
  
  .contact-form button {
    background-color: #4e342e;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #6d4c41;
  }
  
  @media (max-width: 768px) {
    .contact-wrapper {
      flex-direction: column;
    }
  }
  
  
  /* Footer */
  footer {
    background-color: #4e342e;
    color: #fff;
    padding: 3rem 1rem;
  }
  
  footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
  }
  
  footer .logo a {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-left: 0.5rem;
  }
  
  footer .social-media-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  footer .social-media img {
    width: 30px;
    transition: transform 0.3s ease;
  }
  
  footer .social-media img:hover {
    transform: scale(1.1);
  }
  
  .link-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .link-container h1 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  
  .link-container ul li {
    margin-bottom: 0.5rem;
  }
  
  .link-container ul li a {
    color: #d7ccc8;
    font-size: 0.95rem;
  }
  
  .link-container ul li a:hover {
    text-decoration: underline;
  }
  
  @media (max-width: 768px) {
    nav {
      display: none;
    }
  
    .hamburger-menu {
      display: block;
      cursor: pointer;
    }
  
    .mobile-nav {
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      width: 250px;
      height: 100%;
      background-color: #4e342e;
      padding: 2rem;
      flex-direction: column;
    }
  
    .mobile-nav.active {
      display: flex;
    }
  
    .mobile-nav .nav-link {
      color: #fff;
      margin-bottom: 1rem;
      font-size: 1.1rem;
    }
  }
  