*{
    margin:0;
    padding: 0;
    font-family: 'poppins',sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;

}
body{
    background: beige;
    color: black;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Keeps it above everything */
    background-color: gainsboro; /* You can change this */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional for better visibility */
    padding: 10px 20px;
}

/* *************** */




.nav-link.active {
    /* color: #00bcd4; Cyan highlight */
    font-weight: bold;
    /* border-bottom: 2px solid #00bcd4; */
}



#header{
    width: 100%;
    height: 100%;
    background-size:cover ;
    background-position: center;
    
}

.container{
    background-color: gainsboro;

}



nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    height: 100px;

}
.logo{
    width: 140px;
    height: 90px;
    /* mix-blend-mode: lighten; */
    border-radius:50px;
    margin-left: 100px;


    

    
}
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}
nav ul li a{
    color:  black;
    text-decoration:none ;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content:'' ;
    width:0% ;
    height:3px ;
    background: red;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;


}
nav ul li a:hover::after{
    width: 100%; 

}

h3{
    margin-top: 150px;
    margin-left: 550px ;
    font-weight: 100;
}


h1{
     
    margin-left: 360px;
    margin-top: 30px;
    font-size: 50px;
   font-weight: bolder;

}

.container {
    background: gray;
    padding: 25px;
    max-width: 700px;
    margin: auto;
    margin-top: 100px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* Difficulty Selection */
.difficulty-container {
    margin: 10px 0;
}

#difficulty {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Typing Test Area */
.typing-area {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.text-box {
    font-size: 18px;
    padding: 10px;
    min-height: 50px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: inline-block;
}

#text-input {
    width: 90%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    outline: none;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
}

.stat-box {
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 10px;
    width: 30%;
    font-size: 16px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: bold;
}

#start-btn {
    background: #28a745;
    color: white;
}

#start-btn:hover {
    background: #218838;
}

#end-btn {
    background: #dc3545;
    color: white;
}

#end-btn:hover {
    background: #c82333;
}

#reset-btn {
    background: #ffc107;
    color: black;
}

#reset-btn:hover {
    background: #e0a800;
}

/* Leaderboard */
h2 {
    margin-top: 20px;
    font-size: 22px;
}

#leaderboard {
    text-align: left;
    padding-left: 0;
}

#leaderboard li {
    background: #f8f9fa;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
}

/* Typing Highlight */
.correct {
    color: green;
    font-weight: bold;
}

.incorrect {
    color: red;
    font-weight: bold;
}

.custom-line {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    margin: 30px auto;
    width: 80%;
    border-radius: 4px;
  }
  


/* ***** help section***** */

.heading{
margin-top: 100px;
margin-left: 400px; 


}

.Help{
    background-color: #c8a2c8;
    margin-left: 100px;
    margin-right: 100px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 1px solid #ddd;
  }
  
  .video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: none;
  }

  .helping{
    display: flex;
    padding: 30px 50px;
    gap: 40px;
  }

  .helping1{
    display: flex;
    padding: 30px 50px;
    gap: 40px;
    margin-top: 20px;
  }

  .helping2{
    display: flex;
    padding: 30px 50px;
    gap: 40px;
    margin-top: 20px;
  }

  .about-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 50px 30px;
    background: yellow;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeInUp 0.8s ease-in-out;
  }
  
  
  

  .shiv {
    font-size: 2vw;
    font-weight: 400;
    color: #004aad;
    text-align: center;
    margin: 60px auto 30px auto; 
    padding: 15px 20px;
    width: fit-content;  
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

  .section-divider {
    border: none;
    height: 4px;
    width: 100px;
    margin: 0 auto 30px auto;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    border-radius: 5px;
  }
  
  .about-section p {
    font-size: 1.1rem;
    color: #333;
  }  


  /* contact  */

  .contact-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px 30px;
  background-color: #008080;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  color: #ff6f61;
  margin-bottom: 10px;
}

.contact-section p {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.phone {
  font-weight: bold;
  margin-bottom: 25px;
}

.phone a {
  color: #ff6f61;
  text-decoration: none;
}

.section-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  border: none;
  margin: 0 auto 30px auto;
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0072ff;
}

.contact-form button {
  background: #0072ff;
  color: white;
  font-size: 1.1rem;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: green;
}

.social-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-links a {
  font-size: 28px;
  color: black;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  color: #ff6f61;
  transform: scale(1.2);
}


/* *** about section  */
.about-section{
    display: flex;
    gap: 50px;
}

.pic{
    border-radius: 10px;
    width: 100%;
    height: auto;
}

.img1{
    grid-area: I1;
}

.img2{
    grid-area: I2;
}

.img3{
    grid-area: I3;
}

.img4{
    grid-area: I4;
}


.picture{
    display: grid;
    gap: 10px;
    grid-template-areas: 
         "I1 I1 I2"
         "I1 I1 I3"
         "I4 I4 I4";
}


@media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: center;
      height: auto;
      padding: 20px 0;
    }

    nav {
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
      padding: 10px 20px;
      height: auto;
    }
  
    .logo {
      width: 100px;
      height: auto;
      margin-left: 0;
      margin-top: 0;
    }
  
    nav ul {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      margin-top: 5px;
      padding: 0;
    }
  
    nav ul li {
      display: block;
      margin: 5px 0;
      text-align: right;
    }
  
  
    nav ul {
      padding: 0;
      margin-top: 0px;
      text-align: center;
    }
  
    nav ul li {
      display: block;
      margin: 5px 0;
    }
  
    .logo {
      width: 100px;
      height: auto;
      margin-left: 0;
    }
  
    h1, h3 {
      text-align: center;
      margin-left: 0;
      font-size: 28px;
    }
  
    .container {
      padding: 15px;
      margin: 20px;
      width: auto;
    }
  
    .stats {
      flex-direction: column;
      gap: 10px;
    }
  
    .stat-box {
      width: 100%;
    }
  
    .buttons {
      flex-direction: column;
      gap: 10px;
    }
  
    .helping,
    .helping1,
    .helping2 {
      flex-direction: column;
      padding: 20px;
      gap: 20px;
    }
  
    .about-section {
      flex-direction: column;
      padding: 20px;
    }
  
    .picture { 
      padding: 10px;
    }
  
    .video-container {
      max-width: 100%;
      padding-bottom: 56.25%;
      margin: 20px;
    }
  
    .contact-section {
      padding: 20px;
      margin: 20px;
    }
  
    .social-links {
      flex-wrap: wrap;
      gap: 15px;
    }
  
    .text-box,
    #text-input {
      width: 100%;
    }
  }

  
  

  .heading {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    text-align: center;
    color: black;
    margin: 20px auto;
    padding: 10px;
    line-height: 1.2;
    word-wrap: break-word;
  }
  
  /* Default: Mobile-first (small devices) */
  .heading {
    font-size: 6vw;
  }
  
  /* Tablets */
  @media (min-width: 600px) {
    .heading {
      font-size: 4vw;
    }
  }
  
  /* Laptops and larger screens */
  @media (min-width: 1024px) {
    .heading {
      font-size: 2.5rem;
    }
  }


  .copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: black;
    font-weight: 300;
    margin-top: 20px;
    color: white;
    
}
.copyright i{
    color: #cf0c0c;
}



  