/* ================================================
   SIDEBAR CSS - COMPATIBLE WITH RESPONSIVE
   File ini akan di-override oleh responsive.css untuk mobile
   ================================================ */

/* RESET BODY - Pindahkan ke global.css */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  display: flex;
  background-color: #f0f2f5;
  overflow-x: hidden; /* Tambahan untuk mobile */
}

/* CONTAINER - Desktop Default */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* SIDEBAR - Desktop Default */
.sidebar {
  background: #008080;
  color: white;
  padding: 20px;
  width: 25%;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto; /* Tambahan untuk konten panjang */
  overflow-x: hidden;
  box-sizing: border-box; /* Penting untuk responsive */
  flex-shrink: 0; /* Jangan menyusut */
}

/* PROFILE IMAGE */
.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease; /* Smooth transition */
}

.profile-img:hover {
  transform: scale(1.05);
}

/* PROFILE NAME & TITLE */
.profile-name {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 10px 0 5px 0;
  text-align: center;
}

.profile-title {
  font-size: 1rem;
  color: #b3e0d1;
  margin: 0 0 15px 0;
  text-align: center;
  font-weight: 300;
}

/* BIO DESCRIPTION */
.bio-description {
  background: none;
  padding: 0;
  border-radius: 0;
  text-align: justify;
  font-size: 0.85rem;
  line-height: 1.6;
  color: white;
  margin: 16px 0;
  text-align: center; /* Lebih baik center untuk mobile */
}

/* HIRE BUTTON */
.btn-hire {
  background: #ff6f4c;
  padding: 12px 24px;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  margin: 15px 0;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

.btn-hire:hover {
  background: #e55a3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 76, 0.3);
}

/* SKILLS SECTION */
.skills {
  background: #9AD0C2;
  color: #008080;
  padding: 20px;
  width: 100%;
  text-align: left;
  font-weight: bold;
  border-radius: 12px;
  margin: 15px 0;
  box-sizing: border-box;
}

.skills h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  text-align: center;
}

.skill-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* Center untuk mobile */
}

.skill-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
  border-radius: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.skill-logos img:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

/* TRUSTED SECTION */
.trusted {
  background: #ECF4D6;
  width: 100%;
  padding: 20px;
  color: #222;
  border-radius: 12px;
  margin: 15px 0;
  box-sizing: border-box;
}

.trusted h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  text-align: center;
  color: #333;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.client-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  border-radius: 6px;
}

.client-logos img:hover {
  opacity: 1;
}

/* KONTEN SCROLL - Desktop Default */
.konten-scroll {
  background: #e9ecf3;
  width: 75%;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  flex: 1; /* Tambahan untuk flexibility */
}

.main-content-scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 30px;
  box-sizing: border-box;
}

/* MASONRY GRID - Desktop Default */
.masonry-grid {
  column-count: 3;
  column-gap: 16px;
  width: 100%;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.masonry-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item p {
  padding: 15px;
  margin: 0;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* SCROLLBAR STYLING */
.sidebar::-webkit-scrollbar,
.main-content-scrollable::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.main-content-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.main-content-scrollable::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

/* RESPONSIVE PREPARATION */
/* Class helper untuk JavaScript */
.mobile-layout {
  display: block !important;
}

.mobile-layout .container {
  display: block !important;
  height: auto !important;
}

.mobile-layout .sidebar {
  width: 100% !important;
  height: auto !important;
}

.mobile-layout .konten-scroll {
  width: 100% !important;
  height: auto !important;
}

/* FOCUS STATES untuk Accessibility */
.btn-hire:focus,
.masonry-item:focus {
  outline: 2px solid #ff6f4c;
  outline-offset: 2px;
}

.skill-logos img:focus,
.client-logos img:focus {
  outline: 2px solid #008080;
  outline-offset: 2px;
}