body {
    margin: 0;
    
}
html {
    scroll-behavior: smooth;
}

.home-part {
    position: relative;
    height: 100vh;
    background: url("../images/homescreen.jpg");
    background-repeat: no-repeat;
    background-size: cover;
   
    border-radius: 20px;
}
.opa-div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 23, 23,0.5);
    z-index: 0;
    
}


.navigation {
    position: absolute;
    z-index: 1;

    border-radius: 30px;
    height: 40px;
    width: 50%;
    background-color: rgba(140, 133, 146, 0.6);

    top: 20px;
    left: 30%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.navigation a {
    color: white;
    text-decoration: none;
    font-weight: bold;
     padding: 6px 24px 6px 24px;
}
.navigation a:hover{
    color: rgb(14, 13, 13);
    text-decoration: none;
    font-weight: bold;
    background-color: #8F7159;
    padding: 6px 24px 6px 24px;
    border-radius:15px ;

}

.welcome-div {
    position: absolute;
    z-index: 1;
    top: 15%;
    left: 7%;
    color: white;
    font-size: clamp(20px, 5vw, 75px);
    

}

.welcome-div h1 {
    font-size: clamp(30px, 5vw, 60px);
    margin-top: 15px;
}

.welcome-div p {
    font-size: clamp(16px, 2vw, 24px);
    margin: 10px 0;
}

.welcome-div a {
    padding:12px;
    border: none;
    background-color: #00bcd4;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-size: 30px;
}

.welcome-div a:hover {
    background-color: #0097a7;
    color: crimson;
}
#project-parts{
    background-color: white;
    border:  none;
    border-radius: 20px;
    min-height: 58vh;
    margin: 18px 14px 26px;
    padding: 12px 0 0;
    box-shadow:  4px 4px 5px rgba(0,0,0,0.3),
                -4px -4px 5px rgba(0,0,0,0.2),   
                4px -4px 5px rgba(0,0,0,0.2), 
                -4px 4px 5px rgba(0,0,0,0.2); 

}
    section {
      padding: 24px 34px;
      max-width: 820px;
      margin: auto;
    }

    section h2 {
      margin-top: 0;
      margin-bottom: 12px;
      font-size: 1.7rem;
    }

    section > p {
      line-height: 1.7;
    }

    .projects {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 18px;
    }

    .card {
      background: linear-gradient( to right, #1e293b, #0f172a);
      padding: 20px;
      border-radius: 18px;
      box-shadow: 0 12px 24px rgba(0,0,0,0.2);
      transition: transform 0.3s, box-shadow 0.3s;
      color: white;
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 35px rgba(0,0,0,0.28);
    }

    .project-card h3 {
      margin-top: 0;
      margin-bottom: 10px;
      font-size: 1.3rem;
    }

    .project-tag {
      display: inline-block;
      margin-top: 0;
      margin-bottom: 14px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: bold;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: rgba(59, 130, 246, 0.22);
      color: #93c5fd;
    }

    .project-description {
      color: #cbd5e1;
      margin-bottom: 16px;
      line-height: 1.6;
      font-size: 0.95rem;
    }



    .project-button {
      display: inline-block;
      text-decoration: none;
      color: white;
      font-weight: bold;
      padding: 10px 16px;
      border-radius: 12px;
      background:  #ef4444;
      font-size: 0.92rem;
    }

    .project-button:hover {
      background: #ea580c;
    }


@media (max-width: 768px) {
    .home-part {
        min-height: 100vh;
    }

    .navigation {
        width: calc(100% - 28px);
        left: 50%;
        transform: translateX(-50%);
        top: 20px;
        min-height: 44px;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 5px 10px;
    }

    .navigation a {
        padding: 7px 10px;
        font-size: 14px;
        border-radius: 10px;
        white-space: nowrap;
    }

    .welcome-div {
        top: 22%;
        left: 6%;
        right: 6%;
    }

    .welcome-div a {
        font-size: 22px;
    }

    section {
      padding: 20px 18px;
    }
}

@media (max-width: 480px) {
    .navigation {
        width: calc(100% - 36px);
        top: 22px;
        min-height: 40px;
        justify-content: space-between;
        padding: 4px 8px;
    }

    .navigation a {
        flex: 1 1 auto;
        text-align: center;
        font-size: 13px;
        padding: 7px 6px;
    }

    .welcome-div {
        top: 24%;
    }

    .welcome-div h1 {
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .welcome-div p {
        margin-bottom: 30px;
    }

    .welcome-div a {
        font-size: 19px;
        margin-top: 100px;
        padding:20px 20px 20px 20px;
    }
}  }
}
