 :root {
  /* Accessible soft pink + blue: clear text, calm surfaces, restrained accents */
  --bg-base: #f6f8fc;
  --bg-card: #ffffff;
  --bg-card-hover: #fdf3f8;
  --text-main: #263449;
  --text-muted: #526176;
  --text: #526176;
  --navy: #17263d;
  --accent-pink: #a92367;
  --accent-blue: #17618b;
  --pastel-blue: #e8f3fa;
  --pastel-pink: #fbeaf2;
  --pastel-yellow: #fff3cd;
  --line: #d9e3ed;
  --radius: 24px;
  --shadow-soft: 0 8px 24px rgba(26, 45, 71, .07);
}

    * { box-sizing: border-box; margin: 0; padding: 0; cursor: default; }
    button, a, input, textarea { cursor: pointer; }
    
    body {
      background-color: var(--bg-base);
      color: var(--text-main);
      font-family: 'Quicksand', sans-serif;
      overflow: hidden;
      display: flex;
      height: 100vh;
      font-size: 16px;
      background-image: radial-gradient(#dce7f0 0.8px, transparent 0.8px);
      background-size: 36px 36px;
      background-position: 0 0;
    }

    h1, h2, h3, h4, h5, h6 { font-family: 'Comfortaa', cursive; color: var(--navy); }
    .serif-italic { font-family: 'Playfair Display', serif; font-style: italic; color: var(--accent-pink); }
    
    a { text-decoration: none; color: inherit; }
    button { border: none; font: inherit; background: none; outline: none; }
    ul { list-style: none; }

    /* =========================================
       SPARKLE CURSOR EFFECT
       ========================================= */
    .sparkle {
      position: fixed;
      pointer-events: none;
      font-size: 14px;
      animation: sparkleAnim 0.8s ease-in-out forwards;
      z-index: 9999;
      user-select: none;
    }
    @keyframes sparkleAnim {
      0% { transform: translate(0, 0) scale(0.8) rotate(0deg); opacity: 1; }
      100% { transform: translate(var(--dx), var(--dy)) scale(1.4) rotate(180deg); opacity: 0; }
    }

    /* =========================================
       LAYOUT STRUCTURE (DASHBOARD)
       ========================================= */
    .app-container {
      display: flex;
      width: 100%;
      height: 100%;
      padding: 20px;
      gap: 20px;
      max-width: 1600px;
      margin: 0 auto;
    }

    /* 1. SIDEBAR NAV (FAR LEFT) - ENLARGED */
    .sidebar {
      width: 90px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      padding: 10px 0;
      flex-shrink: 0;
      z-index: 50;
    }
    
    .nav-btn {
      width: 66px;
      height: 66px;
      border-radius: 22px;
      background: var(--bg-card);
      color: var(--text-muted);
      display: grid;
      place-items: center;
      transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      border: 2px solid var(--line);
      box-shadow: 0 6px 18px rgba(23, 97, 139, 0.15);
    }
    
    .nav-btn:hover {
      color: var(--accent-pink);
      background: var(--pastel-pink);
      border-color: #d687ad;
      transform: scale(1.1) translateY(-2px);
      box-shadow: 0 10px 22px rgba(169, 35, 103, 0.2);
    }
    
    .nav-btn.active {
      background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
      color: #ffffff;
      border-color: transparent;
      box-shadow: 0 8px 22px rgba(169, 35, 103, 0.35);
      transform: scale(1.05);
    }
    
    .nav-btn svg { width: 28px; height: 28px; fill: currentColor; }

    .nav-label {
      position: absolute;
      left: calc(100% + 15px);
      top: 50%;
      transform: translateY(-50%);
      background: #1e293b;
      color: #fff;
      padding: 6px 14px;
      border-radius: 12px;
      font-weight: 700;
      font-size: 12px;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 100;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }
    
    .nav-label::before {
      content: '';
      position: absolute;
      left: -4px;
      top: 50%;
      transform: translateY(-50%);
      border-width: 5px 5px 5px 0;
      border-style: solid;
      border-color: transparent #1e293b transparent transparent;
    }

    .nav-btn:hover .nav-label, .nav-btn.active .nav-label {
      opacity: 1;
      visibility: visible;
      left: calc(100% + 12px);
    }

    /* 2. FIXED PROFILE CARD (SECOND COLUMN) - Aesthetic Update */
    .profile-sidebar {
      width: 320px;
      background: linear-gradient(135deg, #ffffff 0%, #fdf7fa 100%);
      border-radius: var(--radius);
      padding: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      flex-shrink: 0;
      border: 2px solid #d687ad;
      height: calc(100vh - 40px);
      overflow-y: auto;
      box-shadow: 0 12px 35px rgba(169, 35, 103, 0.15);
      transition: transform 0.3s ease;
      z-index: 10;
      position: relative;
    }
    .profile-sidebar:hover { transform: translateY(-3px); }
    .profile-sidebar::-webkit-scrollbar { display: none; }
    
    .profile-badge {
      background: var(--pastel-pink);
      color: var(--accent-pink);
      font-size: 10px;
      font-weight: 800;
      padding: 5px 12px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 14px;
      border: 1px solid #edd2e0;
      box-shadow: 0 4px 10px rgba(169, 35, 103, 0.1);
    }

    .profile-img-wrap {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      overflow: hidden;
      margin-bottom: 16px;
      background: var(--pastel-blue);
      border: 4px solid #ffffff;
      box-shadow: 0 8px 25px rgba(169, 35, 103, 0.25);
    }
    .profile-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
    .profile-sidebar:hover .profile-img-wrap img { transform: scale(1.08); }
    
    .profile-sidebar h2 { font-size: 22px; margin-bottom: 4px; font-weight: 800; color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 6px; }
    .profile-sidebar h2::after { content: '✨'; font-size: 16px; }
    
    .profile-role {
      font-size: 12px;
      font-weight: 700;
      color: var(--accent-pink);
      margin-bottom: 12px;
      background: var(--pastel-pink);
      padding: 3px 10px;
      border-radius: 10px;
    }

    .profile-sidebar p.bio { font-size: 13px; color: var(--text); line-height: 1.6; margin-bottom: 20px; }
    
    .social-links { display: flex; gap: 10px; margin-bottom: 20px; justify-content: center; width: 100%; }
    .social-links a {
      width: 40px; height: 40px; border-radius: 50%;
      border: 2px solid var(--line);
      display: grid; place-items: center;
      color: var(--text-muted); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      background: #ffffff;
    }
    .social-links a:hover { border-color: var(--accent-pink); color: #fff; background: var(--accent-pink); transform: translateY(-4px) rotate(8deg); box-shadow: 0 6px 15px rgba(169, 35, 103, 0.3); }
    .social-links svg { width: 16px; height: 16px; fill: currentColor; }

    /* EYE-CATCHING HIRE ME BUTTON */
    .btn-download {
      background: linear-gradient(135deg, #a92367, #c43e7c, #a92367);
      background-size: 200% 200%;
      color: #ffffff;
      width: 100%;
      padding: 16px;
      border-radius: 30px;
      font-weight: 800;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      margin-top: auto;
      box-shadow: 0 8px 25px rgba(169, 35, 103, 0.4);
      animation: none;
      border: 2px solid rgba(255, 255, 255, 0.6);
    }
    @keyframes buttonPulse {
      0% { background-position: 0% 50%; box-shadow: 0 8px 25px rgba(169, 35, 103, 0.4); }
      50% { background-position: 100% 50%; box-shadow: 0 12px 30px rgba(169, 35, 103, 0.7); transform: scale(1.02); }
      100% { background-position: 0% 50%; box-shadow: 0 8px 25px rgba(169, 35, 103, 0.4); }
    }
    .btn-download:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 35px rgba(169, 35, 103, 0.8); }

    /* 3. MAIN CONTENT AREA (RIGHT) */
    .main-content {
      flex: 1;
      height: calc(100vh - 40px);
      overflow-y: auto;
      padding: 10px 40px 60px 40px;
      position: relative;
      scroll-behavior: smooth;
    }
    
    .main-content::-webkit-scrollbar { width: 6px; }
    .main-content::-webkit-scrollbar-track { background: transparent; }
    .main-content::-webkit-scrollbar-thumb { background: #d9e3ed; border-radius: 10px; }

    /* Tab Transitions */
    .tab-section {
      display: none;
      opacity: 0;
    }
    .tab-section.active {
      display: block;
      animation: tabFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes tabFadeIn {
      0% { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(4px); }
      100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    }

    /* Common Section Styles */
    .section-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; margin-bottom: 16px; color: var(--accent-pink); background: var(--pastel-pink); padding: 6px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; border: 2px solid #d687ad; }
    .section-tag svg { width: 16px; height: 16px; fill: currentColor; }
    .section-title { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.1; margin-bottom: 35px; color: var(--navy); }
    
    /* FULLER HOME TAB */
    .home-hero-card {
      background: linear-gradient(135deg, #ffffff 0%, #f6f8fc 100%);
      border: 2px solid var(--line);
      border-radius: 32px;
      padding: 45px;
      box-shadow: 0 15px 40px rgba(23, 97, 139, 0.12);
      position: relative;
      overflow: hidden;
      margin-bottom: 30px;
    }
    .home-hero-card::after {
      content: '🌸';
      position: absolute;
      right: -20px;
      bottom: -20px;
      font-size: 120px;
      opacity: 0.15;
      transform: rotate(-15deg);
    }
    .hero-desc { font-size: 16px; color: var(--text-muted); line-height: 1.8; max-width: 650px; margin-bottom: 30px; }
    
    .home-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 15px;
      margin-bottom: 35px;
    }
    .stat-card {
      background: #ffffff;
      border: 2px solid var(--line);
      border-radius: 20px;
      padding: 20px;
      text-align: center;
      box-shadow: 0 6px 15px rgba(23, 97, 139, 0.08);
      transition: all 0.3s;
    }
    .stat-card:hover { transform: translateY(-4px); border-color: var(--accent-pink); box-shadow: 0 10px 25px rgba(169, 35, 103, 0.15); }
    .stat-card h3 { font-size: 26px; font-weight: 800; color: var(--accent-pink); margin-bottom: 4px; }
    .stat-card p { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

    .cta-banner {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 35px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: 2px solid var(--line);
      transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 8px 25px rgba(23, 97, 139, 0.15);
      position: relative;
      overflow: hidden;
    }
    .cta-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(224, 242, 254, 0.4), rgba(252, 231, 243, 0.4));
      opacity: 0;
      transition: opacity 0.3s;
    }
    .cta-banner:hover::before { opacity: 1; }
    .cta-banner:hover { border-color: var(--accent-pink); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(169, 35, 103, 0.2); }
    .cta-banner h2 { font-size: 24px; font-weight: 800; color: var(--navy); position: relative; z-index: 1; }
    .cta-banner span { position: relative; z-index: 1; }
    .cta-arrow { width: 50px; height: 50px; border-radius: 50%; background: var(--pastel-blue); border: 2px solid #96c7e4; display: grid; place-items: center; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: var(--accent-blue); position: relative; z-index: 1; }
    .cta-banner:hover .cta-arrow { background: var(--accent-pink); color: #fff; border-color: var(--accent-pink); transform: rotate(45deg) scale(1.1); }
    .cta-arrow svg { width: 20px; height: 20px; fill: currentColor; }

    /* SPECIAL CARD ANIMATION */
    .special-hover {
      transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
    }
    .special-hover:hover {
      transform: translateY(-8px) scale(1.02);
      border-color: var(--accent-pink) !important;
      box-shadow: 0 15px 35px rgba(169, 35, 103, 0.2), 0 5px 15px rgba(23, 97, 139, 0.15) !important;
      background: #ffffff !important;
    }

    /* SKILLS STYLING */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
    }
    .skill-card {
      background: var(--bg-card);
      border: 2px solid var(--line);
      border-radius: var(--radius);
      padding: 26px;
      box-shadow: 0 6px 20px rgba(23, 97, 139, 0.1);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .skill-header {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .skill-icon {
      width: 44px; height: 44px; border-radius: 14px; background: var(--pastel-blue); 
      display: grid; place-items: center; font-size: 18px; font-weight: 800; color: var(--accent-blue);
      border: 2px solid #96c7e4;
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .skill-card:hover .skill-icon { transform: rotate(12deg) scale(1.1); background: var(--pastel-pink); border-color: var(--accent-pink); color: var(--accent-pink); }
    .skill-card h3 { font-size: 17px; color: var(--navy); }
    .skill-tags-wrap {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 4px;
    }
    .skill-tag-item {
      font-size: 11px;
      font-weight: 700;
      background: var(--pastel-blue);
      color: var(--accent-blue);
      padding: 5px 10px;
      border-radius: 8px;
      border: 1px solid #d9e3ed;
    }

    /* PROJECTS */
    .project-filters { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
    .filter-btn { padding: 9px 18px; border-radius: 14px; border: 2px solid var(--line); color: var(--text-muted); font-size: 13px; font-weight: 700; transition: all 0.3s; background: var(--bg-card); }
    .filter-btn.active, .filter-btn:hover { background: var(--accent-pink); color: #ffffff; border-color: var(--accent-pink); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(169, 35, 103, 0.25); }

    .project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
    .project-card { background: var(--bg-card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: left; cursor: pointer; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(23, 97, 139, 0.1); }
    .project-art { height: 170px; border-radius: 16px; background: var(--pastel-pink); margin-bottom: 16px; overflow: hidden; position: relative; border: 2px solid #edd2e0; }
    .project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .project-card:hover .project-art img { transform: scale(1.08); }
    .project-meta { font-size: 11px; font-weight: 800; color: var(--accent-pink); letter-spacing: 0.05em; margin-bottom: 8px; display: flex; justify-content: space-between;}
    .project-meta .year { color: var(--text-muted); }
    .project-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--navy); }
    .project-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
    .card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
    .card-tags span { font-size: 10px; font-weight: 700; background: var(--pastel-blue); padding: 5px 10px; border-radius: 8px; color: var(--accent-blue); border: 1px solid #d9e3ed; }

    /* TIMELINE */
    .timeline-container { display: grid; gap: 20px; }
    .timeline-item { background: var(--bg-card); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; box-shadow: 0 6px 20px rgba(23, 97, 139, 0.1); }
    .timeline-date { font-size: 11px; font-weight: 800; color: var(--accent-pink); margin-bottom: 8px; display: inline-block; letter-spacing: 0.05em; background: var(--pastel-pink); padding: 5px 12px; border-radius: 8px; border: 1px solid #edd2e0; }
    .timeline-item h3 { font-size: 20px; margin-bottom: 4px; color: var(--navy); }
    .timeline-company { font-size: 13px; color: var(--text-main); font-weight: 700; margin-bottom: 14px; display: block; }
    .timeline-item ul { padding-left: 18px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
    .timeline-item li { margin-bottom: 6px; }

    /* MODAL */
    .modal-backdrop { position: fixed; inset: 0; background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(6px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s; }
    .modal-backdrop.is-open { display: flex; opacity: 1; }
    .modal { background: var(--bg-card); border: 2px solid var(--line); border-radius: 28px; width: min(650px, 100%); max-height: 90vh; overflow-y: auto; padding: 36px 32px 32px 32px; position: relative; transform: translateY(20px) scale(0.95); opacity: 0; transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 25px 60px rgba(169, 35, 103, 0.25); }
    .modal-backdrop.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }
    
    /* Fixed Exit / Close Button inside Modal */
    .modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--pastel-pink); color: var(--accent-pink); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; transition: 0.3s; border: 2px solid #edd2e0; z-index: 50; cursor: pointer; box-shadow: 0 4px 12px rgba(169, 35, 103, 0.2); }
    .modal-close:hover { background: var(--accent-pink); color: #fff; transform: rotate(90deg) scale(1.1); }
    
    .modal-cover { width: 100%; height: 260px; object-fit: cover; border-radius: 18px; margin-bottom: 20px; cursor: zoom-in; border: 2px solid var(--line); }
    .modal .kicker { color: var(--accent-pink); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; display: inline-block; margin-bottom: 8px; background: var(--pastel-pink); padding: 5px 12px; border-radius: 8px; border: 1px solid #edd2e0; }
    .modal h2 { font-size: 26px; margin-bottom: 12px; color: var(--navy); }
    .modal p.intro { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
    .modal-section { margin-bottom: 18px; }
    .modal-section h3 { font-size: 15px; color: var(--navy); margin-bottom: 6px; }
    .modal-section p, .modal-section ul { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
    .modal-section ul { padding-left: 18px; }
    .modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--line); }
    .modal-tags span { background: var(--pastel-blue); padding: 6px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; color: var(--accent-blue); border: 1px solid #d9e3ed; }

    /* LIGHTBOX FOR ZOOM */
    .image-zoom-lightbox { position: fixed; inset: 0; background: rgba(30, 41, 59, 0.85); backdrop-filter: blur(6px); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: 0.3s; cursor: zoom-out; }
    .image-zoom-lightbox.is-active { display: flex; opacity: 1; }
    .image-zoom-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; transform: scale(0.9); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,0.3); border: 3px solid #96c7e4; }
    .image-zoom-lightbox.is-active img { transform: scale(1); }

    /* MOBILE RESPONSIVE */
    @media (max-width: 1024px) {
      .app-container { flex-direction: column; overflow-y: auto; height: auto; }
      body { overflow: auto; height: auto; }
      
      .sidebar { flex-direction: row; width: 100%; height: auto; justify-content: center; position: sticky; top: 0; background: var(--bg-base); z-index: 100; padding: 10px; border-bottom: 2px solid var(--line); backdrop-filter: blur(10px); }
      .nav-btn { width: 46px; height: 46px; }
      .nav-label { display: none; }
      
      .profile-sidebar { width: 100%; height: auto; border: 2px solid var(--line); background: var(--bg-card); padding: 24px; margin-top: 10px; }
      .profile-img-wrap { width: 120px; height: 120px; }
      
      .main-content { height: auto; padding: 20px 0; overflow-y: visible; }
    }

/* =============================================================
   READABILITY & RESPONSIVE REFINEMENTS
   Typography is readable on white, with darker accent foregrounds.
   ============================================================= */
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 4px;
}
::selection { background: #f4cee0; color: var(--navy); }
.nav-btn { box-shadow: var(--shadow-soft); }
.nav-btn.active { background: var(--accent-pink); box-shadow: 0 5px 16px rgba(169,35,103,.18); }
.profile-sidebar { border: 1px solid var(--line); background: #ffffff; box-shadow: var(--shadow-soft); }
.profile-sidebar:hover { transform: none; }
.profile-sidebar p.bio { color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.profile-role, .profile-badge { color: var(--accent-pink); }
.btn-download { background: var(--accent-pink); border: 1px solid var(--accent-pink); box-shadow: 0 6px 16px rgba(169,35,103,.17); }
.btn-download:hover { background: #861b52; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(169,35,103,.22); }
.section-tag { border: 1px solid #edd2e0; }
.section-title { line-height: 1.24; letter-spacing: -.025em; }
.serif-italic { color: var(--accent-pink); }
.hero-desc { color: var(--text-main); font-size: 16px; line-height: 1.85; }
.home-hero-card, .stat-card, .cta-banner, .skill-card, .project-card,
.timeline-item, .exp-timeline-card, .edu-card, .modal {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.home-hero-card { background: #fff; }
.home-hero-card::after { opacity: .075; }
.cta-banner h2 { line-height: 1.4; }
.cta-arrow, .skill-icon { color: var(--accent-blue); }
.skill-tag-item, .card-tags span, .modal-tags span {
  color: #205476; background: #edf5fa; border-color: #d3e5f1;
  font-size: 12px; line-height: 1.5;
}
.project-card p, .timeline-item ul, .modal-section p, .modal-section ul,
.edu-desc, .exp-timeline-item ul { font-size: 14px; line-height: 1.75; }
.project-meta, .timeline-date, .exp-timeline-item .date, .edu-badge-year,
.modal .kicker { font-size: 12px; }
.exp-timeline-item .company, .edu-school, .timeline-company { font-size: 14px; }
.edu-school { color: var(--accent-blue) !important; }
.exp-timeline-item .date { color: var(--accent-pink); }
.filter-btn { color: var(--text-main); }
.filter-btn.active, .filter-btn:hover { background: var(--accent-pink); border-color: var(--accent-pink); }
.special-hover:hover { box-shadow: 0 12px 28px rgba(26,45,71,.11) !important; transform: translateY(-3px); }
.main-content { min-width: 0; }
.timeline-item ul, .exp-timeline-item ul, .modal-section ul { list-style: disc; }
.project-card[data-modal] { cursor: pointer; }
.project-card[data-modal]:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 3px; }
.carousel-container { background: #e8edf3 !important; }

@media (max-width: 1200px) and (min-width: 1025px) {
  .app-container { gap: 14px; padding: 16px; }
  .profile-sidebar { width: 280px; height: calc(100vh - 32px); }
  .main-content { padding: 10px 14px 48px; height: calc(100vh - 32px); }
  .exp-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .app-container { padding: 12px 18px 30px; gap: 16px; }
  .sidebar { top: 0; gap: 10px; border-radius: 18px; box-shadow: var(--shadow-soft); }
  .main-content { padding: 12px 0 30px; }
  .profile-sidebar { margin-top: 0; }
  .exp-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .app-container { padding: 10px 14px 28px; gap: 12px; }
  .sidebar { gap: 7px; padding: 10px 5px; justify-content: space-around; }
  .nav-btn { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; }
  .nav-btn svg { width: 22px; height: 22px; }
  .profile-sidebar { padding: 22px 20px; border-radius: 22px; }
  .home-hero-card { padding: 26px 22px; border-radius: 24px; }
  .section-title { font-size: clamp(29px, 8vw, 40px); margin-bottom: 24px; }
  .hero-desc { font-size: 15px; }
  .cta-banner { padding: 22px; gap: 12px; }
  .cta-banner h2 { font-size: 18px; }
  .cta-arrow { width: 42px; height: 42px; flex-shrink: 0; }
  .skills-grid, .project-grid, .edu-grid { grid-template-columns: minmax(0, 1fr); }
  .skill-card, .timeline-item, .exp-timeline-card, .edu-card { padding: 22px; }
  .modal { padding: 52px 20px 24px; }
  .exp-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .sparkle { display: none !important; }
}

/* ==========================================================
   LEFT-SIDE NAVIGATION — full-height rail, icons centered
   Desktop order: Navigation | Profile | Content
   ========================================================== */
@media (min-width: 1025px) {
  .app-container > .sidebar {
    order: 0;
    width: 82px;
    min-width: 82px;
    height: 100%;
    padding: 16px 8px;
    align-self: stretch;
    justify-content: center;
    gap: 14px;
    position: relative;
    background: rgba(255,255,255,.65);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
  }
  .app-container > .profile-sidebar { order: 1; }
  .app-container > .main-content { order: 2; }
  .sidebar .nav-btn { width: 58px; height: 58px; border-radius: 18px; }
  .sidebar .nav-btn svg { width: 25px; height: 25px; }
  /* Tooltip appears to the right of the left rail. */
  .sidebar .nav-label,
  .sidebar .nav-btn:hover .nav-label,
  .sidebar .nav-btn:focus-visible .nav-label,
  .sidebar .nav-btn.active .nav-label {
    right: auto;
  }
  .sidebar .nav-label { left: calc(100% + 16px); }
  .sidebar .nav-btn:hover .nav-label,
  .sidebar .nav-btn:focus-visible .nav-label,
  .sidebar .nav-btn.active .nav-label { left: calc(100% + 12px); }
  .sidebar .nav-label::before {
    right: auto;
    left: -4px;
    border-width: 5px 5px 5px 0;
    border-color: transparent var(--navy) transparent transparent;
  }
}
@media (max-width: 1024px) {
  .app-container > .sidebar { order: 0; }
  .app-container > .profile-sidebar { order: 1; }
  .app-container > .main-content { order: 2; }
}


/* ============================================================
   PHONE: fixed bottom navigation with visible labels.
   Desktop left navigation is unchanged.
   ============================================================ */
.nav-mobile-label { display: none; }

@media (max-width: 768px) {
  html { scroll-padding-bottom: 110px; }
  body { min-height: 100dvh; height: auto; overflow-x: hidden; }
  .app-container {
    overflow: visible;
    height: auto;
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .app-container > .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    min-height: 72px;
    margin: 0;
    padding: 8px max(10px, env(safe-area-inset-right, 0px))
             calc(8px + env(safe-area-inset-bottom, 0px))
             max(10px, env(safe-area-inset-left, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: stretch;
    gap: 2px;
    background: rgba(255,255,255,.97);
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 -8px 26px rgba(26,45,71,.09);
    z-index: 150;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .sidebar .nav-btn {
    width: 100%;
    min-width: 0;
    height: 60px;
    padding: 6px 2px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
    transform: none;
    transition: color .2s ease, background-color .2s ease;
  }
  .sidebar .nav-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
  .sidebar .nav-btn .nav-label { display: none; }
  .sidebar .nav-btn .nav-mobile-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
  }
  .sidebar .nav-btn.active {
    background: var(--pastel-pink);
    color: var(--accent-pink);
    box-shadow: none;
    border: 0;
    transform: none;
  }
  .sidebar .nav-btn:hover,
  .sidebar .nav-btn.special-hover:hover {
    background: var(--pastel-pink) !important;
    color: var(--accent-pink);
    transform: none;
    box-shadow: none !important;
  }
  .sidebar .nav-btn:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: -2px;
  }
  .main-content { padding-bottom: 22px; }
  .modal-backdrop { z-index: 250; }
  .image-zoom-lightbox { z-index: 300; }
}

@media (max-width: 360px) {
  .app-container > .sidebar { padding-left: 4px; padding-right: 4px; gap: 0; }
  .sidebar .nav-btn .nav-mobile-label { font-size: 9px; }
}


/* =============================
   SELECTED WORK: LIVE PROJECTS
   ============================= */
.selected-work-intro { color: var(--text-muted); line-height: 1.8; font-size: 15px; margin: -12px 0 24px; max-width: 660px; }
.featured-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.featured-project-grid .project-card { min-width: 0; }
.project-art-custom { min-height: 210px; height: auto; padding: 24px; border: 1px solid rgba(25,45,70,.10); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; isolation: isolate; }
.project-art-custom::before { content: ''; position: absolute; width: 210px; height: 210px; border-radius: 50%; top: -115px; right: -50px; background: rgba(255,255,255,.16); z-index: -1; }
.project-art-custom .art-eyebrow { position: absolute; top: 18px; left: 22px; font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.project-art-custom .art-symbol { position: absolute; right: 22px; bottom: 35px; font-size: clamp(54px, 7vw, 90px); opacity: .22; line-height: 1; }
.project-art-custom strong { font-family: 'Comfortaa', sans-serif; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.25; font-weight: 800; max-width: 95%; z-index: 1; }
.project-art-custom strong em { font-family: 'Playfair Display', serif; font-weight: 600; }
.project-art-custom .art-footnote { font-size: 12px; font-weight: 700; margin-top: 12px; z-index: 1; }
.project-art-spark { background: linear-gradient(130deg, #ffe1a8 0%, #ffd1e1 53%, #efb4d9 100%); color: #592744; }
.project-art-rahmania { background: linear-gradient(130deg, #e6f4ef 0%, #d2e9e2 50%, #b9d7ca 100%); color: #194d43; }
.featured-project-grid .project-card p { line-height: 1.7; font-size: 14px; }
.project-live-link, .modal-live-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent-pink); color: #fff; padding: 12px 17px; border-radius: 13px; font-size: 13px; font-weight: 800; margin-top: 18px; align-self: flex-start; transition: background .2s ease, transform .2s ease; }
.project-live-link:hover, .modal-live-link:hover { background: #86194f; transform: translateY(-2px); }
.project-live-link:focus-visible, .modal-live-link:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 3px; }
.modal-live-link { margin-top: 22px; }
@media (max-width: 1150px) { .featured-project-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 768px) { .project-art-custom { min-height: 180px; padding: 20px; } .project-art-custom strong { font-size: 26px; } }


/* ===== Styles moved from HTML (single CSS source) ===== */
.exp-layout {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 40px;
          }
          .col-title {
            font-size: 17px;
            font-weight: 800;
            color: var(--navy);
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: 0.05em;
          }
          .timeline {
            position: relative;
            padding-left: 28px;
            display: flex;
            flex-direction: column;
            gap: 30px;
          }
          /* Vertical line connecting timeline nodes - Consistent Pink */
          .timeline::before {
            content: '';
            position: absolute;
            left: 7px;
            top: 8px;
            bottom: 8px;
            width: 2px;
            background: #f472b6;
          }
          .exp-timeline-item {
            position: relative;
          }
          /* Circle node marker on the vertical line */
          .exp-timeline-node {
            position: absolute;
            left: -28px;
            top: 4px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #ec4899; /* Pink dot matching theme */
            border: 3px solid var(--bg-base);
            box-shadow: 0 0 0 2px #ec4899;
            z-index: 2;
          }
          .exp-timeline-card {
            background: var(--bg-card);
            border: 2px solid var(--line);
            border-radius: var(--radius);
            padding: 24px;
            box-shadow: 0 6px 20px rgba(56, 189, 248, 0.1);
            transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
          }
          .exp-timeline-card:hover {
            transform: translateY(-4px) scale(1.01);
            border-color: #ec4899;
            box-shadow: 0 15px 35px rgba(236, 72, 153, 0.15);
            background: #ffffff;
          }
          .exp-timeline-item .date {
            font-size: 11px;
            font-weight: 800;
            color: #ec4899;
            display: block;
            margin-bottom: 6px;
            letter-spacing: 0.05em;
          }
          .exp-timeline-item h4 {
            font-size: 18px;
            color: var(--navy);
            margin-bottom: 4px;
            font-family: 'Comfortaa', cursive;
          }
          .exp-timeline-item .company {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted);
            display: block;
            margin-bottom: 12px;
          }
          .exp-timeline-item ul {
            padding-left: 16px;
            font-size: 13px;
            color: var(--text-main);
            line-height: 1.6;
          }
          .exp-timeline-item li {
            margin-bottom: 6px;
          }

.edu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin-bottom: 45px;
          }
          .edu-card {
            background: linear-gradient(135deg, #ffffff 0%, #fdf4f8 100%);
            border: 2px solid var(--line);
            border-radius: var(--radius);
            padding: 30px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(56, 189, 248, 0.1);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            gap: 12px;
          }
          .edu-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 6px; height: 100%;
            background: linear-gradient(to bottom, var(--accent-blue), var(--accent-pink));
            transition: width 0.3s ease;
          }
          .edu-card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: var(--accent-pink);
            box-shadow: 0 16px 40px rgba(236, 72, 153, 0.2);
            background: #ffffff;
          }
          .edu-card:hover::before {
            width: 10px;
          }
          .edu-badge-year {
            font-size: 11px;
            font-weight: 800;
            color: var(--accent-pink);
            background: var(--pastel-pink);
            padding: 5px 12px;
            border-radius: 10px;
            border: 1px solid #fbcfe8;
            align-self: flex-start;
            letter-spacing: 0.05em;
          }
          .edu-card h3 {
            font-size: 20px;
            color: var(--navy);
            font-family: 'Comfortaa', cursive;
            margin-top: 4px;
          }
          .edu-school {
            font-size: 13px;
            font-weight: 700;
            color: var(--accent-blue);
          }
          .edu-desc {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.6;
          }

/* Carousel Styles */
    .carousel-container { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #000; }
    .carousel-track { position: relative; width: 100%; height: 260px; }
    .carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease-in-out; display: flex; align-items: center; justify-content: center; pointer-events: none; }
    .carousel-slide.active { opacity: 1; pointer-events: auto; }
    .carousel-slide img.modal-cover { width: 100%; height: 260px; object-fit: cover; margin-bottom: 0; border: none; }
    
    .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); color: var(--navy); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: bold; border: 2px solid var(--line); cursor: pointer; transition: 0.3s; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
    .carousel-btn:hover { background: var(--accent-pink); color: #fff; border-color: var(--accent-pink); transform: translateY(-50%) scale(1.1); }
    .prev-btn { left: 12px; }
    .next-btn { right: 12px; }

    .carousel-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; background: rgba(0,0,0,0.3); padding: 6px 12px; border-radius: 20px; backdrop-filter: blur(4px); }
    .carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: 0.3s; }
    .carousel-dot.active { background: var(--accent-pink); width: 22px; border-radius: 4px; }
/* =============================================================
   RESPONSIVE UI 2026 — fluid layout, legibility, touch targets
   Breakpoints: phone <= 768, tablet 769–1024, desktop >= 1025
   ============================================================= */
:root { --surface-soft: #f6f8fc; --shadow-soft: 0 8px 28px rgba(23,38,61,.055); }
html { scroll-behavior: smooth; }
body { font-size: 16px; line-height: 1.7; }
.app-container { min-width: 0; }
.main-content, .tab-section, .exp-column, .project-card, .skill-card { min-width: 0; }
.section-title { overflow-wrap: anywhere; }
.section-title .serif-italic { overflow-wrap: normal; }
.tab-section > .section-title { margin-bottom: clamp(24px, 3vw, 36px); }
.section-tag { max-width: 100%; font-size: 11px; line-height: 1.5; }
.project-meta { gap: 12px; flex-wrap: wrap; }
.project-filters { gap: 9px; }
.filter-btn { min-height: 42px; padding: 9px 16px; }
.skill-tag-item, .card-tags span { font-size: 12px; line-height: 1.45; padding: 7px 10px; }
.skill-header { min-width: 0; }
.skill-card h3 { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; }
.skill-icon { flex: 0 0 44px; }
.exp-timeline-card, .edu-card { overflow-wrap: anywhere; }
.exp-timeline-item li, .modal-section li { padding-left: 2px; }
.exp-timeline-item li + li { margin-top: 9px; }
.exp-timeline-item .company { line-height: 1.6; }
.edu-school { line-height: 1.5; }
.edu-desc { color: var(--text-muted); }
.project-card { overflow: hidden; }
.project-card .project-art-custom { width: 100%; }
.project-live-link { min-height: 44px; }
.modal { overscroll-behavior: contain; }
.modal-section p, .modal-section li, .modal p.intro { font-size: 15px; line-height: 1.75; }
/* Reduce movement without losing the pleasant hover feedback. */
@media (hover: none) {
  .special-hover:hover, .profile-sidebar:hover, .edu-card:hover,
  .exp-timeline-card:hover, .project-card:hover { transform: none !important; }
}
@media (min-width: 1025px) {
  .app-container { max-width: 1680px; gap: clamp(14px, 1.6vw, 24px); padding: clamp(14px, 1.4vw, 22px); }
  .app-container > .sidebar { height: 100%; }
  .app-container > .profile-sidebar { width: clamp(270px, 23vw, 330px); height: 100%; }
  .main-content { height: 100%; padding: 15px clamp(12px, 2.3vw, 44px) 72px; }
  .skills-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
  .exp-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.5vw, 42px); }
  .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid:not(.featured-project-grid) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }
  .featured-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) and (max-width: 1340px) {
  .app-container > .sidebar { width: 72px; min-width: 72px; }
  .app-container > .profile-sidebar { width: 270px; }
  .main-content { padding-inline: 12px; }
  .exp-layout { grid-template-columns: minmax(0, 1fr); }
  .featured-project-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 769px) and (max-width: 1024px) {
  body { display: block; min-height: 100dvh; height: auto; overflow: auto; }
  .app-container { padding: 18px clamp(20px, 4vw, 46px) 44px; gap: 18px; }
  .app-container > .sidebar {
    position: sticky; top: 12px; z-index: 100; width: 100%; display: flex;
    justify-content: center; gap: clamp(12px, 3vw, 26px); padding: 10px;
    background: rgba(255,255,255,.95); border: 1px solid var(--line);
  }
  .sidebar .nav-btn { width: 54px; height: 54px; }
  .app-container > .profile-sidebar { width: 100%; max-width: none; height: auto; padding: 23px; }
  .profile-sidebar .btn-download { margin-top: 8px; width: min(340px, 100%); }
  .main-content { padding: 18px 0 50px; }
  .skills-grid, .project-grid:not(.featured-project-grid), .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-art-custom { min-height: 170px; }
  .project-art-custom strong { font-size: clamp(20px, 2.8vw, 27px); }
  .exp-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .exp-timeline-card { padding: 20px; }
}
@media (max-width: 768px) {
  html { scroll-padding-bottom: 110px; }
  body { display: block; width: 100%; height: auto; min-height: 100dvh; overflow-x: clip; }
  .app-container {
    width: 100%; max-width: 660px; margin-inline: auto;
    display: flex; flex-direction: column; gap: 0;
    padding: 0 clamp(14px, 4vw, 24px) calc(104px + env(safe-area-inset-bottom, 0px));
  }
  /* The profile is the home identity. Keep it out of the other tabs on phones. */
  body:not(.view-home) .profile-sidebar { display: none; }
  .app-container > .profile-sidebar {
    order: 1; width: 100%; height: auto; margin: 14px 0 12px;
    padding: clamp(20px, 5vw, 30px); border-radius: 24px;
    box-shadow: 0 7px 22px rgba(23,38,61,.07);
  }
  .profile-badge { margin-bottom: 12px; }
  .profile-img-wrap { width: 112px; height: 112px; margin-bottom: 14px; }
  .profile-sidebar h2 { font-size: 22px; }
  .profile-sidebar p.bio { max-width: 340px; font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
  .social-links { margin-bottom: 16px; }
  .profile-sidebar .btn-download {
    width: 100%; min-height: 48px; padding: 12px 16px;
    border-radius: 16px; animation: none; margin-top: 0;
  }
  .main-content { order: 2; width: 100%; height: auto; padding: 24px 0 24px; overflow: visible; }
  body.view-home .main-content { padding-top: 12px; }
  .tab-section.active { animation-duration: .24s; }
  .section-tag { font-size: 10px; padding: 6px 11px; margin-bottom: 12px; }
  .section-title { font-size: clamp(29px, 7.5vw, 40px); line-height: 1.27; margin-bottom: 22px; }
  .hero-desc, .selected-work-intro, #about > p { font-size: 15px !important; line-height: 1.8 !important; }
  .home-hero-card { padding: clamp(23px, 6vw, 32px); border-radius: 23px; margin-bottom: 18px; }
  .home-hero-card .section-title { font-size: clamp(28px, 7.4vw, 39px); }
  .home-hero-card::after { font-size: 80px; }
  .cta-banner { padding: 20px; border-radius: 20px; gap: 12px; }
  .cta-banner h2 { font-size: 17px; }
  .skills-grid, .project-grid, .edu-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .skill-card { padding: 20px; border-radius: 20px; gap: 13px; }
  .skill-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
  .skill-card h3 { font-size: 16px; }
  .skill-tags-wrap, .card-tags { gap: 7px; }
  .skill-tag-item, .card-tags span { font-size: 12px; padding: 6px 10px; }
  .project-filters { gap: 8px; margin-bottom: 20px; }
  .filter-btn { font-size: 12px; padding: 8px 12px; min-height: 42px; }
  .featured-project-grid .project-card { padding: 16px; border-radius: 22px; }
  .project-art-custom { min-height: 170px; padding: 20px; border-radius: 16px; margin-bottom: 16px; }
  .project-art-custom strong { font-size: clamp(22px, 6vw, 30px); }
  .project-art-custom .art-symbol { font-size: 68px; }
  .project-meta { font-size: 11px; }
  .project-card h3 { font-size: 18px; line-height: 1.45; }
  .featured-project-grid .project-card p { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
  .project-live-link { margin-top: 16px; }
  .exp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .col-title { font-size: 15px; margin-bottom: 20px; line-height: 1.5; letter-spacing: 0; }
  .timeline { padding-left: 23px; gap: 18px; }
  .timeline::before { left: 5px; }
  .exp-timeline-node { left: -24px; width: 13px; height: 13px; top: 12px; }
  .exp-timeline-card { padding: 20px; border-radius: 20px; }
  .exp-timeline-item .date { font-size: 11px; }
  .exp-timeline-item h4 { font-size: 17px; line-height: 1.5; }
  .exp-timeline-item .company { font-size: 13px; }
  .exp-timeline-item ul { font-size: 14px; line-height: 1.7; padding-left: 18px; }
  .edu-grid { gap: 14px; margin-bottom: 32px; }
  .edu-card { padding: 24px 22px; border-radius: 20px; gap: 10px; }
  .edu-card h3 { font-size: 18px; line-height: 1.55; }
  .edu-desc { font-size: 14px; line-height: 1.75; }
  #education > h3 { font-size: 13px !important; line-height: 1.7; }
  #education .project-grid .project-card { min-height: 130px; padding: 21px; border-radius: 20px; }
  #education .project-grid .project-card h3 { font-size: 17px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: min(90dvh, 900px); border-radius: 22px; padding: 52px 18px 22px; }
  .carousel-track, .carousel-slide img.modal-cover { height: 210px; }
  /* Fixed nav remains visually clear, tappable and outside safe area. */
  .app-container > .sidebar { box-sizing: border-box; }
  .sidebar .nav-btn { min-height: 60px; }
  .sidebar .nav-btn .nav-mobile-label { font-size: 10px; font-weight: 700; }
}
@media (max-width: 380px) {
  .app-container { padding-inline: 12px; }
  .main-content { padding-top: 18px; }
  .section-title { font-size: 28px; }
  .skill-card, .exp-timeline-card, .edu-card { padding: 17px; }
  .featured-project-grid .project-card { padding: 13px; }
  .project-art-custom { min-height: 160px; padding: 15px; }
  .project-art-custom .art-eyebrow { left: 16px; }
  .project-art-custom strong { font-size: 22px; }
  .sidebar .nav-btn .nav-mobile-label { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ==========================================================
   HYBRID COMPACT — grids + touch swipe rails + career paging
   Content stays in the DOM, no experience/skill is deleted.
   ========================================================== */
.rail-controls, .career-switch, .career-mobile-controls, .skill-expand { display: none; }
.rail-control-buttons { display:flex; gap:8px; }
.rail-arrow { width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--navy); cursor:pointer; font-size:20px; box-shadow:0 3px 9px rgba(23,38,61,.04); }
.rail-arrow:hover:not(:disabled) { background:var(--pastel-pink); color:var(--accent-pink); }
.rail-arrow:disabled { opacity:.35; cursor:not-allowed; }
.rail-arrow:focus-visible, .career-tab:focus-visible, .skill-expand:focus-visible { outline:3px solid var(--accent-blue); outline-offset:3px; }
.rail-progress, .career-progress { font-weight:800; font-size:13px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
.cert-heading-row h3 { color:var(--navy); font-size:15px; line-height:1.5; letter-spacing:.04em; margin-bottom:20px; }
.cert-heading-row h3 span { letter-spacing:0; font-size:12px; font-weight:600; color:var(--text-muted); }
@media (max-width: 1024px) {
  .rail-controls, .career-mobile-controls { display:flex; align-items:center; justify-content:space-between; margin:10px 0 13px; gap:12px; }
  .compact-rail {
    display:flex !important; grid-template-columns:none !important; gap:14px;
    overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory;
    scroll-padding-inline:2px; -webkit-overflow-scrolling:touch;
    padding:4px 2px 18px; scrollbar-width:none;
  }
  .compact-rail::-webkit-scrollbar { display:none; }
  .compact-rail > .project-card {
    flex:0 0 min(72%, 420px); scroll-snap-align:start; scroll-snap-stop:always;
    min-width:0; margin:0; align-self:stretch;
  }
  #certRail > .project-card { flex-basis:min(46%, 280px); min-height:160px; }
  .career-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:5px; background:#e9eef6; border-radius:16px; margin-bottom:6px; }
  .career-tab { padding:12px 8px; min-height:44px; border-radius:12px; font-size:13px; font-weight:800; color:var(--text-main); cursor:pointer; }
  .career-tab.is-selected { background:#fff; color:var(--accent-pink); box-shadow:0 4px 15px rgba(23,38,61,.07); }
  .exp-layout { display:block !important; }
  .exp-column { display:none; }
  .exp-column.is-career-active { display:block; }
  .exp-column > .col-title { display:none; }
  .exp-column .timeline { display:block; padding:0; }
  .exp-column .timeline::before, .exp-timeline-node { display:none; }
  .exp-timeline-item { display:none; }
  .exp-timeline-item.is-career-current { display:block; }
  .exp-timeline-card { min-height:240px; }
  .exp-timeline-item ul { margin-top:10px; }
  #education .edu-grid { margin-bottom:26px; }
}
@media (max-width: 768px) {
  /* Four skills in a compact 2x2 grid, with all tech accessible on expansion. */
  #about .skills-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:stretch; }
  #about .skill-card { padding:14px 12px; gap:10px; border-radius:17px; min-height:162px; overflow:hidden; }
  #about .skill-header { flex-direction:column; align-items:flex-start; gap:8px; }
  #about .skill-icon { width:37px; height:37px; flex:0 0 37px; font-size:18px; }
  #about .skill-card h3 { font-size:clamp(12px,3.4vw,15px); line-height:1.35; overflow-wrap:anywhere; }
  #about .skill-tags-wrap { gap:5px; align-content:flex-start; }
  #about .skill-tag-item { font-size:10px; padding:4px 7px; line-height:1.4; }
  #about .skill-card:not(.is-expanded) .skill-tag-item:nth-child(n+3) { display:none; }
  #about .skill-expand { display:block; margin-top:auto; text-align:left; font-size:11px; font-weight:800; color:var(--accent-pink); padding:6px 0; cursor:pointer; }
  #about .skill-expand span { margin-left:3px; }
  #about .skill-card.is-expanded .skill-expand span { display:inline-block; transform:rotate(45deg); }
  #projects .compact-rail > .project-card { flex-basis: min(87%, 360px); }
  #projects .project-card { padding:13px; }
  #projects .project-art-custom { min-height:138px; padding:15px; }
  #projects .project-art-custom strong { font-size:clamp(19px,5vw,27px); }
  #projects .project-art-custom .art-footnote { font-size:10px; }
  #projects .project-card p { font-size:13px; }
  #certRail > .project-card { flex-basis:min(75%, 280px); min-height:158px; padding:18px; }
  #certRail .project-card h3 { font-size:16px; }
  #education .edu-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  #education .edu-card { padding:18px 18px 18px 22px; gap:7px; }
  #education .edu-card h3 { font-size:16px; line-height:1.4; }
  #education .edu-desc { font-size:13px; line-height:1.65; }
  #experience .exp-timeline-card { padding:18px; min-height:265px; }
  #experience .exp-timeline-item ul { font-size:13px; line-height:1.68; }
  .cert-heading-row h3 { font-size:14px; }
}
@media (max-width: 350px) {
  #about .skills-grid { gap:8px; }
  #about .skill-card { padding:12px 10px; }
  #about .skill-tag-item { font-size:9.5px; padding:4px 6px; }
  #certRail > .project-card { flex-basis:85%; }
}
@media (prefers-reduced-motion:reduce) {
  .compact-rail { scroll-behavior:auto; }
}


/* ============================================================
   SIDEBAR INTERACTION FIX — desktop and tablet only
   Keep active icons visible and tooltips out of the rail.
   ============================================================ */
@media (min-width: 769px) {
  .sidebar { overflow: visible; isolation: isolate; }
  .sidebar .nav-btn {
    position: relative;
    z-index: 1;
    overflow: visible;
    background: #fff;
    color: var(--text-muted);
    border: 2px solid var(--line);
    transform: none;
    transition: background-color .2s ease, color .2s ease,
                border-color .2s ease, box-shadow .2s ease;
  }
  .sidebar .nav-btn svg { display: block; fill: currentColor; }
  .sidebar .nav-btn.active {
    color: #fff;
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    box-shadow: 0 7px 18px rgba(169,35,103,.22);
    transform: none;
  }
  .sidebar .nav-btn:hover:not(.active) {
    color: var(--accent-pink);
    background: var(--pastel-pink);
    border-color: #d687ad;
    transform: none;
    box-shadow: 0 5px 16px rgba(169,35,103,.12);
  }
  .sidebar .nav-btn.active:hover {
    color: #fff;
    background: #941c59;
    border-color: #941c59;
    box-shadow: 0 8px 20px rgba(169,35,103,.28);
    transform: none;
  }
  .sidebar .nav-btn:is(:hover, :focus-visible) { z-index: 20; }
  .sidebar .nav-label {
    display: block;
    left: calc(100% + 14px);
    top: 50%;
    transform: translate(0,-50%);
    background: var(--navy);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease, left .15s ease;
    z-index: 30;
  }
  .sidebar .nav-btn.active:not(:hover):not(:focus-visible) .nav-label {
    opacity: 0;
    visibility: hidden;
  }
  .sidebar .nav-btn:is(:hover,:focus-visible) .nav-label {
    opacity: 1;
    visibility: visible;
    left: calc(100% + 10px);
  }
}
@media (min-width: 1025px) {
  .app-container > .sidebar { z-index: 120; }
  .app-container > .profile-sidebar { z-index: 10; }
}
@media (max-width: 768px) {
  .sidebar .nav-btn.active,
  .sidebar .nav-btn.active:hover { color: var(--accent-pink); background: var(--pastel-pink); }
}


/* Modal redesign: certificate first, readable content, accessible actions. */
.modal-backdrop { padding: clamp(12px, 3vw, 28px); background: rgba(21,34,54,.68); backdrop-filter: blur(7px); }
.modal { width: min(760px, 100%); max-height: min(92dvh, 940px); border: 1px solid #dae5ee; border-radius: 26px; padding: 22px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 28px 90px rgba(12,29,50,.25); }
.modal-close { position: sticky; float: right; top: 0; right: 0; width: 42px; height: 42px; margin: 0 0 8px 12px; border-radius: 13px; z-index: 60; background: #fbeaf2; border: 1px solid #ebc7d8; box-shadow: none; transform: none; }
.modal-close:hover { transform: none; }
.modal-topline { min-height: 44px; display: flex; align-items: center; margin-bottom: 12px; font-size: 11px; font-weight: 800; color: var(--accent-pink); letter-spacing: .1em; }
.modal-body-content { padding: 7px 4px 5px; clear: both; }
.modal-body-content .kicker { margin-bottom: 12px; }
.modal-body-content h2 { font-size: clamp(20px, 3.4vw, 29px); line-height: 1.35; margin-bottom: 12px; overflow-wrap: anywhere; }
.modal-body-content .intro { font-size: 15px; line-height: 1.75; }
.modal-tags { margin-top: 18px; padding-top: 16px; }
.cert-preview { background: #f4f7fb; border: 1px solid #dfe7ef; border-radius: 18px; padding: clamp(8px, 2vw, 16px); min-height: 160px; display: grid; place-items: center; clear: both; }
.cert-preview-image { width: 100%; height: auto; max-height: min(48dvh, 430px); object-fit: contain; border: 0; border-radius: 10px; display: block; cursor: zoom-in; }
.cert-preview-image[hidden] { display: none !important; }
.cert-preview-unavailable { text-align: center; padding: 36px 12px; max-width: 420px; color: var(--text-muted); }
.cert-preview-unavailable[hidden] { display: none !important; }
.cert-preview-unavailable strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.cert-preview-unavailable p { font-size: 13px; line-height: 1.6; }
.cert-preview-icon { display: block; font-size: 35px; color: var(--accent-blue); margin-bottom: 10px; }
.modal .carousel-container { background: #f3f7fb !important; border: 1px solid var(--line); border-radius: 18px; }
.modal .carousel-slide img.modal-cover, .modal .carousel-container > img.modal-cover { object-fit: contain; }
.modal-close:focus-visible, .modal-carousel-img:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 3px; }
@media (max-width: 600px) {
  .modal-backdrop { padding: 10px; align-items: center; }
  .modal { padding: 14px; border-radius: 20px; max-height: 90dvh; }
  .modal-close { width: 40px; height: 40px; }
  .modal-body-content { padding: 8px 1px 2px; }
  .cert-preview { padding: 8px; border-radius: 14px; }
  .cert-preview-image { max-height: 38dvh; }
  .modal-body-content .intro { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal-backdrop { transition: none !important; }
}

/* Project tech stack: discreet, consistent section label */
.project-stack-title {
  font-family: 'Quicksand', sans-serif; font-size: 0.76rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-main); margin: 0 0 8px;
}
