
    :root {
      --color-primary: #ffc800;
      --color-secondary: #7b2ff7;
      --color-text-light: #f4e8c8;
      --color-text-dark: #e8d8b8;
      --color-background: #0d0d0d;
      --gradient-main: linear-gradient(90deg, #ffc800, #ff85c0);
      --transition-fast: 0.4s ease;
    }
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html, body {
      font-family: "Cinzel", serif;
      scroll-behavior: smooth;
      background: var(--color-background);
      color: var(--color-text-light);
      overflow-x: hidden;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      touch-action: auto;
    }
    /* UPDATED CUSTOM CURSOR: CANDLE FLAME EFFECT */
    .custom-cursor {
      position: fixed;
      width: 40px; 
      height: 40px; 
      background: radial-gradient(circle, rgba(255, 230, 150, 0.9) 0%, rgba(255, 200, 0, 0.7) 30%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      z-index: 2000;
      mix-blend-mode: hard-light;
      transform: translate(-50%, -50%) scale(1);
      transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      /* Add a soft, flickering shadow for flame effect */
      box-shadow: 0 0 15px rgba(255, 200, 0, 0.9), 0 0 30px rgba(255, 100, 0, 0.5);
      animation: cursor-flicker 1.5s infinite alternate;
    }
    .custom-cursor.hovered {
      transform: translate(-50%, -50%) scale(0.6); 
      width: 20px;
      height: 20px;
    }
    @keyframes cursor-flicker {
        0% { opacity: 1; box-shadow: 0 0 15px rgba(255, 200, 0, 0.9), 0 0 30px rgba(255, 100, 0, 0.5); }
        50% { opacity: 0.95; box-shadow: 0 0 10px rgba(255, 200, 0, 0.7), 0 0 25px rgba(255, 100, 0, 0.3); }
        100% { opacity: 1; box-shadow: 0 0 15px rgba(255, 200, 0, 0.9), 0 0 30px rgba(255, 100, 0, 0.5); }
    }
    @media (max-width: 768px) {
      .custom-cursor { display: none; }
    }
    .candle-glow {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
      opacity: 0.2;
      background: radial-gradient(circle at 10% 10%, rgba(255, 200, 0, 0.3) 0%, transparent 25%);
      animation: flicker 10s infinite alternate;
    }
    @keyframes flicker {
      0% { opacity: 0.2; transform: scale(1.0); }
      50% { opacity: 0.15; transform: scale(1.05); }
      100% { opacity: 0.25; transform: scale(1.0); }
    }

    header {
      position: fixed;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 95%;
      max-width: 1200px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(13, 13, 13, 0.85);
      backdrop-filter: blur(8px);
      border: 2px solid rgba(255, 200, 0, 0.2);
      border-radius: 12px;
      padding: 10px 20px;
      z-index: 1000;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
      font-family: "Poppins", sans-serif;
    }
    header h1 {
      font-size: 20px;
      font-weight: 600;
      letter-spacing: 1.5px;
      color: var(--color-primary);
    }
    nav { display: flex; gap: 8px; }
    nav button {
      background: none;
      border: none;
      color: var(--color-text-light);
      padding: 6px 10px;
      border-radius: 8px;
      cursor: pointer;
      font-family: "Poppins", sans-serif;
      font-size: 13px;
      font-weight: 500;
      position: relative;
      transition: color var(--transition-fast);
      min-width: 50px;
    }
    nav button::after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 100%;
      height: 1px;
      background: var(--gradient-main);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.4s ease;
    }
    nav button.active::after, nav button:hover::after {
      transform: scaleX(1);
      transform-origin: left;
    }
    nav button.active, nav button:hover {
      color: var(--color-primary);
    }

    .progress-bar {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      background: var(--gradient-main);
      transform-origin: left;
      transform: scaleX(0);
      z-index: 999;
      box-shadow: 0 0 10px rgba(255, 200, 0, 0.7);
    }

    section {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 120px 15px 60px;
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      position: relative;
      opacity: 0;
      transform: translateY(20px);
      margin: 15px;
      background-color: #1a1a1a;
      border-radius: 16px;
      overflow: hidden;
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    section.visible {
      opacity: 1;
      transform: translateY(0);
    }
    section::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9));
      z-index: 0;
    }

    .chapter-content, .projects-content, .contact-content {
      position: relative;
      z-index: 3;
      max-width: 1000px;
      width: 100%;
      text-align: left;
      padding: 30px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255, 200, 0, 0.3);
      backdrop-filter: blur(2px);
      font-family: "Cinzel", serif;
    }
    h2 {
      font-size: 42px;
      margin-bottom: 10px;
      background: var(--gradient-main);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 700;
      letter-spacing: 1px;
    }
    .subtitle {
      color: #9d9070;
      font-size: 16px;
      margin-bottom: 30px;
      font-style: italic;
      font-family: "Poppins", sans-serif;
      font-weight: 300;
    }
    p {
      font-size: 19px;
      line-height: 1.8;
      margin-bottom: 25px;
      color: var(--color-text-dark);
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    .btns {
      display: flex;
      gap: 20px;
    }
    .btns a {
      padding: 12px 28px;
      border-radius: 5px;
      text-decoration: none;
      font-family: "Poppins", sans-serif;
      font-size: 15px;
      font-weight: 600;
      border: 1px solid var(--color-primary);
      color: var(--color-text-light);
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      min-width: 120px;
      text-align: center;
      letter-spacing: 0.5px;
    }
    .btns a.primary {
      background: var(--gradient-main);
      border: none;
      color: var(--color-background);
      box-shadow: 0 4px 15px rgba(255, 200, 0, 0.5);
    }
    .btns a:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 6px 20px rgba(255, 200, 0, 0.4);
    }

    #projects {
      min-height: auto;
      padding-top: 150px;
      padding-bottom: 80px;
    }
    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 35px;
      margin-top: 30px;
    }
    .project-card {
      background: rgba(13, 13, 13, 0.7);
      padding: 25px;
      border-radius: 10px;
      border: 1px solid rgba(255, 200, 0, 0.1);
      transition: all 0.4s ease;
    }
    .project-card:hover {
      transform: scale(1.03);
      box-shadow: 0 0 30px rgba(255, 200, 0, 0.2);
    }
    .project-card h3 {
      font-family: "Poppins", sans-serif;
      font-size: 24px;
      margin-bottom: 8px;
      color: var(--color-primary);
      text-shadow: 0 0 5px rgba(255, 200, 0, 0.5);
    }
    .project-card .tech-stack {
      font-size: 13px;
      color: #7b2ff7;
      font-family: "Poppins", sans-serif;
      font-weight: 600;
      letter-spacing: 0.8px;
      margin-top: 10px;
    }

    .contact-content {
      text-align: center;
      max-width: 600px;
    }
    .contact-content form {
      display: grid;
      gap: 20px;
      margin-top: 30px;
    }
    .contact-content input, .contact-content textarea {
      width: 100%;
      padding: 15px;
      border-radius: 8px;
      border: 1px solid rgba(255, 200, 0, 0.3);
      background: rgba(0, 0, 0, 0.7);
      color: var(--color-text-light);
      font-family: "Poppins", sans-serif;
      font-size: 16px;
    }
    .contact-content textarea { min-height: 150px; }
    .contact-content button {
      background: var(--gradient-main);
      color: var(--color-background);
      border: none;
      cursor: pointer;
      font-size: 17px;
      font-weight: 600;
      letter-spacing: 1px;
    }

    aside {
      position: fixed;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 1000;
    }
    aside button {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: rgba(255, 200, 0, 0.3);
      border: 1px solid var(--color-primary);
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 0;
    }
    aside button.active {
      background: var(--color-primary);
      transform: scale(1.4);
      box-shadow: 0 0 10px var(--color-primary);
    }
    aside button:hover {
      background: var(--color-primary);
      transform: scale(1.2);
    }

    footer {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      text-align: center;
      font-family: "Poppins", sans-serif;
      font-size: 14px;
      color: #d4c4a8;
      opacity: 0.9;
      z-index: 1000;
      background: rgba(0, 0, 0, 0.9);
      padding: 10px 15px;
      border-top: 1px solid rgba(255, 200, 0, 0.1);
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    }
    footer a {
      color: var(--color-primary);
      text-decoration: none;
      transition: color var(--transition-fast);
      font-weight: 600;
    }
    footer a:hover {
      color: #ffd700;
    }

    @media (max-width: 768px) {
      header { flex-direction: column; gap: 8px; padding: 8px 15px; top: 0; border-radius: 0; width: 100%; border-left: none; border-right: none; }
      header h1 { font-size: 18px; }
      nav { flex-wrap: wrap; justify-content: center; gap: 4px; }
      nav button { font-size: 11px; padding: 4px 6px; min-width: 40px; }
      h2 { font-size: 30px; }
      .subtitle { font-size: 13px; }
      p { font-size: 15px; line-height: 1.6; }
      .btns { justify-content: center; gap: 10px; }
      .btns a { padding: 8px 14px; font-size: 13px; min-width: 80px; }
      .chapter-content, .projects-content, .contact-content { padding: 15px; margin-top: 20px; }
      section { margin: 0; padding: 120px 10px 50px; min-height: auto; border-radius: 0; border: none; background-attachment: scroll; }
      aside { display: none; }
      .candle-glow { opacity: 0.1; }
      .project-grid { grid-template-columns: 1fr; gap: 20px; }
      footer { font-size: 12px; padding: 8px 10px; }
    }
    @media (max-width: 480px) {
        h2 { font-size: 24px; }
        .btns a { font-size: 12px; min-width: 70px; }
    }
