/* ---------- Theme tokens ---------- */
:root {
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
    /* Light defaults */
    --bg: #f7fbff;
    --bg2: #eef6ff;
    --text: #0b1220;
    --muted: #4a5a75;
    --card: rgba(255, 255, 255, 0.75);
    --border: rgba(15, 23, 42, 0.10);
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.10);
  
    --primary: #2563eb; /* blue */
    --primary2: #60a5fa; /* light blue */
    --accent: #3b82f6;
    --ring: rgba(37, 99, 235, 0.25);
  
    --pill: rgba(37, 99, 235, 0.10);
  
    --radius: 18px;
    --max: 1100px;
  }
  
  /* Dark theme overrides - Blue focused palette */
  html[data-theme="dark"] {
    --bg: #0a0e1a;
    --bg2: #0f1624;
    --text: #e4e9f7;
    --muted: #94a3b8;
    --card: rgba(30, 41, 59, 0.4);
    --border: rgba(148, 163, 184, 0.12);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(59, 130, 246, 0.1);
  
    --primary: #3b82f6;
    --primary2: #60a5fa;
    --accent: #2563eb;
    --ring: rgba(59, 130, 246, 0.3);
  
    --pill: rgba(59, 130, 246, 0.15);
  }
  
  
  * { 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html { 
    scroll-behavior: smooth;
  }
  
  /* Focus visible for accessibility */
  *:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
  }
  body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
      radial-gradient(1200px 600px at 20% -10%, rgba(96,165,250,0.25), transparent 60%),
      radial-gradient(900px 500px at 90% 0%, rgba(37,99,235,0.18), transparent 55%),
      linear-gradient(180deg, var(--bg), var(--bg2));
    min-height: 100vh;
    transition: background 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
  }
  
  body.loaded {
    opacity: 1;
  }
  
  /* Enhanced dark mode background */
  html[data-theme="dark"] body {
    background:
      radial-gradient(1200px 800px at 10% -20%, rgba(59,130,246,0.12), transparent 50%),
      radial-gradient(1000px 600px at 90% 10%, rgba(37,99,235,0.10), transparent 50%),
      radial-gradient(800px 400px at 50% 100%, rgba(59,130,246,0.08), transparent 50%),
      linear-gradient(180deg, var(--bg), var(--bg2));
  }
  
  /* ---------- Animations ---------- */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  
  /* Animation classes */
  .animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
  }
  
  .animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
  }
  
  .animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
  }
  
  .animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
  }
  
  .animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
  }
  
  /* Stagger animation delays */
  .stagger-1 { animation-delay: 0.1s; }
  .stagger-2 { animation-delay: 0.2s; }
  .stagger-3 { animation-delay: 0.3s; }
  .stagger-4 { animation-delay: 0.4s; }
  .stagger-5 { animation-delay: 0.5s; }
  .stagger-6 { animation-delay: 0.6s; }
  
  /* Initially hide animated elements */
  [class*="animate-"] {
    opacity: 0;
  }
  
  /* Scroll reveal */
  a { 
    color: inherit; 
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  a:hover { 
    text-decoration: underline; 
    text-underline-offset: 4px;
    color: var(--primary);
  }
  
  /* Selection color */
  ::selection {
    background: var(--primary);
    color: #ffffff;
  }
  
  ::-moz-selection {
    background: var(--primary);
    color: #ffffff;
  }
  
  .container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
  }
  
  .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
  }
  .skip-link:focus {
    left: 16px; top: 16px;
    width: auto; height: auto;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 9999;
  }
  
  /* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: transparent;
    transition: all 0.3s ease;
  }
  
  .site-header.scrolled {
    background: rgba(5, 8, 15, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  html[data-theme="light"] .site-header {
    background: transparent;
  }
  
  html[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
  }
  
  .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .brand:hover {
    transform: translateX(2px);
    text-decoration: none;
  }
  
  .brand-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.3s ease;
  }
  
  .brand:hover .brand-text {
    color: var(--primary);
  }
  
  .nav {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-left: auto;
    margin-right: 60px;
  }
  
  .nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
  }
  
  .nav a:hover { 
    color: var(--text);
  }
  
  .nav a:hover::after {
    transform: scaleX(1);
  }
  
  .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }
  
  .btn:hover svg {
    transform: scale(1.1);
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .btn:hover::before {
    width: 300px;
    height: 300px;
  }
  
  .btn:focus { 
    outline: none; 
    box-shadow: 0 0 0 4px var(--ring), var(--shadow); 
  }
  
  .btn:hover { 
    transform: translateY(-2px) scale(1.02); 
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }
  
  .btn:active {
    transform: translateY(0) scale(0.98);
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
    min-width: 140px;
    justify-content: center;
  }
  
  html[data-theme="dark"] .btn-primary { 
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
  }
  
  .btn-secondary {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.3);
    min-width: 120px;
    justify-content: center;
  }
  
  .btn-ghost {
    background: transparent;
    box-shadow: none;
  }
  
  .btn-ghost:hover {
    background: var(--card);
    box-shadow: var(--shadow);
  }
  
  .icon { 
    font-size: 14px; 
    opacity: 0.9;
    transition: transform 0.3s ease;
  }
  
  .btn:hover .icon {
    transform: scale(1.1);
  }
  
  /* ---------- Sections ---------- */
  .section {
    padding: 50px 0;
  }
  
  .hero-landing {
    padding: 0;
  }
  .section-head {
    margin-bottom: 40px;
    position: relative;
  }
  
  .section-head h2 {
    margin: 0 0 6px 0;
    font-size: 28px;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
  }
  
  .section-head h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
  }
  
  .section-head p {
    margin: 12px 0 0 0;
  }
  
  .muted { 
    color: var(--muted);
    transition: color 0.3s ease;
  }
  
  .tiny { font-size: 12.5px; }
  
  .accent { 
    color: var(--primary);
    font-weight: 600;
  }
  
  /* ---------- Landing Page Hero ---------- */
  .hero-landing {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }
  
  .particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
  }
  
  #particles-canvas {
    width: 100%;
    height: 100%;
  }
  
  .hero-landing .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
  }
  
  .hero-name {
    margin: 0 0 20px 0;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
  }
  
  .hero-subtitle {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease 0.4s both;
  }
  
  .hero-subtitle-secondary {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
    opacity: 0.85;
    letter-spacing: 0.01em;
    animation: fadeInUp 1s ease 0.6s both;
  }
  
  html[data-theme="light"] .hero-name {
    background: linear-gradient(135deg, var(--text), var(--muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }
  
  
  /* ---------- Cards ---------- */
  .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
  }
  
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
  }
  
  .glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  }
  
  html[data-theme="dark"] .glass {
    background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(37,99,235,0.04));
  }
  .card-header h2 {
    margin: 0;
    font-size: 16px;
  }
  .card-header p { margin: 6px 0 0 0; }
  
  .card-footer { margin-top: 12px; }
  
  .bullet { margin: 14px 0 0 18px; color: var(--muted); line-height: 1.6; }
  .bullet strong { color: var(--text); }
  .compact { margin-top: 10px; }
  
  .metrics {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .metric { 
    padding: 14px;
    position: relative;
    overflow: hidden;
  }
  
  .metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .metric:hover::before {
    transform: scaleX(1);
  }
  
  .metric-k { 
    font-size: 12.5px; 
    color: var(--muted); 
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .metric:hover .metric-k {
    color: var(--primary);
  }
  
  .metric-v { 
    margin-top: 6px; 
    font-weight: 700; 
    letter-spacing: -0.01em;
    transition: transform 0.3s ease;
  }
  
  .metric:hover .metric-v {
    transform: translateX(4px);
  }
  
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
  
  /* ---------- About Section ---------- */
  .about-layout {
    display: flex;
    gap: 50px;
    align-items: stretch;
    max-width: 100%;
  }
  
  .about-content {
    flex: 1;
    line-height: 1.7;
    padding: 40px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  html[data-theme="light"] .about-content {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  }
  
  .about-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.25);
  }
  
  html[data-theme="light"] .about-content:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
  }
  
  .about-content p {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: var(--text);
  }
  
  .about-content p:last-child {
    margin-bottom: 0;
  }
  
  .about-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .about-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .about-content a:hover {
    text-decoration: none;
  }
  
  .about-content a:hover::after {
    transform: scaleX(1);
  }
  
  .about-photo {
    width: 360px;
    flex-shrink: 0;
  }

  .about-photo img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    object-fit: cover;
    object-position: center;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
    transition: all 0.4s ease;
  }

  .about-photo img:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(59, 130, 246, 0.5);
  }
  
  .about-photo .photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
  }
  
  .about-photo .photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .about-photo .photo-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.5);
  }
  
  .about-photo .photo-placeholder:hover::before {
    opacity: 1;
  }
  
  .about-photo .photo-initial {
    font-size: 80px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
  }
  
  
  .chip-title { font-weight: 700; margin-bottom: 10px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(96,165,250,0.10);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--muted);
    transition: all 0.3s ease;
    cursor: default;
  }
  
  .chip:hover {
    transform: translateY(-2px);
    background: rgba(59,130,246,0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }
  
  /* ---------- Work Section ---------- */
  .work-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 40px;
  }
  
  .work-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), transparent);
    opacity: 0.3;
  }
  
  .work-item {
    padding: 32px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
  }
  
  .work-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 36px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--border);
    opacity: 0;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
  }
  
  .work-item:hover::before {
    opacity: 1;
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--primary), 0 0 20px var(--primary);
  }
  
  html[data-theme="light"] .work-item {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  }
  
  .work-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.25);
  }
  
  html[data-theme="light"] .work-item:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  }
  
  .work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
  }
  
  .work-title-block h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    transition: color 0.3s ease;
  }
  
  .work-item:hover .work-title-block h3 {
    color: var(--primary);
  }
  
  .work-company {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
  }
  
  .work-company a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .work-company a:hover {
    text-decoration: underline;
  }
  
  .work-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
    flex-shrink: 0;
  }
  
  .work-period {
    font-weight: 600;
  }
  
  .work-location {
    opacity: 0.8;
  }
  
  .work-description {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
  }
  .tag {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.15);
    color: var(--muted);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
  }
  
  .tag:hover {
    transform: scale(1.05);
    background: rgba(59,130,246,0.25);
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 0 15px rgba(59,130,246,0.3);
  }
  
  /* ---------- Projects ---------- */
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* ---------- Projects Grid ---------- */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }
  
  .project-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  html[data-theme="light"] .project-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.1);
  }
  
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
  }
  
  html[data-theme="light"] .project-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  }
  
  .project-image {
    width: 100%;
    height: 320px;
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    overflow: hidden;
  }

  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
  }
  
  .project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
  }
  
  .project-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    transition: color 0.3s ease;
  }
  
  .project-card:hover .project-title {
    color: var(--primary);
  }
  
  .project-description {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
  }
  
  .project-tags .chip {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .project-links {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
  }
  
  .project-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.3s ease;
  }
  
  html[data-theme="light"] .project-link {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
  }
  
  .project-link:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
  }
  
  .note { margin-top: 12px; }
  
  /* ---------- Contact ---------- */
  /* ---------- Contact Section ---------- */
  #connect {
    background: rgba(7, 10, 18, 0.6);
    margin-top: 60px;
    padding: 70px 0 60px 0;
  }
  
  html[data-theme="light"] #connect {
    background: rgba(232, 237, 243, 1);
    border-top: 1px solid rgba(220, 227, 235, 1);
  }
  
  .contact-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  .contact-email-btn {
    font-size: 16px;
    padding: 16px 32px;
    min-width: 280px;
  }
  
  .contact-email-btn svg {
    flex-shrink: 0;
  }
  
  .contact-social {
    display: flex;
    gap: 16px;
    justify-content: center;
  }
  
  .social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.3s ease;
  }
  
  html[data-theme="light"] .social-icon {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(100, 116, 139, 0.2);
  }
  
  .social-icon:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
  }
  
  .social-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .contact-links {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
  }
  
  .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .contact-link:hover {
    color: var(--primary);
  }
  
  .contact-link svg {
    flex-shrink: 0;
  }
  
  .contact-divider-vertical {
    color: var(--border);
    font-size: 12px;
  }
  
  /* ---------- Footer ---------- */
  .footer {
    padding: 26px 0 40px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    margin-top: 0;
    background: rgba(7, 10, 18, 0.6);
  }
  
  html[data-theme="light"] .footer {
    background: rgba(232, 237, 243, 1);
    border-top-color: rgba(220, 227, 235, 1);
  }
  
  .footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
  }
  
  .footer-inner {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  /* ---------- Mobile ---------- */
  @media (max-width: 900px) {
    .hero-landing {
      min-height: 80vh;
    }
    
    .hero-name {
      font-size: 42px;
    }
    
    .hero-subtitle {
      font-size: 18px;
    }
    
    .hero-subtitle-secondary {
      font-size: 16px;
    }
    
    .about-layout {
      flex-direction: column-reverse;
      gap: 40px;
      align-items: flex-start;
    }
    
    .about-photo {
      width: 100%;
      max-width: 260px;
      margin: 0 auto;
    }
    
    .about-photo .photo-placeholder {
      aspect-ratio: 1;
      min-height: auto;
    }
    
    .about-photo .photo-initial {
      font-size: 70px;
    }
    
    .about-content {
      max-width: 100%;
      padding: 32px;
    }
    
    .contact-email-btn {
      min-width: 100%;
      font-size: 15px;
      padding: 14px 24px;
    }
    
    .contact-links {
      flex-direction: column;
      gap: 12px;
    }
    
    .contact-divider-vertical {
      display: none;
    }
    
    .metrics { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    
    .header-inner {
      flex-wrap: wrap;
      gap: 12px;
    }
    
    .brand {
      flex: 1;
    }
    
    .nav {
      order: 3;
      width: 100%;
      margin: 0;
      justify-content: space-around;
      gap: 16px;
      padding-top: 8px;
      border-top: 1px solid var(--border);
    }
    
    .nav a {
      font-size: 13px;
    }
    
    .hide-sm { display: none; }
    
  /* Work Section Mobile */
  .work-list {
    padding-left: 0;
  }
  
  .work-list::before {
    display: none;
  }
  
  .work-item {
    padding: 24px;
  }
  
  .work-item::before {
    display: none;
  }
  
  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .work-meta {
    align-items: flex-start;
  }
  
  .work-title-block h3 {
    font-size: 16px;
  }
  
  .work-company {
    font-size: 14px;
  }
  
  /* Projects Section Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-title {
    font-size: 18px;
  }
    
    /* Simplify parallax on mobile */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation: none !important;
        transition: none !important;
      }
    }
  }
  