html * {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;

}


body {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #FFF;
    background: #011627;
    border-top: 1px solid #1E2D3D;
    border-left: 1px solid #1E2D3D;
}

a {
    text-decoration: none; 
    color: inherit; 
    padding: 0; 
    margin: 0; 
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit; 
}

a:visited {
    color: inherit;
   }
   

nav ul li
{
    cursor: pointer;
}

/* HEADER */
header {
    flex-shrink: 0;
    height: 40px;
    width: 100%;
    display: flex;
    background: #010E18;
}

.logo {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    text-wrap: nowrap;
    border-right: 1px solid #1E2D3D;
    border-bottom: 1px solid #1E2D3D;
}

#right-header {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

#primary-nav {
    display: flex;
}

#primary-nav ul {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    list-style: none;
}

#primary-nav li {
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-right: 1px solid #1E2D3D;
    border-bottom: 1px solid #1E2D3D;
}

#primary-nav li:hover {
    background: #03223b80;
}

#primary-nav li.active {
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-bottom: none;
    box-shadow: 0px 2px 0px 0px #4D5BCE inset;
    background: #011627;
}

#primary-nav li a {
    display: flex;
    gap: 6px;
}

#view-CV {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #1E2D3D;
    border-bottom: 1px solid #1E2D3D;
}

#view-CV:hover {
    background: #03223b80;
}


#hamburger-menu-icon-holder
{
    display: flex;
    align-items: center;
    border-right: 1px solid #1E2D3D;
    border-bottom: 1px solid #1E2D3D;
}

#hamburger-menu-icon {
    display: flex;
    align-items: center;
    z-index: 9;
    padding: 0 24px;
}

.blank {
    flex: 1 1;
    border-right: 1px solid #1E2D3D;
    border-bottom: 1px solid #1E2D3D;
}

#hamburger-menu {
    background: #1e2d3dd0;
    backdrop-filter: blur(4px);
    position: absolute;
    display: none;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-end;
    top: 0px;
    right: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
}

#hamburger-menu ul {
    margin: 0;
    padding: 80px 20px;
    display: block;
    list-style: none;
    width: 100%;
}

#hamburger-menu li {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: flex-end;
    text-align: end;
}

#hamburger-menu ul li.active {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    text-align: end;
    background: #021424;
    
}

#hamburger-menu li a {
    display: flex;

    gap: 10px;
    padding-right: 20px;
    text-decoration: none;
    color: #FFF;
    text-align: right;
    font-family: Fira Code;
    font-size: 32px;
    font-style: normal;
    font-weight: 450;
    line-height: normal;
}

.hamburger-links {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

@media (min-width: 1004px) {
    #hamburger-menu-icon {
        display: none;
        align-items: center;
    }

    #hamburger-menu {
        display: none;
      }
}

@media (max-width: 1003px) {
    header {
        height: 60px;
    }


    #right-header {
        justify-content: flex-end;
    }

    #primary-nav {
        display: none;
    }

    #view-CV {
        display: none;
    }
    
}


/* Main */

.main-wrapper {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
}

/* Sidebar */

.sidebar {
    flex: 0 0 200px;
    transition: margin-left 0.3s ease;
    background: #010E18;
    border-right: 1px solid #1E2D3D;
    border-bottom: 1px solid #1E2D3D;
}


#sidebar-header {
    padding-left: 30px;
    padding-top: 20px;
    margin-bottom: 16px;
}

#secondary-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    list-style: none;
}

#secondary-nav ul li {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 45px;
}

#secondary-nav ul li a {
    width: 100%;
    text-decoration: none;
    color: #FFF;
    font-size: 16px;
    display: flex;
    gap: 4px;
}

#secondary-nav li:hover {
    background: #03223b80;
}

#secondary-nav ul li.active {
    background: #03223b;
}
    


@media (max-width: 1003px) {
    .sidebar {
        margin-left: -200px;
        /* Initially hide sidebar off-screen */
    }
}

/* Main-Content */

main {
    flex: 1 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    scrollbar-width: 20px;
    scrollbar-color: #607B96 #010E18;

    border-right: 1px solid #1E2D3D;
    border-bottom: 1px solid #1E2D3D;
}

main::-webkit-scrollbar {
    width: 20px;
}

main::-webkit-scrollbar-thumb {
    background-color: #607B96;
}

main::-webkit-scrollbar-track {
    border-left: 1px solid #1E2D3D;
    background-color: #010E18;
}

main section {
    flex: 1 0 100%;
    display: none;
   }
   
   .active {
    display: flex;
   }

section a:hover {
    text-decoration: underline;
}


h1 {
    font-size: 64px;
    font-weight: 400;
    margin-block: 16px;
}

h2 {
    font-weight: 400;
    color: #4D5BCE;
    font-size: 40px;
    margin-block: 0;
}

h3 {
    font-weight: 400;
    font-size: 20px;
    margin: 0;
}

@media (max-width: 1003px) {
    main {
        scrollbar-width: 4px;
    }

    main::-webkit-scrollbar {
        width: 4px;
    }
}

/* welcome content */

#welcome-content {
    padding-left: 40px;
    flex-direction: column;
    justify-content: space-around
}

#welcome-content ul {
    list-style: none;
    color: #4D5BCE;
}

#welcome-content ul li {
    margin-bottom: 12px;
}

#welcome-content ul li a {
    display: flex;
    gap: 12px;
}

#welcome-content ul li:last-child {
    margin-bottom: 0;
}

#illustration{
    position: absolute;
    right: 8%;
    height: 600px;
    width: 600px;
    overflow: hidden;
    border-radius: 50%;
    overflow: hidden;
    z-index: -9;
}

#illustration img {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 1600px )  { 

    #illustration{
        right: 0;
    }
}

@media screen and (max-width: 1280px ), (max-height: 610px)  { 

    #illustration{
        display: none;
    }
}

#hello-world {
    margin-left: 5px;
    font-size: 32px;
}
.link {
color: #FFF;
}
#mobile-view {
    display: none;

}


@media (max-width: 1003px) {
    #welcome-content {
        padding: 0 40px;
    }

    h1 {
        font-size: 62px;
        font-weight: 400;
        margin-block: 8px;
    }

    h2 {
        font-weight: 400;
        color: #4D5BCE;
        font-size: 32px;
        margin-block: 0;
    }

    h3 {
        font-weight: 400;
        font-size: 24px;
    }

    #hello-world {
        font-size: 18px;
    }

    #welcome-content ul {
        margin: 8px 0;
    }

    #welcome-content li {
        font-size: 16px;
    }

    #mobile-view {
        display: block;
    }

    #mobile-view ul {
        padding: 10px;
    }

    #mobile-view ul li {
        margin-bottom: 24px;
        font-size: 24px;
    }

    #start {
        display: none;
    }

    #recent {
        display: none;
    }
}


@media (max-width: 420px) {
    #welcome-content {
        padding: 0 2px;
    }
}

/* about-me */


#large-screen-view {
    display: flex;
    gap: 20px;
    padding-top: 28px;
    padding-left: 10px;
}

#small-screen-view {
    display: none;
}

#line-numbers {
    text-align: right;
    padding-right: 10px;
    user-select: none;

    color: #607B96;

    text-align: right;
    font-family: Fira Code;
    font-size: 18px;
    font-style: normal;
    font-weight: 450;
    line-height: 150%;
}

#code {
    color: #607B96;
    font-family: Fira Code;
    font-size: 18px;
    font-style: normal;
    font-weight: 450;
    line-height: 150%;
}

#code pre {
    margin: 0;
    padding: 0;
}

.comment {
    color: #6A9955;
    /* Green color for comments */
}

.datatype {
    color: #569CD6;
    /* Blue color for data types */
}

.variable {
    color: #9CDCFE;
    /* Light blue color for variables */
}

.string {
    color: #CE9178;
    /* Orange color for strings */
}

.number {
    color: #B5CEA8;
    /* Green color for numbers */
}



@media (max-width: 1003px) {

    #large-screen-view {
        display: none;
    }

    #small-screen-view {
        padding: 20px 5px;
        display: block;
        color: #607B96;
        font-family: Fira Code;
        font-size: 18px;
        font-style: normal;
        font-weight: 450;
        line-height: 150%;
    }
}

/*Project*/
#project-content {
    padding: 36px;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 36px;
}

.project-cards {
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #607B96;
}

.project-header {
    color: #5565E8;
    font-weight: 700;
}

.box {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    border: 1px solid #1E2D3D;
    background: #011221;
}

.gifs {
    max-height: 200px;
    flex: 1 1;
    border-radius: 13px 13px 0px 0px;
    border: 1px solid #1E2D3D;

    overflow: hidden;
}

.gifs img {
    width: 101%;
    height: 101%;
    object-fit: cover;
    display: block;
}

.lower-card {
    flex: 1 1;
    display: flex;
    padding: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    align-self: stretch;
}

.button-pairs {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.lower-card a {
    text-decoration: none;
    color: #FFF;
    text-align: right;
    font-family: Fira Code;
    font-size: 14px;
    font-style: normal;
    font-weight: 450;
    line-height: normal;
}

.view-project-button {
    display: flex;
    padding: 10px 14px;
    justify-content: space-around;
    align-items: center;
    gap: 10px;

    border-radius: 8px;
    background: #1C2B3A;
}


@media (max-width: 1003px) {
    #project-content {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
    }

    .button-pairs {
        flex-direction: column;
        gap: 20px;
    }

}

/* contact-me */
#contact-me-content {
    flex-direction: column;
    padding-left: 50px;
    padding-top: 50px;
}

#contact-me-content h3 {
    font-size: 36px;
}

#contact-me-content ul {
    margin-top: 32px;
    list-style: none;
}

#contact-me-content li {

    font-size: 24px;
    margin-bottom: 16px;
}

#contact-me-content li a{
    display: flex;
    gap: 16px;
    align-items: center;
}


#contact-me-content a {
    color: #5565E8;
}

@media (max-width: 1003px) {

    #contact-me-content {
        justify-content: center;
        align-items: center;
        margin: 16px;
        padding: 0;
    }

    #contact-me-content h3 {
        font-size: 24px;
    }

    #contact-me-content li {
        font-size: 16px;
        margin-bottom: 16px;
    }

    #contact-me-content li a{
        gap: 12px;

    }
}


/*footer*/
footer {
    flex-shrink: 0;
    height: 40px;
    width: 100%;
    background: #010E18;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #1E2D3D;
    border-bottom: 1px solid #1E2D3D;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

#social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

@media (max-width: 1003px) {

    footer {
        display: none;
    }
}