
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }

    html {
        font-size: 62.5%;
        scroll-behavior: smooth;
    }

    body {
        background: url(back8.jpg);
        background-size: cover;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        color: #333;
    }

    /* Main layout container */
    .main-container {
        display: flex;
        flex: 1;
        padding: 2rem;
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
    }

    /* Navbar Container */
    .navbar {
      background: url(back8.jpg);
      backdrop-filter: blur(12px);
      padding: 1rem 6%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }


    /* Logo with Circle Image */
    .logo {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      font-size: 2rem;
      font-weight: 600;
      color: #fff;
    }
    .logo img {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #fff;
    }

    /* Navigation Links */
    .nav-links {
      list-style: none;
      display: flex;
      gap: 2.5rem;
    }
    .nav-links li a {
      text-decoration: none;
      font-size: 1.6rem;
      color: #fff;
      font-weight: 500;
      position: relative;
      transition: 0.3s;
    }
    .nav-links li a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0;
      height: 2px;
      background: #fff;
      transition: 0.3s;
    }
    .nav-links li a:hover::after {
      width: 100%;
    }

    /* Actions (Search + Button) */
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .nav-actions input {
      padding: 0.5rem 1rem;
      border-radius: 2rem;
      border: none;
      outline: none;
      font-size: 1.4rem;
    }
    .login-btn {
      padding: 0.6rem 1.4rem;
      border: none;
      border-radius: 2rem;
      background: #fff;
      color: #2575fc;
      font-size: 1.4rem;
      font-weight: 600;
      cursor: pointer;
      transition: 0.3s;
    }
    .login-btn:hover {
      background: #fffae5;
      transform: translateY(-2px);
    }
    
    /* Hamburger Icon */
.hamburger {
  display: none;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
}

/* Mobile Navbar */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    background: rgba(0,0,0,0.85);
    padding: 2rem 0;
    border-radius: 1rem;
    margin-top: 1rem;
  }

  .navbar.active .nav-links,
  .navbar.active .nav-actions {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  /* Make logo centered when menu is open */
  .navbar {
    flex-wrap: wrap;
  }
}


    /* Sidebar */
    .sidebar {
      width: 280px;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      padding: 2rem;
      border-radius: 1.5rem;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
      font-size: 1.4rem;
      height: fit-content;
      position: sticky;
      top: 8rem;
      color: #fff;
    }

    /* Container */
    .aside-container > div {
      margin-bottom: 2rem;
      background: rgba(240, 4, 4, 0.05);
      border-radius: 1rem;
      padding: 1.5rem;
      transition: 0.3s;
    }
    .aside-container > div:hover {
      background: rgba(255, 255, 255, 0.12);
      transform: translateY(-4px);
    }

    /* Profile Card */
    .profile-card {
      text-align: center;
    }
.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #645CBB;
  margin-bottom: 1rem;

  object-fit: cover;   
  object-position: center;
}

    /* Leaderboard */
    .leaderboard h4, .typing-tips h4, .quick-links h4 {
      margin-bottom: 1rem;
      color: #fbc2eb;
    }
    .leaderboard ul {
      list-style: none;
      padding-left: 0;
    }
    .leaderboard li {
      margin-bottom: 0.8rem;
      font-size: 1.4rem;
    }
    .leaderboard li span {
      font-weight: bold;
      color: #645CBB;
    }

    /* Typing Tips */
    .typing-tips p {
      font-style: italic;
      color: #ddd;
    }

    /* Quick Links */
    .quick-links ul {
      list-style: none;
      padding-left: 0;
    }
    .quick-links li {
      margin-bottom: 0.8rem;
    }
    .quick-links li a {
      text-decoration: none;
      color: #fff;
      transition: 0.3s;
    }
    .quick-links li a:hover {
      color: #fbc2eb;
      padding-left: 5px;
    }

    /* Main Section */
    .main-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        text-align: center;
        background: transparent;
    }

    /* Glassmorphic container */
    .container {
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 2rem;
        padding: 3rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .container:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    }

    /* Headings */
h2 {
    font-size: 3.2rem;
    font-weight: 700;
    text-transform: capitalize;
    display: inline-block; 
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}


    /* Stats Section */
    .stats {
        display: flex;
        justify-content: space-around;
        margin: 2rem 0;
        font-size: 1.6rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .stat-box {
        background: black;
        padding: 1.5rem 2.5rem;
        border-radius: 1rem;
        min-width: 16rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s;
        color: #fff;
    }
    .stat-box:hover {
        transform: translateY(-4px);
    }
    .stat-box span {
        font-weight: 700;
        color: #645CBB;
    }

    /* Sentence Display */
    .sentence-display {
        background: linear-gradient(135deg, #320101c6, #01141dab);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-radius: 1.5rem;
        font-size: 2rem;
        line-height: 1.6;
        margin: 2rem 0;
        min-height: 12rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border: 2px dashed #150d2750;
        color: #fff;
    }

    /* Highlight Current Word */
    .current-word {
        background: #e1dcff;
        padding: 0.3rem 0.6rem;
        border-radius: 0.6rem;
        font-weight: 600;
    }

    /* Typing Area */
    .typing-section {
        text-align: center;
        position: relative;
    }
    #textarea {
        border: 0.2rem solid #8e84dc7c;
        background: #f96e6627;
        color: white;
        border-radius: 1.2rem;
        width: 100%;
        height: 20rem;
        padding: 2rem;
        font-size: 1.8rem;
        outline: none;
        resize: none;
        transition: border 0.3s, box-shadow 0.3s;
    }
    #textarea:focus {
        border-color: #645CBB;
        box-shadow: 0 0 15px rgba(100, 92, 187, 0.3);
    }
    #textarea.correct {
        border-color: #4CAF50;
    }
    #textarea.incorrect {
        border-color: #f443366f;
    }

    /* Buttons */
    .btn-container {
        margin-top: 2.5rem;
        display: flex;
        justify-content: center;
        gap: 1.8rem;
        flex-wrap: wrap;
    }
    .btn {
        padding: 1.2rem 2.8rem;
        border: none;
        border-radius: 1rem;
        background: linear-gradient(90deg, #cb2d11, #2575fc);
        color: #fff;
        font-size: 1.6rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 14rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }
    .btn:active {
        transform: translateY(0);
    }
    .btn.reset {
        background: linear-gradient(90deg, #2575fc, #cb2d11);
        color: #f6f5f5;
    }
    .btn.reset:hover {
        background: #A084DC;
        color: #fff;
    }

    /* Timer */
    .timer {
        font-size: 5rem;
        font-weight: 800;
        color: #2575fc;
        margin: 1rem 0;
        letter-spacing: 0.2rem;
    }

    /* Result Box */
    .result {
        background: rgba(25, 3, 3, 0.783);
        backdrop-filter: blur(12px);
        padding: 2.5rem;
        border-radius: 1.5rem;
        margin-top: 2.5rem;
        display: none;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    .result h3 {
        font-size: 2.4rem;
        color: #645CBB;
        margin-bottom: 1.8rem;
    }
    .result-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
        font-size: 1.6rem;
    }
    .result-stats div {
        background: black;
        padding: 1.6rem;
        border-radius: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        transition: transform 0.3s;
        color: #fff;
    }
    .result-stats div:hover {
        transform: scale(1.05);
    }
    .result-stats span {
        font-weight: 700;
        color: #645CBB;
    }

    /* Footer */
    .footer {
      background: url(back8.jpg);
      backdrop-filter: blur(12px);
      color: #fff;
      margin-top: auto;
      padding-top: 3rem;
      font-size: 1.5rem;
    }


    .footer-container {
      max-width: 1200px;
      margin: auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 2.5rem;
      padding: 0 2rem;
    }

    .footer-col h3 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: capitalize;
    display: inline-block; 
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    }

    .footer-col h4 {
      font-size: 1.8rem;
      margin-bottom: 1.2rem;
      color: #e96e58;
    }

    .footer-col p {
      line-height: 1.6;
      font-size: 1.3rem;
    }

    .footer-col ul {
      list-style: none;
    }

    .footer-col ul li {
      margin-bottom: 0.8rem;
    }

    .footer-col ul li a {
      text-decoration: none;
      color: #fff;
      transition: 0.3s;
    }

    .footer-col ul li a:hover {
      color: #fbc2eb;
      padding-left: 5px;
    }

    /* Social Icons */
    .footer .socials {
      margin-top: 1.5rem;
    }
    .footer .socials a {
      margin: 0 0.5rem;
      text-decoration: none;
      color: #fff;
      font-size: 1.8rem;
      display: inline-block;
      width: 3.8rem;
      height: 3.8rem;
      line-height: 3.8rem;
      text-align: center;
      border-radius: 50%;
      background: rgba(240, 6, 6, 0.1);
      transition: all 0.3s ease;
    }
    .footer .socials a:hover {
      color: #fbc2eb;
      background: rgba(255,255,255,0.25);
      transform: translateY(-4px);
    }

    /* Bottom Bar */
    .footer-bottom {
      text-align: center;
      margin-top: 2rem;
      padding: 1.2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.25);
      font-size: 1.4rem;
      background: rgba(0,0,0,0.2);
    }

    /* Responsive */
    @media (max-width: 992px) {
      .main-container {
        flex-direction: column;
      }
      
      .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
      }
    }

    @media (max-width: 768px) {
      .footer-container {
        grid-template-columns: 1fr 1fr;
      }
      
      .navbar {
        flex-wrap: wrap;
      }
      
      .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
      }
    }

    @media (max-width: 500px) {
      .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .footer .socials {
        justify-content: center;
      }
      
      .stats {
        flex-direction: column;
        align-items: center;
      }
    }
