/* 
 * Unified Design System & Component Styles
 * Theme: Tech Minimalist + Glassmorphism
 */

:root {
  /* Dynamic Accent Colors (Default: Electric Cyan) */
  --accent-h: 185;
  --accent-s: 100%;
  --accent-l: 45%;
  --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-color-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%));
  --accent-color-muted: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
  --accent-color-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
  --accent-rgb: 0, 225, 255;

  /* Theme: Dark Mode (Default) */
  --bg-primary: #08080a;
  --bg-secondary: #0f0f13;
  --bg-sidebar: rgba(10, 10, 14, 0.85);
  --bg-card: rgba(18, 18, 24, 0.45);
  --bg-card-hover: rgba(22, 22, 30, 0.65);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(14px);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --glow-shadow: 0 0 20px var(--accent-color-glow);
  --code-bg: #1e1e24;

  /* Transition timings */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

/* Premium CV downloads */
.cv-downloads { position: relative; overflow: hidden; isolation: isolate; max-width: 1120px; margin: 0 auto; padding: 5.5rem 3rem; border: 1px solid var(--border-color); border-radius: 28px; background: linear-gradient(135deg, rgba(16, 23, 42, .92), rgba(10, 10, 15, .78)); }
.cv-downloads::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(var(--accent-rgb), .08), transparent 42%, rgba(124, 58, 237, .08)); }
.cv-downloads .section-header { margin-bottom: 2.75rem; }.cv-intro { max-width: 580px; margin: .8rem auto 0; color: var(--text-secondary); line-height: 1.7; }
.cv-orb { position: absolute; width: 260px; height: 260px; z-index: -1; border-radius: 50%; filter: blur(5px); opacity: .2; pointer-events: none; }.cv-orb-one { background: var(--accent-color); top: -170px; left: -120px; }.cv-orb-two { background: #7c3aed; right: -130px; bottom: -190px; }
.cv-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 920px; margin: 0 auto; text-align: left; }
.cv-download-card { min-height: 275px; padding: 1.5rem; display: grid; grid-template-columns: 105px 1fr; gap: 1.4rem; align-items: center; border: 1px solid var(--border-color); border-radius: 18px; background: rgba(255,255,255,.035); box-shadow: var(--card-shadow); transition: transform .3s ease, border-color .3s ease, background .3s ease; }.cv-download-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .55); background: rgba(255,255,255,.065); }
.cv-document-preview { height: 154px; padding: 17px 13px; overflow: hidden; border-radius: 8px; background: #f8fafc; box-shadow: 0 14px 24px rgba(0,0,0,.35); transform: rotate(-3deg); }.cv-download-card-modern .cv-document-preview { background: #f8fafc; transform: rotate(3deg); }.cv-document-preview::before { content:''; display:block; width:42px; height:42px; margin:0 auto 11px; border-radius:50%; background: url('/profile-shaheryar-pro.jpg') center/cover; }.cv-document-preview span { display:block; height:5px; margin-bottom:7px; border-radius:3px; background:#cbd5e1; }.cv-document-preview span:nth-child(1) { width:68%; margin-left:auto; margin-right:auto; background:#0f172a; }.cv-document-preview span:nth-child(2) { width:86%; }.cv-document-preview span:nth-child(3) { width:73%; }.cv-document-preview span:nth-child(4) { width:91%; }.cv-document-preview-modern span:nth-child(1) { background:#0284c7; }.cv-document-preview-modern span:nth-child(2) { background:#0f172a; }
.cv-card-content { min-width: 0; }.cv-download-type { display:inline-flex; align-items:center; gap:.4rem; color:var(--accent-color); font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }.cv-download-type::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 10px currentColor; }.cv-download-card h3 { margin:.55rem 0 .55rem; font-size:1.28rem; color:var(--text-primary); }.cv-download-card p { margin:0; color:var(--text-secondary); font-size:.91rem; line-height:1.55; }.cv-card-meta { display:flex; flex-wrap:wrap; gap:.4rem; margin:1rem 0 1.15rem; }.cv-card-meta span { padding:.25rem .5rem; border:1px solid var(--border-color); border-radius:999px; color:var(--text-muted); font-size:.7rem; }.cv-download-button { display:inline-flex; align-items:center; justify-content:space-between; gap:1rem; width:100%; padding:.75rem .9rem; border-radius:9px; background:var(--accent-color); color:#061116; font-size:.83rem; font-weight:700; text-decoration:none; transition:filter .2s ease, transform .2s ease; }.cv-download-button:hover { color:#061116; filter:brightness(1.08); transform:translateY(-1px); }.cv-download-button span { font-size:1.2rem; line-height:1; }
@media (max-width: 760px) { .cv-downloads { padding:4rem 1.25rem; border-radius:20px; }.cv-download-grid { grid-template-columns:1fr; }.cv-download-card { min-height:0; } }
@media (max-width: 410px) { .cv-download-card { grid-template-columns:80px 1fr; padding:1rem; gap:1rem; }.cv-document-preview { height:128px; padding:12px 9px; }.cv-document-preview::before { width:32px; height:32px; margin-bottom:8px; } }

/* Light Theme overrides */
.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-sidebar: rgba(248, 250, 252, 0.85);
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: rgba(15, 23, 42, 0.06);
  --border-color-hover: rgba(15, 23, 42, 0.14);
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
  --code-bg: #e2e8f0;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--bg-secondary);
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  line-height: 1.6;
  font-size: 0.975rem;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Global Layout & Sections */
.main-wrapper {
  margin-left: 280px; /* Sidebar width */
  min-height: 100vh;
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .main-wrapper {
    margin-left: 0;
  }
}

section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  min-height: auto;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

/* Common Section Headers */
.section-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

/* Glowing text and dynamic properties */
.text-glow {
  text-shadow: 0 0 10px var(--accent-color-glow);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--accent-color-muted);
  border: 1px solid var(--accent-color);
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  box-shadow: var(--glow-shadow);
  color: #000;
  font-weight: 600;
  transform: translateY(-2px);
}

.btn-primary svg {
  transition: transform 0.2s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* Glassmorphism utility card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

/* ==========================================
 * NAVBAR / SIDEBAR COMPONENT
 * ========================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 90;
  transition: var(--transition-smooth);
}

.profile-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 5px;
  border: 2px solid var(--border-color);
  margin-bottom: 1.25rem;
  background: var(--bg-primary);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.avatar-container:hover {
  border-color: var(--accent-color);
  box-shadow: var(--glow-shadow);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--accent-color) 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  margin-top: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-color-muted);
  border-color: rgba(var(--accent-rgb), 0.15);
  padding-left: 1.5rem;
}

.nav-link-active {
  color: var(--text-primary);
  background: var(--accent-color-muted);
  border-color: var(--accent-color);
  box-shadow: inset 0 0 8px rgba(var(--accent-rgb), 0.1);
  padding-left: 1.5rem;
}

.nav-link .icon {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.nav-link-active .icon {
  color: var(--accent-color);
  filter: drop-shadow(0 0 3px var(--accent-color-glow));
}

.footer-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: var(--glow-shadow);
}

.socials {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Mobile responsive menu */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  z-index: 95;
  padding: 0 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .mobile-bar {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    top: 60px;
    bottom: 0;
    height: calc(100vh - 60px);
  }

  .sidebar-open {
    transform: translateX(0);
  }
}

/* ==========================================
 * ACCENT SWITCHER COMPONENT
 * ========================================== */

.switcher-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.switcher-toggle {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.switcher-toggle:hover {
  transform: rotate(45deg) scale(1.05);
  border-color: var(--accent-color);
  box-shadow: var(--glow-shadow);
}

.switcher-toggle-active {
  border-color: var(--accent-color);
  box-shadow: var(--glow-shadow);
}

.color-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  padding: 0.75rem;
  border-radius: 30px;
  display: flex;
  gap: 0.6rem;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.color-menu-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.color-option {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.color-option:hover {
  transform: scale(1.2);
}

.color-option-active {
  border-color: var(--text-primary);
  transform: scale(1.1);
  box-shadow: 0 0 8px var(--accent-color);
}

/* ==========================================
 * HERO COMPONENT
 * ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem clamp(1.5rem, 8vw, 6rem);
  position: relative;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.greeting {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  min-height: 3.5rem;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
 * ABOUT COMPONENT
 * ========================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.skills-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: var(--glass-blur);
}

.skill-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-color-glow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--accent-color-glow);
  transform: translateY(-4px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-color-glow);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 500px) {
  .skills-subgrid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
 * TIMELINE / RESUME COMPONENT
 * ========================================== */

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-color) 15%,
    var(--accent-color) 85%,
    transparent 100%
  );
  box-shadow: 0 0 8px var(--accent-color-glow);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 3.5rem;
  cursor: pointer;
  outline: none;
}

.timeline-dot {
  position: absolute;
  left: 13px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color-glow);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-color);
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--accent-color);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
  border-color: var(--accent-color-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.timeline-card-active {
  border-color: var(--accent-color) !important;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.1), var(--glow-shadow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.timeline-info {
  display: flex;
  flex-direction: column;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-organization {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-top: 0.15rem;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.timeline-duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent-color-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.timeline-toggle {
  color: var(--text-muted);
  transition: var(--transition-smooth);
  margin-top: 0.2rem;
}

.timeline-item:hover .timeline-toggle {
  color: var(--accent-color);
}

.timeline-toggle-rotated {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.timeline-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
}

.timeline-details-open {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  transition: max-height 0.8s cubic-bezier(0.15, 0.85, 0.45, 1), opacity 0.4s ease;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-bullet {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-bullet::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 600px) {
  .timeline-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .timeline-meta {
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================
 * PORTFOLIO GRID COMPONENT
 * ========================================== */

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  list-style: none;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--accent-color-glow);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-btn-active {
  background: var(--accent-color-muted);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--accent-color-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: var(--glow-shadow), var(--card-shadow);
}

.portfolio-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

.portfolio-card:hover .portfolio-title {
  color: var(--accent-color);
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ==========================================
 * PROJECT MODAL COMPONENT
 * ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px) saturate(120%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay-open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-hover);
  border-radius: 16px;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), var(--glow-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.15, 0.85, 0.45, 1);
}

.modal-overlay-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: var(--glow-shadow);
  transform: scale(1.05);
}

.modal-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.modal-content {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.15em;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.modal-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  background: var(--accent-color-muted);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.modal-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.modal-actions a {
  flex-grow: 1;
  text-align: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem;
  }
  .modal-title {
    font-size: 1.4rem;
  }
  .modal-actions {
    flex-direction: column;
  }
}

/* ==========================================
 * CONTACT FORM COMPONENT
 * ========================================== */

.contact-form {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color-glow);
  background: var(--bg-card-hover);
}

.form-input-error {
  border-color: #ff5555 !important;
  box-shadow: 0 0 10px rgba(255, 85, 85, 0.2) !important;
}

.form-error-text {
  font-size: 0.8rem;
  color: #ff5555;
  margin-top: 0.25rem;
  font-weight: 500;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit-btn {
  align-self: flex-start;
  min-width: 160px;
  justify-content: center;
}

.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background-color: var(--border-color) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
}

.form-status {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: formSlideDown 0.3s ease forwards;
}

.form-status-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@keyframes formSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
 * BLOG LISTING & POST STYLES
 * ========================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  width: 100%;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.blog-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--glow-shadow), var(--card-shadow);
  transform: translateY(-4px);
}

.blog-img-link {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

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

.blog-card:hover .blog-img {
  transform: scale(1.04);
}

.blog-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.blog-title-link {
  display: block;
}

.blog-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.blog-card:hover .blog-title {
  color: var(--accent-color);
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: auto;
  padding-top: 0.75rem;
}

.blog-read-more svg {
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(4px);
}

/* ==========================================
 * SINGLE BLOG POST VIEWS
 * ========================================== */

.post-container {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.post-meta-details {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.post-featured-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
  box-shadow: var(--card-shadow);
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* Markdown parsing typography in single post page */
.post-content h1, .post-content h2, .post-content h3 {
  color: var(--text-primary);
  margin: 2.5rem 0 1.25rem;
  letter-spacing: -0.01em;
}

.post-content h2 { font-size: 1.75rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.post-content h3 { font-size: 1.4rem; }

.post-content p {
  font-size: 1.075rem;
  margin-bottom: 1.6rem;
  color: var(--text-secondary);
}

.post-content ul, .post-content ol {
  margin: 0 0 1.6rem 2rem;
}

.post-content li {
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

.post-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
  background: var(--accent-color-muted);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
}

.post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.6rem;
}

.post-content code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--text-primary);
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

/* Utility Animations */
@keyframes blink { 50% { opacity: 0; } }
.caret-blink { animation: blink 0.8s infinite; }

.footer {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}
