    :root {
      --bg: #04050a;
      --bg-soft: #0b0e19;
      --bg-soft-2: #111426;
      --accent: #ff6b6b;
      --accent-2: #7d5cff;
      --accent-3: #4df3ff;
      --text: #f8f8ff;
      --muted: #9ca3af;
      --card-radius: 24px;
      --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.65);
    }

    /* Light Mode Variables */
    :root.light-mode {
      --bg: #f8f9fa;
      --bg-soft: #f0f2f5;
      --bg-soft-2: #e8eaed;
      --accent: #ef4444;
      --accent-2: #8b5cf6;
      --accent-3: #06b6d4;
      --text: #1f2937;
      --muted: #6b7280;
      --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.08);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      background: radial-gradient(circle at top, #151835 0, #04050a 52%);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
      scroll-behavior: smooth;
      transition: background 0.4s ease, color 0.4s ease;
    }

    body.light-mode {
      background: radial-gradient(circle at top, #ffffff 0, #f8f9fa 52%);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    /* Scroll line / progress rail */
    .scroll-rail {
      position: fixed;
      left: 32px;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 60vh;
      background: linear-gradient(to bottom, #1f2933, #020617);
      border-radius: 999px;
      overflow: visible;
      z-index: 999;
      transition: background 0.4s ease;
    }

    body.light-mode .scroll-rail {
      background: linear-gradient(to bottom, #d1d5db, #e5e7eb);
    }

    .scroll-rail::before {
      content: "";
      position: absolute;
      inset: -8px;
      background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .rail-progress {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 0;
      background: linear-gradient(to top, var(--accent), var(--accent-2), var(--accent-3));
      border-radius: inherit;
      box-shadow: 0 0 15px rgba(56, 189, 248, 0.7);
    }

    .scroll-rail.active::before {
      opacity: 1;
    }

    .rail-dot {
      position: absolute;
      left: 50%;
      width: 14px;
      height: 14px;
      transform: translate(-50%, -50%);
      border-radius: 999px;
      border: 2px solid #4b5563;
      background: #020617;
      box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0);
      transition: all 0.25s ease;
    }

    body.light-mode .rail-dot {
      border-color: #d1d5db;
      background: #f3f4f6;
    }

    .rail-dot span {
      position: absolute;
      left: 24px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
      opacity: 0;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .rail-dot.active {
      border-color: transparent;
      background: radial-gradient(circle at center, #4df3ff, #7c3aed);
      box-shadow: 0 0 16px rgba(59, 130, 246, 0.9);
      transform: translate(-50%, -50%) scale(1.18);
    }

    .rail-dot.active span {
      opacity: 1;
      transform: translate(4px, -50%);
      color: var(--text);
    }

    /* Layout */
    .page-wrap {
      max-width: 1120px;
      margin: 0 auto;
      padding: 24px 24px 80px 96px;
    }

    @media (max-width: 900px) {
      .scroll-rail {
        display: none;
      }

      .page-wrap {
        padding: 16px 18px 64px;
      }
    }

    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 12px 18px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(18px);
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.85);
      position: sticky;
      top: 16px;
      z-index: 50;
      transition: background 0.4s ease, box-shadow 0.4s ease;
    }

    body.light-mode header {
      background: rgba(255, 255, 255, 0.85);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 0, var(--accent-3), var(--accent-2));
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 18px;
      box-shadow: 0 0 20px rgba(129, 140, 248, 0.7);
    }

    .logo span {
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 10px;
      color: var(--muted);
    }

    nav ul {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.16em;
    }

    .menu-toggle {
      display: none;
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.3);
      background: rgba(79, 70, 229, 0.2);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      transition: all 0.3s ease;
    }

    .menu-toggle:hover {
      background: rgba(79, 70, 229, 0.35);
      border-color: rgba(148, 163, 184, 0.5);
      transform: scale(1.05);
    }

    .menu-line {
      display: block;
      width: 18px;
      height: 2px;
      border-radius: 999px;
      background: var(--text);
      transition: transform 0.3s ease, opacity 0.3s ease;
    }

    nav a {
      position: relative;
      padding: 8px 16px;
      color: var(--muted);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      border-radius: 6px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
    }

    nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent-3));
      border-radius: 999px;
      transition: width 0.3s ease;
      display: none;
    }

    nav a:hover {
      color: var(--text);
      background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(56, 189, 248, 0.1));
      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
      transform: translateY(-3px) scale(1.05);
    }

    nav a:hover::after {
      width: 0;
    }

    body.light-mode nav a {
      color: var(--muted);
    }

    body.light-mode nav a:hover {
      color: var(--text);
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.08));
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    }

    /* Right Side Controls */
    .header-right {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-left: 8px;
    }

    .resume-btn {
      padding: 8px 20px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      border: none;
      border-radius: 999px;
      color: white;
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
      font-family: inherit;
    }

    .resume-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }

    body.light-mode .resume-btn {
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
    }

    body.light-mode .resume-btn:hover {
      box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }

    /* Theme Toggle Button */
    .theme-toggle {
      background: rgba(79, 70, 229, 0.2);
      border: 1px solid rgba(148, 163, 184, 0.3);
      border-radius: 999px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 20px;
      transition: all 0.3s ease;
      color: var(--text);
    }

    .theme-toggle:hover {
      background: rgba(79, 70, 229, 0.35);
      border-color: rgba(148, 163, 184, 0.5);
      transform: scale(1.05);
    }

    body.light-mode .theme-toggle {
      background: rgba(251, 146, 60, 0.15);
      border-color: rgba(107, 114, 128, 0.3);
    }

    body.light-mode .theme-toggle:hover {
      background: rgba(251, 146, 60, 0.25);
      border-color: rgba(107, 114, 128, 0.5);
    }

    body.light-mode .menu-toggle {
      background: rgba(251, 146, 60, 0.15);
      border-color: rgba(107, 114, 128, 0.3);
    }

    body.light-mode .menu-toggle:hover {
      background: rgba(251, 146, 60, 0.25);
      border-color: rgba(107, 114, 128, 0.5);
    }

    @media (max-width: 820px) {
      header {
        padding-inline: 14px;
      }

      nav {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        padding: 10px;
        border-radius: 20px;
        border: 1px solid rgba(148, 163, 184, 0.3);
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(16px);
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.8);
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
      }

      header.menu-open nav {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
      }

      nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
      }

      nav a {
        width: 100%;
        padding: 12px 14px;
      }

      .header-right {
        margin-left: auto;
        gap: 10px;
      }

      .resume-btn {
        display: none;
      }

      .menu-toggle {
        display: inline-flex;
      }

      .theme-toggle,
      .menu-toggle {
        width: 40px;
        height: 40px;
      }

      body.menu-open {
        overflow: hidden;
      }

      header.menu-open .menu-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }

      header.menu-open .menu-line:nth-child(2) {
        opacity: 0;
      }

      header.menu-open .menu-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }
    }

    /* HERO */
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: 40px;
      align-items: center;
      padding: 80px 8px 64px;
    }

    @media (max-width: 900px) {
      .hero {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        padding-top: 40px;
        padding-inline: 16px;
      }
    }

    @media (max-width: 480px) {
      .hero {
        padding: 32px 12px 48px;
      }
    }

    .avatar-wrap {
      position: relative;
      width: 180px;
      height: 180px;
      border-radius: 999px;
      margin-inline: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at 20% 0, #4df3ff, #7c3aed, #0f172a);
      box-shadow: 0 0 40px rgba(129, 140, 248, 0.7);
      transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: pointer;
    }

    .avatar-wrap:hover {
      transform: scale(1.08) rotate(5deg);
      box-shadow: 0 0 60px rgba(129, 140, 248, 1), 0 0 100px rgba(124, 58, 237, 0.5);
    }

    .avatar-emoji {
      font-size: 82px;
      background: radial-gradient(circle at 30% 0, #e5e7eb, #9ca3af);
      border-radius: 999px;
      padding: 24px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
      transition: box-shadow 0.4s ease;
      display: none;
    }

    body.light-mode .avatar-emoji {
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    }

    .avatar-vector {
      width: 160px;
      height: 160px;
      filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
      animation: float 3s ease-in-out infinite, rotate-slow 20s linear infinite;
      transition: filter 0.4s ease;
    }

    body.light-mode .avatar-vector {
      filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    }

    @keyframes float {

      0%,
      100% {
        transform: translateY(0px);
      }

      50% {
        transform: translateY(-15px);
      }
    }

    @keyframes rotate-slow {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    .floating-bracket {
      animation: float-code 4s ease-in-out infinite;
    }

    @keyframes float-code {

      0%,
      100% {
        opacity: 0.3;
      }

      50% {
        opacity: 0.7;
      }
    }

    .avatar-ring {
      position: absolute;
      inset: -12px;
      border-radius: inherit;
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-top-color: rgba(248, 250, 252, 0.7);
      border-right-color: rgba(129, 140, 248, 0.9);
      filter: blur(0.2px);
      animation: spin 8s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes blink {

      0%,
      49% {
        opacity: 1;
      }

      50%,
      100% {
        opacity: 0;
      }
    }

    /* Additional Animations */
    @keyframes pulse-glow {

      0%,
      100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.5), 0 0 40px rgba(79, 70, 229, 0.2);
      }

      50% {
        box-shadow: 0 0 30px rgba(79, 70, 229, 0.8), 0 0 60px rgba(79, 70, 229, 0.4);
      }
    }

    @keyframes slide-in-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slide-in-down {
      from {
        opacity: 0;
        transform: translateY(-40px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slide-in-left {
      from {
        opacity: 0;
        transform: translateX(-40px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes slide-in-right {
      from {
        opacity: 0;
        transform: translateX(40px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes bounce-in {
      0% {
        opacity: 0;
        transform: scale(0.3);
      }

      50% {
        opacity: 1;
        transform: scale(1.05);
      }

      70% {
        transform: scale(0.9);
      }

      100% {
        transform: scale(1);
      }
    }

    @keyframes float-bounce {

      0%,
      100% {
        transform: translateY(0px);
      }

      50% {
        transform: translateY(-12px);
      }
    }

    @keyframes gradient-shift {
      0% {
        background-position: 0% 50%;
      }

      50% {
        background-position: 100% 50%;
      }

      100% {
        background-position: 0% 50%;
      }
    }

    @keyframes scale-pulse {

      0%,
      100% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.05);
      }
    }

    @keyframes text-shimmer {
      0% {
        background-position: -1000px 0;
      }

      100% {
        background-position: 1000px 0;
      }
    }

    @keyframes blur-in {
      from {
        opacity: 0;
        filter: blur(10px);
      }

      to {
        opacity: 1;
        filter: blur(0px);
      }
    }

    /* Animation utility classes */
    .animate-slide-up {
      animation: slide-in-up 0.8s ease-out forwards;
    }

    .animate-slide-down {
      animation: slide-in-down 0.8s ease-out forwards;
    }

    .animate-slide-left {
      animation: slide-in-left 0.8s ease-out forwards;
    }

    .animate-slide-right {
      animation: slide-in-right 0.8s ease-out forwards;
    }

    .animate-bounce-in {
      animation: bounce-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .animate-blur-in {
      animation: blur-in 1s ease-out forwards;
    }

    .animate-pulse {
      animation: scale-pulse 2s ease-in-out infinite;
    }

    .animate-float {
      animation: float-bounce 3s ease-in-out infinite;
    }

    .animate-glow {
      animation: pulse-glow 3s ease-in-out infinite;
    }

    .hero-badge-dot {
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
        transform: scale(1);
      }

      50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 1.2);
        transform: scale(1.1);
      }
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid rgba(148, 163, 184, 0.4);
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 14px;
      transition: background 0.4s ease, border-color 0.4s ease;
    }

    body.light-mode .hero-badge {
      background: rgba(255, 255, 255, 0.6);
      border-color: rgba(107, 114, 128, 0.3);
    }

    .hero-badge-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 0, #22c55e, #16a34a);
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
    }

    .hero-title {
      font-size: clamp(2.4rem, 3.5vw, 3.4rem);
      line-height: 1.05;
      margin-bottom: 16px;
    }

    @media (max-width: 480px) {
      .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
      }
    }

    .hero-title span.gradient {
      background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-sub {
      font-size: 0.98rem;
      color: var(--muted);
      max-width: 520px;
      margin-bottom: 24px;
    }

    @media (max-width: 480px) {
      .hero-sub {
        font-size: 0.85rem;
        margin-bottom: 16px;
      }
    }

    .hero-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 28px;
    }

    .tag-pill {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.4);
      color: var(--muted);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: default;
    }

    .tag-pill:hover {
      transform: translateY(-3px) scale(1.05);
      background: rgba(168, 85, 247, 0.2);
      border-color: rgba(168, 85, 247, 0.6);
      box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
      color: rgba(168, 85, 247, 0.95);
    }

    body.light-mode .tag-pill {
      border-color: rgba(107, 114, 128, 0.3);
      color: rgba(75, 85, 99, 0.7);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .btn {
      border-radius: 999px;
      padding: 11px 20px;
      font-size: 0.9rem;
      border: 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

    .btn-primary {
      background: radial-gradient(circle at 0 0, var(--accent-3), var(--accent-2));
      color: #020617;
      box-shadow: 0 16px 40px rgba(129, 140, 248, 0.7);
    }

    body.light-mode .btn-primary {
      color: #ffffff;
      box-shadow: 0 16px 40px rgba(139, 92, 246, 0.4);
    }

    .btn-outline {
      background: transparent;
      color: var(--text);
      border: 1px solid rgba(148, 163, 184, 0.6);
    }

    body.light-mode .btn-outline {
      border-color: rgba(75, 85, 99, 0.4);
    }

    .btn:hover {
      transform: translateY(-1px) scale(1.01);
      box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
    }

    body.light-mode .btn:hover {
      box-shadow: 0 22px 50px rgba(0, 0, 0, 0.15);
    }

    @media (max-width: 900px) {
      .hero-actions {
        justify-content: center;
      }

      .hero-sub {
        margin-inline: auto;
      }
    }

    /* Sections */
    section {
      margin-bottom: 80px;
    }

    .section-label {
      font-size: 13px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.2em;
      margin-bottom: 12px;
      font-weight: 700;
    }

    .section-title {
      font-size: 1.5rem;
      margin-bottom: 18px;
    }

    .section-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
      gap: 26px;
    }

    @media (max-width: 900px) {
      .section-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .card {
      background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.26), transparent 65%), var(--bg-soft);
      border-radius: var(--card-radius);
      padding: 20px 22px;
      border: 1px solid rgba(55, 65, 81, 0.7);
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow: hidden;
      transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
    }

    body.light-mode .card {
      background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.1), transparent 65%), var(--bg-soft);
      border-color: rgba(107, 114, 128, 0.2);
    }

    .card:hover {
      transform: translateY(-8px);
    }

    .card::before {
      content: "";
      position: absolute;
      inset: -120%;
      background: conic-gradient(from 180deg, rgba(96, 165, 250, 0.0), rgba(96, 165, 250, 0.25), rgba(244, 114, 182, 0.0), rgba(52, 211, 153, 0.0));
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .card:hover::before {
      opacity: 1;
      animation: spin 12s linear infinite;
    }

    .card-content {
      position: relative;
      z-index: 1;
    }

    .about-text {
      font-size: 0.93rem;
      color: var(--muted);
      line-height: 1.7;
    }

    /* Experience */
    .timeline {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .timeline-item {
      position: relative;
      padding-left: 26px;
      transition: transform 0.3s ease, padding-left 0.3s ease;
    }

    .timeline-item:hover {
      transform: translateX(8px);
      padding-left: 30px;
    }

    .timeline-item:hover .timeline-dot {
      transform: scale(1.4);
      box-shadow: 0 0 25px rgba(251, 146, 60, 1.2);
    }

    .timeline-item::before {
      content: "";
      position: absolute;
      left: 10px;
      top: 4px;
      bottom: -10px;
      border-left: 1px dashed rgba(75, 85, 99, 0.8);
    }

    .timeline-item:last-child::before {
      bottom: 8px;
    }

    .timeline-dot {
      position: absolute;
      left: 3px;
      top: 4px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 0, #f97316, #7c3aed);
      box-shadow: 0 0 16px rgba(251, 146, 60, 0.9);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    }

    .timeline-role {
      font-weight: 500;
      font-size: 0.98rem;
    }

    .timeline-company {
      color: var(--muted);
      font-size: 0.85rem;
    }

    .timeline-date {
      color: #6b7280;
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-top: 4px;
    }

    .timeline-desc {
      font-size: 0.86rem;
      color: var(--muted);
      margin-top: 6px;
    }

    /* Tech stack */
    .stack-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 14px;
    }

    .stack-pill {
      background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%), #020617;
      border-radius: 18px;
      padding: 12px 12px;
      border: 1px solid rgba(55, 65, 81, 0.8);
      font-size: 0.86rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: default;
    }

    .stack-pill:hover {
      transform: translateY(-6px) scale(1.04);
      background: radial-gradient(circle at top, rgba(56, 189, 248, 0.35), transparent 60%), #020617;
      border-color: rgba(56, 189, 248, 0.6);
      box-shadow: 0 15px 45px rgba(56, 189, 248, 0.5);
    }

    body.light-mode .stack-pill {
      background: radial-gradient(circle at top, rgba(139, 92, 246, 0.08), transparent 60%), #ffffff;
      border-color: rgba(107, 114, 128, 0.25);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    }

    .stack-label {
      font-weight: 500;
    }

    .stack-tagline {
      font-size: 0.75rem;
      color: var(--muted);
    }

    .stack-pill span.icon {
      font-size: 1.1rem;
      opacity: 0.9;
    }

    /* Projects */
    .projects-section-wrapper {
      display: none;
    }

    /* Projects Filter/Tabs */
    .projects-filter {
      display: flex;
      gap: 12px;
      margin-bottom: 40px;
      flex-wrap: wrap;
      justify-content: flex-start;
    }

    .filter-btn {
      padding: 10px 20px;
      border: 1.5px solid rgba(148, 163, 184, 0.3);
      background: transparent;
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      position: relative;
      overflow: hidden;
    }

    .filter-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(56, 189, 248, 0.3));
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 0;
    }

    .filter-btn:hover::before {
      opacity: 1;
    }

    .filter-btn span {
      position: relative;
      z-index: 1;
    }

    .filter-btn:hover,
    .filter-btn.active {
      background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(56, 189, 248, 0.1));
      border-color: rgba(79, 70, 229, 0.6);
      color: var(--text);
      box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
      transform: translateY(-2px) scale(1.03);
    }

    .filter-btn.active::before {
      opacity: 1;
    }

    body.light-mode .filter-btn:hover,
    body.light-mode .filter-btn.active {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.08));
      border-color: rgba(139, 92, 246, 0.5);
    }

    /* Featured Projects Section */
    .featured-projects {
      display: grid;
      grid-template-columns: 1fr;
      gap: 22px;
      transition: all 0.4s ease;
      margin-bottom: 60px;
    }

    .featured-project-card {
      position: relative;
      border-radius: 14px;
      overflow: hidden;
      background: linear-gradient(135deg, rgba(79, 70, 229, 0.09), rgba(56, 189, 248, 0.04));
      border: 1.5px solid rgba(148, 163, 184, 0.2);
      transition: border-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      backdrop-filter: blur(10px);
      display: grid;
      grid-template-columns: 190px 1fr;
      gap: 18px;
      align-items: center;
      opacity: 1;
      padding: 14px;
    }

    @media (max-width: 900px) {
      .featured-project-card {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 14px;
      }
    }

    body.light-mode .featured-project-card {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.07), rgba(6, 182, 212, 0.03));
      border-color: rgba(107, 114, 128, 0.18);
    }

    body.light-mode .featured-project-card:hover {
      border-color: rgba(139, 92, 246, 0.4);
      box-shadow: 0 10px 28px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .featured-project-card:hover {
      border-color: rgba(168, 85, 247, 0.5);
      box-shadow: 0 10px 28px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      transform: translateY(-3px);
    }

    .featured-project-image {
      width: 100%;
      height: 150px;
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(59, 130, 246, 0.09));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 75px;
      overflow: hidden;
      position: relative;
      transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      border-radius: 10px;
    }

    .featured-project-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease, filter 0.6s ease;
    }

    .featured-project-card:hover .featured-project-image {
      transform: scale(1.03);
      box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    }

    .featured-project-card:hover .featured-project-image img {
      transform: scale(1.15);
      filter: brightness(1.15) saturate(1.2);
    }

    @media (max-width: 900px) {
      .featured-project-image {
        height: 130px;
        font-size: 60px;
      }
    }

    @media (max-width: 480px) {
      .featured-project-image {
        height: 100px;
        font-size: 48px;
      }
    }

    body.light-mode .featured-project-image {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.07));
    }

    .featured-project-image::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.06));
      animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
      0% {
        transform: translateX(-100%);
      }

      100% {
        transform: translateX(100%);
      }
    }

    .featured-project-content {
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .featured-project-tag {
      font-size: 8px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      font-weight: 700;
      color: rgba(168, 85, 247, 0.8);
      margin-bottom: 0;
      transition: color 0.4s ease;
      background: rgba(168, 85, 247, 0.11);
      padding: 2px 7px;
      border-radius: 4px;
      width: fit-content;
    }

    body.light-mode .featured-project-tag {
      color: rgba(139, 92, 246, 0.75);
      background: rgba(139, 92, 246, 0.07);
    }

    .featured-project-title {
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 1px;
      color: var(--text);
      transition: color 0.4s ease;
      line-height: 1.2;
    }

    .featured-project-desc {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.45;
      margin-bottom: 6px;
      transition: color 0.4s ease;
      flex: 1;
    }

    body.light-mode .featured-project-desc {
      color: rgba(75, 85, 99, 0.75);
    }

    .featured-project-techs {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      margin-bottom: 6px;
    }

    .featured-project-tech {
      font-size: 0.6rem;
      padding: 2px 6px;
      border-radius: 3px;
      background: rgba(168, 85, 247, 0.11);
      color: rgba(168, 85, 247, 0.8);
      border: 0.5px solid rgba(168, 85, 247, 0.15);
      font-weight: 600;
      transition: all 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .featured-project-tech:hover {
      background: rgba(168, 85, 247, 0.16);
      transform: translateY(-0.5px);
    }

    body.light-mode .featured-project-tech {
      background: rgba(139, 92, 246, 0.07);
      color: rgba(139, 92, 246, 0.75);
      border-color: rgba(139, 92, 246, 0.12);
    }

    body.light-mode .featured-project-tech:hover {
      background: rgba(139, 92, 246, 0.12);
    }

    /* Regular Projects Grid */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
    }

    .project-card {
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @media (max-width: 900px) {
      .featured-projects {
        grid-template-columns: 1fr;
      }

      .projects-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

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

    .project-card {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      padding: 24px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      display: flex;
      flex-direction: column;
      gap: 14px;
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
      backdrop-filter: blur(10px);
      border: 1.5px solid;
      min-height: 280px;
      opacity: 1;
    }

    body.light-mode .project-card {
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    /* Card 1: Purple gradient */
    .project-card:nth-child(1) {
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(139, 92, 246, 0.15));
      border-color: rgba(168, 85, 247, 0.4);
    }

    body.light-mode .project-card:nth-child(1) {
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(139, 92, 246, 0.05));
      border-color: rgba(168, 85, 247, 0.25);
    }

    .project-card:nth-child(1):hover {
      border-color: rgba(168, 85, 247, 0.8);
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(139, 92, 246, 0.25));
      box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
      transform: translateY(-8px) scale(1.02);
    }

    body.light-mode .project-card:nth-child(1):hover {
      border-color: rgba(168, 85, 247, 0.5);
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.1));
      box-shadow: 0 20px 60px rgba(168, 85, 247, 0.15);
    }

    /* Card 2: Blue gradient */
    .project-card:nth-child(2) {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.15));
      border-color: rgba(59, 130, 246, 0.4);
    }

    body.light-mode .project-card:nth-child(2) {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.05));
      border-color: rgba(59, 130, 246, 0.25);
    }

    .project-card:nth-child(2):hover {
      border-color: rgba(59, 130, 246, 0.8);
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(96, 165, 250, 0.25));
      box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
      transform: translateY(-8px) scale(1.02);
    }

    body.light-mode .project-card:nth-child(2):hover {
      border-color: rgba(59, 130, 246, 0.5);
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1));
      box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    }

    /* Card 3: Pink gradient */
    .project-card:nth-child(3) {
      background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 63, 94, 0.15));
      border-color: rgba(236, 72, 153, 0.4);
    }

    body.light-mode .project-card:nth-child(3) {
      background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(244, 63, 94, 0.05));
      border-color: rgba(236, 72, 153, 0.25);
    }

    .project-card:nth-child(3):hover {
      border-color: rgba(236, 72, 153, 0.8);
      background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(244, 63, 94, 0.25));
      box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4);
      transform: translateY(-8px) scale(1.02);
    }

    body.light-mode .project-card:nth-child(3):hover {
      border-color: rgba(236, 72, 153, 0.5);
      background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(244, 63, 94, 0.1));
      box-shadow: 0 20px 60px rgba(236, 72, 153, 0.15);
    }

    /* Card 4: Cyan gradient */
    .project-card:nth-child(4) {
      background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(0, 184, 212, 0.15));
      border-color: rgba(34, 211, 238, 0.4);
    }

    body.light-mode .project-card:nth-child(4) {
      background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(0, 184, 212, 0.05));
      border-color: rgba(34, 211, 238, 0.25);
    }

    .project-card:nth-child(4):hover {
      border-color: rgba(34, 211, 238, 0.8);
      background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(0, 184, 212, 0.25));
      box-shadow: 0 20px 60px rgba(34, 211, 238, 0.4);
      transform: translateY(-8px) scale(1.02);
    }

    body.light-mode .project-card:nth-child(4):hover {
      border-color: rgba(34, 211, 238, 0.5);
      background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(0, 184, 212, 0.1));
      box-shadow: 0 20px 60px rgba(34, 211, 238, 0.15);
    }

    .project-card::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 150px;
      height: 150px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .project-card:hover::before {
      opacity: 1;
    }

    .project-tag {
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 4px;
      transition: color 0.3s ease;
    }

    .project-card:nth-child(1) .project-tag {
      color: rgba(168, 85, 247, 0.9);
    }

    body.light-mode .project-card:nth-child(1) .project-tag {
      color: rgba(139, 92, 246, 0.85);
    }

    .project-card:nth-child(2) .project-tag {
      color: rgba(59, 130, 246, 0.9);
    }

    body.light-mode .project-card:nth-child(2) .project-tag {
      color: rgba(59, 130, 246, 0.85);
    }

    .project-card:nth-child(3) .project-tag {
      color: rgba(236, 72, 153, 0.9);
    }

    body.light-mode .project-card:nth-child(3) .project-tag {
      color: rgba(236, 72, 153, 0.85);
    }

    .project-card:nth-child(4) .project-tag {
      color: rgba(34, 211, 238, 0.9);
    }

    body.light-mode .project-card:nth-child(4) .project-tag {
      color: rgba(34, 211, 238, 0.85);
    }

    .project-title {
      font-size: 1.35rem;
      margin-bottom: 12px;
      font-weight: 700;
      background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      transition: background 0.3s ease;
    }

    body.light-mode .project-title {
      background: linear-gradient(135deg, #1f2937, rgba(31, 41, 55, 0.8));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .project-text {
      font-size: 0.95rem;
      color: rgba(148, 163, 184, 0.9);
      line-height: 1.6;
      flex: 1;
      transition: color 0.3s ease;
    }

    body.light-mode .project-text {
      color: rgba(75, 85, 99, 0.85);
    }

    .project-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: auto;
    }

    .project-content {
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex: 1;
      position: relative;
      z-index: 1;
    }

    .chip {
      border-radius: 999px;
      padding: 6px 14px;
      border: 1px solid;
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: default;
    }

    .chip:hover {
      transform: translateY(-3px) scale(1.08);
      box-shadow: 0 8px 20px currentColor;
      filter: brightness(1.2);
    }

    .project-card:nth-child(1) .chip {
      border-color: rgba(168, 85, 247, 0.5);
      background: rgba(168, 85, 247, 0.1);
      color: rgba(168, 85, 247, 0.95);
    }

    body.light-mode .project-card:nth-child(1) .chip {
      border-color: rgba(168, 85, 247, 0.3);
      background: rgba(168, 85, 247, 0.08);
      color: rgba(139, 92, 246, 0.85);
    }

    .project-card:nth-child(2) .chip {
      border-color: rgba(59, 130, 246, 0.5);
      background: rgba(59, 130, 246, 0.1);
      color: rgba(59, 130, 246, 0.95);
    }

    body.light-mode .project-card:nth-child(2) .chip {
      border-color: rgba(59, 130, 246, 0.3);
      background: rgba(59, 130, 246, 0.08);
      color: rgba(59, 130, 246, 0.85);
    }

    .project-card:nth-child(3) .chip {
      border-color: rgba(236, 72, 153, 0.5);
      background: rgba(236, 72, 153, 0.1);
      color: rgba(236, 72, 153, 0.95);
    }

    body.light-mode .project-card:nth-child(3) .chip {
      border-color: rgba(236, 72, 153, 0.3);
      background: rgba(236, 72, 153, 0.08);
      color: rgba(236, 72, 153, 0.85);
    }

    .project-card:nth-child(4) .chip {
      border-color: rgba(34, 211, 238, 0.5);
      background: rgba(34, 211, 238, 0.1);
      color: rgba(34, 211, 238, 0.95);
    }

    body.light-mode .project-card:nth-child(4) .chip {
      border-color: rgba(34, 211, 238, 0.3);
      background: rgba(34, 211, 238, 0.08);
      color: rgba(34, 211, 238, 0.85);
    }

    /* Card 5: Emerald gradient */
    .project-card:nth-child(5) {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.15));
      border-color: rgba(16, 185, 129, 0.4);
    }

    body.light-mode .project-card:nth-child(5) {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.05));
      border-color: rgba(16, 185, 129, 0.25);
    }

    .project-card:nth-child(5):hover {
      border-color: rgba(16, 185, 129, 0.8);
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.25));
      box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
      transform: translateY(-8px) scale(1.02);
    }

    body.light-mode .project-card:nth-child(5):hover {
      border-color: rgba(16, 185, 129, 0.5);
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
      box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
    }

    .project-card:nth-child(5) .project-tag {
      color: rgba(16, 185, 129, 0.9);
    }

    body.light-mode .project-card:nth-child(5) .project-tag {
      color: rgba(16, 185, 129, 0.85);
    }

    .project-card:nth-child(5) .chip {
      border-color: rgba(16, 185, 129, 0.5);
      background: rgba(16, 185, 129, 0.1);
      color: rgba(16, 185, 129, 0.95);
    }

    body.light-mode .project-card:nth-child(5) .chip {
      border-color: rgba(16, 185, 129, 0.3);
      background: rgba(16, 185, 129, 0.08);
      color: rgba(16, 185, 129, 0.85);
    }

    /* Card 6: Amber gradient */
    .project-card:nth-child(6) {
      background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(245, 158, 11, 0.15));
      border-color: rgba(217, 119, 6, 0.4);
    }

    body.light-mode .project-card:nth-child(6) {
      background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(245, 158, 11, 0.05));
      border-color: rgba(217, 119, 6, 0.25);
    }

    .project-card:nth-child(6):hover {
      border-color: rgba(217, 119, 6, 0.8);
      background: linear-gradient(135deg, rgba(217, 119, 6, 0.3), rgba(245, 158, 11, 0.25));
      box-shadow: 0 20px 60px rgba(217, 119, 6, 0.4);
      transform: translateY(-8px) scale(1.02);
    }

    body.light-mode .project-card:nth-child(6):hover {
      border-color: rgba(217, 119, 6, 0.5);
      background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(245, 158, 11, 0.1));
      box-shadow: 0 20px 60px rgba(217, 119, 6, 0.15);
    }

    .project-card:nth-child(6) .project-tag {
      color: rgba(217, 119, 6, 0.9);
    }

    body.light-mode .project-card:nth-child(6) .project-tag {
      color: rgba(217, 119, 6, 0.85);
    }

    .project-card:nth-child(6) .chip {
      border-color: rgba(217, 119, 6, 0.5);
      background: rgba(217, 119, 6, 0.1);
      color: rgba(217, 119, 6, 0.95);
    }

    body.light-mode .project-card:nth-child(6) .chip {
      border-color: rgba(217, 119, 6, 0.3);
      background: rgba(217, 119, 6, 0.08);
      color: rgba(217, 119, 6, 0.85);
    }

    /* Card 7: Rose gradient */
    .project-card:nth-child(7) {
      background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(219, 39, 119, 0.15));
      border-color: rgba(244, 63, 94, 0.4);
    }

    body.light-mode .project-card:nth-child(7) {
      background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(219, 39, 119, 0.05));
      border-color: rgba(244, 63, 94, 0.25);
    }

    .project-card:nth-child(7):hover {
      border-color: rgba(244, 63, 94, 0.8);
      background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(219, 39, 119, 0.25));
      box-shadow: 0 20px 60px rgba(244, 63, 94, 0.4);
      transform: translateY(-8px) scale(1.02);
    }

    body.light-mode .project-card:nth-child(7):hover {
      border-color: rgba(244, 63, 94, 0.5);
      background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(219, 39, 119, 0.1));
      box-shadow: 0 20px 60px rgba(244, 63, 94, 0.15);
    }

    .project-card:nth-child(7) .project-tag {
      color: rgba(244, 63, 94, 0.9);
    }

    body.light-mode .project-card:nth-child(7) .project-tag {
      color: rgba(244, 63, 94, 0.85);
    }

    .project-card:nth-child(7) .chip {
      border-color: rgba(244, 63, 94, 0.5);
      background: rgba(244, 63, 94, 0.1);
      color: rgba(244, 63, 94, 0.95);
    }

    body.light-mode .project-card:nth-child(7) .chip {
      border-color: rgba(244, 63, 94, 0.3);
      background: rgba(244, 63, 94, 0.08);
      color: rgba(244, 63, 94, 0.85);
    }

    /* Card 8: Indigo gradient */
    .project-card:nth-child(8) {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.15));
      border-color: rgba(99, 102, 241, 0.4);
    }

    body.light-mode .project-card:nth-child(8) {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(129, 140, 248, 0.05));
      border-color: rgba(99, 102, 241, 0.25);
    }

    .project-card:nth-child(8):hover {
      border-color: rgba(99, 102, 241, 0.8);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(129, 140, 248, 0.25));
      box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
      transform: translateY(-8px) scale(1.02);
    }

    body.light-mode .project-card:nth-child(8):hover {
      border-color: rgba(99, 102, 241, 0.5);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1));
      box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    }

    .project-card:nth-child(8) .project-tag {
      color: rgba(99, 102, 241, 0.9);
    }

    body.light-mode .project-card:nth-child(8) .project-tag {
      color: rgba(99, 102, 241, 0.85);
    }

    .project-card:nth-child(8) .chip {
      border-color: rgba(99, 102, 241, 0.5);
      background: rgba(99, 102, 241, 0.1);
      color: rgba(99, 102, 241, 0.95);
    }

    body.light-mode .project-card:nth-child(8) .chip {
      border-color: rgba(99, 102, 241, 0.3);
      background: rgba(99, 102, 241, 0.08);
      color: rgba(99, 102, 241, 0.85);
    }

    .project-btn {
      font-size: 0.8rem;
      border-radius: 999px;
      padding: 6px 12px;
      border: none;
      background: radial-gradient(circle at 0 0, var(--accent-3), var(--accent-2));
      color: #020617;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      box-shadow: 0 12px 30px rgba(79, 70, 229, 0.9);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
      overflow: hidden;
    }

    .project-actions {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .project-btn-live {
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.95));
      color: #ecfeff;
      box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55);
    }

    .project-btn-live:hover {
      box-shadow: 0 18px 45px rgba(16, 185, 129, 0.75);
    }

    body.light-mode .project-btn-live {
      color: #ffffff;
      box-shadow: 0 12px 30px rgba(5, 150, 105, 0.35);
    }

    body.light-mode .project-btn-live:hover {
      box-shadow: 0 18px 45px rgba(5, 150, 105, 0.5);
    }

    .project-btn::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.5s ease, height 0.5s ease;
    }

    .project-btn:hover::after {
      width: 300px;
      height: 300px;
    }

    body.light-mode .project-btn {
      color: #ffffff;
      box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5);
    }

    .project-btn:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 18px 45px rgba(79, 70, 229, 1);
    }

    .project-btn span {
      position: relative;
      z-index: 1;
    }

    body.light-mode .project-btn:hover {
      box-shadow: 0 18px 45px rgba(139, 92, 246, 0.6);
    }

    .projects-nav-btn {
      display: none;
    }

    .project-screen {
      background: rgba(15, 23, 42, 0.6);
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      padding: 12px;
      display: grid;
      gap: 8px;
      font-size: 0.72rem;
      color: rgba(148, 163, 184, 0.7);
    }

    .project-screen .bar {
      display: flex;
      justify-content: space-between;
      font-size: 0.7rem;
      padding: 6px;
      background: rgba(30, 41, 59, 0.8);
      border-radius: 6px;
    }

    .project-screen .box {
      border-radius: 8px;
      border: 1px dashed rgba(148, 163, 184, 0.3);
      padding: 8px;
      background: rgba(15, 23, 42, 0.4);
    }

    .project-screen code {
      color: rgba(168, 85, 247, 0.8);
      font-size: 0.7rem;
    }

    /* Contact */
    .contact-card {
      background: radial-gradient(circle at top, rgba(56, 189, 248, 0.22), transparent 65%), var(--bg-soft-2);
      border-radius: var(--card-radius);
      padding: 22px 24px;
      border: 1px solid rgba(55, 65, 81, 0.9);
      box-shadow: var(--shadow-soft);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 28px;
    }

    @media (max-width: 900px) {
      .contact-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    @media (max-width: 480px) {
      .contact-grid {
        gap: 16px;
      }
    }

    .contact-meta {
      font-size: 0.9rem;
      color: var(--muted);
      margin-bottom: 14px;
    }

    .contact-list {
      list-style: none;
      display: grid;
      gap: 8px;
      font-size: 0.9rem;
    }

    .contact-list li span {
      color: var(--muted);
      font-size: 0.82rem;
      margin-right: 6px;
    }

    .socials {
      margin-top: 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 0.9rem;
    }

    .social-pill {
      padding: 5px 11px;
      border-radius: 999px;
      border: 1px solid rgba(75, 85, 99, 0.9);
      cursor: pointer;
      font-size: 0.8rem;
    }

    .contact-form {
      display: grid;
      gap: 10px;
      font-size: 0.86rem;
    }

    .contact-form label {
      display: block;
      margin-bottom: 3px;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      border-radius: 12px;
      border: 1px solid rgba(55, 65, 81, 0.9);
      background: rgba(15, 23, 42, 0.9);
      padding: 9px 11px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.86rem;
    }

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

    .contact-form button {
      justify-self: flex-start;
      margin-top: 4px;
    }

    @media (max-width: 900px) {
      .contact-form button {
        justify-self: stretch;
        display: flex;
        justify-content: center;
      }
    }

    footer {
      padding-top: 26px;
      font-size: 0.8rem;
      color: #6b7280;
      text-align: center;
    }

    /* Reveal on scroll */
    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Tech stack – solar system orbit */
    #stack {
      text-align: center;
    }

    .stack-subtitle {
      font-size: 0.92rem;
      color: var(--muted);
      max-width: 520px;
      margin: 0 auto 24px;
    }

    .stack-orbit-wrapper {
      margin-top: 32px;
      display: flex;
      justify-content: center;
      padding: 40px 20px;
    }

    .stack-orbit {
      position: relative;
      width: min(500px, 95vw);
      height: 500px;
    }

    /* Orbital path lines (dotted circles) */
    .orbit-paths {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      pointer-events: none;
      z-index: 1;
      color: var(--muted);
    }

    /* Center planet (sun) - stays in middle */
    .center-planet {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 100px;
      border-radius: 999px;
      background: radial-gradient(circle at 20% 0, #4df3ff, #7c3aed);
      box-shadow:
        0 0 40px rgba(129, 140, 248, 0.9),
        0 0 90px rgba(56, 189, 248, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      animation: planetPulse 3s ease-in-out infinite;
      transition: box-shadow 0.4s ease;
    }

    body.light-mode .center-planet {
      box-shadow:
        0 0 40px rgba(139, 92, 246, 0.6),
        0 0 90px rgba(59, 130, 246, 0.4);
    }

    .center-planet-inner {
      width: 70px;
      height: 70px;
      border-radius: inherit;
      background: radial-gradient(circle at 30% 0, #111827, #020617);
      border: 2px solid rgba(148, 163, 184, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      transition: background 0.4s ease, border-color 0.4s ease;
    }

    body.light-mode .center-planet-inner {
      background: radial-gradient(circle at 30% 0, #f3f4f6, #e5e7eb);
      border-color: rgba(107, 114, 128, 0.4);
    }

    /* Orbital rings (visual guide) */
    .orbit-ring {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      border: 1px solid rgba(148, 163, 184, 0.15);
      border-radius: 999px;
      pointer-events: none;
      transition: border-color 0.4s ease;
    }

    body.light-mode .orbit-ring {
      border-color: rgba(107, 114, 128, 0.1);
    }

    .orbit-ring.ring-1 {
      width: 200px;
      height: 200px;
    }

    .orbit-ring.ring-2 {
      width: 300px;
      height: 300px;
    }

    .orbit-ring.ring-3 {
      width: 400px;
      height: 400px;
    }

    /* Orbit layers - container for rotating icons */
    .orbit-layer {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      border-radius: 999px;
      pointer-events: none;
    }

    .orbit-layer.layer-1 {
      width: 200px;
      height: 200px;
      animation: orbitRotate 20s linear infinite;
    }

    .orbit-layer.layer-2 {
      width: 300px;
      height: 300px;
      animation: orbitRotate 30s linear infinite reverse;
    }

    .orbit-layer.layer-3 {
      width: 400px;
      height: 400px;
      animation: orbitRotate 40s linear infinite;
    }

    /* Individual orbit icons positioned in circle */
    .orbit-icon {
      position: absolute;
      width: 50px;
      height: 50px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 0, #1f2937, #020617);
      border: 1.5px solid rgba(148, 163, 184, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
      pointer-events: auto;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      left: 50%;
      top: 50%;
      margin: -25px 0 0 -25px;
    }

    .orbit-icon::after {
      content: attr(title);
      position: absolute;
      bottom: -30px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(15, 23, 42, 0.95);
      color: var(--text);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 500;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
      border: 1px solid rgba(148, 163, 184, 0.3);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .orbit-icon:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(-5px);
    }

    .orbit-icon:hover {
      box-shadow: 0 0 30px rgba(96, 165, 250, 1), 0 0 60px rgba(129, 140, 248, 0.6);
      border-color: rgba(248, 250, 252, 1);
      transform: scale(1.15);
    }

    /* Position icons equally around their orbits using nth-child transforms */
    /* Layer 1: 3 icons, 120° apart */
    .layer-1 .orbit-icon:nth-child(1) {
      transform: rotate(0deg) translateY(-100px) rotate(0deg);
    }

    .layer-1 .orbit-icon:nth-child(2) {
      transform: rotate(120deg) translateY(-100px) rotate(-120deg);
    }

    .layer-1 .orbit-icon:nth-child(3) {
      transform: rotate(240deg) translateY(-100px) rotate(-240deg);
    }

    /* Layer 2: 4 icons, 90° apart */
    .layer-2 .orbit-icon:nth-child(1) {
      transform: rotate(0deg) translateY(-150px) rotate(0deg);
    }

    .layer-2 .orbit-icon:nth-child(2) {
      transform: rotate(90deg) translateY(-150px) rotate(-90deg);
    }

    .layer-2 .orbit-icon:nth-child(3) {
      transform: rotate(180deg) translateY(-150px) rotate(-180deg);
    }

    .layer-2 .orbit-icon:nth-child(4) {
      transform: rotate(270deg) translateY(-150px) rotate(-270deg);
    }

    /* Layer 3: 4 icons, 90° apart */
    .layer-3 .orbit-icon:nth-child(1) {
      transform: rotate(45deg) translateY(-200px) rotate(-45deg);
    }

    .layer-3 .orbit-icon:nth-child(2) {
      transform: rotate(135deg) translateY(-200px) rotate(-135deg);
    }

    .layer-3 .orbit-icon:nth-child(3) {
      transform: rotate(225deg) translateY(-200px) rotate(-225deg);
    }

    .layer-3 .orbit-icon:nth-child(4) {
      transform: rotate(315deg) translateY(-200px) rotate(-315deg);
    }

    .orbit-labels {
      margin-top: 32px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .orbit-chip {
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid rgba(55, 65, 81, 0.9);
      background: rgba(15, 23, 42, 0.95);
      color: var(--text);
      font-size: 0.75rem;
      font-weight: 500;
      transition: all 0.2s ease;
    }

    body.light-mode .orbit-chip {
      border-color: rgba(107, 114, 128, 0.3);
      background: rgba(255, 255, 255, 0.85);
    }

    .orbit-chip:hover {
      border-color: rgba(148, 163, 184, 0.8);
      background: rgba(15, 23, 42, 1);
    }

    body.light-mode .orbit-chip:hover {
      border-color: rgba(107, 114, 128, 0.6);
      background: rgba(255, 255, 255, 0.95);
    }

    /* Animations */
    @keyframes planetPulse {

      0%,
      100% {
        box-shadow: 0 0 40px rgba(129, 140, 248, 0.9), 0 0 90px rgba(56, 189, 248, 0.8);
        transform: translate(-50%, -50%) scale(1);
      }

      50% {
        box-shadow: 0 0 50px rgba(129, 140, 248, 1), 0 0 110px rgba(56, 189, 248, 1);
        transform: translate(-50%, -50%) scale(1.05);
      }
    }

    @keyframes orbitRotate {
      from {
        transform: translate(-50%, -50%) rotate(0deg);
      }

      to {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }

    @media (max-width: 900px) {
      .stack-orbit {
        width: min(400px, 95vw);
        height: 400px;
      }

      .orbit-ring.ring-1 {
        width: 160px;
        height: 160px;
      }

      .orbit-ring.ring-2 {
        width: 240px;
        height: 240px;
      }

      .orbit-ring.ring-3 {
        width: 320px;
        height: 320px;
      }

      .orbit-layer.layer-1 {
        width: 160px;
        height: 160px;
      }

      .orbit-layer.layer-2 {
        width: 240px;
        height: 240px;
      }

      .orbit-layer.layer-3 {
        width: 320px;
        height: 320px;
      }

      .layer-1 .orbit-icon:nth-child(1) {
        transform: rotate(0deg) translateY(-80px) rotate(0deg);
      }

      .layer-1 .orbit-icon:nth-child(2) {
        transform: rotate(120deg) translateY(-80px) rotate(-120deg);
      }

      .layer-1 .orbit-icon:nth-child(3) {
        transform: rotate(240deg) translateY(-80px) rotate(-240deg);
      }

      .layer-2 .orbit-icon:nth-child(1) {
        transform: rotate(0deg) translateY(-120px) rotate(0deg);
      }

      .layer-2 .orbit-icon:nth-child(2) {
        transform: rotate(90deg) translateY(-120px) rotate(-90deg);
      }

      .layer-2 .orbit-icon:nth-child(3) {
        transform: rotate(180deg) translateY(-120px) rotate(-180deg);
      }

      .layer-2 .orbit-icon:nth-child(4) {
        transform: rotate(270deg) translateY(-120px) rotate(-270deg);
      }

      .layer-3 .orbit-icon:nth-child(1) {
        transform: rotate(45deg) translateY(-160px) rotate(-45deg);
      }

      .layer-3 .orbit-icon:nth-child(2) {
        transform: rotate(135deg) translateY(-160px) rotate(-135deg);
      }

      .layer-3 .orbit-icon:nth-child(3) {
        transform: rotate(225deg) translateY(-160px) rotate(-225deg);
      }

      .layer-3 .orbit-icon:nth-child(4) {
        transform: rotate(315deg) translateY(-160px) rotate(-315deg);
      }

      .center-planet {
        width: 80px;
        height: 80px;
      }

      .center-planet-inner {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
      }

      .orbit-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
      }
    }

    @media (max-width: 600px) {
      .stack-orbit {
        width: min(300px, 95vw);
        height: 300px;
      }

      .orbit-ring.ring-1 {
        width: 120px;
        height: 120px;
      }

      .orbit-ring.ring-2 {
        width: 180px;
        height: 180px;
      }

      .orbit-ring.ring-3 {
        width: 240px;
        height: 240px;
      }

      .orbit-layer.layer-1 {
        width: 120px;
        height: 120px;
      }

      .orbit-layer.layer-2 {
        width: 180px;
        height: 180px;
      }

      .orbit-layer.layer-3 {
        width: 240px;
        height: 240px;
      }

      .layer-1 .orbit-icon:nth-child(1) {
        transform: rotate(0deg) translateY(-60px) rotate(0deg);
      }

      .layer-1 .orbit-icon:nth-child(2) {
        transform: rotate(120deg) translateY(-60px) rotate(-120deg);
      }

      .layer-1 .orbit-icon:nth-child(3) {
        transform: rotate(240deg) translateY(-60px) rotate(-240deg);
      }

      .layer-2 .orbit-icon:nth-child(1) {
        transform: rotate(0deg) translateY(-90px) rotate(0deg);
      }

      .layer-2 .orbit-icon:nth-child(2) {
        transform: rotate(90deg) translateY(-90px) rotate(-90deg);
      }

      .layer-2 .orbit-icon:nth-child(3) {
        transform: rotate(180deg) translateY(-90px) rotate(-180deg);
      }

      .layer-2 .orbit-icon:nth-child(4) {
        transform: rotate(270deg) translateY(-90px) rotate(-270deg);
      }

      .layer-3 .orbit-icon:nth-child(1) {
        transform: rotate(45deg) translateY(-120px) rotate(-45deg);
      }

      .layer-3 .orbit-icon:nth-child(2) {
        transform: rotate(135deg) translateY(-120px) rotate(-135deg);
      }

      .layer-3 .orbit-icon:nth-child(3) {
        transform: rotate(225deg) translateY(-120px) rotate(-225deg);
      }

      .layer-3 .orbit-icon:nth-child(4) {
        transform: rotate(315deg) translateY(-120px) rotate(-315deg);
      }

      .center-planet {
        width: 70px;
        height: 70px;
      }

      .center-planet-inner {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
      }

      .orbit-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin: -19px 0 0 -19px;
      }
    }

    /* Accessibility & Focus States */
    button:focus-visible,
    a:focus-visible {
      outline: 2px solid var(--accent-3);
      outline-offset: 2px;
      border-radius: 4px;
    }

    /* Reduce motion for accessibility */
    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* Print Styles */
    @media print {
      body {
        background: white;
        color: black;
      }

      .scroll-rail,
      header,
      .theme-toggle,
      nav {
        display: none !important;
      }

      a {
        color: #0066cc;
        text-decoration: underline;
      }

      section {
        page-break-inside: avoid;
      }
    }

    /* Ultra-small screens */
    @media (max-width: 360px) {
      .page-wrap {
        padding: 12px 12px 40px;
      }

      header {
        gap: 12px;
        padding: 10px 12px;
      }

      .hero-title {
        font-size: clamp(1.8rem, 3vw, 2.4rem);
      }

      .section-title {
        font-size: 1.2rem;
      }

      nav ul {
        gap: 8px;
      }
    }
