@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600&display=swap');

:root{
    --dark-blue:#131339;
    --light-blue:#19194d;
    --darkeslateblue:#a238db;
    --white:#fff;
    --light-black: rgb(46, 44, 44);
    --black:#1e1e1e;
    --lightslateblue:#b4a3ff;
    --light-bg:#eee;
    --box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
    --border: .1rem solid rgba(0,0,0,.2);
}



*::selection{
    background-color: var(--white);
    color:var(--black);
}

/* Loader animation style */
.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

::-webkit-scrollbar{
    height: .5rem;
    width: 1rem;
}

::-webkit-scrollbar-track{
    background-color: transparent;
}

::-webkit-scrollbar-thumb{
    background-color: var(--light-black);
    border-radius:5rem;
}

body{
    background-color: var(--white);
    font-family: 'Gloria Hallelujah', cursive;
}

section{
    max-width: fixed;
    margin: 0 auto;
    padding: 2rem;
}

.btn{
    display: inline-block;
    margin-top: 1rem;
    border-radius: 5rem;
    background-color: var(--light-black);
    cursor: pointer;
    font-size: 1.8rem;
    padding: 1rem 3rem;
}

.btn:hover{
    background-color: var(--white);
    color: var(--black);
}

.heading{
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 4rem;
    color: var(--black);
}

.heading span{
    color: var(--lightslateblue);

}

.header{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid var(--black);
}

.header .flex{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: -1rem;
}

.header .flex .logo{
    font-size: 2.5rem;
    color: var(--black);
}


 .logo {
    display: inline-block; 
    padding: 0; 
}


 .logo img {
    max-width: 30%; 
    height: auto; 
    vertical-align: middle; 
}




.header .flex .navbar a{
    margin-left: 2rem;
    color: var(--black);
    font-size: 2rem;
}

.header .flex .navbar a:hover{
    color: var(--lightslateblue);
}

#menu-btn{
    cursor: pointer;
    color: var(--black);
    font-size: 1.8rem;
    display: none;
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}


/*for home page*/
.home{
    margin-top: -5rem;
}

.home .row{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.home .row .content{
    flex: 1 1 40rem;
    text-align: center;
}

.home .row .content h3{
    margin-bottom: 1rem;
    font-size: 5rem;
    color: var(--black);
    line-height: 1;
}

.home .row .content h3 span{
    color: var(--lightslateblue);
}


.home .row .content h4{
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--black);
    line-height: 1;
}


.home .row .image{
    flex: 1 1 40rem;
}

.home .row .image img{
    width: 100%;
}




.imagee {
    margin-top: 7rem;
    border-radius: 50%; 
    background-color: var(--white); 
    width: 200px; 
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.imagee img {
    max-width: 100%; 
    max-height: 100%; 
    border-radius: 50%; 
}

/* Roadmap section */
.roadmap {
    display: flex;
    flex-wrap: wrap; /* Allow topics to wrap to the next line */
    justify-content: center; /* Center topics horizontally */
    padding: 20px 0;
}





/*about us*/

.about{
    margin-top: 6rem;
}

.about .row{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}


.about .row .image{
    flex: 1 1 40rem;
}

.about .row .content{
    text-align: center;
    flex: 1 1 40rem;
}

.about .row .image img{
    width: 100%;
}

.about .row .content p{
    padding: 1rem 0;
    line-height: 2;
    font-size: 1.6rem;
    color:var(--light-black)
}

.contactus{
    margin-top: -6rem;
}

.contactus .row{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}


.contactus .row .image{
    flex: 1 1 40rem;
}

.contactus .row .image img{
    width: 100%;
}

.contactus .row form{
    flex:1 1 40rem;
}

.contactus .row form .box{
    width: 100%;
    padding: 1.4rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-radius: .5rem;
    background-color: var(--lightslateblue);
    font-size: 1.8rem;
}

.contactus .row form span{
    font-size:1.6rem;
    color:var(--light-black);
}

.contactus .row form input, textarea{
    border-radius: 1rem;
    width: 100%;
    padding: 1rem;
    background: var(--lightslateblue);
}












.footer {
    background: transparent;
    font-family: Arial, sans-serif;
  }
  
  .footer .box-container {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(25rem, 1fr))[auto-fit];
        grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
  }
  
  .footer .box-container .box h3 {
    font-size: 2.2rem;
    text-transform: capitalize;
    color: #334;
    padding: 1rem 0;
  }
  
  .footer .box-container .box .link {
    display: block;
    padding: .5rem 0;
    font-size: 1.5rem;
    line-height: 2;
    color: #777;
  }
  
  .footer .box-container .box .link i {
    padding-right: .5rem;
    color: #2597f4;
  }
  
  .footer .box-container .box .link:hover {
    color: #2597f4;
  }
  
  .footer .box-container .box .link:hover i {
    padding-right: 2rem;
  }
  
  .footer .box-container .box p {
    padding: .5rem 0;
    font-size: 1.5rem;
    line-height: 2;
    color: #777;
  }
  
  .footer .box-container .box p span {
    color: #2597f4;
  }
  
  .footer .box-container .box .email {
    width: 100%;
    border: 0.2rem solid #334;
    padding: 1.6rem 1.4rem;
    font-size: 1.6rem;
    color: #777;
    margin: 1rem 0;
  }
  
  .footer .box-container .box .share {
    margin-top: 2rem;
  }
  
  .footer .box-container .box .share a {
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    font-size: 1.7rem;
    background: #334;
    color: #fff;
    margin-right: .3rem;
    text-align: center;
  }
  
  .footer .box-container .box .share a:hover {
    background: #2597f4;
  }
  
  .footer .credit {
    font-size: 2rem;
    text-transform: capitalize;
    color: #334;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 0.2rem solid #334;
    text-align: center;
  }
  
  .footer .credit span {
    color: var(--lightslateblue);
  }

















  .loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  









  


@media (max-width:991px) {
    
    html{
        font-size: 55%;
    }

    .home .row .content h3{
        font-size: 8rem;
    }

    .home .row .content h4{
        font-size: 2rem;
    }


}



@media (max-width:768px) {
    
    /* to display menu button when the 
    width is less than laptops width*/
    #menu-btn{
        display: inline-block;
    } 

    #menu-btn.fa-times{
        transform: rotate(180deg);
    }

  
    .header .flex .navbar{
        position: absolute;
        top:99%; left:0; right: 0;
        /* border-top: 0.1rem solid var(--light-black); */
        border-bottom: 0.1rem solid var(--light-black);
        background-color: var(--white);
        clip-path: polygon(0 0,100% 0,100% 0, 0 0);
    }

    /*here i am activating menu btn
    there should be no gap btw .navbar.active this ate my 1hour*/
    
    .header .flex .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .header .flex .navbar a{
        display: block;
        margin:2rem;
    }

    .home .row .content h3{
        font-size: 6rem;
    }
    .home .row .content h4{
        font-size: 2rem;
        
    }

    .resource .row .content .card {
        flex: 1 1 calc(50% - 1rem);
        margin-right: 1rem;
    }

    .sources h2 {
        font-size: 3rem;
    }

    .source {
        width: calc(50% - 1rem);
    }

    .code-space .row .content .card {
        flex: 1 1 calc(50% - 1rem);
        margin-right: 1rem;
    }

    .profile h2 {
        font-size: 2.5rem; /* Adjust font size */
    }
    .titl {
        font-size: 1.5rem; /* Adjust font size */
    }

    .page_container .left_column,
    .page_container .right_column {
        padding: 15px; /* Further reduce padding */
    }

    .list h1 {
        font-size: 35px;
    }

    .list h2 {
        font-size: 20px;
    }
    

    .roadmap {
        padding: 20px 5%;
    }

    .column {
        flex: 0 0 calc(100% - 20px);
    }

    .box {
        margin: 5px;
        padding: 10px;
    }

    h2 {
        font-size: 1.3rem;
    }

    .category .box-container{
        grid-template-columns: repeat(auto-fit, 16.5rem);
    }
    
    .category .box-container .box{
        align-items: center;
        flex-flow: column;
    }
    
    .fun-fact {
        padding: 5rem 2rem;
      }
      .fun-fact .box {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-flow: column;
                flex-flow: column;
        text-align: center;
      }

}



@media (max-width:600px) {

    
    .column {
        flex: 1; /* Make the column grow to fill available space */
        margin-right: 0; /* Remove the margin between columns */
        max-width: 100%; /* Allow each column to take up the full screen width */
    }


    .box {
        margin: 2px;
        padding: 5px;
    }

    h2 {
        font-size: 1.2rem;
    }
}




@media (max-width:450px) {
    
    html{
        font-size: 50%;
    }

    .resource .row .content .cards {
        flex-direction: column;
        align-items: center;
    }

    .resource .row .content .card {
        flex: 1 1 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }


    .sources h2 {
        font-size: 2rem;
    }

    .source {
        width: 100%;
    }

    .code-space .row .content .cards {
        flex-direction: column;
        align-items: center;
    }

    .code-space .row .content .card {
        flex: 1 1 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /*for resume*/
    body {
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    .page_container {
        width: 100%; 
        box-shadow: none; 
    }
    .left_column,
    .right_column {
        padding: 20px; 
    }
    .profile h2 {
        font-size: 2rem; /
    }
    .titl {
        font-size: 1.3rem; 
    }

    .list h1 {
        font-size: 25px;
        margin-top: 40px;
    }

    .list h2 {
        font-size: 16px;
    }

    .list ol {
        padding-left: 10px;
    }

    .list li.question {
        padding: 8px;
        margin-bottom: 20px;
    }

    .list li h3 {
        font-size: 16px;
    }

    .list li p {
        font-size: 12px;
    }

    .column {
        flex: 0 0 calc(80% - 10px);
    }

    .subtopic {
        padding-left: 10px; 
    }

    .roadmap {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Align columns (cards) in the center horizontally */
        align-items: center; /* Align columns (cards) in the center vertically */
        padding: 20px 5%;
    }

    .column {
        flex: 1; /* Make the column grow to fill available space */
        margin-right: 0; /* Remove the margin between columns */
        max-width: 100%; /* Allow each column to take up the full screen width */
    }


    .box {
        margin: 1px;
        padding: 3px;
    }

    h2 {
        font-size: 1rem;
    }
}

/* Documentation Page Styles */
.docs-toc {
    padding: 3rem 5%;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
}

.toc-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.toc-section {
    flex: 1 1 300px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.toc-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--black);
    border-bottom: 2px solid var(--lightslateblue);
    padding-bottom: 0.5rem;
}

.toc-section ul {
    list-style: none;
    padding: 0;
}

.toc-section ul li {
    margin: 0.8rem 0;
    font-size: 1.5rem;
}

.toc-section ul li a {
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.toc-section ul li a:hover {
    color: var(--lightslateblue);
    padding-left: 0.5rem;
}

.docs-section {
    padding: 4rem 5%;
    margin: 2rem 0;
}

.docs-content {
    margin: 4rem 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.docs-content h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.docs-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--lightslateblue);
}

.docs-content h4 {
    font-size: 1.8rem;
    color: var(--black);
    margin: 1.5rem 0 1rem;
}

.step-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.step-content {
    flex: 1 1 500px;
}

.step-image {
    flex: 1 1 400px;
    text-align: center;
}

.step-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.caption {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #666;
    font-style: italic;
}

.note-box, .tip-box {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.tip-box {
    border-color: #28a745;
}

.docs-content ol, .docs-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.docs-content li {
    font-size: 1.5rem;
    margin: 0.8rem 0;
    line-height: 1.6;
    color: #333;
}

.docs-content p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.2rem;
}

.multi-image {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.multi-image div {
    text-align: center;
}

.multi-image p {
    margin-top: 1rem;
    font-weight: bold;
}

.faq-item {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#fontInput + button,
button[onclick="uploadFont()"] {
    background-color: #B197FC !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
#fontInput + button:hover,
button[onclick="uploadFont()"]:hover {
    background-color: #a238db !important;
}