@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
    
    
}

img{
    width: 100%;
    display: flex;
    border-radius: 50%;
}

a{
    text-decoration: none;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #18181B;
}




nav{
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    /* position: sticky;
    top: 0;  
    background: #18181B;
    z-index: 1000;  */
}

.nav-logo{
    max-width: 100px;
}

.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.link a{
    position: relative;
    padding-bottom: 0.75rem;
    color: #fff;
}

.link a::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: #1d4ed8;
    transition: all 0.3s ease;
}

.link a:hover::after{
    width: 70%;
}
.user-name{
    -webkit-text-fill-color:white;
}
.btn{
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #fff;
    background-color: #1d4ed8;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
   

}

.btn:hover{
    background-color: #1e40af;
}
  

.container{
    max-width: 1200px;
    margin: auto;
    padding: 5rem 2rem;
}

.blur{
    position: absolute;
    box-shadow: 0 0 1000px 50px #1d4ed8;

    
}

header{
    position: relative;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
    
}

header .content h4{
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 1rem;
    font-weight: 600;
}

header .content h1{
    color: #fff;
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 4rem;
    animation-delay: 1.2s;
}

header .content h1 span{
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #fff;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.3);
}

header .content p{
    margin-bottom: 2rem;
    color: #ccc;
    animation-delay: 2s;
}

header #image{
    position: relative;
    animation-delay: 2.5s;
}

/* header #image::before{
    content: "o";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 38rem;
    font-weight: 400;
    line-height: 20rem;
    color: #1d4ed8;
    opacity: 0.2;
    z-index: -100;
}

header #image img{
    max-width: 600px;
    margin: auto;
} */

section .header{
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
}


.features{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.features .card{
    background-color: #27272a;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.features .card:hover{
    background-color: #323232;
    border-color: #fff;
}

.features .card span{
    display: inline-block;
    background-color: #1e40af;
    padding: 2px 9px;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #fff;
    border-radius: 5px;
}

.features .card h4{
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.features .card p{
    color: #ccc;
    margin-bottom: 1rem;
}

.features .card a{
    color: #fff;
    transition: all 0.3s ease;
}

.features .card a:hover{
    color: #1e40af;
}

.sub-header{
    max-width: 600px;
    margin: auto;
    text-align: center;
    color: #ccc;
}


footer{
    position: relative;
    display: grid;
    grid-template-columns: 400px repeat(3, 1fr);
    gap: 2rem;
    
}

footer .column .logo{
    max-width: 100px;
    margin-bottom: 2rem;
}

footer .column p{
    color: #ccc;
    margin-bottom: 2rem;
}

footer .column .socials{
    display: flex;
    align-items: center;
    gap: 1rem;
}

footer .column .socials a{
    color: #ccc;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 1.25rem;
    border-radius: 100%;
    transition: all 0.3s ease;
}

footer .column .socials a:hover{
    color: #fff;
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

footer .column h4{
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

footer .column > a{
    display: block;
    color: #ccc;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

footer .column > a:hover{
    color: #1d4ed8;
}


.copyright{
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
}


.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}




.logged-in #loginBtn {
    display: none;
}

.logged-in #userName {
    display: inline-block;
}

 #active a{
   color: #1d4ed8;
} 


#userName {
    display: none; 
    color: #fff;
    font-weight: 700; 
    font-size: 1.2rem; 
    text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.3); 
    transform: translateY(-5px); 
   
}




#loginBtn {
    display: block; 
}

.logged-in #loginBtn {
    display: none; 
}

.logged-in #userName {
    display: inline-block; 
}
#logoutBtn {
    display: none; 
   
    
    
}

.mission,
.works,
.team,
.terms,
.privacy,
.contact,
.settings{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    background-color: rgba(0, 0, 0, 0.8); 
    color: white;
     padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    border: solid #f9f9f9; 
}

#closebtn,
#closebtn1,
#closebtn2,
#closebtn4,
#closebtn3,
#closebtn5,
#settingsBtn,
#submit,
.contact button{
    background-color: white;
    color: #11121a;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 10px; 
}
#closebtn:hover,
#closebtn1:hover,
#closebtn2:hover,
#closebtn3:hover,
#closebtn4:hover,
#closebtn5:hover,
#settingsBtn:hover,
#submit:hover,
.contact button:hover{
  background-color: #1e40af;
}
.mission, .works, .team , .terms, .privacy, .contact, .settings{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow-y: auto; 
}
.terms, .privacy{
    display: none;
   
    max-height: 400px; 
    overflow-y: auto; 
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.show {
    opacity: 1;
}

.hide {
    opacity: 0;
    transform: translate(-50%, -40%); 
}
/* #quizTable_info,
#quizTable_length,
#quizTable_filter{
  color: white;
}

#quizTable_filter input{
  background-color: white;
  color: black;
  border: 1px solid #fff;
  border-radius: 5px; 
} */



label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px; 
}



.contact h2 {
    margin-bottom: 15px;
    color: white;
}

.contact label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin: 10px 0 5px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact textarea {
    height: 100px;
    resize: none;
}



.logged-in #loginBtn,
.logged-in #getStartedBtn  {
    display: none; 
}

#getStartedBtn{
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #fff;
    background-color: #1d4ed8;
    border-radius: 5px;
    cursor: pointer;
    animation-delay: 3.5s;
    transition: all 0.3s ease;
    border: none;
   
}



#getStartedBtn:hover{
    background-color: #1e40af;
}

.anim,
.content,
.container
{
    opacity: 0;
    transform: translate(30px);
    animation:  moveup 0.5s linear forwards;
}
@keyframes moveup{
    100%{
        opacity: 1;
        transform: translate(0px);
    }
}

::-webkit-scrollbar {
    width: 10px; 
    height: 10px; 
}


::-webkit-scrollbar-track {
    background: #121212; 
    border-radius: 50px; 
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1); 
}


::-webkit-scrollbar-thumb {
    background: #11121a; 
    border-radius: 50px; 
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); 
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
}


::-webkit-scrollbar-thumb:hover {
    background: #888; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4); 
}
.settings-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;  
    color: #ccc;  
    padding: 6px;
    transition: color 0.3s, transform 0.2s;
}

.settings-btn:hover {
    color: #fff;  
    transform: scale(1.1);  
}

.pricing{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing .card{
    padding: 3rem 2rem;
    background-color: #27272a;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.pricing .card:hover{
    background-color: #323232;
    border-color: #fff;
}

.pricing .card .content{
    flex: 1;
    margin-bottom: 2rem;
}

.pricing .card h4{
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}

.pricing .card h3{
    color: #fff;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 2px dashed #fff;
}

.pricing .card p{
    color: #fff;
    margin-bottom: 0.75rem;
}

.pricing .card p i{
    color: #ccc;
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.pricing .card button{
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
}

.pricing .card button:hover{
    background-color: #1e40af;
    border-color: #1e40af;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-logo {
        display: block !important;
        width: 75px;
        max-width: 100%;
    }
    .pricing{
        grid-template-columns: repeat(2, 1fr);
    }
    header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    #userName {
        margin-right: 0; /* Avoid negative margins */
    }
    header #image,
    #logoutBtn {
        display: none;
    }
    header .content h1 {
        font-size: 2.5rem;
        line-height: 3.5rem;
    }
    header .content p {
        font-size: 1.2rem;
        line-height: 2rem;
    }
    .features,
    footer {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Extra Small Devices (Phones) */
@media (max-width: 600px) {
    .features,
    footer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pricing{
        grid-template-columns: repeat(1, 1fr);
    }

}
