@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,600;0,700;1,400&display=swap");
/* Tambahkan font Dosis jika digunakan di HTML Anda */
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@400;500;600;700&display=swap");

/* --- 1. Global Styles & Variables --- */
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Warna yang konsisten dengan styles.css utama */
  --primary-color: #f85c70;
  /* Warna merah utama (sesuai --danger di styles.css) */
  --primary-color-rgb: 248, 92, 112;
  --text-dark: #212529; /* Disesuaikan agar konsisten dengan color body di styles.css */
  --text-light: #f8f9fa;
  /* Warna teks terang (sesuai --light di styles.css) */
  --bg-light: #fff;
  /* Warna latar belakang elemen terang */
  --bg-page: #f9f9f9;
  /* Warna latar belakang halaman */
  --bg-dark-section: #343a40;
  /* Warna latar belakang bagian gelap (sesuai --dark di styles.css) */
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.08);

  /* Add some new variables for better consistency and potential future use */
  --heading-font-weight: 700;
  --body-font-weight: 400;
  --transition-speed: 0.3s;
  --smooth-transition: all var(--transition-speed) ease; /* New: for smoother transitions */
}

html {
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  background-color: var(--bg-page);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Memastikan konten utama mengambil sisa ruang untuk mendorong footer ke bawah */
.section {
  padding: 50px 0;
}

.section.my-5 {
  flex-grow: 1;
  /* PENTING: Memastikan konten utama mengambil semua sisa ruang vertikal */
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--text-dark);
}

a:focus-visible {
  /* Accessibility improvement */
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px; /* Added border-radius for focus */
}

li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  color: var(--bg-light);
  background: var(--primary-color);
}

/* --- 2. Home Section (Header Case Study) --- */
.home {
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  position: relative;
  color: var(--text-light);
  overflow: hidden; /* Ensure background doesn't overflow */
  background-attachment: fixed; /* NEW: For parallax effect */
  background-position: center; /* Ensure it starts centered */
  background-size: cover; /* Ensure full cover, moved from specific .home-X */
  background-repeat: no-repeat; /* Ensure no repeat, moved from specific .home-X */
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.home > * {
  position: relative;
  z-index: 2;
}

/* Backgrounds untuk setiap halaman studi kasus */
.home-1 {
  background-image: url("https://raw.githubusercontent.com/Evan-Julian/Portofolio-Website/main/assets/imgs/CaseStudyHeader.png");
}

.home-2 {
  background-image: url("https://raw.githubusercontent.com/Evan-Julian/Portofolio-Website/main/assets/imgs/CaseStudyHeader2.png");
}

.home-3 {
  background-image: url("https://raw.githubusercontent.com/Evan-Julian/Portofolio-Website/main/assets/imgs/CaseStudyHeader3.png");
}

.home-4 {
  background-image: url("https://raw.githubusercontent.com/Evan-Julian/Portofolio-Website/main/assets/imgs/CaseStudyHeader4.png");
}

.home-5 {
  background-image: url("https://raw.githubusercontent.com/Evan-Julian/Portofolio-Website/main/assets/imgs/CaseStudyHeader5.png");
}

.home-6 {
  background-image: url("https://raw.githubusercontent.com/Evan-Julian/Portofolio-Website/main/assets/imgs/CaseStudyHeader6.png");
}

.home-text {
  max-width: 900px;
  margin-bottom: 25px;
}

.home-title {
  font-family: "Dosis", sans-serif; /* Gunakan font heading */
  font-size: 3.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  font-weight: var(--heading-font-weight);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInDown 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-delay: 0.5s;
}

.home-subtitle {
  font-size: 1.15rem;
  font-weight: var(--body-font-weight);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInDown 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-delay: 0.8s;
}

/* Keyframes for Home Section text animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

.home .btn {
  margin-top: 30px;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-delay: 1.1s;
}

/* Keyframes for Home Section button animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 3. Case Study Content Section --- */
.case-study-content {
  padding: 40px;
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 8px 30px var(--shadow-color);
  line-height: 1.7;
}

.case-study-content h3 {
  font-family: "Dosis", sans-serif; /* Gunakan font heading */
  color: var(--primary-color);
  font-size: 2.2rem;
  font-weight: var(--heading-font-weight);
  margin-top: 40px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  text-transform: capitalize;
  /* Hapus sticky, padding-top, box-shadow dari sini agar tidak "mengambang" */
  /* position: static; */
  /* padding-top: 0; */
  /* box-shadow: none; */
}

.case-study-content h4 {
  /* Styling untuk sub-heading seperti "User Research & Persona Development" */
  font-family: "Dosis", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.case-study-content h3:first-of-type {
  margin-top: 0;
}

/* Modern separator effect for h3 */
.case-study-content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    rgba(var(--primary-color-rgb), 0.3)
  );
  border-radius: 2px;
}

.case-study-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-align: justify;
}

.case-study-content ul,
.case-study-content ol {
  margin-bottom: 20px;
  padding-left: 0; /* Hapus padding default browser untuk ul/ol */
  margin-top: 15px;
}

.case-study-content .styled-list {
  /* Kelas baru untuk list kustom */
  list-style: none; /* Hapus bullet/number default */
  padding-left: 0; /* Hapus padding default */
}

.case-study-content .styled-list li {
  position: relative;
  padding-left: 30px; /* Ruang untuk ikon */
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.6;
}

.case-study-content .styled-list li i.bx {
  /* Styling ikon Boxicons */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
  color: var(--primary-color);
}
.case-study-content .styled-list li strong {
  /* Styling untuk teks strong di list */
  color: var(--primary-color);
}

/* Styling untuk tabel */
.case-study-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95em;
  /* min-width: 400px; */ /* Tidak perlu min-width jika sudah ada overflow-x */
}

.case-study-content table th,
.case-study-content table td {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.case-study-content table th {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.case-study-content table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.case-study-content table tbody tr:hover {
  background-color: #e0e0e0;
}

/* NEW: Wrapper untuk tabel agar bisa di-scroll secara horizontal di mobile */
/* Jika Anda membungkus tabel dengan <div class="table-responsive"></div> */
.case-study-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Untuk scroll yang lebih halus di iOS */
  margin-bottom: 20px; /* Tambahkan margin jika perlu */
}
/* Jika Anda tidak membungkus tabel dengan div .table-responsive, dan ingin langsung pada tabel */
/* @media (max-width: 768px) { */
/* .case-study-content table { */
/* display: block; */
/* overflow-x: auto; */
/* white-space: nowrap; */ /* Menjaga teks dalam satu baris, tapi hati-hati dengan konten panjang */
/* } */
/* .case-study-content table thead, */
/* .case-study-content table tbody, */
/* .case-study-content table th, */
/* .case-study-content table td, */
/* .case-study-content table tr { */
/* display: block; */
/* } */
/* .case-study-content table thead tr { */
/* position: absolute; */
/* top: -9999px; */
/* left: -9999px; */
/* } */
/* .case-study-content table td { */
/* border: none; */
/* border-bottom: 1px solid #eee; */
/* position: relative; */
/* padding-left: 50%; */
/* } */
/* .case-study-content table td:before { */
/* position: absolute; */
/* top: 6px; */
/* left: 6px; */
/* width: 45%; */
/* padding-right: 10px; */
/* white-space: nowrap; */
/* content: attr(data-column); */
/* font-weight: bold; */
/* } */
/* } */

.image-placeholder {
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.image-placeholder img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-speed) ease-in-out,
    box-shadow var(--transition-speed) ease-in-out;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.image-placeholder img:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
  font-style: italic;
  text-align: center; /* Pastikan caption di tengah */
}

/* --- 4. General Button Styling --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--smooth-transition);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  overflow: hidden;
}

.btn-danger {
  background-color: var(--primary-color);
  color: var(--bg-light);
  border: 2px solid var(--primary-color);
  z-index: 1;
}

.btn-danger:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 15px rgba(var(--primary-color-rgb), 0.4);
}

.btn-danger:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 4px; /* Added border-radius for consistency */
}

/* NEW: Button hover effect - subtle overlay */
.btn-danger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  z-index: -1;
  transition: transform 0.4s ease-out;
  transform: scaleX(0);
  transform-origin: left;
}

.btn-danger:hover::before {
  transform: scaleX(1);
}

/* --- 5. Sidebar (Related Case Studies, Tag Cloud, About Me) --- */
.col-lg-4 .sidebar {
  position: sticky;
  top: 20px;
  align-self: flex-start;
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--shadow-color);
  margin-top: 0; /* Pastikan tidak ada margin-top berlebihan di desktop */

  max-height: calc(100vh - 40px);
  overflow-y: auto; /* Untuk scrolling jika konten sidebar terlalu panjang */
  -webkit-overflow-scrolling: touch;

  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Judul-judul di dalam Sidebar (h4) */
.sidebar h4 {
  font-family: "Dosis", sans-serif; /* Gunakan font heading */
  color: var(--primary-color);
  font-size: 1.7rem;
  font-weight: var(--heading-font-weight);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.2);
  text-align: left;
}

/* Item-item dalam Related Case Studies */
.sidebar .related-case-studies-widget .list-unstyled {
  /* Target list spesifik */
  padding-left: 0;
  margin-bottom: 0;
}
.sidebar .related-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed) ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  border-radius: 8px;
  padding-right: 10px;
}

.sidebar .related-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar .related-item:hover {
  background-color: rgba(var(--primary-color-rgb), 0.05);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar .related-item:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 8px;
}

.sidebar-img {
  flex-shrink: 0;
  width: 90px;
  height: 70px;
  overflow: hidden;
  border-radius: 8px;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-info {
  flex-grow: 1;
}

.sidebar-info a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 5px;
  transition: color var(--transition-speed) ease;
}

.sidebar-info a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.sidebar-info p {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.4;
  margin-bottom: 0;
}

/* Tag Cloud Section (di dalam sidebar) */
.tag-cloud-widget .tags {
  /* Target the div containing tags */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.tag-cloud-widget .tags a {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--smooth-transition);
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--text-light);
  text-transform: capitalize;
}

.tag-cloud-widget .tags a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.tag-cloud-widget .tags a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* About Me Widget (di dalam sidebar) */
.about-me-widget {
  padding-top: 0; /* Tidak perlu padding-top di sini karena sudah ada gap */
}

.about-me-widget h4 {
  font-family: "Dosis", sans-serif; /* Gunakan font heading */
  color: var(--primary-color);
  font-size: 1.7rem;
  font-weight: var(--heading-font-weight);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.2);
  text-align: left;
}

.about-me-widget p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.about-me-widget .contact-details p {
  margin-bottom: 8px;
  color: #555;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.about-me-widget .contact-details i {
  margin-right: 5px;
  color: var(--primary-color);
}

.about-me-widget .contact-details a {
  color: var(--text-dark);
}

.about-me-widget .contact-details a:hover {
  color: var(--primary-color);
}

.about-me-widget .social-icons {
  /* Menargetkan social-icons di widget ini */
  margin-top: 15px; /* Sesuaikan margin-top */
  display: flex; /* Ensure it's a flex container */
  gap: 10px; /* Add gap */
  justify-content: flex-start; /* Align left */
}

.about-me-widget .social-icons li {
  list-style: none; /* Remove list style */
  margin-bottom: 0; /* Remove potential extra margin */
}

.about-me-widget .social-icons a {
  display: flex; /* Make icon clickable area larger */
  align-items: center;
  justify-content: center;
  width: 35px; /* Fixed width */
  height: 35px; /* Fixed height */
  border-radius: 50%; /* Circular icons */
  background-color: rgba(var(--primary-color-rgb), 0.1); /* Subtle background */
  color: var(--primary-color); /* Icon color */
  font-size: 1.2em;
  transition: var(--smooth-transition);
}

.about-me-widget .social-icons a:hover {
  background-color: var(--primary-color);
  color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3);
}

.about-me-widget .copyright-info {
  font-size: 0.8rem;
  color: #777;
  margin-top: 20px;
}

/* === FOOTER STYLING === */
footer {
  flex-shrink: 0;
  margin-top: 0;
  background-color: var(--bg-dark-section);
  color: var(--text-light);
  font-size: 14px;
  padding: 1.5rem 0;
}

footer a {
  text-decoration: none;
  color: var(--text-light);
  transition: color var(--transition-speed) ease;
}

footer a:hover {
  color: var(--primary-color);
}

footer .social-icons a {
  font-size: 18px;
  margin-right: 10px;
}

footer .social-icons a:hover {
  color: var(--primary-color);
}

footer ul.list-unstyled li i {
  margin-right: 0.5rem;
  color: inherit;
}

footer .social-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  max-width: none;
  padding-left: 0;
  list-style: none;
  margin-top: 15px;
}

footer .social-icons a {
  color: var(--text-light);
  transition: var(--smooth-transition);
}

footer .social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

footer .social-icons a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 50%;
}

/* --- 7. Responsiveness --- */
@media (max-width: 992px) {
  /* Untuk ukuran tablet (lebar layar <= 992px) */
  .home {
    min-height: 380px;
    background-attachment: scroll; /* Pastikan parallax mati di tablet/mobile */
  }

  .home-title {
    font-size: 2.8rem;
  }

  .home-subtitle {
    font-size: 1rem;
  }

  .case-study-content {
    padding: 30px;
  }

  .case-study-content h3 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .case-study-content h3::after {
    width: 60px;
    height: 3px;
  }
  .case-study-content h4 {
    font-size: 1.3rem; /* Adjust sub-heading size */
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .case-study-content p {
    font-size: 1rem;
  }
  .case-study-content .styled-list li {
    font-size: 1rem;
  }

  .col-lg-4 {
    order: 2;
    margin-top: 40px;
  }

  .col-lg-8 {
    order: 1;
  }

  .col-lg-4 .sidebar {
    position: static;
    top: auto;
    max-height: unset;
    overflow-y: visible;
    padding: 25px;
    gap: 20px;
    margin-top: 0;
  }

  .sidebar h4,
  .tag-cloud-widget h4,
  .about-me-widget h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .sidebar .related-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .sidebar-img {
    width: 80px;
    height: 60px;
    margin-right: 15px;
  }

  .sidebar-info a {
    font-size: 0.98rem;
  }

  .sidebar-info p {
    font-size: 0.85rem;
  }

  .tag-cloud-widget .tags a {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .about-me-widget p,
  .about-me-widget .contact-details p {
    font-size: 0.92rem;
  }

  .about-me-widget .copyright-info {
    font-size: 0.8rem;
  }

  footer {
    padding: 30px 0;
  }

  footer p {
    font-size: 0.9rem;
  }

  footer h5 {
    font-size: 1.2rem;
  }

  .social-icons a {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .home {
    min-height: 280px;
    padding: 15px;
    background-attachment: scroll;
  }

  .home-title {
    font-size: 2.1rem;
  }

  .home-subtitle {
    font-size: 0.85rem;
  }

  .case-study-content {
    padding: 20px;
  }

  .case-study-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .case-study-content h3::after {
    width: 50px;
    height: 3px;
  }
  .case-study-content h4 {
    font-size: 1.1rem; /* Adjust sub-heading size */
    margin-top: 20px;
    margin-bottom: 8px;
  }
  .case-study-content p {
    font-size: 0.95rem;
  }
  .case-study-content .styled-list li {
    font-size: 0.95rem;
  }

  /* Agar tabel bisa di-scroll horizontal di mobile */
  .case-study-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Tambahkan sedikit padding di bawah untuk scrollbar */
  }
  /* Ini wrapper di HTML. Kalau tidak ada, langsung target table */
  /* Misalnya: .case-study-content table { display: block; overflow-x: auto; ... } */

  .sidebar {
    margin-top: 30px;
    padding: 20px;
    gap: 15px;
  }

  .sidebar h4,
  .tag-cloud-widget h4,
  .about-me-widget h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .sidebar .related-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .sidebar-img {
    width: 100px;
    height: 75px;
    margin-bottom: 15px;
    margin-right: 0;
  }

  .sidebar-info a,
  .sidebar-info p {
    text-align: center;
  }

  .sidebar-info a {
    font-size: 0.95rem;
  }

  .sidebar-info p {
    font-size: 0.85rem;
  }

  .tag-cloud-widget .tags a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .about-me-widget p,
  .about-me-widget .contact-details p {
    font-size: 0.9rem;
  }

  .about-me-widget .copyright-info {
    font-size: 0.8rem;
  }

  footer {
    padding: 25px 15px;
  }

  footer p {
    font-size: 0.85rem;
  }

  footer h5 {
    font-size: 1.1rem;
  }

  .social-icons a {
    font-size: 1.4rem;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .home {
    min-height: 200px;
    padding: 10px;
  }

  .home-title {
    font-size: 1.8rem;
  }

  .home-subtitle {
    font-size: 0.8rem;
  }

  .case-study-content {
    padding: 15px;
  }

  .case-study-content h3 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .case-study-content h3::after {
    width: 40px;
    height: 2px;
  }
  .case-study-content h4 {
    font-size: 1rem;
    margin-top: 15px;
    margin-bottom: 5px;
  }
  .case-study-content p {
    font-size: 0.88rem;
  }
  .case-study-content .styled-list li {
    font-size: 0.88rem;
  }

  .sidebar {
    padding: 15px;
    gap: 10px;
  }

  .sidebar h4,
  .tag-cloud-widget h4,
  .about-me-widget h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .sidebar .related-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .sidebar-img {
    width: 80px;
    height: 60px;
    margin-bottom: 10px;
  }

  .sidebar-info a {
    font-size: 0.85rem;
  }

  .sidebar-info p {
    font-size: 0.75rem;
  }

  .tag-cloud-widget .tags a {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .about-me-widget p,
  .about-me-widget .contact-details p {
    font-size: 0.8rem;
  }

  .about-me-widget .copyright-info {
    font-size: 0.7rem;
  }

  footer {
    padding: 20px 10px;
  }

  footer p {
    font-size: 0.75rem;
  }

  footer h5 {
    font-size: 1rem;
  }

  .social-icons a {
    font-size: 1.3rem;
    gap: 8px;
  }
}
