
@font-face {
    font-family: 'Standard';
    src: url('Fonts/Ubuntu-Regular.ttf') format('woff2'),
         url('Fonts/Ubuntu-Light.ttf') format('woff'),
         url('Fonts/Ubuntu-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  :root {
    --primary-color: #1E1F26;
    --secondary-color: #283655;
    --text-color: #999;
    --secondary-text-color: #b9b9b9;
    --background-color: #D0E1F9;
  }
  
  /* ----------- Reset & Base Styles ----------- */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Standard', sans-serif;
    color: var(--text-color);
    background: #f2f2f2;
    display: flex;
    flex-direction: column;
  }
  
  h1 {
    font-size: clamp(20px, 20vw, 30px);
    line-height: 115%;
    text-align: center;
    margin-top: 5vw;
    color: rgba(0, 0, 0, 0.863);
  }
  
  h3 {
    font-size: 1.4rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 16px;
  }
  
  /* ----------- Header / Navigation ----------- */
  header {
    width: 100%;
    z-index: 888;
    background-color: rgb(28, 32, 43);
    position: fixed;
  }

  .intro {
    padding-left: 1vw;
    padding-right: 1vw;
    margin-bottom: 20px;
    margin-left: 10vw;
    margin-right: 10vw;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
  nav {
    width: 100%;
  }
  
  nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  
  nav li {
    height: 60px;
  }
  
  nav a {
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: large;
  }
  
  nav a:hover {
    color: rgb(148, 143, 143);
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(28, 32, 43, 0.958);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .sidebar li {
    width: 100%;
  }
  
  .menu-button {
    display: none;
  }
  
  .hideOnMobile {
    display: block;
  }
  
  /* ----------- Main Container ----------- */
  .main-container.contact {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #2530a8, #3331b1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
  }
  
  .main-container.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(217, 217, 217, 0.937);
    z-index: -1;
  }
  
  .Contact_Image img {
    width: 180px;
    height: 100px;
    border-radius: 12px;
    padding: 10px;
    filter: grayscale(100%) contrast(0.9);
  }
  
  /* ----------- Content Styles ----------- */
  .project-details {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    line-height: 1.6rem;
    text-align: center;
  }
  
  .section-divider {
    width: 100%;
    height: 2px;
    background-color: #aaa;
    border: none;
    margin: 20px auto;
    opacity: 0.3;
  }
  
  .contact-text {
    text-align: justify;
    hyphens: auto;
    max-width: 900px;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(29, 28, 28, 0.87);
    margin: 40px auto;
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
  }
  
  .project-section {
    background: #ffffff55;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  
  .github-link img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 10px;
  }

  .linked-in-link img {
    width: 56px;
    height: 48px;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 10px;
  }


  .mail-link img {
    width: 54px;
    height: 54px;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 10px;
  }
  
  .mail-link img:hover,
  .github-link img:hover,
  .linked-in-link img:hover {
    transform: scale(1.25);
    cursor: pointer;
  }
  
  
  
  /* ----------- Impressum ----------- */
  #impressum {
    display: flex;
    background: #716d6d32;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 150px;
    padding: 20px;
  }
  
  #impressum h3 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    text-decoration: underline;
  }
  
  #impressum p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #272626;
    font-size: 12px;
    margin-left: 10%;
    margin-right: 10%;
  }
  
  /* ----------- Footer ----------- */
  .contact-footer {
    margin-bottom: 3vw;
    color: black;
    text-align: center;
    margin-top: 60px;
  }
  
  /* ----------- Responsive ----------- */
  @media (max-width: 768px) {
    .menu-button {
      display: block;
    }
  
    .hideOnMobile {
      display: none;
    }
  
    h1 {
      font-size: 1.6rem;
      margin-top: 7vw;
    }
  
    .intro {
        margin-bottom: 0px;
    }

    .project-details {
      padding: 20px;
      padding-left: 0;
      padding-right: 0;
      margin-left: 10vw;
      margin-right: 10vw;
    }
  
    .contact-text {
      padding: 10px 20px;
      line-height: 1.8rem;
    }
  
    .project-section h3 {
      font-size: 1.2rem;
    }
  
    .github-text {
      font-size: 0.95rem;
    }
  
    #impressum p {
      margin-left: 5%;
      margin-right: 5%;
    }
  }

  @media (max-width: 480px) {

    h1 {
        font-size: 1.6rem;
        margin-top: 2rem;
    }

    .intro {
        margin-bottom: 0px;       
    }

    .project-details {
      padding: 20px;
      padding-left: 0;
      padding-right: 0;
      margin-left: 6vw;
      margin-right: 6vw;
    }

    .contact-text {     
        margin: 10px 0px;    
      }

    #impressum {
        margin-top: 50px;    
      }

  }
  
  /* --------- LANDSCAPE ON MOBILE SUPPORT --------- */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .menu-button {
    display: block;
  }

  .hideOnMobile {
    display: none;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .intro {
    margin-bottom: 0;
  }


  .Contact_Image img {
    width: 160px;
    height: auto;
    margin-bottom: 10px;
  }

  .contact-text {
    font-size: 1rem;
    padding: 10px 15px;
  }

  .project-details {
    padding: 10px;
    margin-left: 80px;
    margin-right: 80px;
  }

  .project-section {
    padding: 15px;
  }

  #impressum p {
    font-size: 11px;
    margin-left: 5%;
    margin-right: 5%;
  }

  .mail-link img,
  .github-link img {
    width: 40px;
    height: 40px;
  }

  .github-text {
    font-size: 0.85rem;
  }
}

