/* =============================================================================
   Custom Font: Swiss721
   ========================================================================== */

   @font-face {
      font-family: "Swiss721";
      src: url("../assets/fonts/Swiss721Black.woff") format("woff");
      font-weight: 900;
      font-style: normal;
    }
    
    @font-face {
      font-family: "Swiss721";
      src: url("../assets/fonts/Swiss721Bold.woff") format("woff");
      font-weight: bold;
      font-style: normal;
    }
    
    /* =============================================================================
       HTML5 CSS Reset Minified - Eric Meyer
       ========================================================================== */
    
    html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video {
      margin: 0;
      padding: 0;
      border: 0;
      outline: 0;
      font-size: 100%;
      vertical-align: baseline;
      background: transparent;
    }
    body { line-height:1 }
    article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display:block }
    nav ul { list-style:none }
    blockquote,q { quotes:none }
    blockquote:before,blockquote:after,q:before,q:after { content:none }
    a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; text-decoration:none }
    mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold }
    del { text-decoration:line-through }
    abbr[title],dfn[title] { border-bottom:1px dotted; cursor:help }
    table { border-collapse:collapse; border-spacing:0 }
    hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0 }
    input,select { vertical-align:middle }
    li { list-style:none }
    
    /* =============================================================================
       My CSS
       ========================================================================== */
    
    /* ---- base ---- */
    html,body{ 
      width:100%;
      height:100%;
      background:#111;
    }
    
    html {
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    
    body {
      line-height: 1;
      font-family: "Swiss721", Arial, Helvetica, sans-serif;
      font-weight: normal;
    }
    
    canvas {
      display: block;
      /* vertical-align:bottom; */
    }
    
    /* ---- particles.js container ---- */
    #particles-js {
      width: 100%;
      height: 100%;
      background-color: #171d3c;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    
    /* ---- Profilbild & Text nebeneinander ---- */
    .profile-container {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    
    /* ---- Profilbild bleibt unverändert ---- */
    .foreground-img {
      position: absolute;
      top: 50%;
      left: 25%;
      transform: translate(0, -50%);
      width: clamp(100px, 20vw, 300px);
      height: auto;
      z-index: 10;
    }
    
    /* ---- Textcontainer ---- */
    .text-container {
      color: white;
      font-family: "Swiss721", sans-serif;
      position: absolute;
      top: 50%;
      left: 50%;
      text-align: left;
      transform: translate(0%, -50%);
      line-height: 1.2;
    }
    
    /* ---- Begrüßungstext ---- */
    .greeting {
      font-size: clamp(16px, 2vw, 25px);
      margin: 0;
      opacity: 0.8;
    }
    
    /* ---- Name ---- */
    .name {
      font-size: clamp(30px, 4vw, 60px);
      margin: 5px 0;
      font-weight: bold;
      color: #ffffff;
    }
    
    /* ---- Schreibanimation ---- */
    .typing-animation img {
      height: 30px;
    }
    
    /* Typing text container */
    .typing-container {
      display: inline-flex;
      align-items: center;
      font-size: clamp(16px, 2vw, 25px);
      color: rgb(134, 134, 134);
      font-family: "Swiss721", sans-serif;
    }
    
    /* Blinking cursor using pseudo-element */
    #typed-text::after {
      content: "_";
      animation: blink 1s infinite;
      color: rgb(134, 134, 134);
      font-weight: bold;
    }
    
    /* Cursor blinking effect */
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }
    
    /* Tablets & Small Laptops */
    @media (max-width: 1024px) {
      .text-container {
        width: 90%;
        font-size: 18px;
      }
      .foreground-img {
        width: 30vw;
      }
      .typing-container {
        font-size: 20px;
      }
    }
    
    /* Phones (Portrait Mode) */
    @media (max-width: 768px) and (orientation: portrait) {
      .profile-container {
        flex-direction: column;
        text-align: center;
      }
      .foreground-img {
        position: relative;
        left: 50%;
        transform: translate(75%, -30%);
        width: 35vw;
        margin-bottom: 10px;
      }
      .text-container {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(75%, 0%);
        width: 95%;
        margin-top: 20px;
        text-align: center;
      }
      .typing-container {
        font-size: 18px;
      }
    }
    
    /* Phones (Landscape Mode) */
    @media (max-width: 768px) and (orientation: landscape) {
      .profile-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
      }
      .foreground-img {
        position: relative;
        width: 25vw;
        transform: translate(-5%, 10%);
      }
      .text-container {
        position: relative;
        width: 60%;
        text-align: left;
        transform: translate(-10%, 10%);
      }
      .typing-container {
        font-size: 18px;
      }
    }
    
    /* Small Phones (Narrow Screens) */
    @media (max-width: 480px) {
      .foreground-img {
        width: 40vw;
        transform: translate(75%, -20%);
      }
      .name {
        font-size: 28px;
      }
      .greeting {
        font-size: 18px;
      }
      .typing-container {
        font-size: 16px;
      }
      .text-container {
        margin-top: 10px;
      }
    }    