* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:linear-gradient(to right, #141E30 , #243B55);
    color: white;
}
html {
    scroll-behavior: smooth;
}
#navbar {
    position: sticky;
    z-index: 10;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(to right, #141E30 , #243B55);
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid white;
}
#navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    padding:10px;
    font-size: 1.1rem;
    border-radius: 3px;
    transition: background-color 0.5s ease-in-out;
}
#navbar a:hover {
    background-color: #243B55;
}
#welcome-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 90vh;
    background: linear-gradient(to right, #141E30 , #243B55);
}
h1 {
    font-size: 4vw;
}
#welcome-section p {
    font-size: 1.5vw;
    font-weight: lighter;
    color: #FF5733;
}
#projects {
    background: linear-gradient(to right, #cb2d3e , #FF5733);
}
#projects header {
    text-align: center;
    color: white;
    text-decoration: underline;
    text-underline-offset: 10px;
    font-size: 1.8vw;
    padding-top: 5vh;
    margin: 5vh;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    justify-items: center;
}
.project-tile {
    background: linear-gradient(to left, #141E30 , #243B55);
    margin: 10px;
    border: 2px solid black;
    width: 25vw;
}
.project-tile:hover {
    background: linear-gradient(to left, #141E30 , #141E30);
}
img {
    width: 100%;
}
.project-tile a {
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 1.5vw;
}
.project-tile p {
    padding: 20px;
    transition: color , 0.5s ease-in-out;
}
.project-tile p:hover {
    color: #FF5733;
}
#contact header {
    text-align: center;
    font-size: 3vw;
    font-weight: 600;
    padding-top: 15vh;
}
#contact p {
    text-align: center;
    font-size: 1vw;
    color: #FF5733;
    padding-bottom: 5vh;
}
#contact .social-media a {
    display: flex;
    text-decoration: none;
    color: white;
    margin: 1vw;
    text-decoration: underline;
    text-underline-offset: 0.9vh;
    transition: color 0.5s ease-in-out , transform 0.5s;
    font-size: 1.9vw;
}
#contact .social-media a:hover {
    color: #FF5733;
    transform: scale(1.2);
}
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 15vh;
}
.social-media img {
    margin: 0 .9vw;
    width: 3vw;
}
.copyright {
    border-top: 1px solid white;
}
.copyright p {
    text-align: center;
    color: white;
    font-size: 1.2vw;
    margin: 10px 0;
}
a {
    color: inherit; 
}


@media screen and (max-width:600px) {
    #navbar a {
        font-size: 0.8rem;
    }
    #welcome-section p {
        font-size: 1.8vw;
        font-weight: normal;
    }
    #contact p {
        font-size: 1.5vw;
    }
}

@media screen and (max-width:260px) {
    #navbar a {
        font-size: 0.5rem;
    }
    .project-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .project-tile {
        width: 35vw;
    }
}