* {
    margin: 0;
    padding: 0;
    font-family: "Google Sans";
}

body {
    scroll-behavior: smooth;
}

main {
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0px;

}

#menu,
#hamburger {
    display: none;
}

.links a {
    text-decoration: none;
    color: black;
    font-size: large;
    font-weight: 500;
    margin: 10px;
}

#Developer {
    background-color: #0056b3;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid #0056b3;
    color: white;
}

#Developer:hover {
    background-color: white;
    color: #0056b3;
    border: 1px solid #0057b35d;
}

.section1 {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0px 20px;
}

.left h1 {
    font-size: 60px;
}

.left p {
    font-size: 20px;
    margin-bottom: 20px;
}

.left a {
    background-color: #0056b3;
    color: white;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #0056b3;
}

.left a:hover {
    background-color: #f8f9fa;
    color: #0056b3;
    border: 1px solid #0057b33b;
}

.right img {
    height: 400px;
}

.docs_heading {
    font-size: 65px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
}

.docs_section1 {

    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

.docs_section1 p {
    font-weight: lighter;
}

.docs_section1 h3 {
    color: #ffffff;
    font-size: 20px;
}

.docs_section1 div {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
    cursor: pointer;
}

.docs_section1 div:hover {
    scale: 1.05;
    transition: all 0.3s ease-in-out;
}

.docs_section1 div a {
    background-color: #0000003d;
    color: #f8f9fa;
    text-decoration: none;
    padding: 7px;
    border-radius: 10px;
    width: fit-content;
    font-weight: bold;
    font-size: 15px;
}

.split-layout {
    display: flex;
    height: 40%;
    position: relative;
    overflow-x: hidden;
}

#sidebar {
    width: 250px;
    background-color: #cbd5e1;
    padding: 20px;
    border-right: 1px solid #ddd;
    transition: transform 0.3s ease;
}

#sidebar h3 {
    color: #0056b3;
}

.nav-link {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
}

.nav-link:hover {
    color: #0056b3;
}

#sidebar a {
    border-radius: 10px;
    margin: 5px 0px;
    padding: 10px;
}

#sidebar a.nav-link:hover {
    background-color: #0056b3;
    color: white;
}

.content-area {
    flex: 1;
    padding: 20px 40px;
    height: 100vh;
    overflow-y: auto;
}

.topic-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 71vw;
}

.topic-content:target {
    display: block;
}

.default-content {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    height: auto;
    padding-top: 10px;
    color: rgb(255, 255, 255);
    background-color: #0057b31f;
    height: 100px;
}


.topic-content h1,
.topic-content h2,
.topic-content h3,
.topic-content h4 {
    color: #1e293b;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.topic-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.topic-content h3 {
    font-size: 1.3rem;
    color: #0f172a;
}

.topic-content p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2em;
}

.topic-content ul,
.topic-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.8em;
}

.topic-content li {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.5em;
}

.topic-content strong {
    color: #0f172a;
}

.topic-content code {
    background-color: #f1f5f9;
    color: #b91c1c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

.topic-content pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.topic-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

#side_btn {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 10px 15px;
    background: #0056b3;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 100;
    border-radius: 4px;
    top: 6px;
    transition: transform 0.3s ease;
}

footer {
    background-color: #cbd5e1;
    color: rgba(0, 0, 0, 0.779);
    padding: 30px 0;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer a{
    color: #0057b3;
    margin: 5px 3px;
}
footer a:hover{
    color: #0057b3bd;
}

.section2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 0px 100px;
    background-color: #f8f9fa;
}

.section2 div {
    padding: 10px;
    border-radius: 10px;
    margin: 30px 0px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    cursor: pointer;
}

.section2 div:hover {
    scale: 1.05;
    transition: all 0.3s ease-in-out;
}

.section2 div a {
    background-color: #0000003d;
    color: #f8f9fa;
    text-decoration: none;
    padding: 7px;
    border-radius: 10px;
    width: fit-content;
    font-weight: bold;
    font-size: 15px;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #f8fafc;
    min-height: 80vh;
    font-family: sans-serif;
}

.about-card {
    background: white;
    max-width: 700px;
    width: 100%;
    padding: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-header {
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.profile-img-placeholder {
    font-size: 4rem;
    background: #e2e8f0;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-image: url("/assets/profile.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.about-header h1 {
    font-size: 2rem;
    color: #1e293b;
    margin: 0;
}

.tagline {
    color: #0056b3;
    font-weight: 600;
    margin-top: 5px;
}

.about-body h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin-top: 25px;
}

.about-body p {
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skills-grid span {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #dbeafe;
}

.about-footer {
    text-align: center;
    margin-top: 40px;
}

.btn {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border: 1px solid #0056b3;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: white;
    color: #0056b3;
}
.privacy-policy{
    margin: 20px 150px;
    background-color: #cbd5e14f;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.821);
}

.privacy-policy h3{
    margin: 20px 0px;
}
.recent-update{
    background-color: #f8f9fa;    
    padding: 30px 100px;
    
}
.update-date{
    font-style: italic;
    font-size: 15px;
}
.update-card p{
    margin: 10px 0px 20px 0px;
}
.update-card {
    background-color: #4479a1;
    color: white;
    padding: 20px;
    border-radius: 10px;
}

    

.update-btn{
    text-decoration: none;
    color: white;
    background-color: rgba(0, 0, 0, 0.299);
    border-radius: 10px;
    padding: 10px;    
}
.update-btn:hover{
 background-color: #1e293b9c;
 transition: all 0.3s ease-in-out;
}
.tableofcontent{
    display: none;
}
.tableofcontent a{
    display: none;
}


@media (max-width:720px) {
    .tableofcontent{    
    padding: 30px 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;

}
.tableofcontent a{
    text-decoration: none;
    background-color: #0057b31e;
    margin: 10px 0px;
    padding: 10px;
    border-radius: 10px;
    color: rgba(0, 0, 0, 0.786);
    font-weight: 600;
    width: 76vw;
    display: block;
}
.tableofcontent a:hover{
    background-color:#0057b32e ;
}
    .recent-update{
        padding: 0px 20px;
    }
    .privacy-policy{
        margin: 20px 10px;
    }
    .navbar {
        justify-content: space-between;
        padding: 20px 25px;
    }

    .section1 {
        flex-direction: column-reverse;
        gap: 20px;
        height: 70vh;
    }

    #hamburger {
        display: block;
        border: none;
        background-color: #0056b3;
        color: white;
        border-radius: 10px;
        font-size: 18px;
        font-weight: bolder;
        padding: 4px 9px;
        cursor: pointer;
        height: 35px;
        width: 35px;
    }

    .links {
        display: none;
    }

    #menu {
        display: none;
    }

    #menu.show {
        display: block;
        max-height: 300px;
        opacity: 1;
        z-index: 1;
    }

    footer {
        font-size: 15px;
        margin-top: 10px;
        flex-direction: column;
    }

    .right img {
        height: 250px;
    }

    #menu {
        background-color: #0057b31c;

        padding: 10px;
        position: absolute;
        top: 58px;
        right: 26px;
        border-radius: 10px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        backdrop-filter: blur(10px);

    }

    #menu a {
        display: block;
        color: rgb(0, 0, 0);
        padding: 10px;
        text-decoration: none;
        gap: 5px;
    }

    #menu a:hover {
        background-color: #0056b3;
        color: white;
        border-radius: 10px;
    }

    #Developer {
        color: black;
        background-color: #0057b300;
        border: none;
    }

    #Developer:hover {
        border: none;
        background-color: #0056b3;
        color: white;
    }

    .left h1 {
        font-size: 45px;
    }

    .docs_section1 {
        grid-template-columns: 1fr 1fr;
        height: auto;
        gap: 5px;
    }

    .docs_heading {
        font-size: 25px;
        padding: 20px 0px;
    }

    .docs_section1 div {
        padding: 9px;
        gap: 5px;
    }

    .docs_section1 div h3 {
        font-size: 17px;
    }

    .docs_section1 div p {
        font-size: 13px;
    }

    .docs_section1 div a {

        padding: 7px;
        font-size: 11px;
    }

    #sidebar {
        width: 200px;
        background-color: #0057b31c;
        backdrop-filter: blur(10px);
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 99;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    #side_btn {
        display: block;

    }

    #side_btn.b-active {
        transform: translateX(180px);
    }

    #sidebar.active {
        transform: translateX(0);
    }

    .topic-content {
        width: 76vw;
        
    }
    .topic-content h2{
        font-size: larger;
    }
    .topic-content h3{
        font-size: large;
    }
    .topic-content p,ul,li,pre,code{
        font-size: medium;
    }
    .topic-content code{
        font-size: smaller;
    }
    
    .default-content h2{
        font-size: 25px;
    }

    .content-area {
        padding: 60px 7px 7px 7px;
        margin-left: 11px;
    }

    .section2 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 30px 20px;

    }

    .section2 div {
        padding: 10px;
        border-radius: 10px;
        margin: 0px;
        color: white;
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    .section2 div p{
        font-size: 14px;
    }
}