* {
      margin: 0;
      scroll-behavior: smooth;
    }

    body{
      font-family: sans-serif;
      text-align: center;
    }

    h1{
      font-size: 60px;
    }

    #nav{
      display:flex;
      justify-content: center;
      position: fixed;
      top:0;
      width:100%;
      background-color: blueviolet;
      padding: 25px 0;
      font-size: 20px;
      font-weight: 800;
      border-bottom: 1px solid whitesmoke;
      z-index: 999;
    }

    #nav > ul  {
      display: flex;
      list-style: none;
    }

    .nav-link {
      display:flex;
      text-decoration: none;
      color: white;
      padding: 10px;
    }

    .nav-link a {
      color: white;
      padding: 0 10px;
    }

    .nav-link a:hover{
      text-decoration: underline;
    }

    section{
      min-height: 100vh;
      padding: 75px 0;
    }

    #welcome-section{
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 100vh;
      background-color: blueviolet;
      text-align: center;
      color: white;
    }

    #welcome-section h1{
      margin-top: 10vh;
    }

    #welcome-section p{
      font-size: 25px;
      margin: 25px;
      font-style: italic;
    }

    /* Apply offset fix only where needed */
    #about, #projects {
      position: relative;
      padding-top: 100px; 
      margin-top: -100px;
    }

    #about {
      background-color: #f8f9fa;
      color: #333;
      padding: 20px;
    }

    #about h2 {
      font-size: 40px;
      margin-bottom: 20px;
    }

    #about p {
      max-width: 900px;
      margin: 15px auto;
      font-size: 20px;
      line-height: 1.6;
    }

    #projects{
      background-color: white;
    }

    #projects .project-tile{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      padding: 20px;
      place-items: center;
      max-width: 1250px;
      margin: auto;
    }

    #projects .project-link{
      height: 350px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: 8px 8px 10px 8px rgba(100, 100, 100, 1);
      text-decoration: none;
    }

    .project-link{
        color: green;
    }

    #projects .project-link img{
      height: 100%;
      width: 100%;
      object-fit: fill;
    }

    #projects .project-link p {
      font-size: 25px;
      padding: 10px;
    }

    #contacts{
      background-color: blueviolet;
      color: white;
    }

    #contacts h1{
      margin-top: 100px;
    }

    #contacts .contact-action{
      font-size: 25px;
      margin: 25px;
      font-style: italic;
    }

    #contacts .socials{
      display: flex;
      flex-wrap: wrap;
      max-width: 1000px;
      justify-content: space-around;
      margin:auto;
      margin-top: 30px;
    }

    #contacts .social{
      text-decoration: none;
      color: white;
      transition: transform 0.2s ease-in;
      display: flex;
      align-items: center;
      margin: 25px;
      font-size: 25px;
    }

    #contacts .social:hover{
      transform: translateY(10px);
    }

    #footer-contacts {
      border-top: 1px solid whitesmoke;
      background-color: blueviolet;
      font-size: 16px;
      color: white;
      padding: 15px;
    }

    /* Scroll to top button */
    #scrollToTopBtn {
      position: fixed;
      bottom: 40px;
      right: 40px;
      display: none;
      background-color: blueviolet;
      color: white;
      border: none;
      padding: 12px 18px;
      font-size: 24px;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
      transition: opacity 0.3s ease;
    }

    #scrollToTopBtn.show {
      display: block;
    }

    @media only screen and (max-width: 699px) {
      #projects .project-title {
        height: 600px;
        width: 100%;
      }
    }