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

html, body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 100%; */
}
.main {
    width: 100%;
    height: 100vh;
    background-color: #010E1B;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 14%;
    /* overflow: hidden; */
}

h1 {
    color: #fff;
    font-size: 3rem; 
    font-weight: bold;
    text-transform: capitalize;
    width: fit-content;
}

#typed-element {
    flex-shrink: 0;
    color: white;
    font-size: 1.5rem; 
    font-weight: 400;
    width: 90%; 
    max-width: 520px; 
    height: 50px;
    margin-top: 10px;
}

#typing-text {
    border-bottom: 2px solid #12D640;
    padding-bottom: 3px; 
    display: inline-block; 
    color: #12D640;
}

nav {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; 
}

#home {
    color: #12D640;
}

nav a {
    font-size: 1.25rem; 
    text-transform: capitalize;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease-in-out;
}
#home {
    color: #12D640;
    border-bottom: 2px solid yellow; /* Adds a bottom border */
    padding-bottom: 3px; /* Optional: Add some space below the text */
}

nav a:hover {
    color: #12D640;
}

/* Icons Styling */
.icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap; 
}

.icons i {
    font-size: 1rem;
    color: white;
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(113, 105, 105, 0.27);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.icons i:hover {
    background-color: #3cd76094;
    transform: scale(1.1);
}

.icons a {
    text-decoration: none;
}


/* loader section */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* #loader-para{
    color: white;
    margin-top: 170%;
    font-family: montserrat;
    font-size: 27px;
    margin-left: -10%;
} */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #12D640; 
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
    
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* for music stars */


  /* Stars Background */
  .stars, .shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: blink 2s infinite ease-in-out;
  }

  @keyframes blink {
    0%, 100% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
  }

  /* Shooting Stars */
  .shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(120deg, #fff, transparent);
    border-radius: 50%;
    opacity: 0.7;
    animation: shoot 4s infinite ease-in-out;
  }

  @keyframes shoot {
    0% {
      opacity: 0;
      transform: translate(0, 0) scale(0);
    }
    50% {
      opacity: 1;
      transform: translate(300px, -300px) scale(1.5);
    }
    100% {
      opacity: 0;
      transform: translate(600px, -600px) scale(0);
    }
  }


  #cta-button{
    width: 90px;
    height: 30px;
    position: relative;
    left: 92%;
    top: 61%;
    font-size: 12px;
    background-color: #ffffff;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: 600;
  }

  #cta-button:hover {
    transform: scale(1.1);
  }





/* Mobile responsiveness */
@media (max-width: 768px) {
    
    .main {
        padding-left: 5%; 
        /* overflow: hidden; */
        /* position: fixed; */
    }

    #cta-button{
        margin-left: -15%;
        position: relative;
        top: 55%;
    }
    h1 {
        font-size: 2.5rem; 
        text-align: center;
        margin-left: 23%;
        margin-top: -40%;
        letter-spacing: 1px;
    }

    #typed-element {
        font-size: 1.2rem; 
        width: 90%;
       padding-left: 14%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    nav {
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    nav a {
        font-size: 1.125rem; 
    }

    .icons {
        gap: 10px;
        justify-content: center;
    }

    .icons i {
        font-size: 1rem; 
    }

    .stars, .shooting-stars {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
      }

}

@media (max-width: 480px) {
    .main {
        padding-left: 3%;
    }

    h1 {
        font-size: 2rem; 
    }

    #typed-element {
        font-size: 1rem; 
    }

    nav {
        flex-direction: column; 
        gap: 15px;
    }

    .icons {
        gap: 10px;
        justify-content: center;
    }

    .icons i {
        font-size: 1rem; 
    }
}


