@import url('https://fonts.googleapis.com/css2?family=Clicker+Script&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Clicker+Script&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');
:root{
    --bg-black-900:#f2f2fc;
    --bg-black-100:#fdf9ff;
    --bg-black-50:#e8dfec;
    --text-black-900:#302e4d;
    --text-black-700:#504e70;
}

body.dark{
    --bg-black-900:#151515;
    --bg-black-100:#222222;
    --bg-black-50:#393939;
    --text-black-900:#ffffff;
    --text-black-700:#e9e9e9;
}
body{
    background-color: var(--bg-black-900);
    color: var(--text-black-900);
    font-family: 'Roboto Flex', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

*{
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
}

::before,::after{
    box-sizing: border-box;    
}
.section{
    background: var(--bg-black-900);
    min-height: 100vh; 
    display: block;
    padding: 0 50px;
    opacity: 1;
}
.hidden{
    display:none !important;
}

.main-content{
    padding-left: 200;
}  

.padd-15{
    padding-left: 15px;
    padding-right: 15px;

}

.container{
    max-width: 70%;
    width: 90%;
    margin: auto;
    padding: 10px;
    box-sizing: border-box;
}
.section .container{
    padding-top:60px;
    padding-bottom: 70px;
}
.section-title{
    flex:0 0 100%;
    max-width: 100%;
    margin-bottom: 60px;
}
.section-title h2{
    font-size: 40px;
    color: var(--text-black-900);
    font-weight: 700;
    position: relative;
}

.section-title h2::before{
    content: '';
    height: 4px;
    width: 50px;
    background-color: var(--skin-color);
    position: absolute;
    top: 100%;
    left: 0;
}
.section-title h2::after{
    content: '';
    height: 4px;
    width: 25px;
    background-color: var(--skin-color);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
}
/* Flexbox adjustments for stacking */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items in small screens */
    margin-left: -10px; /* Adjust spacing between columns */
    margin-right: -10px;
}

.btn{
    font-size: 16px;
    font-weight: 500;
    padding: 12px 35px;
    color:white;
    border-radius: 40px;
    display: inline-block;
    white-space: nowrap;
    border:none;
    background: var(--skin-color);
    transition: all 0.3 ease;
}

.btn:hover{
    transform: scale(1.05);
}

.shadow-dark{
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.aside {
    width: 15%; /* Fixed width for the aside menu */
    background: var(--bg-black-100);
    position: fixed; /* Keeps the menu always visible */
    left: 0; /* Ensure it's pinned to the left */
    top: 0;
    padding: 10px;
    height: 100vh; /* Full height of the viewport */
    border-right: 1px solid var(--bg-black-50);
    display:inline-flex ;
    flex-direction: column; /* Stack elements vertically */
    justify-content: flex-start; /* Align items to the top */
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease; /* Smooth adjustment for responsiveness */
}

.aside .logo{
    position: absolute;
    top: 50px;
    left: 10px;
    font-size: 20px;
    text-transform: capitalize;
}

.aside .logo a{
    color: var(--text-black-900);
    font-weight: 700;
    padding: 15px 20px;
    font-size: 30px;
    letter-spacing: 5px;
    position: relative; 
}
.aside .logo a span{
    font-family: 'Clicer Script', cursive;
    font-size: 35px;
}
.aside .logo a::before{
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-bottom: 5px solid var(--skin-color);
    border-left:5px solid var(--skin-color);
    bottom: 0;
    left: 5px;
}
.aside .logo a::after{
    content: ' ';
    position: absolute;
    width: 20px;
    height: 20px;
    border-top: 5px solid var(--skin-color);
    border-right:5px solid var(--skin-color);
    top: 0;
    right: 5px;
}
.aside .nav-toggler {
    height: 40px;
    width: 45px;
    border: 1px solid var(--bg-black-50);
    cursor: pointer;
    position: fixed;
    left: 200px;
    top: 20px;
    border-radius: 5px;
    background: var(--bg-black-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aside .nav-toggler span {
    height: 2px; 
    width: 18px;
    background: var(--skin-color);
    display: inline-block;
    position: relative;
}

.aside .nav-toggler span::before {
    content: '';
    height: 2px;
    width: 18px;
    background-color: var(--skin-color);
    position: absolute;
    top: -6px;
    left: 0;
}

.aside .nav-toggler span::after {
    content: '';
    height: 2px;
    width: 18px;
    background-color: var(--skin-color);
    position: absolute;
    top: 6px;
    left: 0;
}

.aside .nav {
    margin-top: 50px;
}

.aside .nav li {
    margin-bottom: 20px;
    display: block;
}

.aside .nav li a {
    font-size: 20px;
    font-weight: 600;
    display: block;
    border-bottom: 1px solid var(--bg-black-50);
    color: var(--text-black-900);
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.aside .nav li a:hover {
    background-color: var(--skin-color);
    color: #ffffff;
    border-radius: 8px;
}

.aside .nav li a.active {
    color: var(--skin-color);
    font-weight: 700;
}

.aside .nav li a i {
    margin-right: 20px;
}


.home{
    min-height: 100vh;
    display: flex;
    color: var(--text-black-900);
}

.home .home-info{
    flex: 0 0 60%;
    max-width: 60%; 
}

.Projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.Project-item {
    flex: 1 1 30%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.Project-item-inner {
    flex-grow: 1;
    padding: 20px;
    border: 1px solid var(--bg-black-50);
    border-radius: 8px;
    background-color: var(--bg-black-100);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
}


h3.hello{
    font-size: 28px;
    margin: 15px 0;
}
h3.hello span{
    font-family: 'Clicker Script', cursive;
    font-size: 30px;
    font-weight: 700;
    color: var(--sking-color);
}
h3.my-profession{
    font-size: 30px;
    margin: 15px 0;
}

.typing{
    color: var(--skin-color);
}
.home-info p{
    margin-bottom: 70px;
    font-size: 25px;
    color: var(--text-black-700);
}

.home .home-img{
    flex: 0 0 35%;
    max-width: 40%;
    text-align: center;
    position: relative;
}
.home-img::after{
    content:'';
    position: absolute;
    height: 80px;
    width: 80px;
    border-bottom: 10px solid var(--skin-color);
    border-right: 10px solid var(--skin-color);
    right: 20px;
    bottom: -40px;
}

.home-img::before{
    content:'';
    position: absolute;
    height: 80px;
    width: 80px;
    border-top: 10px solid var(--skin-color);
    border-left: 10px solid var(--skin-color);
    left: 0px;
    top: -40px;
}

.home .home-img img{
    margin:auto;
    border-radius: 5px;
    height: 425px;
}

ul{
    list-style: none;
}

.about .about-content{
    flex: 0 0 100%;
    max-width: 100%;

}


.about .about-content .about-text h3{
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: justify;
    color: var(--text-black-700)
}


.about .about-content .about-text h3 span{
    color: var(--skin-color)
}

.about .about-content .about-text p{
    font-size: 16px;
    line-height: 25px;
    color: var(--text-black-700);
} 

.about .about-content .personal-info{
    flex: 0 0 60%;
    max-width: 60%;
    margin-top: 40px;
}
.about .about-content .personal-info .info-item{
    flex: 0 0 50%;
    max-width: 40%;
}
.about .about-content .personal-info .info-item p{
    font-weight: 600;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-black-900);
    border-bottom: 1px solid var(--bg-black-50);
}

.about .about-content .personal-info .info-item p span{
    font-weight: 400;
    color: var(--text-black-700);
    margin-left: 4px;
    display: inline-block;
}

.about .about-content .personal-info .buttons{
    margin-top: 30px;
}

.about .about-content .personal-info .buttons .btn{
    margin-right: 15px;
    margin-top: 10px;
}


.Curriculum .Curriculum-content{
    flex: 0 0 100%;
    max-width: 100%;

}
.Curriculum .Curriculum-content .Curriculum-text h3{
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-black-700)
}


.Curriculum .Curriculum-content .Curriculum-text h3 span{
    color: var(--skin-color)
}

.Curriculum .Curriculum-content .Curriculum-text p{
    font-size: 16px;
    line-height: 25px;
    color: var(--text-black-700);
} 

.Curriculum .Curriculum-content .personal-info {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 40px;
}

.Curriculum .Curriculum-content .personal-info .info-item {
    flex: 0 0 100%;
    max-width: 100%;
}

.Curriculum .Curriculum-content .personal-info .info-item p {
    font-weight: 600;
    padding: 10px 0;
    font-size: 20px;
    color: var(--text-black-900);
    border-bottom: 1px solid var(--bg-black-50);
}

.Curriculum .Curriculum-content .personal-info .info-item p span {
    font-weight: 400;
    color: var(--text-black-700);
    margin-left: 4px;
    display: inline-block;
}

.Curriculum .Curriculum-content .personal-info .buttons {
    margin-top: 30px;
}

.Curriculum .Curriculum-content .personal-info .buttons .btn {
    margin-right: 15px;
    margin-top: 10px;
}


.Curriculum.section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.Curriculum.section .personal-info {
    flex: 0 0 48%;
    max-width: 48%;
}

.Curriculum.section .skills-container {
    flex: 0 0 48%;
    max-width: 48%;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: var(--bg-black-100);
    color: var(--text-black-900);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.Curriculum.section .skills-container .skill-category {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-black-50);
    padding-bottom: 10px;
}

.Curriculum.section .skills-container .skill-category h3 {
    font-size: 1.5rem;
    color: var(--text-black-700);
    margin-bottom: 5px;
    text-transform: capitalize;
}

.Curriculum.section .skills-container .skill-category p {
    font-size: 1rem;
    color: var(--text-black-900);
    line-height: 1.5;
    margin: 0;
}

.Curriculum.section .skills-container .skill-category:hover {
    background: var(--bg-black-50);
    border-radius: 4px;
    padding: 10px 15px;
}


.Curriculum .Curriculum-content .Education,
.Curriculum .Curriculum-content .Experience{
    flex: 0 0 50%;
    max-width: 50%;
    margin-top: 30px;

}

.Curriculum .Curriculum-content .h3.title{
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--text-black-900); 
}

.Curriculum .Curriculum-content .timeline-box{
    flex: 0 0 100%;
    max-width: 100%;
}
.Curriculum .Curriculum-content .timeline{
    background-color: var(--bg-black-100);
    padding: 30px 15px;
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    width: 100%;
    position: relative; 
} 

.Curriculum .Curriculum-content .timeline .timeline-item{
    position: relative;
    padding-left: 37px;
    padding-bottom: 25px;   
}
.Curriculum .Curriculum-content .timeline .timeline-item:last-child{
    padding-bottom: 50;
    
}
.Curriculum .Curriculum-content .timeline .timeline-item::before{
    content: '';
    width: 1px;
    position: absolute;
    height: calc(100% + 25px);
    left: 7px;
    top: 0;
    background-color: var(--skin-color);
}
.Curriculum .Curriculum-content .timeline .circle-dot{
    position: absolute;
    left: 0;
    top: 0;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: var(--skin-color);
}
.Curriculum .Curriculum-content .timeline .timeline-date{
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--bg-black-700);
}
.Curriculum .Curriculum-content .timeline .timeline-date .fa{
    margin-right: 5px;
    
}

.Curriculum .Curriculum-content .timeline .timeline-title{
    font-weight: 700;
    font-size: 20px;    
    margin-bottom: 15px;
    text-transform: capitalize;
    color: var(--text-black-900);
}

.Curriculum .Curriculum-content .timeline .timeline-text{
    line-height: 25px;
    font-size: 16px;
    text-align: justify;
    color: var(--text-black-700);
}
.timeline-text span {
    color: black; 
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
}

body.dark .timeline-text span {
    color: #fff; 
}


.Projects .container{
    padding-bottom: 40px;
}
.Project-item p {
    text-align: justify;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.Projects .Project-item{
    margin-bottom: 30px;
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

.Projects .Project-item .Project-item-inner{
    background-color: var(--bg-black-100);
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    padding: 30px 15px;
    text-align: center;
    transition: all 0.3S ease;
}

.Projects .Project-item .Project-item-inner:hover{
    box-shadow: 0   0   20px    rgba(48,46,77,0.15);
}

.Projects .Project-item .Project-item-inner .icon{
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 30px;
    text-align: center;
    transition: all 0.3S ease;
}

.Projects .Project-item .Project-item-inner .icon .fa{
    font-size: 40px;
    line-height: 60px;
    color: var(--skin-color);
    transition: all 0.3S ease;
}
.timeline-text span {
    color: black; 
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
}

.Projects .Project-item .Project-item-inner:hover .icon{
    background: var(--skin-color);
}

.Projects .Project-item .Project-item-inner:hover .icon .fa{
    font-size: 25px;
    color: #ffff;
}

.Projects .Project-item .Project-item-inner h4{
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-black-900);
    font-weight: 700;
    text-transform: capitalize;
}

.Projects .Project-item .Project-item-inner p{
    font-size: 16px;
    color: var(--text-black-900);
    line-height: 25px;
}

.container {
    max-width: 70%;
    width: 90%;
    margin: auto;
    padding: 10px;
    box-sizing: border-box;
}


nav {
    width: 960px;
    margin:0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 60px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
}
.lang-menu {
    position: fixed; /* Ensure it stays fixed on the screen */
    top: 5%; /* Adjust below top bar */
    right: 0; /* Always align to the right edge of the screen */
    z-index: 1001; /* Keep it above other elements */
    padding-right: 10px; /* Add a bit of padding from the edge */
}

.lang-menu ul li a:before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 40px;
    vertical-align: middle;
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 8px;   
}

.lang-menu ul {
    position: absolute; /* Position the dropdown relative to the button */
    top: 100%; /* Place it directly below the button */
    right: 0; /* Align to the right edge of the button */
    left: auto; /* Prevent it from overlapping the left */
    display: none; /* Initially hidden */
    background-color: var(--bg-black-100); /* Ensure visibility against the background */
    border: 1px solid var(--bg-black-50); /* Add a border for clarity */
    border-radius: 5px; /* Rounded corners */
    z-index: 1002; /* Keep it above the button */
    padding: 5px 0; /* Add spacing inside the dropdown */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a slight shadow */
}

body.dark .lang-menu ul {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
}

body.dark .lang-menu ul li a:hover {
    background-color: #555;
}



.lang-menu:hover ul {
    display: block;
}

.lang-menu ul li a {
    width: 200px;
    display: block;
    padding: 5px;
}

.selected-language {
    cursor: pointer;
    position: relative;
    padding-left: 50px;
    line-height: 32px;
}

.selected-language:before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.lang-menu ul li a:before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 8px;   
}

.de:before {
    background-image: url("../images/de-flag.jpg");
}

.en:before {
    background-image: url("../images/en-flag.jpg");
}

.lang-menu ul li a:hover {
    background-color: #f2f2f2;
}
/* Base media query for smaller devices (1199px and below) */
@media only screen and (max-width: 1199px) {
    .wrapper-main {
        width: 100%;
        background-color: blue;
    }
    body {
        font-size: 15px; /* Slightly reduce font size for smaller devices */
        transform: scale(0.85); /* Further scale down */
    }

    .aside {
        width: 20%; /* Fixed width for the aside menu */
        background: var(--bg-black-100);
        position:relative ; /* Keeps the menu always visible */
        left: 0; /* Ensure it's pinned to the left */
        top: 0;
        padding: 5px ;
        height:fit-content; /* Full height of the viewport */
        border-right: 1px solid var(--bg-black-50);
        display:inline-flex ;
        flex-direction: column; /* Stack elements vertically */
        justify-content: flex-start; /* Align items to the top */
        align-items: center;
        z-index: 10;
        transition: all 0.3s ease; /* Smooth adjustment for responsiveness */
    }
    .main-content {
        padding-left: 0; /* Remove padding for full-width content */
    }
    .container {
        max-width: 85%; /* Increase width for medium screens */
        width: 90%; /* Keep relative width */
        margin: 10px auto; /* Reduce margin */
    }
    .about .about-content .personal-info .info-item p span {
        display: block; /* Stack personal info vertically */
        margin-left: 0;
    }
}

/* Medium-sized devices (991px and below) */
@media only screen and (max-width: 991px) {
    .wrapper-main {
        width: 100%;
        background-color: red;
    }
    body {
        transform: scale(0.85); /* Scale everything down to 85% */
        transform-origin: top center; /* Anchor the scaling to the top-center */
        font-size: 14px; /* Further reduce font size */
    }

    .home .Project-item {
        flex: 0 0 50%; /* Adjust project item width */
        max-width: 50%; /* Limit to half the width */
    }
    .home .home-img {
        display: none; /* Hide the home image */
    }
    .home .home-info {
        flex: 0 0 100%; /* Full-width home info */
        max-width: 100%;
    }
    .container {
        max-width: 90%; /* Adjust container width for smaller devices */
        width: 95%; /* Allow more space on smaller screens */
        margin: 5px auto; /* Reduce margin further */
    }
    .about .about-content .personal-info .info-item p span {
        display: block; /* Stack items vertically */
        margin-left: 0;
    }
}

@media only screen and (max-width: 767px) {
    /* General layout adjustments */
    body {
        transform: scale(0.85); /* Scale everything down to 85% */
        transform-origin: top center; /* Anchor scaling to the top-center */
    }

    .container {
        max-width: 95%; /* Maximize container width for small screens */
        margin: 2px auto; /* Minimal margin */
    }

    .skills-container {
        width: 90%; /* Make it smaller and centered */
        margin: 5px auto; /* Minimal margin */
        padding: 10px; /* Reduce padding */
    }

    .row {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center elements */
    }

    .skills-container .skill-category h3 {
        font-size: 1.2rem; /* Smaller font for skill headers */
    }

    .skills-container .skill-category p {
        font-size: 0.9rem; /* Reduce skill text size */
    }

    .about .personal-info .info-item p span {
        display: block; /* Stack personal info */
        margin: 2px 0; /* Reduce margin between lines */
    }

    /* Transform .aside into a top bar */
    .aside {
        width: 100%; /* Full width for top bar */
        height: 50px; /* Auto-adjust height */
        position: fixed; /* Fixed position to stay on top */
        top: 0;
        left: 0;
        flex-direction: row; /* Arrange items horizontally */
        border-right: none; /* Remove right border */
        border-bottom: 1px solid var(--bg-black-50); /* Add bottom border */
        justify-content: space-between; /* Space out navigation items */
        align-items: center; /* Align items vertically */
        z-index: 1000; /* Ensure it stays above other elements */
        background: var(--bg-black-100); /* Add background color to maintain visibility */
        transition: all 0.3s ease; /* Smooth adjustment for responsiveness */
    }

    .aside .nav {
        display: flex; /* Display nav items inline */
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .aside .nav li {
        flex: 0.5; /* Equal spacing for nav items */
        text-align: center;
        list-style: none;
    }

    .aside .nav li a {
        display: block;
        padding: 8px 5px; /* Adjust padding for smaller items */
        font-size: 8px; /* Further reduce font size */
        color: var(--text-black-900);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .aside .nav li a:hover {
        background: var(--skin-color);
        color: white;
    }

    .lang-menu {
        position: fixed; /* Ensure it stays fixed on the screen */
        top: 5%; /* Adjust below top bar */
        right: 0; /* Always align to the right edge of the screen */
        z-index: 1001; /* Keep it above other elements */
        padding-right: 10px; /* Add a bit of padding from the edge */
    }
    
    .lang-menu ul li a:before {
        content: '';
        display: inline-block;
        width: 32px;
        height: 40px;
        vertical-align: middle;
        background-size: cover;
        background-repeat: no-repeat;
        margin-right: 8px;   
    }
    
    .lang-menu ul {
        position: absolute; /* Position the dropdown relative to the button */
        top: 100%; /* Place it directly below the button */
        right: 0; /* Align to the right edge of the button */
        left: auto; /* Prevent it from overlapping the left */
        display: none; /* Initially hidden */
        background-color: var(--bg-black-100); /* Ensure visibility against the background */
        border: 1px solid var(--bg-black-50); /* Add a border for clarity */
        border-radius: 5px; /* Rounded corners */
        z-index: 1002; /* Keep it above the button */
        padding: 5px 0; /* Add spacing inside the dropdown */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a slight shadow */
    }
    

    .main-content {
        padding-top: 50px; /* Add padding to accommodate top bar height */
    }

    /* Make project boxes full width */
    .Projects .Project-item {
        flex: 0 0 100%; /* Full width for each project item */
        max-width: 100%;
        margin-bottom: 10px; /* Reduce margin between project boxes */
    }

    .Projects .Project-item .Project-item-inner {
        padding: 20px 10px; /* Adjust padding for smaller screens */
        border-radius: 5px; /* Adjust border radius */
        text-align: center; /* Center content */
    }

    .Projects .Project-item .Project-item-inner h4 {
        font-size: 18px; /* Reduce font size for headers */
    }

    .Projects .Project-item .Project-item-inner p {
        font-size: 14px; /* Reduce font size for paragraph text */
        line-height: 1.4; /* Adjust line height */
    }

    /* Curriculum Section */
    .Curriculum.section .personal-info {
        flex: 0 0 100%; /* Full width for personal info */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
    }

    .Curriculum.section .skills-container {
        flex: 0 0 100%; /* Full width for skills container */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
        padding: 10px; /* Reduce padding */
    }

    .Curriculum.section .timeline-box {
        flex: 0 0 100%; /* Full width for timeline box */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
        padding: 10px; /* Adjust padding */
    }

    .Curriculum.section .timeline {
        padding: 15px; /* Adjust padding */
        border-radius: 5px; /* Adjust border radius */
    }

    .Curriculum.section .timeline .timeline-item {
        padding-left: 20px; /* Adjust padding for smaller screens */
    }

    .Curriculum.section .timeline .timeline-title {
        font-size: 18px; /* Adjust title font size */
        margin-bottom: 10px; /* Reduce margin below title */
    }

    .Curriculum.section .timeline .timeline-text {
        font-size: 14px; /* Adjust text font size */
        line-height: 1.4; /* Adjust line height */
    }

    .Curriculum.section .timeline .timeline-date {
        font-size: 14px; /* Adjust date font size */
    }

    .Curriculum.section .timeline .circle-dot {
        height: 10px; /* Reduce circle size */
        width: 10px; /* Reduce circle size */
    }

    /* Make Curriculum contents responsive */
    .Curriculum .Curriculum-content .personal-info {
        width: 100%; /* Full width for personal info */
        margin: 10px 0; /* Adjust spacing */
    }

    .Curriculum .Curriculum-content .Education,
    .Curriculum .Curriculum-content .Experience {
        flex: 0 0 100%; /* Full width for each section */
        max-width: 100%;
        margin: 10px 0; /* Reduce spacing */
        padding: 10px; /* Adjust padding */
    }

    .Curriculum .Curriculum-content .Education h3,
    .Curriculum .Curriculum-content .Experience h3 {
        font-size: 1.2rem; /* Reduce font size for titles */
    }

    .Curriculum .Curriculum-content .Education p,
    .Curriculum .Curriculum-content .Experience p {
        font-size: 0.9rem; /* Reduce font size for paragraphs */
        line-height: 1.4; /* Adjust line height */
    }

    /* Image above text */
    .Projects .Project-item .Project-item-inner {
        display: flex;
        flex-direction: column; /* Stack image and text */
        align-items: center; /* Center align content */
    }

    .Projects .Project-item img {
        width: 100%; /* Make image responsive */
        max-width: 100%; /* Prevent overflow */
        margin-bottom: 10px; /* Add space between image and text */
        border-radius: 5px; /* Optional: Add rounded corners */
    }

    .Projects .Project-item h4, 
    .Projects .Project-item p {
        text-align: center; /* Center-align text */
    }
}



/* Base scaling for smallest screens (max-width: 480px) */
@media (max-width: 480px) and (orientation: landscape) {
    /* General layout adjustments */
    body {
        transform: scale(0.85); /* Scale everything down to 85% */
        transform-origin: top center; /* Anchor scaling to the top-center */
    }

    .container {
        max-width: 95%; /* Maximize container width for small screens */
        margin: 2px auto; /* Minimal margin */
    }

    .skills-container {
        width: 90%; /* Make it smaller and centered */
        margin: 5px auto; /* Minimal margin */
        padding: 10px; /* Reduce padding */
    }

    .row {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center elements */
    }

    .skills-container .skill-category h3 {
        font-size: 1.2rem; /* Smaller font for skill headers */
    }

    .skills-container .skill-category p {
        font-size: 0.9rem; /* Reduce skill text size */
    }

    .about .personal-info .info-item p span {
        display: block; /* Stack personal info */
        margin: 2px 0; /* Reduce margin between lines */
    }

    /* Transform .aside into a top bar */
    .aside {
        width: 100%; /* Full width for top bar */
        height: 50px; /* Auto-adjust height */
        position: fixed; /* Fixed position to stay on top */
        top: 0;
        left: 0;
        flex-direction: row; /* Arrange items horizontally */
        border-right: none; /* Remove right border */
        border-bottom: 1px solid var(--bg-black-50); /* Add bottom border */
        justify-content: space-between; /* Space out navigation items */
        align-items: center; /* Align items vertically */
        z-index: 1000; /* Ensure it stays above other elements */
        background: var(--bg-black-100); /* Add background color to maintain visibility */
        transition: all 0.3s ease; /* Smooth adjustment for responsiveness */
    }

    .aside .nav {
        display: flex; /* Display nav items inline */
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .aside .nav li {
        flex: 0.5; /* Equal spacing for nav items */
        text-align: center;
        list-style: none;
    }

    .aside .nav li a {
        display: block;
        padding: 8px 5px; /* Adjust padding for smaller items */
        font-size: 8px; /* Further reduce font size */
        color: var(--text-black-900);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .aside .nav li a:hover {
        background: var(--skin-color);
        color: white;
    }

    .lang-menu {
        position: fixed; /* Ensure it stays fixed on the screen */
        top: 5%; /* Adjust below top bar */
        right: 0; /* Always align to the right edge of the screen */
        z-index: 1001; /* Keep it above other elements */
        padding-right: 10px; /* Add a bit of padding from the edge */
    }
    
    .lang-menu ul li a:before {
        content: '';
        display: inline-block;
        width: 32px;
        height: 40px;
        vertical-align: middle;
        background-size: cover;
        background-repeat: no-repeat;
        margin-right: 8px;   
    }
    
    .lang-menu ul {
        position: absolute; /* Position the dropdown relative to the button */
        top: 100%; /* Place it directly below the button */
        right: 0; /* Align to the right edge of the button */
        left: auto; /* Prevent it from overlapping the left */
        display: none; /* Initially hidden */
        background-color: var(--bg-black-100); /* Ensure visibility against the background */
        border: 1px solid var(--bg-black-50); /* Add a border for clarity */
        border-radius: 5px; /* Rounded corners */
        z-index: 1002; /* Keep it above the button */
        padding: 5px 0; /* Add spacing inside the dropdown */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a slight shadow */
    }
    

    .main-content {
        padding-top: 50px; /* Add padding to accommodate top bar height */
    }

    /* Make project boxes full width */
    .Projects .Project-item {
        flex: 0 0 100%; /* Full width for each project item */
        max-width: 100%;
        margin-bottom: 10px; /* Reduce margin between project boxes */
    }

    .Projects .Project-item .Project-item-inner {
        padding: 20px 10px; /* Adjust padding for smaller screens */
        border-radius: 5px; /* Adjust border radius */
        text-align: center; /* Center content */
    }

    .Projects .Project-item .Project-item-inner h4 {
        font-size: 18px; /* Reduce font size for headers */
    }

    .Projects .Project-item .Project-item-inner p {
        font-size: 14px; /* Reduce font size for paragraph text */
        line-height: 1.4; /* Adjust line height */
    }

    /* Curriculum Section */
    .Curriculum.section .personal-info {
        flex: 0 0 100%; /* Full width for personal info */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
    }

    .Curriculum.section .skills-container {
        flex: 0 0 100%; /* Full width for skills container */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
        padding: 10px; /* Reduce padding */
    }

    .Curriculum.section .timeline-box {
        flex: 0 0 100%; /* Full width for timeline box */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
        padding: 10px; /* Adjust padding */
    }

    .Curriculum.section .timeline {
        padding: 15px; /* Adjust padding */
        border-radius: 5px; /* Adjust border radius */
    }

    .Curriculum.section .timeline .timeline-item {
        padding-left: 20px; /* Adjust padding for smaller screens */
    }

    .Curriculum.section .timeline .timeline-title {
        font-size: 18px; /* Adjust title font size */
        margin-bottom: 10px; /* Reduce margin below title */
    }

    .Curriculum.section .timeline .timeline-text {
        font-size: 14px; /* Adjust text font size */
        line-height: 1.4; /* Adjust line height */
    }

    .Curriculum.section .timeline .timeline-date {
        font-size: 14px; /* Adjust date font size */
    }

    .Curriculum.section .timeline .circle-dot {
        height: 10px; /* Reduce circle size */
        width: 10px; /* Reduce circle size */
    }

    /* Make Curriculum contents responsive */
    .Curriculum .Curriculum-content .personal-info {
        width: 100%; /* Full width for personal info */
        margin: 10px 0; /* Adjust spacing */
    }

    .Curriculum .Curriculum-content .Education,
    .Curriculum .Curriculum-content .Experience {
        flex: 0 0 100%; /* Full width for each section */
        max-width: 100%;
        margin: 10px 0; /* Reduce spacing */
        padding: 10px; /* Adjust padding */
    }

    .Curriculum .Curriculum-content .Education h3,
    .Curriculum .Curriculum-content .Experience h3 {
        font-size: 1.2rem; /* Reduce font size for titles */
    }

    .Curriculum .Curriculum-content .Education p,
    .Curriculum .Curriculum-content .Experience p {
        font-size: 0.9rem; /* Reduce font size for paragraphs */
        line-height: 1.4; /* Adjust line height */
    }

    /* Image above text */
    .Projects .Project-item .Project-item-inner {
        display: flex;
        flex-direction: column; /* Stack image and text */
        align-items: center; /* Center align content */
    }

    .Projects .Project-item img {
        width: 100%; /* Make image responsive */
        max-width: 100%; /* Prevent overflow */
        margin-bottom: 10px; /* Add space between image and text */
        border-radius: 5px; /* Optional: Add rounded corners */
    }

    .Projects .Project-item h4, 
    .Projects .Project-item p {
        text-align: center; /* Center-align text */
    }
}




/* Break long words (email, links) */
a, .skills-container p {
    word-break: break-word; /* Force text wrapping */
}
/* Medium screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) and (orientation: landscape) {
      /* General layout adjustments */
      body {
        transform: scale(0.85); /* Scale everything down to 85% */
        transform-origin: top center; /* Anchor scaling to the top-center */
    }

    .container {
        max-width: 95%; /* Maximize container width for small screens */
        margin: 2px auto; /* Minimal margin */
    }

    .skills-container {
        width: 90%; /* Make it smaller and centered */
        margin: 5px auto; /* Minimal margin */
        padding: 10px; /* Reduce padding */
    }

    .row {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center elements */
    }

    .skills-container .skill-category h3 {
        font-size: 1.2rem; /* Smaller font for skill headers */
    }

    .skills-container .skill-category p {
        font-size: 0.9rem; /* Reduce skill text size */
    }

    .about .personal-info .info-item p span {
        display: block; /* Stack personal info */
        margin: 2px 0; /* Reduce margin between lines */
    }

    /* Transform .aside into a top bar */
    .aside {
        width: 100%; /* Full width for top bar */
        height: 50px; /* Auto-adjust height */
        position: fixed; /* Fixed position to stay on top */
        top: 0;
        left: 0;
        flex-direction: row; /* Arrange items horizontally */
        border-right: none; /* Remove right border */
        border-bottom: 1px solid var(--bg-black-50); /* Add bottom border */
        justify-content: space-between; /* Space out navigation items */
        align-items: center; /* Align items vertically */
        z-index: 1000; /* Ensure it stays above other elements */
        background: var(--bg-black-100); /* Add background color to maintain visibility */
        transition: all 0.3s ease; /* Smooth adjustment for responsiveness */
    }

    .aside .nav {
        display: flex; /* Display nav items inline */
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .aside .nav li {
        flex: 0.5; /* Equal spacing for nav items */
        text-align: center;
        list-style: none;
    }

    .aside .nav li a {
        display: block;
        padding: 8px 5px; /* Adjust padding for smaller items */
        font-size: 8px; /* Further reduce font size */
        color: var(--text-black-900);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .aside .nav li a:hover {
        background: var(--skin-color);
        color: white;
    }

    .lang-menu {
        position: fixed; /* Ensure it stays fixed on the screen */
        top: 5%; /* Adjust below top bar */
        right: 0; /* Always align to the right edge of the screen */
        z-index: 1001; /* Keep it above other elements */
        padding-right: 10px; /* Add a bit of padding from the edge */
    }
    
    .lang-menu ul li a:before {
        content: '';
        display: inline-block;
        width: 32px;
        height: 40px;
        vertical-align: middle;
        background-size: cover;
        background-repeat: no-repeat;
        margin-right: 8px;   
    }
    
    .lang-menu ul {
        position: absolute; /* Position the dropdown relative to the button */
        top: 100%; /* Place it directly below the button */
        right: 0; /* Align to the right edge of the button */
        left: auto; /* Prevent it from overlapping the left */
        display: none; /* Initially hidden */
        background-color: var(--bg-black-100); /* Ensure visibility against the background */
        border: 1px solid var(--bg-black-50); /* Add a border for clarity */
        border-radius: 5px; /* Rounded corners */
        z-index: 1002; /* Keep it above the button */
        padding: 5px 0; /* Add spacing inside the dropdown */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a slight shadow */
    }
    

    .main-content {
        padding-top: 50px; /* Add padding to accommodate top bar height */
    }

    /* Make project boxes full width */
    .Projects .Project-item {
        flex: 0 0 100%; /* Full width for each project item */
        max-width: 100%;
        margin-bottom: 10px; /* Reduce margin between project boxes */
    }

    .Projects .Project-item .Project-item-inner {
        padding: 20px 10px; /* Adjust padding for smaller screens */
        border-radius: 5px; /* Adjust border radius */
        text-align: center; /* Center content */
    }

    .Projects .Project-item .Project-item-inner h4 {
        font-size: 18px; /* Reduce font size for headers */
    }

    .Projects .Project-item .Project-item-inner p {
        font-size: 14px; /* Reduce font size for paragraph text */
        line-height: 1.4; /* Adjust line height */
    }

    /* Curriculum Section */
    .Curriculum.section .personal-info {
        flex: 0 0 100%; /* Full width for personal info */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
    }

    .Curriculum.section .skills-container {
        flex: 0 0 100%; /* Full width for skills container */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
        padding: 10px; /* Reduce padding */
    }

    .Curriculum.section .timeline-box {
        flex: 0 0 100%; /* Full width for timeline box */
        max-width: 100%;
        margin: 10px 0; /* Adjust spacing between sections */
        padding: 10px; /* Adjust padding */
    }

    .Curriculum.section .timeline {
        padding: 15px; /* Adjust padding */
        border-radius: 5px; /* Adjust border radius */
    }

    .Curriculum.section .timeline .timeline-item {
        padding-left: 20px; /* Adjust padding for smaller screens */
    }

    .Curriculum.section .timeline .timeline-title {
        font-size: 18px; /* Adjust title font size */
        margin-bottom: 10px; /* Reduce margin below title */
    }

    .Curriculum.section .timeline .timeline-text {
        font-size: 14px; /* Adjust text font size */
        line-height: 1.4; /* Adjust line height */
    }

    .Curriculum.section .timeline .timeline-date {
        font-size: 14px; /* Adjust date font size */
    }

    .Curriculum.section .timeline .circle-dot {
        height: 10px; /* Reduce circle size */
        width: 10px; /* Reduce circle size */
    }

    /* Make Curriculum contents responsive */
    .Curriculum .Curriculum-content .personal-info {
        width: 100%; /* Full width for personal info */
        margin: 10px 0; /* Adjust spacing */
    }

    .Curriculum .Curriculum-content .Education,
    .Curriculum .Curriculum-content .Experience {
        flex: 0 0 100%; /* Full width for each section */
        max-width: 100%;
        margin: 10px 0; /* Reduce spacing */
        padding: 10px; /* Adjust padding */
    }

    .Curriculum .Curriculum-content .Education h3,
    .Curriculum .Curriculum-content .Experience h3 {
        font-size: 1.2rem; /* Reduce font size for titles */
    }

    .Curriculum .Curriculum-content .Education p,
    .Curriculum .Curriculum-content .Experience p {
        font-size: 0.9rem; /* Reduce font size for paragraphs */
        line-height: 1.4; /* Adjust line height */
    }

    /* Image above text */
    .Projects .Project-item .Project-item-inner {
        display: flex;
        flex-direction: column; /* Stack image and text */
        align-items: center; /* Center align content */
    }

    .Projects .Project-item img {
        width: 100%; /* Make image responsive */
        max-width: 100%; /* Prevent overflow */
        margin-bottom: 10px; /* Add space between image and text */
        border-radius: 5px; /* Optional: Add rounded corners */
    }

    .Projects .Project-item h4, 
    .Projects .Project-item p {
        text-align: center; /* Center-align text */
    }
}

