/* Custom variables for premium Slate Obsidian & Icy Blue look & feel */
:root {
  --primary-color: #3b82f6; /* Icy Blue */
  --primary-glow: rgba(59, 130, 246, 0.4);
  --bg-gradient: linear-gradient(135deg, #1e263b 0%, #2e3d5c 50%, #1e263b 100%);
  --panel-bg: rgba(15, 23, 42, 0.7);
  --sidebar-bg: rgba(30, 41, 59, 0.85);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #cbd5e1; /* Crisp Slate Light */
  --text-secondary: #64748b; /* Muted Slate */
  --accent-color: #60a5fa; /* Soft Blue */
  --highlight-color: #ffffff; /* Pure White */
  --link-color: #38bdf8; /* Light Cyan */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: var(--bg-gradient);
  transform: translateZ(0);
  will-change: transform;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(3, 7, 18, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Base headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--highlight-color);
}

/* Structure */
#bg {
  width: 100%;
  min-height: 100vh;
  padding: 0 14px 28px 14px;
}

#shadow {
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(3, 7, 18, 0.45);
  will-change: opacity;
  border: 1px solid var(--panel-border);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 0 28px 28px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Header */
header {
  margin-bottom: 21px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
}

#blogname {
  text-decoration: none;
  display: block;
}

#blogname span.bold {
  font-size: 38px;
  font-weight: 800;
  color: var(--highlight-color);
  background: linear-gradient(to right, var(--highlight-color) 20%, var(--accent-color) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

header h1 {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* Navigation */
nav {
  margin-bottom: 28px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.nav-list li a {
  display: inline-block;
  padding: 7px 14px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list li a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

/* Layout container */
#container {
  display: flex;
  gap: 28px;
}

#left-col {
  flex: 1;
  min-width: 0; /* Avoid layout break */
}

/* Main Content Card */
.post {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.entry_header h2 {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--accent-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 11px;
  line-height: 1.2;
}

.entry_header h2 a,
.entry_header h2 a:link,
.entry_header h2 a:visited {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry_header h2 a:hover {
  color: var(--highlight-color);
}


.entry_content {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Styles for inside post content */
.entry_content p {
  margin-bottom: 14px;
}

.entry_content a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed var(--link-color);
  transition: all 0.2s ease;
}

.entry_content a:visited {
  color: var(--link-color);
  border-bottom-color: var(--link-color);
}

.entry_content a:hover {
  color: var(--accent-color);
  border-bottom-style: solid;
  border-bottom-color: var(--accent-color);
}

.entry_content ul, .entry_content ol {
  margin: 11px 0 18px 18px;
}

.entry_content li {
  margin-bottom: 7px;
}

/* Optimize long resume scrolling by skipping off-screen render calculations */
.resume-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

/* Flex Container formatting inside resume */
.flexContainer {
  display: flex;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.4);
  padding: 8px 14px;
  border-radius: 8px;
  margin: 21px 0 7px 0;
  border: 1px solid var(--panel-border);
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--highlight-color);
  font-size: 15px;
}

.flexContainer div:first-child {
  color: var(--accent-color);
}

.entry_content p.has-text-align-center {
  font-weight: 700;
  color: var(--highlight-color);
  margin-bottom: 11px;
  font-size: 17px;
}

.entry_content p.has-medium-font-size {
  font-size: 22px;
  font-weight: 800;
  color: var(--highlight-color);
  margin-top: 28px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--panel-border);
  padding-bottom: 6px;
}

/* Sidebar */
#sidebar {
  width: 380px;
  flex-shrink: 0;
}

#sidebar ul {
  list-style: none;
}

.widget {
  background: var(--sidebar-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 21px;
  margin-bottom: 21px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.widget h2 {
  font-size: 18px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 7px;
}

.widget h2 a {
  color: inherit;
  text-decoration: none;
}

.widget ul li {
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  padding-bottom: 7px;
}

.widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.widget ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  display: block;
}

.widget ul li a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
  text-decoration: none;
}

/* BookMe widget modifications for Icy Slate theme */
.book-me-widget {
  background: var(--sidebar-bg) !important;
  border: 1px solid var(--panel-border) !important;
}

.book-me-widget h3 {
  color: var(--accent-color) !important;
  border-bottom: 1px solid var(--panel-border) !important;
}

.book-me-widget label {
  color: var(--text-primary) !important;
}

.book-me-widget input, .book-me-widget select, .book-me-widget textarea {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(3, 7, 18, 0.5) !important;
}

.book-me-widget button {
  background: var(--primary-color) !important;
}

/* Post and content image constraints */
.entry_content img,
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  display: block;
}

/* Responsiveness */
@media (max-width: 1024px) {
  #container {
    flex-direction: column;
    gap: 21px;
  }
  
  #sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #shadow {
    padding: 0 14px 14px 14px;
    border-radius: 0 0 16px 16px;
  }
  
  #blogname span.bold {
    font-size: 28px;
  }
  
  .post {
    padding: 18px;
  }
  
  .flexContainer {
    flex-direction: column;
    gap: 4px;
    padding: 7px 11px;
  }
}

/* Premium Styles for Header Layout */
.site-header {
  background-image: url("/images/la-skyline.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 0 0 16px 16px;
  padding: 30px 20px;
  margin: 0 -28px 20px -28px;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.15);
  border: none;
  transform: translate3d(0,0,0);
  /* removed will-change bloat */
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.2) 0%, rgba(3, 7, 18, 0.7) 100%);
  border-radius: 0 0 16px 16px;
  pointer-events: none;
}

.header-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(15, 23, 42, 0.55);
  /* disabled backdrop-filter for performance */
  -webkit-/* disabled backdrop-filter for performance */
  transform: translateZ(0);
  will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px 25px;
  width: 100%;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
}

.header-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.header-logo-container {
  display: flex;
  flex-direction: column;
}

.header-logo-h1 {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.header-logo-text {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-tagline {
  display: block;
  font-size: 14px;
  color: #90caf9;
  margin-top: 4px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Premium Styles for Sidebar Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.tag-cloud-link {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-transform: capitalize;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tag-cloud-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.05);
}

/* Rendering Optimization for Portfolio List */
.portfolio-card {
  content-visibility: auto;
  contain-intrinsic-size: 320px 480px;
  will-change: transform, opacity;
}



.webdesigner-sticky-nav {
  position: sticky;
  top: 90px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(0,0,0);
  /* removed will-change bloat */
}

.webdesigner-sticky-nav.nav-scrolled {
  background-color: rgba(12, 16, 32, 0.95);
  /* disabled backdrop-filter for performance */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-radius: 0 0 16px 16px;
  margin: 0 -28px;
  padding: 14px 28px 0 28px;
}

.webdesigner-sticky-nav.nav-scrolled nav {
  margin-bottom: 14px;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  .site-header {
    min-height: 180px;
    margin: 0 -14px 20px -14px;
  }
  .site-header.nav-scrolled {
    margin: 0 -14px !important;
    padding: 10px 14px !important;
  }
  .webdesigner-sticky-nav.nav-scrolled {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .webdesigner-sticky-nav {
    width: auto;
    background: transparent !important;
    /* disabled backdrop-filter for performance */
    box-shadow: none !important;
    border: none !important;
    z-index: 1005;
  }
}

.no-sidebar { width: 100%; float: none; border-right: none; padding-right: 0; }
.book-me-description { margin-bottom: 25px; color: var(--text-primary); }
.book-me-container { background: rgba(15, 23, 42, 0.45); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 28px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); }
.articles-container { font-family: 'Inter', sans-serif; }
.articles-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 20px; }
.articles-count { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.featured-article-link { text-decoration: none; display: block; margin-bottom: 28px; }
.featured-article-card { position: relative; background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(15,23,42,0.85) 60%); border: 1px solid rgba(59,130,246,0.25); border-radius: 20px; padding: 36px 40px; overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease; content-visibility: auto; contain-intrinsic-size: auto 400px; }

.shared-card-wrapper {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
.featured-article-glow { position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%); pointer-events: none; }
.featured-article-badge { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 30px; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.featured-article-title { margin: 0 0 14px 0; font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.35; }
.featured-article-excerpt { margin: 0 0 20px 0; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; max-width: 680px; }
.featured-article-read-more { color: #38bdf8; font-weight: 600; font-size: 0.9rem; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 36px; }
.article-grid-link { text-decoration: none; display: flex; }
.article-grid-card { background: rgba(15, 23, 42, 0.5); display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.article-grid-date { display: block; margin-bottom: 10px; color: var(--text-secondary); font-size: 0.75rem; letter-spacing: 0.04em; }
.article-grid-title { margin: 0 0 10px 0; font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600; color: #e2e8f0; line-height: 1.45; }
.article-grid-excerpt { margin: 0; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.article-grid-read-more { display: inline-block; margin-top: 16px; font-size: 0.78rem; color: #38bdf8; font-weight: 500; }

/* Layout Structure Fixes */
#container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  width: 100%;
}

#left-col {
  flex: 1 1 auto;
  min-width: 0;
}

#sidebar {
  flex: 0 0 340px;
  width: 340px;
}

@media (max-width: 900px) {
  #container {
    flex-direction: column;
  }
  #sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Completely Transforming Sticky Header Transitions */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(0,0,0);
  /* removed will-change bloat */
}

.site-header.nav-scrolled {
  margin: 0 -28px;
  padding: 10px 48px;
  min-height: 90px;
  box-shadow: none;
  background-position: center 80%;
}

.header-content {
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(0,0,0);
  /* removed will-change bloat */
}

.site-header.nav-scrolled .header-content {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.header-avatar { transition: transform 0.4s ease, border-width 0.4s ease;
  transform: translate3d(0,0,0);
  /* removed will-change bloat */
}

.site-header.nav-scrolled .header-avatar { transform: scale(0.625); border-width: 2px; } /* 50/80 = 0.625 */

.header-logo-text { transition: transform 0.4s ease;
  transform: translate3d(0,0,0);
  /* removed will-change bloat */
}

.site-header.nav-scrolled .header-logo-text { transform: scale(0.7); transform-origin: left center; }

.header-tagline { transition: opacity 0.3s ease;
  transform: translate3d(0,0,0);
  /* removed will-change bloat */
}

.site-header.nav-scrolled .header-tagline { opacity: 0; pointer-events: none; }

.featured-article-card:hover {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 40px rgba(59,130,246,0.15);
}

/* Pagination */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.page-btn, .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  /* disabled backdrop-filter for performance */
}
.page-btn:not(.disabled):hover, .page-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.page-btn:not(.disabled):hover {
  color: #ffd700; /* Gold hover highlights for chevrons */
}
.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-link.active {
  background: linear-gradient(135deg, #00f0ff, #8a2be2);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
  font-weight: bold;
}


  :root {
    --glass-bg: rgba(20, 20, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-blue: #00f0ff;
    --neon-purple: #8a2be2;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
  }

  body {
    background-color: #08080a;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  }

  .portfolio-hero {
    text-align: center;
    padding: 100px 20px 60px;
    background: radial-gradient(circle at top, rgba(138, 43, 226, 0.15), transparent 60%);
  }

  .portfolio-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
  }

  .portfolio-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
  }
  
  .portfolio-stats {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
  }

  .filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .filter-btn:hover, .filter-btn.active {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto 100px;
  }

  .portfolio-card {
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    cursor: pointer;
  }

  .portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.4);
    border-color: var(--neon-purple);
    z-index: 10;
  }

  .card-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #000;
  }

  .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
    opacity: 0.9;
  }

  .portfolio-card:hover .card-image-wrapper img {
    transform: scale(1.08);
    opacity: 1;
  }

  .card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .card-body {
    padding: 30px;
  }

  .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
  }

  .card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
  }

  .card-link:hover {
    color: var(--neon-purple);
  }

  .card-link svg {
    transition: transform 0.3s ease;
  }

  .card-link:hover svg {
    transform: translateX(5px);
  }

  .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px auto 80px;
    flex-wrap: wrap;
    max-width: 1000px;
  }
  
  .page-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .page-link.active {
    background: linear-gradient(135deg, #00f0ff, #8a2be2);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    border-color: transparent;
  }
  
  .page-link.prev-next {
    font-weight: 700;
  }
  
  .page-link.prev-next:hover {
    color: #ffd700;
    border-color: #ffd700;
  }

  @media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-hero h1 { font-size: 2.5rem; }
    .desktop-only-nav { display: none !important; }
    .mobile-only-nav { 
      display: block !important; 
      position: absolute;
      right: 15px;
      top: 30px;
      z-index: 1000;
    }
  }

  .mobile-only-nav { display: none; margin-left: auto; }

/* === Global Mobile Nav (Hamburger Menu) Styles === */
.mobile-only-nav .mobile-menu-toggle {
  display: block;
  margin-left: auto;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.mobile-only-nav .mobile-menu-toggle:hover {
  background: rgba(15, 23, 42, 0.9);
}
.mobile-only-nav .webdesigner-sticky-nav {
  position: relative;
  top: auto;
  z-index: 1005;
}
.mobile-only-nav .webdesigner-sticky-nav.nav-scrolled {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.mobile-only-nav .webdesigner-sticky-nav nav ul.nav-list {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(3, 7, 18, 0.95);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  flex-direction: column;
  min-width: 200px;
  text-align: right;
}
.mobile-only-nav .webdesigner-sticky-nav nav ul.nav-list.mobile-open {
  display: flex;
}
.mobile-only-nav .webdesigner-sticky-nav nav ul.nav-list li {
  margin: 5px 0;
}

/* === Desktop Scrolled Header Behavior === */
/* Hide the desktop nav when scrolled */
.desktop-only-nav .webdesigner-sticky-nav.nav-scrolled {
  display: none !important;
}
/* Show the hamburger menu in the header when scrolled */
.site-header.nav-scrolled .mobile-only-nav {
  display: flex !important;
  margin-left: auto;
}
