html {
    scroll-behavior: smooth;
}

div {
    z-index: 2;
}


p {
    display: flex;
    font-size: 26px;
    font-weight: 700;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: aliceblue;
    text-shadow: 2px 2px 5px rgb(138, 226, 226);
}

[id] {
    scroll-margin-top: 80px;
}

body {
    scroll-behavior: smooth;
    width: 99%;
    height: 2000px;
    margin: 0px;
    padding: 0px;
    background-color: rgb(120, 164, 214);
}

#MainTopBar {
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 2;
    width: 100%;
    height: 500px;

    margin-left: 5px;
    margin-top: 70px;

    background-color: rgb(209, 253, 255);
    border-radius: 20px;
    box-shadow: 0px 10px 20px rgb(66, 195, 255);
    
}

#MainBackgroundImage {
    position: absolute;
    width: 99%;
    height: 500px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 1;
    filter:blur(5px);
}

.TopBarRightContent1 {
    display: flex;

    margin-top: 5px;
    margin-bottom: 30px;

    font-size: 20px;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: aliceblue;
    text-shadow: 2px 2px 5px rgb(138, 226, 226);
}

.TopBarRightContent2 {
    display: flex;

    width: 600px;
    word-wrap: break-word; /* legacy */
    overflow-wrap: break-word; /* modern */
    color: aliceblue;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 10px;

    text-shadow: 2px 2px 5px rgb(138, 226, 226);
}

#TopBarLeftSide {
    display: flex;


    width: 30%;
    height: 100%;

    justify-content: center;
    align-items: center;
    flex-direction: column;

    
}

#TopBarLeftSide > p {
  color: aliceblue;
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  text-shadow: 2px 2px 5px rgb(138, 226, 226);
}

#profile_picture {
    width: 150px;
    height: 150px;
    border-radius: 75px;
    border-width: 2px;
    margin-bottom: 10px;
    z-index: 1;
    
    box-shadow: 0px 0px 20px rgb(68, 68, 68);
}

#TopBarRightSide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    height: 100%;

}

#Heading {
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 9999;

    top: 0px;
    right: 0px;
    left: 0px;
    height: 60px;

    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;

    background-color: rgb(46, 81, 156);
    backdrop-filter: blur(8px);
    box-shadow: 0px 2px 5px rgb(20, 20, 20);
}


#Heading_Name {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: aliceblue;
    text-shadow: 2px 2px 5px rgb(138, 226, 226);
    font-size: 20px;
    font-weight: bold;
    height: 100%;


    margin-left: 60px;
    margin-right: 700px;
    padding-top: 35px;
}

#Top_Projects, #Top_PastWorks, #Top_AboutMe {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: aliceblue;
    text-shadow: 2px 2px 5px rgb(138, 226, 226);
    font-size: 17px;
    font-weight: bold;
    height: auto;
    margin-right: 30px;
    cursor: pointer;

}

#About_Me {
    margin: 50px;
    margin-left: 50px;
    margin-top: 35px;
    font-size: 36px;
    color: aliceblue;
    text-shadow: 2px 2px 5px rgb(138, 226, 226);
    height:43px
}

#AboutMeInfo {
    margin-top: 10px;
    margin-left: 50px;
    margin-right: 50px;
    color: rgb(0, 0, 0);
    font-size: 8px;
    line-height: 1.6;

}

.Info {
    margin-top: 10px;
    color: aliceblue;
    text-shadow: 2px 2px 5px rgb(138, 226, 226);
    font-size: 20px;
    line-height: 1.6;
}

.PageTemplate {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;

    border-radius: 20px;
    
    background-color: rgb(1, 112, 177);
}

.PageTemplate2 {
    color: aliceblue;
    text-shadow: 2px 2px 5px rgb(138, 226, 226);

    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;

    border-radius: 20px;
    
    background-color: rgb(1, 112, 177);
}

#Projects {
    margin: 50px;
    margin-left: 50px;
    margin-top: 35px;
    color: aliceblue;
    text-shadow: 2px 2px 5px rgb(138, 226, 226);
    font-size: 36px;
    height:43px
}

.Project_Template {
    display: flex;
    flex-direction: row;
    align-items: center;
    border:solid;
    border-radius: 20px;
    border-width: 2px;
    width: 90%;
    height: 300px;
    background-color: rgb(65, 138, 180);
    margin-bottom: 30px;
}

.Project_Template_Description {
    display: flex;
    flex-direction:column;
    width: 60% ;
    height:100%;
}

.Project_Template_Description_Description {
    display: flex;
    align-items: center;
    justify-content: center;
    height:auto;
    margin-top: 100px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 20px;
    font-family: monospace;
}

.Project_Template_Description_Title {
    height: auto;
    font-size: 30px;
    font-family: monospace;
    font-weight: bold;

    margin-top: 10px;
    margin-left:20px;
}

.Project_Template_Showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    height: 100%;
    border-left: solid;

}

.Showcase_Video {
    width: 100%;
    height: 100%;
}



/* ------------------------------- /
/* 📱 MOBILE / SMALL SCREEN MODE   */
/* ------------------------------- */
@media (max-width: 768px) {
  /* Adjust top bar layout */
  #Heading {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  #Heading_Name {
    margin: 0;
    padding: 0;
    font-size: 18px;
  }

  #Top_Projects,
  #Top_PastWorks,
  #Top_AboutMe {
    margin: 5px 0;
    font-size: 15px;
  }

  /* Stack main top bar vertically */
  #MainTopBar {
    flex-direction: column;
    height: auto;
    margin-left: 0;
  }

  #MainBackgroundImage {
    height: 300px;
  }

  #TopBarLeftSide,
  #TopBarRightSide {
    width: 100%;
    border: none;
  }

  #TopBarLeftSide img {
    width: 100px;
    height: 100px;
  }

  .TopBarRightContent1 h1 {
    font-size: 20px;
    text-align: center;
  }

  .TopBarRightContent2 h1 {
    font-size: 14px;
    text-align: center;
    width: 90%;
  }

  /* About me section */
  .PageTemplate {
    width: 95%;
    height: auto;
  }

  .Info {
    font-size: 16px;
    margin-left: 10px;
    margin-right: 10px;
  }

  /* Projects layout stacks vertically */
  .Project_Template {
    flex-direction: column;
    height: auto;
  }

  .Project_Template_Description,
  .Project_Template_Showcase {
    width: 100%;
    border: none;
  }

  .Project_Template_Description_Title {
    font-size: 24px;
    text-align: center;
  }

  .Project_Template_Description_Description {
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
  }

  .Showcase_Video {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .PageTemplate2 {
    width: 95%;
    margin-top: 50px;
  }

  #Projects {
    font-size: 28px;
    text-align: center;
  }
}
/* ------------------------------- */
/* 📱 MOBILE / SMALL SCREEN MODE   */
/* ------------------------------- */
@media (max-width: 768px) {

  /* GENERAL FIXES */
  body {
    width: 100%;
    overflow-x: hidden;
    padding-top: 70px;
    margin: 0;
  }

  p {
    font-size: 18px;
  }

  h1,
  p,
  a,
  .Project_Template_Description,
  .Project_Template_Description_Description,
  .TopBarRightContent2 {
    overflow-wrap: break-word;
    word-break: break-word;
  }


  /* ---- TOP NAV ---- */
  #Heading {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 8px 0;
    text-align: center;
  }

  #Heading_Name {
    margin: 0;
    padding: 0;
    font-size: 16px;
    text-shadow: none;
    color: white;
  }

  #Top_Projects,
  #Top_PastWorks,
  #Top_AboutMe {
    margin: 6px 0;
    font-size: 14px;
  }

  /* ---- MAIN HEADER ---- */
  #MainTopBar {
    flex-direction: column;
    height: auto;
    margin-left: 0;
    box-shadow: 0px 0px 20px rgb(156, 156, 156);
  }

  .PageTemplate,
  .PageTemplate2 {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

  #MainBackgroundImage {
    width: 100%;
    height: 300px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    object-fit: cover;
  }

  #TopBarLeftSide,
  #TopBarRightSide {
  position: relative;
  z-index: 1;
  }

  #MainTopBar {
  position: relative;
  overflow: hidden;
}

  #TopBarLeftSide {
    width: 100%;
    padding: 15px 0;
  }

  #profile_picture {
    width: 100px;
    height: 100px;
  }

  #TopBarRightSide {
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .TopBarRightContent1 h1 {
    font-size: 20px;
  }

  .TopBarRightContent2 h1 {
    font-size: 14px;
    width: 100%;
  }

  /* ---- ABOUT ME ---- */
  .PageTemplate {
    width: 95%;
    height: auto;
    margin-top: 60px;
    padding-bottom: 20px;
  }

  #About_Me {
    font-size: 26px;
    margin-top: 20px;
  }

  .Info {
    font-size: 15px;
    margin: 8px 15px;
    line-height: 1.5;
  }

  /* ---- PROJECTS ---- */
  .PageTemplate2 {
    width: 95%;
    margin-top: 60px;
  }

  #Projects {
    text-align: center;
    font-size: 26px;
    margin-top: 20px;
  }

  .Project_Template {
    flex-direction: column;
    height: auto;
    width: 100%;
    margin-bottom: 35px;
  }

  .Project_Template_Description {
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .Project_Template_Description a {
  display: block;
  word-break: break-all;
  }

  .Project_Template_Description_Title {
    font-size: 22px;
    margin: 10px 0;
  }

  .Project_Template_Description_Description {
    font-size: 15px;
    margin: 10px;
  }

  .Project_Template_Showcase {
    width: 100%;
    border-left: none;
    padding: 10px;
  }

  .Showcase_Video {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
}