@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
:root {
  --bg: #0b1529;
  --bgSoft: #1f3050;
  --text: #dee4eb;
  --textSoft: #cbd2d9;
  --bg-rgb: 11, 21, 41;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
}
body.light {
  --bg: #dee4eb;
  --text: #0b1529;
  --bgSoft: #cbd2d9;
  --textSoft: #1f3050;
  --bg-rgb: 222, 228, 235;
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Container styles */
.listContainer,
.single,
.footer {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 50px;
}

/* List styles update */
.listContainer {
  margin-top: 120px; /* Account for fixed navbar */
}

/* Single page styles update */
.single {
  margin-top: 120px;
  overflow-x: hidden;
  max-width: 100%;
}

.singleHead {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Footer styles update */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .listContainer,
  .single,
  .footer {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .singleHeadTitle {
    font-size: 32px;
  }
  
  .singleHeadDesc {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .listContainer,
  .single,
  .footer {
    padding: 0 15px;
  }

  .listContainer {
    margin-top: 80px;
  }

  .single {
    margin-top: 80px;
  }

  .singleHead {
    flex-direction: column;
  }
  
  .singleHeadTitle {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .singleHeadDesc {
    font-size: 16px;
  }
  
  .singleHeadDetail {
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    height: auto;
  }
}

/* Update existing footer styles */
.footerLinks {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social {
  display: flex;
  gap: 15px;
  align-items: center;
}

@media (max-width: 480px) {
  .footerLinks {
    flex-direction: column;
    gap: 10px;
  }
}

/* NAVBAR START */

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: var(--bg);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
  width: 100%;
  max-width: 1366px;
  padding: 0 50px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex: 1;
  font-weight: bold;
  font-size: 24px;
}

.links {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.searchButton {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bgSoft);
  color: var(--text);
  padding: 10px 15px;
  border-radius: 10px;
  min-width: 200px;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .searchButton {
    min-width: 180px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .searchButton {
    min-width: 150px;
    width: 100%;
    max-width: none;
    flex: 1;
  }
  
  .right {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .searchButton {
    min-width: 40px;
    width: 100%;
    padding: 8px 12px;
  }
}

.searchInput {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  outline: none;
  cursor: pointer;
}

.searchButton:hover {
  background-color: var(--bgSoft);
  opacity: 0.9;
}

.toggle {
  width: 40px;
  height: 20px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: var(--bgSoft);
  border: 0.5px solid var(--textSoft);
  padding: 5px;
  position: relative;
  margin-right: 10px;
}

.ball {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  background-color: var(--textSoft);
  border: 1px solid var(--bgSoft);
}

.light .ball {
  left: unset;
  right: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .navbar-content {
    padding: 0 15px;
  }

  .links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    padding: 15px;
    flex-direction: column;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .links.active {
    transform: translateX(0);
  }

  .right {
    gap: 8px;
  }
  
  .logo {
    font-size: 20px;
    margin-right: 10px;
  }
}

/* Burger Menu Button */
.burger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002;
  margin-left: 10px;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger span:nth-child(3) {
  bottom: 0;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 11px;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }
}

/* NAVBAR END */

/* FOOTER START */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  font-size: 14px;
}

.social {
  display: flex;
  gap: 10px;
}

/* FOOTER END */

/* LIST START */

.list {
  margin-top: 100px;
}

.list-search-container {
  margin-bottom: 30px; /* Space below the search bar */
  width: 100%;
  max-width: 600px; /* Limit width */
  margin-left: auto;
  margin-right: auto;
}

#listSearchInput {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--textSoft);
  background-color: var(--bgSoft);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
}

#listSearchInput::placeholder {
  color: var(--textSoft);
  opacity: 0.7;
}

#listSearchInput:focus {
  border-color: var(--text); /* Highlight on focus */
}

.listItem {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 50px;
  width: 100%;
  padding: 0 50px;
}

.listItemImage {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.listItemTexts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listItemDetail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.listItemAvatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.listItemCategories {
  display: flex;
  gap: 10px;
}

.listItemCategory {
  padding: 5px;
  border-radius: 5px;
  background-color: var(--bgSoft);
  color: var(--textSoft);
  font-size: 14px;
}

.pagination {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  margin-top: 80px;
  margin-bottom: 30px;
}

.page-item {
  border: 1px solid gray;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.page-item.active {
  background-color: var(--text);
  color: var(--bg);
}
.page-item.disabled {
  background-color: #313845;
  cursor: not-allowed;
}

/* LIST END */

/* SINGLE START */

.singleHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.singleHeadTexts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.singleHeadTitle {
  font-size: 48px;
}

.singleHeadDesc {
  font-size: 20px;
  font-weight: 300;
}

.singleHeadDetail {
  display: flex;
  align-items: center;
  gap: 20px;
}

.singleAvatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.singleCategory {
  padding: 5px;
  border-radius: 5px;
  background-color: var(--bgSoft);
  color: var(--textSoft);
  font-size: 14px;
}

.singleHeadImg {
  flex: 1;
  max-height: 550px;
  max-width: 550px;
  object-fit: cover;
  border-radius: 10px;
}

.singleBottom {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-top: 50px;
}

.singleContent {
  flex: 3;
  font-size: 20px;
  line-height: 32px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .singleContent {
    font-size: 18px;
    line-height: 28px;
    padding: 0 5px;
  }
  
  .singleContent img {
    margin: 15px 0;
  }
  
  .singleContent pre {
    margin: 15px 0;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .singleContent {
    font-size: 16px;
    line-height: 26px;
    padding: 0;
  }
  
  .singleContent img {
    margin: 10px 0;
  }
  
  .singleContent pre {
    margin: 10px 0;
    padding: 10px;
    font-size: 14px;
  }
  
  .single {
    padding: 0 10px;
  }
}

.singleContent p,
.singleContent h1,
.singleContent h2,
.singleContent h3 {
  margin: 20px 0px;
}

.singleContent img {
  width: 100%;
  object-fit: cover;
  margin: 20px 0;
  border-radius: 8px;
}

.singleContent pre {
  width: 100%;
  overflow-x: auto;
  padding: 20px;
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

.singleRightBar {
  flex: 1;
}

/* SINGLE END */

/* RIGHTBAR START */

.rightBar {
  position: sticky;
  top: 100px;
  width: 100%;
}

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

.rightBarImgHr {
  display: none;
}

/* Table of Contents visibility */
.mobile-toc {
  display: none; /* Hide on mobile-toc on desktop */
}

.desktop-toc {
  display: block; /* Show desktop-toc on desktop */
}

/* Table of Contents Styling */
.rightBarSection {
  background-color: var(--bgSoft);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.rightBarTitle {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.tableOfContents {
  margin-top: 15px;
}

.tableOfContents ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.tableOfContents ul ul {
  padding-left: 20px;
}

.tableOfContents li {
  margin-bottom: 10px;
  list-style-type: none;
}

.tableOfContents a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.tableOfContents a:hover {
  background-color: var(--bg);
}

/* Share buttons styling */
.shareButtons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shareButton {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--bg);
  transition: all 0.3s ease;
}

.shareButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RIGHTBAR END */

@media (max-width: 1536px) {
  .container {
    max-width: 1366px;
  }
}
@media (max-width: 1366px) {
  .container {
    max-width: 1280px;
  }
}
@media (max-width: 1280px) {
  .container {
    max-width: 1024px;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    max-width: 100%;
  }

  .navbar-content {
    padding: 0 20px;
  }

  .listItem {
    padding: 0 20px;
  }

  .singleHeadImg {
    display: none;
  }

  .singleBottom {
    flex-direction: row;
    gap: 30px;
  }

  .rightBarImg {
    display: none;
  }

  .rightBarImgHr {
    display: block;
    width: 100%;
  }
  
  /* Keep desktop TOC visible on iPad */
  .desktop-toc {
    display: block;
    flex: 1;
  }
  
  .mobile-toc {
    display: none;
  }
}

@media (max-width: 768px) {
  .singleBottom {
    flex-direction: column;
  }
  
  /* Switch TOC visibility for smaller screens */
  .desktop-toc {
    display: none; /* Hide desktop TOC on smaller screens */
  }
  
  .mobile-toc {
    display: block; /* Show mobile TOC on smaller screens */
    margin-bottom: 30px;
  }
}
  
@media (max-width: 1024px) {
  /* Improve iPad layout */
  .navbar {
    height: 80px;
  }
  
  .logo {
    font-size: 22px;
    flex: 0 0 auto;
  }
  
  .links {
    gap: 20px;
    flex: 2;
    justify-content: center;
  }
  
  .right {
    flex: 1;
    justify-content: flex-end;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 640px;
  }
  .links {
    font-size: 14px;
  }

  .listItemImage {
    display: none;
  }

  .searchButton span {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Improve iPad layout for single post */
  .singleBottom {
    gap: 30px;
    display: flex;
    flex-direction: row;
  }
  
  .singleContent {
    flex: 2;
    padding-right: 20px;
  }
  
  .mobile-toc {
    display: none;
  }
  
  .desktop-toc {
    flex: 1;
    display: block;
  }
  
  .rightBar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .rightBarSection {
    background-color: var(--bgSoft);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 0;
    width: 100%;
    flex: 1;
  }
}
@media (max-width: 640px) {
  .navbar {
    height: 60px;
  }
  
  .links {
    top: 60px;
    padding: 10px;
  }
  
  .singleHeadTitle {
    font-size: 24px;
  }
  
  .singleHeadDesc {
    font-size: 15px;
  }
  
  .container {
    max-width: 475px;
  }
}

/* Add these styles after your existing navbar styles */

.navbar-scrolled {
  background-color: var(--bgSoft);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-scrolled .searchButton {
  background-color: var(--bg);
}

@media (max-width: 768px) {
  .navbar-content {
    padding: 0 20px;
  }

  .links {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    padding: 20px;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .links.active {
    transform: translateX(0);
  }

  .searchButton {
    min-width: auto;
  }

  .searchButton span {
    display: none;
  }

  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s ease;
  }
}

@media (min-width: 769px) {
  .navbar {
    padding: 0 50px;
  }

  .container {
    max-width: 100%;
  }
}

/* Page Container */
.pageContainer {
  width: 100%;
  max-width: 1366px;
  margin: 120px auto 0;
  padding: 0 50px;
}

/* About Page */
.aboutContent {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.aboutProfile {
  display: flex;
  gap: 30px;
  align-items: center;
}

.profileImage {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.profileInfo {
  flex: 1;
}

/* Portfolio Page */
.projectsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.projectCard {
  background-color: var(--bgSoft);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.projectCard:hover {
  transform: translateY(-5px);
}

.projectCard img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Contact Page */
.contactContent {
  max-width: 800px;
  margin: 0 auto;
}

.contactInfo {
  display: flex;
  gap: 50px;
  margin-top: 30px;
}

.contactForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contactForm input,
.contactForm textarea {
  padding: 15px;
  border-radius: 5px;
  border: 1px solid var(--textSoft);
  background-color: var(--bgSoft);
  color: var(--text);
}

.contactForm button {
  padding: 15px;
  background-color: var(--bgSoft);
  color: var(--text);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.contactForm button:hover {
  opacity: 0.8;
}

.socialLinks > a {
  display: inline-block;
  color: var(--text);
  background-color: var(--bg);
  padding: 6px;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pageContainer {
    padding: 0 20px;
    margin-top: 100px;
  }

  .aboutProfile {
    flex-direction: column;
    text-align: center;
  }

  .contactInfo {
    flex-direction: column;
  }

  .projectsGrid {
    grid-template-columns: 1fr;
  }
}

/* Home Page Styles */
.homeContainer {
  width: 100%;
  max-width: 1366px;
  margin: 120px auto 0;
  padding: 0 50px;
}

/* Hero Section */
.heroSection {
  text-align: center;
  padding: 60px 0;
}

.heroSection h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Latest Blogs Section */
.blogTitle {
  font-size: 1rem;
  line-height: 1.3;
  height: 60px; /* Fixed height for title */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2; /* Standard property for compatibility */
  margin: 0;
}


.latestBlogs {
  margin: 60px 0;
}

.blogGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.blogCard {
  background: var(--bgSoft);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: grid;
  grid-template-rows: 200px auto;
  height: 550px; /* Fixed height */
  margin-bottom: 30px;
}

.blogCard:hover {
  transform: translateY(-5px);
}

.blogImage {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #2a4065; /* Fallback background color */
  flex-shrink: 0; /* Prevent image from shrinking */
}

.blogContent {
  padding: 20px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 15px;
  overflow: hidden; /* Prevent content overflow */
}

.blogContent h3, .blogContent h2 {
  font-size: 1.1rem;
  line-height: 1.3;
  height: 70px; /* Fixed height for title */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2; /* Standard property for compatibility */
  margin: 0;
}

.blogMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--textSoft);
  align-items: center;
  height: 30px;
  overflow: hidden;
}

.blogCategories {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  height: 30px;
  overflow: hidden;
}

.blogCategory {
  background: var(--bg);
  color: var(--textSoft);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.75rem; /* Smaller font */
  display: inline-block;
  margin-bottom: 5px;
  height: 22px; /* Slightly smaller height */
  line-height: 16px;
}

.blogExcerpt {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Show 4 lines */
  line-clamp: 4; /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  width: 100%;
  font-size: 0.9rem; /* Slightly smaller font */
  line-height: 1.5;
  text-overflow: ellipsis;
  margin: 0 0 -10px 0;
}

.blogAuthorAvatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 5px;
  display: inline-block;
}

.viewAllButton {
  text-align: center;
  margin-top: 40px;
}
.viewAllButton a {
  background: var(--bgSoft);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--bgSoft);
  color: var(--text);
  border-radius: 5px;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.8;
}

/* Featured Section */
.featuredSection {
  margin: 60px 0;
}

.featuredGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

/* Skills Section */
.skillsSection {
  margin: 60px 0;
  text-align: center;
}

.skillsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* CTA Section */
.ctaSection {
  text-align: center;
  padding: 60px 0px;
  margin: 60px 0;
  background: var(--bgSoft);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.btn {
  background: var(--bg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .homeContainer {
    padding: 0 20px;
    margin-top: 100px;
  }

  .heroSection h1 {
    font-size: 2rem;
  }

  .blogGrid {
    grid-template-columns: 1fr;
  }

  .featuredGrid {
    flex-direction: column;
  }

  .skillsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Featured Projects Section */
.featuredSection {
  margin: 60px 0;
  padding: 20px 0;
}

.featuredGrid {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 30px;
}

.featuredProject {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background-color: var(--bgSoft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.projectImage {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.projectImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featuredProject:hover .projectImage img {
  transform: scale(1.05);
}

.projectBadge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--bg);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1;
  border: 1px solid var(--textSoft);
}

.projectContent {
  padding: 0 25px 25px 25px;
}

.projectContent h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--text);
}

.projectContent p {
  color: var(--textSoft);
  margin-bottom: 20px;
  line-height: 1.6;
}

.projectTech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.projectTech span {
  background-color: var(--bg);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.demoLink {
  display: inline-block;
  background-color: var(--bg);
  color: var(--text);
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.demoLink:hover {
  background-color: var(--bgSoft);
  opacity: 0.8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Skills Section / What I Do */
.skillsSection {
  margin: 60px 0;
  padding: 20px;
  background-color: var(--bgSoft);
  border-radius: 12px;
}

.whatIDoContent {
  margin-top: 20px;
  margin-bottom: 30px;
}

.whatIDoContent p {
  color: var(--textSoft);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-word;
}

.skillsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.skillCard {
  background-color: var(--bg);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skillCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--bgSoft);
}

/* About Page Styles */
.aboutJourney {
  margin: 60px 0 40px;
  background-color: var(--bgSoft);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.journeyHeader {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.journeyIcon {
  font-size: 2rem;
  margin-right: 15px;
}

.journeyContent p {
  color: var(--textSoft);
  line-height: 1.8;
}

.expertiseColumns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.expertiseColumn {
  background-color: var(--bgSoft);
  padding: 30px;
  border-radius: 12px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertiseColumn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.expertiseIcon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.expertiseColumn h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.expertiseColumn p {
  color: var(--textSoft);
  line-height: 1.7;
}

.techStack {
  margin: 50px 0;
}

.stackCategories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.stackCategory {
  background-color: var(--bgSoft);
  padding: 25px;
  border-radius: 12px;
}

.stackCategory h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: center;
  border-bottom: 1px solid var(--bg);
  padding-bottom: 10px;
}

.techBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.techBadge {
  background-color: var(--bg);
  color: var(--text);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  border: 1px solid var(--textSoft);
}

.techBadge:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .expertiseColumns {
    grid-template-columns: 1fr;
  }
  
  .stackCategories {
    grid-template-columns: 1fr;
  }
}

/* Hero Section Styles */
.heroSection {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.heroSection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/images/bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  z-index: 1;
}

.heroSection::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.heroSection h1,
.heroSection p {
  position: relative;
  z-index: 3;
  color: #fff;
}

.heroSection h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.heroSection p {
  font-size: 1.2rem;
  max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Blogs Page Styles */
.blogsHeader {
  text-align: center;
  margin-bottom: 40px;
}

.blogsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blogCategory {
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  display: inline-block;
}

.blogCard {
  background: var(--bgSoft);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 450px; /* Fixed height for all cards */
}

.blogCard:hover {
  transform: translateY(-5px);
}

/* About Page Styles */
.aboutContent {
  max-width: 900px;
  margin: 0 auto;
}

.aboutHeader {
  text-align: center;
  margin-bottom: 60px;
}

.aboutProfile {
  display: flex;
  gap: 75px;
  align-items: center;
  margin-bottom: 60px;
}

.profileImage img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

.profileInfo {
  flex: 1;
}

.skillsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skillCard {
  background: var(--bgSoft);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .heroSection {
    height: auto;
    padding: 40px 20px;
  }

  .heroSection h1 {
    font-size: 2rem;
  }

  .blogsGrid {
    grid-template-columns: 1fr;
  }

  .aboutProfile {
    flex-direction: column;
    text-align: center;
  }

  .profileImage img {
    width: 200px;
    height: 200px;
  }

  .skillsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .skillsGrid {
    grid-template-columns: 1fr;
  }

  .pageContainer {
    padding: 0 15px;
  }
}

/* Portfolio Styles */
.portfolioGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolioCard {
  background: var(--bgSoft);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolioCard:hover {
  transform: translateY(-5px);
}

.portfolioImage img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolioContent {
  padding: 20px;
}

.portfolioTech {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.portfolioTech span {
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.portfolioLinks {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

/* Contact Page Styles */
.contactContent {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-top: 40px;
}

.contactInfo {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contactCard {
  background: var(--bgSoft);
  padding: 20px;
  border-radius: 10px;
}

.contactForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formGroup input,
.formGroup textarea {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid var(--textSoft);
  background: var(--bgSoft);
  color: var(--text);
}

/* Additional Mobile Responsive Styles */
@media (max-width: 768px) {
  .contactContent {
    grid-template-columns: 1fr;
  }

  .portfolioLinks {
    flex-direction: column;
  }
}

/* Search Overlay Styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  z-index: 1100;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 100%;
  max-width: 600px;
  background-color: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 20px;
}

.search-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--bgSoft);
  position: relative;
}

.search-header input {
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  border: none;
  background: none;
  color: var(--text);
  outline: none;
}

.close-search {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background-color: var(--bgSoft);
  border-radius: 50%;
  width: 35px;
  height: 35px;
}

.close-search svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  stroke-width: 2.5;
}

.search-results {
  max-height: 60vh; /* Limit height and allow scrolling */
  overflow-y: auto; /* Add scrollbar if results overflow */
  padding: 0 10px 10px 10px; /* Add some padding */
}

.search-result-item {
  padding: 15px;
  border-bottom: 1px solid var(--bgSoft); /* Separator */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none; /* Remove border from last item */
}

.search-result-item:hover {
  background-color: var(--bgSoft); /* Highlight on hover */
}

.search-result-item h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: var(--text);
}

.search-result-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--textSoft);
  line-height: 1.4;
  /* Optional: Limit description lines */
  /* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; */
}

/* Mobile styles */
@media (max-width: 768px) {
  .search-container {
    margin: 0 10px;
    max-height: 90vh;
  }

  .search-header {
    padding: 15px;
    position: relative;
  }

  .search-header input {
    padding: 10px;
    padding-right: 45px;
    width: 100%;
  }

  .close-search {
    width: 30px;
    height: 30px;
    right: 15px;
    padding: 0;
    background-color: var(--bgSoft);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .close-search svg {
    width: 16px;
    height: 16px;
  }
}

/* Categories Page (terms.html) Styles */
.categories-page .pageHeader {
  text-align: center;
  margin-bottom: 40px;
}

.categories-page .pageHeader h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.categories-page .pageHeader p {
  font-size: 1.1rem;
  color: var(--textSoft);
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px; /* Adjust max-width as needed */
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap */
  gap: 15px; /* Spacing between items */
  justify-content: center; /* Center items if they wrap */
}

.category-item {
  background-color: var(--bgSoft);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(var(--bg-rgb), 0.2);
}

.category-item a {
  display: block;
  padding: 15px 25px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.category-count {
  margin-left: 8px;
  font-size: 0.9rem;
  color: var(--textSoft);
}

/* Category Detail Page (taxonomy/category.html) Styles */
.category-detail-page .pageHeader {
  text-align: center;
  margin-bottom: 40px;
}

.category-layout-container {
  display: flex;
  gap: 40px; /* Space between sidebar and content */
  margin-top: 20px;
}

.category-sidebar {
  width: 250px; /* Fixed width for the sidebar */
  flex-shrink: 0; /* Prevent sidebar from shrinking */
  background-color: var(--bgSoft); /* Optional: background for sidebar */
  padding: 20px;
  border-radius: 10px;
  height: fit-content; /* Make sidebar height adjust to content */
}

.category-sidebar h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg);
}

.sidebar-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-category-item {
  margin-bottom: 8px;
}

.sidebar-category-item a {
  display: block;
  padding: 8px 12px;
  color: var(--textSoft);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-category-item a:hover {
  background-color: var(--bg);
  color: var(--text);
}

.sidebar-category-item.active a {
  background-color: var(--bg);
  color: var(--text);
  font-weight: 600;
}

.sidebar-category-item .category-count {
  font-size: 0.85rem;
  margin-left: 5px;
  opacity: 0.7;
}

.category-posts-content {
  flex-grow: 1; /* Allow main content to take remaining space */
}

/* Adjustments for smaller screens */
@media (max-width: 992px) {
  .category-layout-container {
    flex-direction: column; /* Stack sidebar and content */
    gap: 30px;
  }

  .category-sidebar {
    width: 100%; /* Sidebar takes full width */
    max-width: 400px; /* Optional: limit max width */
    margin: 0 auto; /* Center the sidebar */
  }
}

/* Placeholder message on main Categories page */
.category-placeholder {
  padding: 40px 20px;
  text-align: center;
  border: 2px dashed var(--bgSoft); /* Optional border */
  border-radius: 10px;
  background-color: rgba(var(--bgSoft-rgb), 0.3); /* Slightly different background */
  height: 100%; /* Try to fill the content area height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-placeholder h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text);
}

.category-placeholder p {
  color: var(--textSoft);
  max-width: 450px; /* Limit width of text */
  line-height: 1.6;
}

/* Search Overlay Styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  z-index: 1100;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 100%;
  max-width: 600px;
  background-color: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 20px;
}

.search-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--bgSoft);
  position: relative;
}

.search-header input {
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  border: none;
  background: none;
  color: var(--text);
  outline: none;
}

.close-search {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background-color: var(--bgSoft);
  border-radius: 50%;
  width: 35px;
  height: 35px;
}

.close-search svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  stroke-width: 2.5;
}

.search-results {
  max-height: 60vh; /* Limit height and allow scrolling */
  overflow-y: auto; /* Add scrollbar if results overflow */
  padding: 0 10px 10px 10px; /* Add some padding */
}

.search-result-item {
  padding: 15px;
  border-bottom: 1px solid var(--bgSoft); /* Separator */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none; /* Remove border from last item */
}

.search-result-item:hover {
  background-color: var(--bgSoft); /* Highlight on hover */
}

.search-result-item h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: var(--text);
}

.search-result-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--textSoft);
  line-height: 1.4;
  /* Optional: Limit description lines */
  /* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; */
}

/* Mobile styles */
@media (max-width: 768px) {
  .search-container {
    margin: 0 10px;
    max-height: 90vh;
  }

  .search-header {
    padding: 15px;
    position: relative;
  }

  .search-header input {
    padding: 10px;
    padding-right: 45px;
    width: 100%;
  }

  .close-search {
    width: 30px;
    height: 30px;
    right: 15px;
    padding: 0;
    background-color: var(--bgSoft);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .close-search svg {
    width: 16px;
    height: 16px;
  }
}
