/*
*    Portfolio CSS - Desktop Version (≥769px)
*    Author: Josh Lollis
*    Date: May 17, 2025
*    Split from original styles.css
*/

/* Root variables - EXPANDED */
:root {
  --navbar-height: 10vh;
  
  /* Color palette */
  --primary: #4b304e;
  --accent: #ed65ff;
  --accent-rgb: 237, 101, 255;
  --dark-accent: #331236;
  --text: #333;
  --text-light: #4a4a4a;
  --text-muted: #666;
  --white: #ffffff;
  --black: #000000;
  --error: #e74c3c;
  --success: #27ae60;
  --secondary-blue: #181986;
  --bg-light: #f5f5f5;
  --border-light: #f0f0f0;
  
  /* Box shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 8px 8px 8px rgba(0, 0, 0, 0.253);
  --shadow-xl: 12px 12px 24px rgba(0, 0, 0, 0.3);
  
  /* Border properties */
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  /* Transitions */
  --transition-standard: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* Global styles */
body, html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #f4a0ff, #e8f0fe);
  color: var(--text);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

/* Utility classes */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hover-lift {
  transition: var(--transition-standard);
  border: 2px solid transparent;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--primary);
}

/* Position/transform hover utilities */
.hover-transform-up {
  transition: var(--transition-standard);
  border: 2px solid transparent;
}

.hover-transform-up:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary);
}

.hover-transform-left {
  transition: var(--transition-standard);
  border: 2px solid transparent;
}

.hover-transform-left:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary);
}

.hover-scale {
  transition: var(--transition-standard);
  border: 2px solid transparent;
}

.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary);
}

/* Color/effect hover utilities */
.hover-accent-bg {
  transition: var(--transition-standard);
}

.hover-accent-bg:hover {
  background: var(--accent);
}

.hover-accent-text {
  transition: var(--transition-standard);
}

.hover-accent-text:hover {
  color: var(--accent);
}

.hover-white-text {
  transition: var(--transition-standard);
}

.hover-white-text:hover {
  color: var(--white);
}

.hover-white-border {
  transition: var(--transition-standard);
  border: 2px solid transparent;
}

.hover-white-border:hover {
  border: 2px solid var(--white);
}

.hover-fade {
  transition: var(--transition-standard);
}

.hover-fade:hover {
  opacity: 0.7;
}

.hover-text-shadow {
  transition: var(--transition-standard);
}

.hover-text-shadow:hover {
  text-shadow: 0 0 8px rgba(237, 101, 255, 0.4);
}

/* Special case utilities for specific elements */
.hover-toc-card {
  transition: var(--transition-standard);
}

.hover-toc-card:hover {
  background: var(--accent);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
}

.hover-button-glow {
  transition: var(--transition-standard);
}

.hover-button-glow:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Typography classes */
.funnel-display-header {
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: var(--primary);
}

/* Header styling combined */
main h1 {
  font-size: 4rem;
  color: var(--primary);
  padding-top: 0;
  text-shadow: 5px 5px 2px rgba(0, 0, 0, 0.2);
}

main h1.funnel-display-header {
  font-size: 4.5rem;
  margin-bottom: 2rem;
}

h2.funnel-display-header {
  font-size: 3rem;
  margin: 1.5rem 0;
}

h3.funnel-display-header {
  font-size: 2rem;
}

.snug-header {
  margin-bottom: 0;
}

/* Content container styles */
.content-container {
  background: var(--white);
  max-width: 1200px;
  width: 60%;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  min-height: 90%;
  z-index: 1; /* Ensure content is above tabs by default */
}

/* Update content container z-index to ensure proper layering */
.content-container blockquote {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 1rem 0;
  border: none;
  transition: var(--transition-fast);
}

/* Special heading styles */
h5.issue, h5.challenge {
  color: var(--error);
}

h5.remedy {
  color: var(--success);
  margin-top: 1rem;
}

/* Main layout */
main {
  margin-top: var(--navbar-height);
  width: 100%;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  justify-content: normal;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

/* Navigation styles */
.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: linear-gradient(to bottom, var(--black), var(--primary));
  height: var(--navbar-height);
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}


/* Home button styling */
.home-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 20px;
  z-index: 15;
  font-size: 30px;
  font-weight: 900;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(to bottom, #f4a0ff, var(--primary));
  padding: 2px 20px;
  border-radius: 5px;
  text-decoration: none;
  -webkit-text-stroke: 1px var(--white);
  transition: var(--transition-standard);
  border: 2px solid transparent;
}

/* Menu toggle styling */
.menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 20px;
  z-index: 15;
  font-size: 30px;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(to bottom, #f4a0ff, var(--primary));
  padding: 2px 20px;
  border-radius: 5px;
  transition: var(--transition-standard);
  border: 2px solid transparent;
}

/* Header list styles */
.header-list {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  z-index: 5;
  opacity: 95%;
  list-style-type: none;
  transition: top 0.6s ease;
  margin: 0;
}

.header-list.active {
  top: var(--header-height);
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease-out;
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  flex-direction: column;
  background-color: rgba(75, 48, 78, 0.95);
  z-index: 9;
  pointer-events: all;
}

.header-list-item a {
  color: var(--white);
  text-decoration: none;
  font-size: 32px;
  margin-left: 10px;
}

@keyframes slideDown {
  from {
    border-bottom-width: 0;
  }
  to {
    border-bottom-width: 4px;
  }
}

/* Projects grid for desktop */
#projects-grid {
  width: 80%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Project item styling */
.project-item {
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: var(--transition-standard);
  border: 2px solid transparent;
  aspect-ratio: 4/3;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  justify-self: stretch;
}

.thumbnail-container {
  width: 100%;
  height: 70%;
  max-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-standard);
}

.project-item h2 {
  padding: 0.5rem;
  margin: 0;
  color: var(--primary);
}

/* Profile section */
#pfp-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.pfp-border {
  width: 280px;
  height: 258px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary-blue));
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

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

/* Chart and image styling */
canvas {
  width: 75%;
  height: auto;
  margin-bottom: 10%;
}

#wakatimeLanguageChart {
  max-width: 75%;
}

/* Image and thumbnail styling - FIXED */
.img-thumbnail {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  display: block;
  margin: 1rem auto;
}

.blog-gif {
  border: 4px solid var(--primary);
  border-radius: var(--border-radius-sm);
}

/* Blog-specific image styling */
.blog-image {
    width: 100%; /* Ensure the image scales to fit its container */
    max-width: 800px; /* Set a reasonable max width for blog images */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove inline spacing issues */
    margin: 1.5rem auto; /* Center the image and add spacing */
    border-radius: var(--border-radius-md); /* Match the blog's rounded corners */
    box-shadow: var(--shadow-md); /* Add a subtle shadow for better visibility */
}

.blog-image:hover {
    transform: scale(1.02); /* Slightly enlarge the image on hover */
    box-shadow: var(--shadow-lg); /* Add a stronger shadow on hover */
    transition: var(--transition-fast); /* Smooth transition effect */
}

/* Carousel styling for desktop */
.carousel-container {
  width: 100%;
  max-width: 800px;
  height: 70vh;
  position: relative;
  margin: 2rem auto;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: var(--transition-standard);
  width: 100%;
  height: 100%;
}

.carousel-images img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  flex-grow: 0;
  object-fit: contain;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  /* transform: translateY(-50%); */
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--white);
  padding: 10px;
  cursor: pointer;
  border: none;
  z-index: 2;
  border-radius: var(--border-radius-sm);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Video styling */
.iframe-border {
  padding: 8px;  /* Creates space for the hover border */
  transition: var(--transition-standard);
  background-color: transparent;
  display: flex;  /* Use flexbox for centering */
  justify-content: center;  /* Center horizontally */
  align-items: center;  /* Center vertically */
  box-sizing: border-box;  /* Include padding in width calculation */
  border-radius: var(--border-radius-md);  /* Add border radius to match other containers */
}

.project-video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 4px solid var(--primary);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  margin: 0;  /* Remove margin so padding controls spacing */
  display: block;
}

/* Fix video hover border behavior */
.iframe-border.hover-transform-up:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-md);  /* Preserve border radius on hover */
}

/* Add medium-sized carousel class */
.carousel-container-medium {
  width: 50%;
  height: 40vh;  /* Reduce height proportionally */
  margin: 0 auto;  /* Center the carousel */
  border-radius: var(--border-radius-md);  /* Add border radius to match other containers */
  overflow: hidden;  /* Keep images within the rounded corners */
  padding: 0;  /* Remove padding that's causing overflow issues */
  box-sizing: border-box;
}

/* Ensure carousel images fit properly in the smaller container */
.carousel-container-medium .carousel-images {
  width: 100%;
  height: 100%;
}

.carousel-container-medium .carousel-images img {
  max-height: 100%;
  width: 100%;  /* Set to 100% to ensure full width */
  min-width: 100%;  /* Force exact width */
  flex: 0 0 100%;  /* Don't grow or shrink */
  object-fit: contain;
}

/* Make sure hover-transform-up preserves border-radius when applied to carousels */
.carousel-container.hover-transform-up:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-md);  /* Preserve border radius on hover */
}

/* Wakatime stats styling */
#wakatime-site-hours {
  margin-left: 10px;
  margin-right: 3%;
}

#wakatime-site-hours img {
  border: 4px solid var(--dark-accent);
  border-radius: var(--border-radius-sm);
}

/* PDF container styling */
.pdf-container {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 900px;
  background-color: transparent;
  margin: 2rem 0;
}

.pdf-container object {
  width: 80%;
  height: 100%;
  border: 4px solid var(--text);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-sm);
}

/* Bio section */
#bio-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#bio-container {
  width: 95%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-sm);
  box-sizing: border-box;
  background: var(--white);
}

#role-tags {
  margin: 0 0 1.5rem 0;
  padding: 0;
  width: 100%;
}

.tags-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
}

.tag {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary);
  white-space: nowrap;
}

.tag-separator {
  color: var(--accent);
  margin: 0 0.2rem;
}

#bio p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text);
}

#resume-header {
  margin-top: 5%;
}

/* Footer styling for desktop - CONSOLIDATED */
#site-footer {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: linear-gradient(to bottom, var(--primary), var(--black));
  color: var(--white);
  border-top: 4px solid var(--accent);
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

#site-footer p {
  font-size: large;
  text-wrap: wrap;
}

/* Social icon base styles */
#site-footer .fa {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-size: 50px;
  width: 20px;
  height: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  border: 4px solid var(--dark-accent);
  border-radius: var(--border-radius-sm);
}

/* Individual social icon background colors */
#site-footer .fa-github {
  background: var(--black);
}

#site-footer .fa-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

#site-footer .fa-youtube {
  background: #FF0000;
}

#site-footer .fa-linkedin {
  background: #0077B5;
}

/* Desktop chart elements */
#desktop-chart-column-container {
  text-align: center;
  width: 100%;
}

/* Consolidated chart row styles */
#desktop-lang-row,
#desktop-editors-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

#desktop-lang-headers-row,
#desktop-editors-headers-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.desktop-chart-container {
  width: 45%;
  max-width: 500px;
  margin: 0 auto;
}

.desktop-lang-header {
  text-align: center;
  width: 45%;
  margin: 0 auto;
}

/* Hide mobile elements */
.mobile-chart-column-container,
.mobile-chart-header,
.mobile-chart-container,
.mobile-wakatimeLangChart {
  display: none;
}

/* Blog and content styling */
.devlog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.devlog-content h2 {
  color: var(--primary);
  margin-top: 2rem;
}

.devlog-content p {
  line-height: 1.6;
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--text-light);
}

.devlog-list {
  margin: 1rem 0;
  padding-left: 2rem;
}

.devlog-list li {
  margin-bottom: 0.5rem;
}

.devlog-section {
  margin-bottom: 2rem;
  text-align: left;
}

.devlog-content blockquote {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 2rem 0;
  border: none;
  transition: var(--transition-fast);
}

.devlog-content blockquote.editors-note {
  background-color: #fff9e6 !important; 
  padding: 15px !important; 
  border-left: 4px solid #e6b800 !important;
}

.devlog-content h5 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0;
  padding: 0.5rem 0;
  font-family: "Funnel Display", sans-serif;
}

.devlog-content b {
  display: block;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.devlog-content h5:first-of-type {
  color: var(--error);
}

.devlog-content h5:last-of-type {
  color: var(--success);
  margin-top: 1rem;
}

.devlog-content blockquote b:last-of-type {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Blog grid styling */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-standard);
  overflow: hidden;
  padding: 2%;
  cursor: pointer;
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-preview {
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Ensure blog-link covers the entire tab area */
.blog-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Version sections */
.version-section {
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin: 3rem 0;
  border: 2px solid var(--primary);
  transition: var(--transition-standard);
}

/* Form styling */
#fs-frm {
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#fs-frm fieldset {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

#fs-frm input,
#fs-frm textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  box-sizing: border-box;
}

#fs-frm [type="submit"] {
  background: var(--primary);
    color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-standard);
}

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

.image-grid img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  transition: var(--transition-standard);
  cursor: pointer;
  background-color: var(--bg-light);
  padding: 1rem;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: pointer;
}

.modal img {
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--border-radius-md);
  object-fit: contain;
  background-color: var(--white);
  padding: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Table of contents */
.toc-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.toc-card {
  background: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-standard);
  text-decoration: none;
  color: var(--primary);
  min-width: 200px;
  box-shadow: 4px 4px 0 var(--primary);
  text-align: center;
}

.toc-icon {
  font-size: 1.5rem;
}

.toc-title {
  font-family: "Funnel Display", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  display: inline-block;
}

/* Intro and skills styling */
.intro-greeting {
  text-align: center;
  font-family: "Funnel Display", sans-serif;
  color: var(--primary);
  margin: 1rem 0;
  font-size: 2.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-standard);
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(75, 48, 78, 0.2);
  transition: padding 0.3s ease;
}

.skill-category li:last-child {
  border-bottom: none;
}

/* Section containers */
.section-container {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-container:not(:last-child) {
  margin-bottom: 3rem;
}

/* Repo links */
.repo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-size: 50px;
  width: 20px;
  height: 20px;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  background: var(--black);
  color: var(--white);
  border: 4px solid var(--dark-accent);
  transition: var(--transition-standard);
}

.repo-card {
  background: var(--black) !important;
  color: var(--white) !important;
  border: 2px solid var(--dark-accent);
}

.repo-card .toc-icon {
  font-size: 1.5em;
}

/* Back button fixed for desktop */
.back-button {
  display: flex;
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-standard);
  border: 2px solid transparent;
  z-index: 5;
}

.back-button * {
  display: inline;
  z-index: 5;
}

/* Projects page desktop-specific layout */
.projects-section {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 2rem;
}

.section-header {
  width: 200px;
  min-width: 200px;
  padding-right: 1rem;
  padding-top: 1rem;
  text-align: left;
  position: sticky;
  top: 100px;
}

.section-header h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.projects-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Ensure project items don't get too small */
.project-item {
  min-width: 200px;
}

/* Additional styling for section headers */
.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  margin-top: 0.5rem;
}

/* Add space between sections */
.projects-section + .projects-section {
  margin-top: 4rem;
}

/* Scroll margin for anchor navigation */
[id] {
  scroll-margin-top: calc(var(--navbar-height) + 2rem);
  scroll-behavior: smooth;
}

/* Add specific scroll margin for project sections */
.projects-section {
  scroll-margin-top: calc(var(--navbar-height) + 3rem);
}

/* Tablet-specific styles */
/* @media screen and (min-width: 768px) and (max-width: 1024px) {
  .menu-toggle {
    height: calc(var(--navbar-height) * 0.7);
    font-size: clamp(28px, calc(var(--navbar-height) * 0.45), 40px);
  }
} */

/* Editor's Note styling */
.editors-note, 
blockquote.editors-note {
  background-color: #fff9e6 !important; 
  padding: 15px !important; 
  border-left: 4px solid #e6b800 !important;
}

.editors-note h5,
blockquote.editors-note h5 {
  color: #b38600;
  margin-top: 0;
}

/* Solution Note styling */
.solution-note, 
blockquote.solution-note {
  background-color: #f0f8ff !important; 
  padding: 15px !important; 
  border-left: 4px solid #0078d7 !important;
}

/* Code sample styling - extracted from inline styles */
/* .code-samples-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
} */

.code-sample {
  border-radius: var(--border-radius-lg); /* Use the large border radius */
  overflow: hidden; /* Ensure content stays within the rounded corners */
  transition: var(--transition-standard); /* Smooth transition for hover effect */
  box-shadow: var(--shadow-md); /* Add a subtle shadow */
}

.code-header {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  font-family: monospace;
  font-weight: bold;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}


pre[class*="language-"] {
  margin: 0; 
  padding: 1rem; 
  overflow-x: auto; 
}

code[class*="language-"] {
  font-family: inherit; /* Use the font from the Prism.js theme */
  font-size: 0.95rem; /* Adjust font size if needed */
  white-space: pre-wrap; /* Allow wrapping for long lines */
}

/* Note box styling */
.note-box {
  background-color: #f0f8ff;
  border-left: 4px solid var(--primary);
  padding: 1rem;
  margin: 0.5rem 0 1.5rem 0;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.note-box strong {
  color: var(--primary);
}

/* Clean list styling for technical content - updated */
.clean-list {
  list-style: none;
  padding-left: 0;
}

.clean-list li {
  /*margin-bottom: 0.8rem;*/
  line-height: 1.5;
  /* display: flex;*/
  align-items: baseline;
}

.clean-list li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Make terms before colons bold - Update to use inherited color instead of primary */
.clean-list li strong {
  color: inherit; /* Changed from var(--primary) to inherit parent text color */
  font-weight: 600;
  margin-right: 0.3rem;
}

/* Fix code formatting within lists */
.clean-list code {
  font-size: 0.95em; /* Less size reduction */
  background-color: rgba(75, 48, 78, 0.08); /* Light background based on primary color */
  padding: 0.2em 0.4em; /* Add some padding */
  border-radius: 3px; /* Rounded corners */
  font-family: monospace;
  white-space: nowrap;
}

/* Make all content headings consistent regardless of parent container */
.content-heading,
h3.content-heading,
.skill-category h3.content-heading {
  color: var(--text) !important; /* Use text color (black) instead of primary (purple) */
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  gap: 1rem;
}

.post-nav-button {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-md);
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-standard);
  min-width: 45%;
  max-width: 48%;
}

.post-nav-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary);
  color: var(--white);
}

.post-nav-icon {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0.5rem;
}

.post-nav-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prev-post .post-nav-content {
  align-items: flex-start;
  text-align: left;
}

.next-post .post-nav-content {
  align-items: flex-end;
  text-align: right;
}

.post-nav-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-nav-title {
  font-weight: bold;
  font-family: "Funnel Display", sans-serif;
}

/* Hide non-applicable navigation buttons on first/last posts */
.post-navigation:has(.prev-post:only-child) {
  justify-content: flex-start;
}

.post-navigation:has(.next-post:only-child) {
  justify-content: flex-end;
}

/* Status update styling - completely restructured */
#status-container {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(75, 48, 78, 0.1), rgba(237, 101, 255, 0.1));
  padding: 10px 10px;
  border-radius: var(--border-radius-md);
  margin: 1rem auto 2rem;
  max-width: 80%;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-standard);
  position: relative;
}

#status-container:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Left section with dot indicator */
.status-indicator-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  /* background: linear-gradient(to right, rgba(75, 48, 78, 0.1), rgba(237, 101, 255, 0.1)); */
  position: relative;
  z-index: 5;
  margin-right: 5px;
  /* border-right: 3px solid rgba(237, 101, 255, 0.3);  */
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-indicator i {
  font-size: 0.8rem;
  color: var(--accent);
  animation: pulse 2s infinite;
}

/* Text container - separate from the indicator */
.status-text-container {
  position: relative;
  overflow: hidden;
  width: calc(100% - 35px); /* Full width minus indicator section */
  height: 1.5rem;
  margin-left: -2px; /* Overlap the borders to create slit */
}

#status {
  font-family: "Funnel Display", sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  display: flex; /* Changed to flex for better clone handling */
  padding-left: 5px; /* Space after the slit */
  will-change: transform; /* Optimize animation performance */
}

#status .ticker-text {
  padding-right: 100px; /* Increased spacing between repeated texts */
}

/* Remove the keyframes animation as it's now handled by JS */
/* @keyframes ticker {...} removed */

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Status appearance variants */
.status-online .status-indicator i {
  color: #27ae60;
}

.status-away .status-indicator i {
  color: #e6b800;
}

.status-online #status-container {
  border-left-color: #27ae60;
}

.status-away #status-container {
  border-left-color: #e6b800;
}


/* Hide project tabs and blog tabs on smaller screens */
@media screen and (max-width: 1000px) {
  .sliding-projects,
  .sliding-projects-left {
    display: none;
  }
}