:root {
      --bg: lightblue;
      --accent: #1f6feb;
      --max-w: 1000px;
      --gap: 1rem;
    }

    body {
      margin: 0;
      font-family: monospace;
      background: var(--bg);
      line-height: 1.5;
      color: #111;
    }
    
    h1 + p.contact {
        margin-top: 0;
    }
    .container {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 1rem;
    }

    header {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      border-bottom: 2px solid rgba(0,0,0,0.1);
      padding-bottom: 1rem;
    }
    header h1 {
      font-family: "Courier New", monospace;
      margin: 0;
    }
    .contact {
      text-align: center;
    }
    .contact a {
      color: var(--accent);
      text-decoration: none;
      font-family: monospace;
    }
    .avatar {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
    }
    .linkedin {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 0.5rem;
      font-size: 14px;
    }
    .linkedin img {
      width: 20px;
      height: 20px;
    }

    .profile-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
    }


    section {
      margin: 2rem 0;
    }
    section h2 {
      margin-bottom: 0.5rem;
    }

    ul {
      padding-left: 1.2rem;
    }

  
    .skills ul {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0.5rem;
      list-style: none;
      padding: 0;
    }
    .skills li {
      background: #fff;
      padding: 0.5rem 0.75rem;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

 
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
    }
    .gallery-grid img {
      width: 100%;
      border-radius: 6px;
      filter: blur(2.5px);          
      transition: filter 0.3s ease; 
    }

    .gallery-grid img:hover {
      filter: blur(0);            
    }

    @media(min-width: 768px) {
      header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
      .contact {
        text-align: right;
      }
    }

/* code gifted by a YT short */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3498db;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}


#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3498db;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 2.5s ease;
}

#loader::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 5px solid white;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

