html {
    scroll-padding-top: 60px; /* Adjust the value to match the header height */
    scroll-padding-bottom: 60px; /* Adjust the value to match the header height */

    scroll-behavior: smooth;
}

body{
    background-color: rgb(244, 238, 231);
    font-family: Verdana, sans-serif;
    color:rgb(0, 0, 0);
}



.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent */
    z-index: 4999; /* Just below your popup */
    display: none; /* Hidden by default */
    pointer-events: none; /* Allow clicking through when hidden */
}




/* Header and Footer shared  */

.header, .footer
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
    position: fixed;
    left: 0;
    z-index: 4998;
    
    width: 100%;
    height: 7%;
    
    background-color: rgba(244, 238, 231, 0.9);
    font-size: large; /* media */
    font-weight: bolder;

    backdrop-filter: blur(0.1rem);
}






/* Header */

.header
{
    top: 0;
}

.header-links
{
    display: flex;
    justify-content: space-between;
    list-style-type: none;

    width: 100%;

    padding: 0px 50px;
}

.header-links a
{
    color: rgb(94, 94, 94); 
}

/* Highlighted active state */
.header-links a.active {
    color: #d86a15;  /* Highlight color */
    border-bottom: none;  /* Optional underline to signify active section */

}




/* footer */

.footer
{
    bottom: 0;
}

.footer-CV
{
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    padding-left: 2rem;
    margin-bottom: 0.1rem;

    overflow: visible; /* Change from hidden to visible */
    white-space: nowrap;
}

.footer-Contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: fit-content;
    
    gap: 10%;
    white-space: nowrap;
}

.footer-Links
{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 20%;

    gap: 20%;
}

.footer-Links img
{
    width: 40px;
    height: auto;
}

.footer-Links:hover {
    color:#d86a15; 
    cursor:pointer;  
}

.footer-Links a:hover img.button-icon {
    filter: brightness(0) saturate(100%) invert(65%) sepia(96%) saturate(3985%) hue-rotate(356deg) brightness(102%) contrast(105%);
}












/* Global site body */

.site-body
{
    padding: 0 13%;
    display: flex;
    flex-direction: column;
    align-items: center;
}









/* Home page // Intro */

.site-body-Intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.site-body-Intro h1 {
    font-size: 4.6vw; /* Adjust this value as needed for a better fit */
    margin: 0;
    white-space: nowrap; /* Prevent text from wrapping to a new line */
}

.site-body-Intro img{
    max-width: 60%;
}

.site-body-lookingFor
{
    color:#d86a15; 
    font-size: 2vw;
    margin: 0 0 0.5rem 0;
}



/* About Me */

.site-body-AboutMe {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3% 0%;
}

.site-body-AboutMe p {
    font-family: Garamond, serif;
    font-size: x-large; /* This scales the font size based on the viewport width */
    margin: 0 0 20px;
    width: 50%;
    text-align: center;
}

.site-body-AboutMe .button-container
{
    justify-content: center; /* Centers the button container */
}













/* Projects */

.site-body-Projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

        width: 100%;
}

.projects-Title
{
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    
    padding: 15px 0 20px 0;

    font-weight: bolder;
    font-size: x-large;
}

.projects{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: 2rem;

    width: 100%;
}

.Work-Title
{
    width: 75%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    
    padding: 15px 0 20px 0;

    font-weight: bolder;
    font-size: x-large;
}

div.project {
      position: relative; /* Add this */
  display: flex; /* Add this */
  flex-direction: column; 

    border: 1px solid #ccc;
    
    background-color: rgb(242, 232, 222);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    border-radius: 15px; /* Added to round the corners */
    
    overflow: hidden; /* Ensure content doesn't overflow */
    width: 100%; /* Take up the full width of the responsive container */
    height: 350px; /* Set a fixed height for all project containers */
}

div.project:hover:not(.project-img) {
    border: 3px solid #d86a15;
    
    /* Scale up the project slightly on hover */
    transform: scale(1.05);
    
    /* Enhance the shadow effect on hover */
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.3), 0 8px 24px 0 rgba(0, 0, 0, 0.25);
}

div.project:hover a{
    color:#d86a15; 
}

div.project a{
    height: 70%;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the entire container */
    max-width: 100%;
    /* border-radius: 15px 15px 0 0; Rounds the top corners of the image to match the project container */
}

#project-video {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the entire container */
    max-width: 100%;
    border-radius: 15px 15px 0 0; /* Rounds the top corners of the image to match the project container */
}

#project-type
{
    color: #464646;
    font-style: italic;
}

div.desc {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9em; /* Ensure the text size is readable */
    background-color: rgb(242, 232, 222); /* Match the background of the container */
    margin: 0 10%;
    padding: 0.2rem 0rem;
}

.project-responsive {
    padding: 6px;
    float: left;
    width: 24.99999%;
}

.bigProjects{
    width: 100%;

    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
}

.project-big {
    width: 100%;

    background-color: rgb(242, 232, 222); /* Match the background of the container */

    border-radius: 15px; /* Rounds the top corners of the image to match the project container */

    padding: 2rem;

    /* justify-content: space-between;  */
    /* align-items: center; */

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

    height: 20rem; /* Set a fixed height for all project containers */

        position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    transform-origin: center;
}

.project-big:active {
    animation: clickAnimation 0.3s ease;
}

@keyframes clickAnimation {
    0% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1.02);
    }
}
@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* Ensure the clickable overlay covers the entire project-big */
.project-big {
    position: relative;
}

.clickable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

/* Adjust the project-big size on hover */
.project-big:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3), 0 12px 30px 0 rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* Make sure the LinkedIn icon stays on top */
.project-github-icon {
    z-index: 20;
}

.project-big:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #d86a15;
    border-radius: 15px;
    animation: pulse 2s infinite;
    z-index: -1;
}

.projectBig-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content; /* Now 40% of the container */
    height: 100%;
    object-fit: contain; /* Ensures the image is fully contained */
    flex-grow: 1; /* Allow it to take remaining space */
    position: relative;
}

.clickable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Make sure the anchor tag stays on top of the image */
    cursor: pointer; /* Shows the hand pointer on hover */
    text-indent: -9999px; /* Hide the text inside the anchor tag */
}

.projectBig-img{
    height: 100%;
    width: auto;
    border-radius: 15px; /* Rounds the top corners of the image to match the project container */
    max-width: 100%; /* Ensures the image is responsive */
    display: block
}

.projectBig-main-one{
    align-items: flex-end;
    float: right;
    
}

.projectBig-main-two{
    /* padding: 0rem 2rem 0 0; */
    align-items: flex-start;
    float: left;
}

.projectBig-desc {
    width: auto; /* 60% of the container */
    /*display: flex;*/
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: flex-start; /* Align text to the top */
    align-items: flex-start; /* Align text to the left */
    text-align: left; /* Ensure text is left-aligned */
    position: relative; /* Relative positioning for absolute child placement */
    height: 100%; /* Adjust this if necessary */
    /* min-height: 300px; Optional: Set a minimum height for the container */
    
    font-size: larger;
    
    /* flex-wrap: wrap; */
    gap: 0.5rem;
    
    right: 0.25rem;

    overflow: hidden;
}

.projectBig-desc-Second
{
    padding: 0rem 0rem 0 2rem;
        margin-left: 0.25rem;
}

.projectBig-desc a{
    color: cornflowerblue;
}

.projectBig-Text {
    width: 100%; /* 60% of the container */
    display: flex;
    position: absolute;
    justify-content: space-between;
    align-items: center; 
    height: 100%;
    
    right: 0.25rem;
    padding-left: 0.5rem;
}

.projectBig-Text-Second{
    padding-left: 1.5rem;
}

.projectBig-TextSkills
{
    /* font-size: medium; */
    width: auto;
    white-space: nowrap;

    /* height: 100px; */
    border-left: 2px solid #dfd1c1;  /* Adjust color and width as needed */
    /* border-bottom: 2px solid #dfd1c1; */
    margin: 0.15rem;
    margin-left: 1rem;
}

.popup-window-projectBig-Text .projectBig-TextSkills
{
        width: 20%;
}

.projectBig-TestSkills-title
{
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: large;
     text-decoration: underline;
}

.projectBig-TextSkills li
{
    list-style-type:disc;
}

.projectBig-TextSkills ul
{
    padding: 0.5rem 0 0.5rem 2rem;
    font-style: italic;
    font-size: 0.9rem;
}

.float-right:before{
    height: calc(100%-15rem);
    float: right;
}
.float-right {
    float:right;
}

.smallProjects{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.projectBig-TextDesc{
    display: flex;
    flex-direction: column;
    justify-content: center; /* This centers content vertically */
    width: 100%;
    height: 100%; /* Make sure it takes full height */
    position: relative;
}

.projectBig-TitleHead {
    position: absolute;
    display: flex;
    justify-content: space-between;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 0.8rem;
}


.projectBig-Title{
    text-align: center;
    min-width: 20%;
    margin: auto; 
    font-size: 7rem;
}

.project-arrow{
    /* display: none; */
    position: absolute;
    color: #d86a15;
    font-size: x-large;
}

.project-github-icon{
    width: 3rem;
    height: auto;
    position: absolute;
    z-index: 2000;
}

.project-github-icon-left{
    left: 0.5rem;
    bottom: 0rem;
}

.project-github-icon-left-up{
    left: 0.5rem;
    top: 0rem;
}

.project-github-icon-right{
    right: 0.5rem;
    bottom: 0rem;
}

.project-github-icon:hover {
    filter: brightness(0) saturate(100%) invert(65%) sepia(96%) saturate(3985%) hue-rotate(356deg) brightness(102%) contrast(105%);
}


.video {
    width: 100%;
    border: 1px solid black;
}

.playpause {
    background-image:url(http://png-4.findicons.com/files/icons/2315/default_icon/256/media_play_pause_resume.png);
    background-repeat:no-repeat;
    width:50%;
    height:50%;
    position:absolute;
    left:0%;
    right:0%;
    top:0%;
    bottom:0%;
    margin:auto;
    background-size:contain;
    background-position: center;
}

/* contact-form */

.site-body-Contact
{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 1rem;
}

.site-body-Contact p{
    font-size: x-large;
    font-weight: bolder;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
  margin-top: 10px;
  font-weight: bold;
}

.contact-form input, .contact-form textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

.contact-form button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #535151;;
  color: #dfdfdf;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #d86a15;
}




/* global */

* {
    box-sizing: border-box;
}

a
{
    text-decoration: none;
    color:rgb(0, 0, 0);
}

a:hover
{
    text-decoration:none; 
    color:#d86a15; 
    cursor:pointer;  
}

li
{
    list-style-type: none;
}

ul
{
    padding: 0;
    margin: 0;
}

/* Scrollbar for Firefox */
* {
    scrollbar-width: auto; /* Thin scrollbar in Firefox */
    scrollbar-color: rgb(211, 189, 166) rgb(242, 232, 222); /* Thumb and track color */
}

.text-symbols{
    display:inline-block;
    height:1em; 
    width:auto; 
    transform:translate(0, 0.1em)
}







/* cv-Button */

.cv-container{
    display:flex;
    gap: 1rem;
}

.button-container {
    display: flex;
}

.cv-button {
    background-color: #202020;
    text-align: center;
    border: none; /* Removes the border */
    width: auto;
    height: auto;
    padding: 10px 20px;
    box-sizing: border-box;
    color: rgb(244, 238, 231);
    font-size: larger;
    border-radius: 20px; 
    display: flex; /* Allows aligning the image and text inline */
    align-items: center; /* Vertically centers the image and text */
}

.cv-button img.button-icon {
    margin-right: 8px; /* Adds space between the image and the text */
    width: 20px;
    height: auto; /* Maintains aspect ratio */
}

.cv-button:hover {
    color:#d86a15; 
    cursor:pointer;  
}

.cv-button:hover img.button-icon {
    filter: brightness(0) saturate(100%) invert(65%) sepia(96%) saturate(3985%) hue-rotate(356deg) brightness(102%) contrast(105%);
}

.popup-window{
    width: 100%;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 5000;

    display: flex;
    align-items: center; 
    justify-content: center;
}

.popup-window-background{
    width: 80%;

    background-color: rgb(242, 232, 222); /* Match the background of the container */

    border-radius: 15px; /* Rounds the top corners of the image to match the project container */

    padding: 0.5rem 5rem;

    position: fixed; 

    overflow-y: auto; 
    scroll-behavior: smooth;
    
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;

    height: 0; 
    top: 0;

    opacity: 0;

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

    margin-top: 5.5rem;
}

.popup-window-background::-webkit-scrollbar {
    display: none;
}

.popup-window-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.popup-window-header-title{
    margin: 0;
    flex: 1;
}

.popup-window-title{
    font-size: large;
    margin: 0;
}

.popup-window-title-type{ 

    font-size: large;
    margin: 0;
    white-space: nowrap;
}

.popup-window-button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;

    text-align: right;
    font-size: large;
    margin: 0;
    white-space: nowrap;
}

.popup-window-description-subtitles{
    font-size: xx-large;
    font-weight: bold;
}
.popup-window-projectBig-Text {
    width: 100%;
    position: relative;
    margin: 1rem 0 2rem 0;
}

.popup-window-projectBig-Text li{
    list-style-type:disc;
}

.popup-window-projectBig-Text ul{
    padding: 0.5rem 0 0.5rem 2rem;
    font-style: italic;
    font-size: 0.9rem;
}


.popup-window-projectBig-TextSkills {
    border-left: 2px solid #dfd1c1; 
    height: fit-content;
    margin: 0.15rem;
    margin-left: 0.5rem;
}

.popup-window-projectBig-TextSkills li
{
    list-style-type:disc;
}

.popup-window-projectBig-TextSkills ul
{
    padding: 0.5rem 0 0.5rem 2rem;
    font-style: italic;
    font-size: 0.9rem;
}

.popup-window-projectBig-TextDesc {
    display: block;
    /* The text will automatically wrap around and continue under the floated element */
}

.popup-window-projectBig-desc{
    height: auto;

}

.popup-window-description-float{
    float: right;
    width: auto;
    margin-left: 1rem;
}

.popup-window-description-float-elements{
    display: flex;
}

/* Custom code block styling */
.custom-code-block {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  overflow-x: auto;
  border-left: 8px solid #d86a15;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.custom-code-block code {
  color: #e0e0e0;
  background: transparent !important;
  padding: 0 !important;
}

/* C++ Syntax highlighting */
.custom-code-block .cpp-keyword { color: #569cd6; font-weight: bold; }
.custom-code-block .cpp-type { color: #4ec9b0; }
.custom-code-block .cpp-class { color: #4ec9b0; font-weight: bold; }
.custom-code-block .cpp-variable { color: #9cdcfe; }
.custom-code-block .cpp-function { color: #dcdcaa; }
.custom-code-block .cpp-string { color: #ce9178; }
.custom-code-block .cpp-comment { color: #6a9955; font-style: italic; }
.custom-code-block .cpp-number { color: #b5cea8; }
.custom-code-block .cpp-operator { color: #d4d4d4; }
.custom-code-block .cpp-preprocessor { color: #9b9b9b; }



@media (max-width: 768px) {
    .header, .footer
    {

        height: 10%;
    }

    .footer-CV
    {
        /* width: 20%; */
        padding-left: 1rem;

    }

    .footer-Links
    {
        width: 20%;
    }

    .footer-Contact
    {
        flex-direction: row;

        /* width: 60%; */

    }

    .footer-Contact p
    {
        margin: 5px 0;
    }

    .project-responsive {
        width: 100%;
    }

    /* MOBILE LAYOUT FOR PROJECT-BIG - IMAGE ON TOP, DESCRIPTION BELOW */
    .project-big {
        display: flex;
        flex-direction: column; /* Stack vertically */
        height: auto; /* Let height adjust to content */
        padding: 1rem;
        gap: 1rem; /* Space between image and description */
    }

    /* Reset all main containers for mobile */
    .projectBig-main,
    .projectBig-main-one,
    .projectBig-main-two {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    /* Make image responsive */
    .projectBig-img {
        width: 50% !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Reset description for mobile */
    .projectBig-desc,
    .projectBig-desc-Second {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center;
    }

    /* Reset text container */
    .projectBig-Text,
    .projectBig-Text-Second {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column; /* Stack content vertically */
        padding: 0 !important;
        margin: 0 !important;
        gap: 0.2rem;
        right: 0;
    }

    /* Stack text description and skills side by side */
    .projectBig-TextDesc {
        width: 90%;
        height: auto;
        position: relative;
        text-align: center;
    }

    .projectBig-TextSkills {
        width: 100% !important;
        border-left: none !important;
        border-top: 2px solid #dfd1c1; /* Change border to top for mobile */
        white-space: normal; /* Allow text to wrap */
        margin: 0;
    }

    /* Adjust title positioning */
    .projectBig-TitleHead {
        position: relative;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .projectBig-Title {
        font-size: 1.2rem !important;
        margin: 0.5rem 0;
    }

    .projectBig-TitleType,
    .projectBig-TitleWhat {
        font-size: 0.9em;
    }

    /* Adjust GitHub icon positioning */
    .project-github-icon {
        width: 2rem;
        position: relative !important;
        margin-top: 0.5rem;
    }

    .project-github-icon-left,
    .project-github-icon-left-up {
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }

    .projectBig-TestSkills-title {
        padding: 0;
        font-size: 1rem;
    }

    .projectBig-TextSkills ul{
        padding: 0;
        font-size: 0.8rem;
    }

    .cv-UK{
        display: none;
    }

        .header, .footer
    {
        font-size: 0.6rem;
    }

    .projects-Title{
        font-size: 0.8rem;
    }

    .site-body-AboutMe p
    {
        font-size: x-small;
    }
}

@media (max-width: 992px){
    .popup-window-background{
        padding: 0.25rem 2.5rem;
    }
    
    .popup-window-description-float-elements{
        flex-direction: column;
    }

    .popup-window-description-float{
        float: none;
        margin-bottom: 1rem;
    }

    .popup-window-projectBig-TextSkills{
        border-left: none;
    }

    .popup-window-projectBig-TextSkills{
        list-style-type: none;
    }

    .popup-window-projectBig-Text li{
        list-style-type: none;
    }

    .popup-window-projectBig-TextSkills ul{
        padding: 0;
    }

    .popup-window-projectBig-Text ul{
        padding: 0;
    }
}

@media (max-width: 992px) {
    .header, .footer
    {

        height: 7%;
    }

    .footer-CV
    {
        /* width: 20%; */
        padding-left: 2rem;

    }

    .footer-Links
    {
        width: 20%;
    }

    .footer-Contact
    {
        flex-direction: row;

    }

    .footer-Contact p
    {
        margin: 0;
    }

    .project-responsive {
        width: 100%;
    }

    /* MOBILE LAYOUT FOR PROJECT-BIG - IMAGE ON TOP, DESCRIPTION BELOW */
    .project-big {
        display: flex;
        flex-direction: column; /* Stack vertically */
        height: auto; /* Let height adjust to content */
        padding: 1rem;
        gap: 1rem; /* Space between image and description */
    }

    /* Reset all main containers for mobile */
    .projectBig-main,
    .projectBig-main-one,
    .projectBig-main-two {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    /* Make image responsive */
    .projectBig-img {
        width: 50% !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Reset description for mobile */
    .projectBig-desc,
    .projectBig-desc-Second {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center;
    }

    /* Reset text container */
    .projectBig-Text,
    .projectBig-Text-Second {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column; /* Stack content vertically */
        padding: 0 !important;
        margin: 0 !important;
        gap: 0.2rem;
        right: 0;
    }

    /* Stack text description and skills side by side */
    .projectBig-TextDesc {
        width: 90%;
        height: auto;
        position: relative;
        text-align: center;
    }

    .projectBig-TextSkills {
        width: 100% !important;
        border-left: none !important;
        border-top: 2px solid #dfd1c1; /* Change border to top for mobile */
        white-space: normal; /* Allow text to wrap */
        margin: 0;
    }

    /* Adjust title positioning */
    .projectBig-TitleHead {
        position: relative;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .projectBig-Title {
        font-size: 1.2rem !important;
        margin: 0.5rem 0;
    }

    .projectBig-TitleType,
    .projectBig-TitleWhat {
        font-size: 0.7rem;
    }

    /* Adjust GitHub icon positioning */
    .project-github-icon {
        width: 1.5rem;
        position: relative !important;
        margin-top: 0.5rem;
    }

    .project-github-icon-left,
    .project-github-icon-left-up {
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }

    .projectBig-TestSkills-title {
        padding: 0;
        font-size: 0.8rem;
    }

    .projectBig-TextSkills ul{
        padding: 0;
        font-size: 0.6rem;
    }

    .cv-UK{
        display: none;
    }
}

@media (min-width: 993px) {
    .header, .footer
    {
        font-size: large;

        height: 7%;
    }

    .footer-CV
    {
        /* width: 20%; */
    }

    .footer-Links
    {
        width: 20%;
    }

    .footer-Contact
    {
        flex-direction: row;

        /* width: 60%; */
    }

    .footer-Contact p
    {
        margin: 0;
    }

    .site-body-AboutMe p
    {
        font-size: x-large;
    }

    .project-responsive {
        width: 33.333333%;
    }
    .project-big {
        height: 20rem; 
        padding: 32px;
    }

    .projectBig-Title{
        font-size: larger;
    }

    .cv-UK{
        display: none;
    }
}

@media (min-width: 1200px) {
    .header, .footer
    {
        font-size: medium;

        height: 7%;
    }

    .footer-CV
    {
        /* width: 20%; */
    }

    .footer-Links
    {
        width: 20%;
    }

    .footer-Contact
    {
        flex-direction: row;

        /* width: 60%; */
    }

    .footer-Contact p
    {
        margin: 0;
    }

    .site-body-AboutMe p
    {
        font-size: x-large;
    }

    .project-responsive {
        width: 24.99999%;
    }
    .project-big {
        height: 20rem; 
    }
    .projectBig-Title{
        font-size: 1.25rem;
    }

    .project-github-icon{
        width: 3rem;
    }

    .cv-UK{
        display: flex;
    }
    
    .popup-window-title{
    font-size: 3rem;
    }

    .popup-window-title-type{ 
    font-size: small;
    }
}


@media (max-width: 600px) {
    .site-body{
        padding: 0% 5%;
    }

    .site-body-AboutMe p{
        width: 75%;
    }

    .header, .footer
    {
        font-size: 0.5rem;

        height: 5%;
    }

    .header-links{
        padding: 0px 10px;
    }

    .footer-CV
    {
        /* width: 25%; */
        padding-left: 0.2rem 0;
        padding-left: 0.5rem;

    }

    .footer-Links
    {
        width: 25%;
    }
    .footer-Contact
    {
        flex-direction: column;

        font-size: 0.6rem;
    }

    .footer-Contact p
    {
        margin: 5px 0;
    }

    .site-body-AboutMe p
    {
        font-size: xx-small;
    }
    
    .projects{
        gap: 1rem;
    }

    div.project {
        height: 300px;
    }

    div.desc{
        font-size: 0.8rem;
    }

    .project-responsive {
        width: 100%;
    }

    .projects-Title{
        font-size: 0.7rem;
    }

    /* MOBILE LAYOUT FOR PROJECT-BIG - IMAGE ON TOP, DESCRIPTION BELOW */
    .project-big {
        display: flex;
        flex-direction: column; /* Stack vertically */
        height: auto; /* Let height adjust to content */
        padding: 1rem;
        gap: 1rem; /* Space between image and description */
    }

    /* Reset all main containers for mobile */
    .projectBig-main,
    .projectBig-main-one,
    .projectBig-main-two {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    /* Make image responsive */
    .projectBig-img {
        width: 50% !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Reset description for mobile */
    .projectBig-desc,
    .projectBig-desc-Second {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center;
        font-size: medium;
    }

    /* Reset text container */
    .projectBig-Text,
    .projectBig-Text-Second {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column; /* Stack content vertically */
        padding: 0 !important;
        margin: 0 !important;
        gap: 0.2rem;
        right: 0;
    }

    /* Stack text description and skills side by side */
    .projectBig-TextDesc {
        width: 90%;
        height: auto;
        position: relative;
        text-align: center;
    }

    .projectBig-TextSkills {
        width: 100% !important;
        border-left: none !important;
        border-top: 2px solid #dfd1c1; /* Change border to top for mobile */
        white-space: normal; /* Allow text to wrap */
        margin: 0;
    }

    /* Adjust title positioning */
    .projectBig-TitleHead {
        position: relative;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .projectBig-Title {
        font-size: 0.7rem !important;
        margin: 0.5rem 0;
    }

    .projectBig-TitleType,
    .projectBig-TitleWhat {
        font-size: 0.7rem;
    }

    /* Adjust GitHub icon positioning */
    .project-github-icon {
        width: 1.5rem;
        position: relative !important;
        margin-top: 0.5rem;
    }

    .project-github-icon-left,
    .project-github-icon-left-up {
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }

    .projectBig-TestSkills-title {
        padding: 0;
        font-size: 0.8rem;
    }

    .projectBig-TextSkills ul{
        padding: 0;
        font-size: 0.6rem;
    }

    .project-arrow {
        display: none;
    }
    .cv-UK{
        display: none;
    }

    .projectBig-video{
        width: 100%;
    }

    .popup-window-button img{
            width: 25px;
            height: 25px;
    }

    .popup-window-description-example img{
        width: 80%;
        height: auto;
    }

    .popup-window-description-subtitles{
        font-size: x-large;
    }

    .Work-Title{
        font-size: 0.9rem;
    }

    .projects-Title{
        font-size: 0.8rem;
    }

    .site-body-AboutMe p
    {
        font-size: x-small;
    }
}

@media (min-width: 2200px) {
    .projectBig-TitleHead
    {
        font-size: 1.5rem
    }
    .projectBig-Title{
        font-size: 2rem
    }

    .project-github-icon{
        width: 5rem;
    }

    .header, .footer{
        font-size: xx-large
    }

    .site-body-AboutMe p{
        font-size: 3rem;
    }

    .Work-Title
    {
        font-size: xx-large;
    }

    .project-big{
        height: 30rem;
    }

    .projectBig-TestSkills-title{
        font-size: 2rem;
    }

    .projectBig-TextSkills ul{
        font-size: 1.5rem;
    }

    .projectBig-img{
        height: 75%;
    }
}