/* ============================================================
   CSS Custom Properties
   ============================================================ */
   :root {
    --bg:           #0a0a12;
    --bg-card:      #0f0f1a;
    --bg-card-alt:  #13131f;
    --surface:      #141425;
    --border:       rgba(255, 255, 255, 0.07);
    --border-hover: rgba(139, 92, 246, 0.5);
    --accent:       #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow:  rgba(124, 58, 237, 0.3);
    --accent-cyan:  #22d3ee;
    --text-primary: #f1f5f9;
    --text-secondary: rgba(241, 245, 249, 0.65);
    --text-muted:   rgba(241, 245, 249, 0.35);
    --danger:       #ef4444;
    --font-mono:    'Space Mono', monospace;
    --font-body:    'DM Sans', sans-serif;
    --radius:       8px;
    --radius-lg:    14px;
    --radius-pill:  999px;
    --transition:   0.2s ease;
  
    /* Aliases for existing rules + admin panel */
    --bg-base:        var(--bg);
    --bg-alt:         var(--bg-card-alt);
    --bg-card-hover:  #18182b;
    --font:           var(--font-body);
    --border-subtle:  var(--border);
    --accent-dim:     rgba(124, 58, 237, 0.15);
    --section-gap:    5rem;
    --success:        #34d399;
    --warning:        #fbbf24;
  }
  
  /* ============================================================
     Reset & Base
     ============================================================ */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-y: scroll;
  }
  
  body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
  }
  
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
      radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 80% at 80% 70%, rgba(34, 211, 238, 0.07) 0%, transparent 55%),
      radial-gradient(ellipse 100% 100% at 50% 50%, rgba(15, 15, 26, 1) 40%, #0a0a12 100%);
  }
  
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
  }
  
  ul {
    list-style: none;
  }
  
  a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
  }
  
  a:hover {
    color: var(--text-primary);
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  /* ============================================================
     Layout Utilities
     ============================================================ */
  .container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .section {
    padding: var(--section-gap) 0;
  }
  
  .section-alt {
    background-color: transparent;
  }
  
  .section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    margin-top: 0.5rem;
  }
  
  .section-subtitle {
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  
  /* ============================================================
     Buttons
     ============================================================ */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: background var(--transition), color var(--transition),
                box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
  }
  
  .btn:active {
    transform: translateY(1px);
  }
  
  .btn-primary {
    background: var(--accent);
    color: #fff;
  }
  
  .btn-primary:hover {
    background: var(--accent-light);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
  }
  
  .btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
  }
  
  .btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--accent);
  }
  
  .btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
  }
  
  .btn-danger:hover {
    background: var(--danger);
    color: #fff;
  }
  
  /* ============================================================
     Navigation
     ============================================================ */
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 18, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.75rem;
  }
  
  .nav-logo {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    letter-spacing: 0.02em;
  }
  
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
  }
  
  .nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
  }
  
  .nav-links a:hover {
    color: var(--text-primary);
    background: var(--accent-dim);
    border-color: var(--border-hover);
  }
  
  .nav-links a.nav-active {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.1);
  }
  
  /* ============================================================
     Hero
     ============================================================ */
  .hero {
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
  }
  
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }
  
  .hero-text {
    min-width: 0;
  }
  
  .hero-greeting {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
  }
  
  .hero-name {
    font-family: var(--font-mono);
    font-size: clamp(2.75rem, 7vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
  }
  
  .hero-tagline-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem;
    min-height: 1.6rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-tagline {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-light);
    letter-spacing: 0.02em;
  }
  
  .cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 1.1rem;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
  }
  
  .hero-bio {
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
  }
  
  .hero-bio strong {
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  .hero-cta .btn {
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.35rem;
  }
  
  .hero-cta .btn-primary {
    background: transparent;
    color: var(--accent-light);
    border: 1px solid var(--accent);
  }
  
  .hero-cta .btn-primary:hover {
    background: var(--accent-dim);
    color: var(--text-primary);
    border-color: var(--border-hover);
    box-shadow: 0 0 24px var(--accent-glow);
  }
  
  .hero-cta .btn-ghost {
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
  }
  
  .hero-cta .btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--accent-dim);
  }
  
  .hero-photo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .hero-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(124, 58, 237, 0.1);
  }
  
  .hero-photo-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
  }
  
  /* ============================================================
     Skills
     ============================================================ */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1.75rem;
  }
  
  .skill-category-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
  
  .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .skill-chip {
    background: var(--bg-card-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: var(--font-mono);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
  }
  
  .skill-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--surface);
  }
  
  /* ============================================================
     Projects Grid & Cards
     ============================================================ */
  .projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .projects-empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
  }
  
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }
  
  .project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
  }
  
  .project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 40px rgba(0, 0, 0, 0.35);
  }
  
  .project-card-body {
    flex: 1 1 320px;
    min-width: 0;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .project-card-visual {
    flex: 0 1 38%;
    min-width: 200px;
    min-height: 180px;
    background:
      linear-gradient(145deg, rgba(124, 58, 237, 0.22) 0%, transparent 55%),
      linear-gradient(225deg, rgba(34, 211, 238, 0.12) 0%, transparent 50%),
      var(--surface);
    border-left: 1px solid var(--border);
  }
  
  .project-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
  }
  
  .project-description {
    position: relative;
    padding-left: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
  }
  
  .project-bullets {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    flex: 1;
  }
  
  .project-bullets li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
  }
  
  .project-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-size: 0.8rem;
    top: 0.1rem;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  
  .project-tag {
    background: var(--bg-base);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.725rem;
    font-weight: 500;
    font-family: var(--font-mono);
  }
  
  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-top: 0.25rem;
    transition: gap var(--transition);
  }
  
  .project-link:hover {
    gap: 0.5rem;
    color: var(--text-primary);
  }
  
  
  /* ============================================================
     Footer
     ============================================================ */
  .footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
  }
  
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .footer-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .footer-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .footer-links {
    display: flex;
    gap: 1.75rem;
    margin: 0.25rem 0;
  }
  
  .footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
  }
  
  .footer-links a:hover {
    color: var(--accent-light);
  }
  
  .footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }
  
  /* ============================================================
     Admin Page Styles
     ============================================================ */
  .admin-body {
    background: var(--bg-base);
    min-height: 100vh;
  }
  
  .admin-nav {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .admin-nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
  
  .admin-nav-title span {
    color: var(--accent-light);
  }
  
  .admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .admin-tab {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s ease;
  }
  
  .admin-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  
  /* Login */
  .login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 3.5rem);
    padding: 2rem 1.5rem;
  }
  
  .login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
  }
  
  .login-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
  
  .login-card .login-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
  }
  
  /* Form elements */
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .form-group input,
  .form-group textarea {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
  }
  
  .form-group textarea {
    resize: vertical;
    min-height: 90px;
  }
  
  .form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
  }
  
  .error-msg {
    font-size: 0.82rem;
    color: var(--danger);
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    display: none;
  }
  
  .error-msg.visible {
    display: block;
  }
  
  /* Admin layout */
  .admin-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
  }
  
  .admin-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .admin-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 1.5rem;
    height: fit-content;
  }
  
  .admin-list-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
  }
  
  .admin-project-count {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  /* Admin project rows */
  .admin-project-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color var(--transition);
  }
  
  .admin-project-item.is-editing {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
  }
  
  .admin-project-info {
    flex: 1;
    min-width: 0;
  }
  
  .admin-project-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .admin-project-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .admin-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
  }
  
  .admin-project-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
  }
  
  .admin-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
  }
  
  /* Form submit row */
  .form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  
  /* Success flash */
  .flash {
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
    display: none;
  }
  
  .flash.visible {
    display: block;
  }
  
  .flash-success {
    color: var(--success);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
  }
  
  /* ============================================================
     Responsive
     ============================================================ */
  @media (max-width: 900px) {
    .admin-layout {
      grid-template-columns: 1fr;
    }
  
    .admin-form-card {
      position: static;
    }
  }
  
  @media (max-width: 768px) {
    .hero {
      padding: 4rem 0 3rem;
    }
  
    .hero-inner {
      grid-template-columns: 1fr;
      justify-items: center;
      text-align: center;
    }
  
    .hero-text {
      text-align: center;
    }
  
    .hero-bio {
      margin-left: auto;
      margin-right: auto;
    }
  
    .hero-tagline-wrapper {
      justify-content: center;
    }
  
    .hero-cta {
      justify-content: center;
    }
  
    .nav-links {
      gap: 0.4rem;
    }
  
    .skills-grid {
      grid-template-columns: 1fr 1fr;
    }
  
    .section {
      padding: 3.5rem 0;
    }
  
    .project-card {
      flex-direction: column;
    }
  
    .project-card-visual {
      flex: 0 0 auto;
      width: 100%;
      min-height: 140px;
      border-left: none;
      border-top: 1px solid var(--border);
    }
  }
  
  @media (max-width: 480px) {
    .hero-name {
      font-size: 2.25rem;
    }
  
    .hero-cta {
      flex-direction: column;
    }
  
    .hero-cta .btn {
      width: 100%;
      justify-content: center;
    }
  
    .skills-grid {
      grid-template-columns: 1fr;
    }
  
    .nav-links {
      display: none;
    }
  
    .footer-links {
      gap: 1.25rem;
    }
  }
  
  /* ============================================================
     nav-logo as link
     ============================================================ */
  a.nav-logo {
    color: var(--text-primary);
    text-decoration: none;
  }
  
  a.nav-logo:hover {
    color: var(--accent-light);
  }
  
  /* ============================================================
     Timeline (Education & Experience)
     ============================================================ */
  .timeline-list {
    margin-top: 1.75rem;
  }
  
  .timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
    transition: border-color var(--transition);
  }
  
  .timeline-card:hover {
    border-color: var(--border-hover);
    border-left-color: var(--accent-light);
  }
  
  .timeline-card.timeline-incoming {
    border-left-width: 4px;
    border-left-color: var(--accent);
  }
  
  .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
  }
  
  .timeline-org {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
  }
  
  .timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
  }
  
  .timeline-role {
    font-size: 0.85rem;
    color: #a78bfa;
    margin-bottom: 0.2rem;
    font-weight: 500;
  }
  
  .timeline-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.6rem;
    line-height: 1.6;
  }
  
  .timeline-body strong {
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .timeline-bullets {
    margin: 0.6rem 0 0 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
  }
  
  .timeline-bullets li {
    margin-bottom: 0.35rem;
  }
  
  /* ── Certifications ─────────────────────────────── */
  .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: border-color 0.2s ease;
  }
  
  .cert-card:hover {
    border-color: var(--accent);
  }
  
  .cert-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
  }
  
  .cert-issuer {
    font-size: 0.82rem;
    color: var(--accent);
  }
  
  .cert-date {
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  
  .cert-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
  }
  
  .cert-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    width: fit-content;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  
  .cert-link:hover {
    color: var(--accent);
    border-color: var(--accent);
  }
  
  @media (max-width: 600px) {
    .cert-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* ============================================================
     Skills — wide category spanning full grid row
     ============================================================ */
  .skill-category-wide {
    grid-column: 1 / -1;
  }
  
  /* ============================================================
     Projects — section sub-labels
     ============================================================ */
  .projects-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
  }
  
  /* Multiple links inside one card */
  .project-links-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
  }
  
  /* ============================================================
     Highlights
     ============================================================ */
  .highlights-list {
    margin-top: 0;
  }
  
  .highlight-card {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--bg-card);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transition: background var(--transition);
  }
  
  .highlight-card:hover {
    background: var(--bg-card-hover);
  }
  
  .highlight-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
  }
  
  .highlight-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
  }
  
  /* ============================================================
     Footer — contact grid
     ============================================================ */
  .footer-contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin: 0.75rem 0 0.5rem;
  }
  
  .footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }
  
  .footer-contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }
  
  .footer-contact-item a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
  }
  
  .footer-contact-item a:hover {
    color: var(--accent-light);
  }
  
  /* ============================================================
     Responsive additions for new sections
     ============================================================ */
  @media (max-width: 768px) {
    .timeline-header {
      flex-direction: column;
      gap: 0.35rem;
    }
  
    .footer-contact-grid {
      gap: 1.25rem 2rem;
    }
  
    .skill-category-wide {
      grid-column: unset;
    }
  }
  
  @media (max-width: 480px) {
    .footer-contact-grid {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
  
    .project-links-row {
      flex-direction: column;
      gap: 0.5rem;
    }
  }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s ease;
}
.cert-card:hover { border-color: var(--border-hover); }
.cert-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.cert-issuer { font-size: 0.82rem; color: var(--accent); }
.cert-date { font-size: 0.78rem; color: var(--text-muted); }
.cert-description { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.2rem; }
.cert-link {
  display: inline-block; margin-top: 0.5rem; font-size: 0.78rem;
  color: var(--text-muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.25rem 0.65rem; width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cert-link:hover { color: var(--accent-light); border-color: var(--accent); }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } }

#hero-bio {
  display: block;
  min-height: 200px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#hero-bio.is-visible {
  opacity: 1;
}

.fade-in-section {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in-section.is-visible {
  opacity: 1 !important;
}

#experience,
#education,
#skills,
#highlights {
  min-height: max(300px, 50vh);
}

@media (max-width: 768px) {
  #experience,
  #education,
  #skills,
  #highlights {
    min-height: 320px;
  }

  #hero-bio {
    min-height: 320px;
  }
}