:root {
      --primary-color: red;
      --primary-glow: 0 0 20px red;
    }

    body {
      margin: 0;
      background-color: #000;
      font-family: 'Poppins', sans-serif;
      color: white;
      -webkit-text-stroke: 0.8px black;
      text-shadow: 0 0 5px #000, 0 0 10px #000;
      text-align: center;
      padding: 50px;
    }

    /* Responsive adjustments for smaller screens */
    @media (max-width: 768px) {
      body {
        padding: 25px;
        -webkit-text-stroke: 0.5px black; /* Thinner stroke on smaller screens */
      }

      h1 {
        font-size: 2.5rem;
      }

      .btn {
        padding: 12px 18px;
        font-size: 14px;
      }

      #themeToggleBtn {
        top: 15px;
        right: 15px;
        width: 40px; height: 40px; font-size: 18px;
      }

      .about-content {
        flex-direction: column;
      }
    }

    h1 {
      font-size: 3rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
    }

    .profile-img {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      border: 3px solid var(--primary-color);
      box-shadow: var(--primary-glow);
      margin: 20px auto;
    }

    h3 {
      font-weight: normal;
      color: #ccc;
    }

    .btn {
      display: inline-block;
      background: var(--primary-color);
      color: white;
      border: none;
      padding: 10px 20px;
      margin: 10px;
      font-size: 16px;
      font-weight: bold;
      text-decoration: none;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn:hover {
      background: black;
      color: var(--primary-color);
      transform: scale(1.1);
      box-shadow: var(--primary-glow);
    }

    /* Improves accessibility for keyboard navigation */
    .btn:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 3px;
    }

    /* Typed.js Cursor Styling */
    .typed-cursor {
      color: var(--primary-color);
      -webkit-text-stroke: 0;
      text-shadow: none;
    }

    .links {
      padding: 10px 0;
      margin-bottom: 20px;
    }

    footer {
      margin-top: 60px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 0, 0, 0.2);
      color: #aaa;
      font-size: 14px;
      text-shadow: none; /* Remove the heavy shadow from the footer text */
    }

    #backToTopBtn {
      display: none; /* Hidden by default */
      position: fixed;
      bottom: 20px;
      right: 30px;
      z-index: 99;
      font-size: 18px;
      border: none;
      outline: none;
      background-color: var(--primary-color);
      color: white;
      cursor: pointer;
      padding: 15px;
      border-radius: 50%;
      line-height: 1;
      box-shadow: var(--primary-glow);
      transition: opacity 0.3s, visibility 0.3s;
      opacity: 0;
      visibility: hidden;
    } /* Theme Toggle Styles */
    #themeToggleBtn {
      position: fixed;
      top: 20px;
      right: 30px;
      z-index: 1001;
      background: rgba(255, 255, 255, 0.1);
      color: white;
      border: 1px solid var(--primary-color);
      border-radius: 50%;
      width: 45px;
      height: 45px;
      font-size: 20px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    #themeToggleBtn:hover {
      background: var(--primary-color);
      transform: scale(1.1) rotate(360deg);
    }

    body.deep-red-mode {
      --primary-color: #ff3b3b;
      --primary-glow: 0 0 25px #ff3b3b;
    }
  /* About Me Section Styles */
    .about-section {
      margin-top: 60px;
      text-align: left;
    }
    .about-section h2 {
      text-align: center;
      font-size: 2.5rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
      margin-bottom: 40px;
    }
    .about-content {
      display: flex;
      align-items: center;
      gap: 40px;
      margin-bottom: 50px;
    }
    .about-photo {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      border: 3px solid var(--primary-color);
      box-shadow: var(--primary-glow);
      object-fit: cover;
      flex-shrink: 0;
    }
    .about-text p {
      line-height: 1.7;
      color: #ddd;
    }
    .timeline h3 {
      text-align: center;
      color: var(--primary-color);
      margin-bottom: 30px;
      font-size: 1.8rem;
    }
    .timeline ul {
      list-style: none;
      padding: 0;
      position: relative;
      max-width: 600px;
      margin: 0 auto;
    }
    .timeline li {
      padding-left: 20px;
      border-left: 3px solid var(--primary-color);
      margin-bottom: 25px;
      padding-bottom: 10px;
    }
    .timeline li strong {
      display: block;
      color: var(--primary-color);
      margin-bottom: 5px;
    }
  /* Skills Section Styles */
    .skills-section {
      margin-top: 40px;
    }

    .skills-section h2 {
      font-size: 2.5rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
    }

    .skills-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
      margin-top: 20px;
    }

    .skill-tag {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid var(--primary-color);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: bold;
    }
  /* Projects Section Styles */
    .projects-section {
      margin-top: 60px;
    }

    .projects-section h2 {
      font-size: 2.5rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
      margin-bottom: 30px;
    }

    .projects-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 25px;
    }

    .project-card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 0, 0, 0.3);
      border-radius: 10px;
      padding: 25px;
      display: flex;
      flex-direction: column;
      text-align: left;
    }

    .project-card h3 {
      color: var(--primary-color);
      margin-top: 0;
    }

    .tech-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 15px 0;
    }

    .project-links {
      margin-top: auto; /* Pushes links to the bottom */
    }
 /* Downloads Section Styles */
    .downloads-section {
      margin-top: 60px;
    }

    .downloads-section h2 {
      font-size: 2.5rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
    }

    .downloads-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
      margin-top: 20px;
    }
   /* Updates Section Styles */
    .updates-section {
      margin-top: 60px;
      text-align: left; /* Align content within this section to the left */
    }

    .updates-section h2 {
      text-align: center; /* Center the main heading only */
      font-size: 2.5rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
      margin-bottom: 30px;
    }

    .updates-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .update-card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 0, 0, 0.3);
      border-radius: 10px;
      padding: 20px;
      display: flex;
      flex-direction: column;
    }

    .update-card .update-date {
      font-size: 0.8rem;
      color: #aaa;
      margin: 0 0 10px 0;
    }

    .update-card .update-title {
      font-size: 1.2rem;
      color: var(--primary-color);
      margin: 0 0 10px 0;
    }

    .update-card .btn {
      margin-top: auto; /* Pushes button to the bottom */
      align-self: flex-start; /* Prevents button from stretching */
    }
  /* Testimonials Section Styles */
    .testimonials-section {
      margin-top: 60px;
    }

    .testimonials-section h2 {
      font-size: 2.5rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
      margin-bottom: 30px;
    }

    .testimonials-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 25px;
    }

    .testimonial-card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 0, 0, 0.3);
      border-radius: 10px;
      padding: 25px;
      text-align: left;
    }

    .testimonial-card .rating {
      color: var(--primary-color);
      font-size: 1.2rem;
      margin-bottom: 15px;
    }

    .testimonial-card blockquote {
      margin: 0;
      font-style: italic;
      color: #ddd;
    }

    .testimonial-card .author {
      text-align: right;
      margin-top: 15px;
      font-weight: bold;
    }
  /* Videos Section Styles */
    .videos-section {
      margin-top: 60px;
    }

    .videos-section h2 {
      text-align: center;
      font-size: 2.5rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
      margin-bottom: 30px;
    }

    .videos-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 25px;
    }

    .video-wrapper {
      position: relative;
      /* 16:9 Aspect Ratio */
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
      border-radius: 10px;
      border: 2px solid rgba(255, 0, 0, 0.3);
      box-shadow: var(--primary-glow);
    }

    .video-wrapper iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }
   /* Game Modal Styles */
    .games-section {
      margin-top: 40px;
      margin-bottom: 20px;
    }

    .games-section h2 {
      font-size: 2.5rem;
      color: var(--primary-color);
      text-shadow: var(--primary-glow);
    }

    .game-buttons-container {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
    }

    .game-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      display: none; /* Hidden by default */
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .game-modal {
      position: relative;
    }

    .game-modal .game-frame {
      width: 90vw;
      height: 80vh;
      max-width: 1280px;
      max-height: 720px;
      border: 3px solid var(--primary-color);
      border-radius: 10px;
      box-shadow: var(--primary-glow);
      background: #000; /* Show black while loading */
    }

    .close-btn {
      position: absolute;
      top: -45px;
      right: 0;
      background: none; border: none;
      color: white; font-size: 3rem;
      cursor: pointer; line-height: 1;
    }
   /* Loader Styles */
    .loader {
      width: 60px;
      height: 60px;
      border: 5px solid #444;
      border-top-color: var(--primary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

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