html {
    scroll-behavior: smooth;
}

#vanta-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure it's behind all other elements */
}

/* navigation bar and its contents */
nav {
    background-color: lightseagreen;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-shadow: 0 4px 6px lightgrey;
    z-index: 10;
}

.nav-button {
    display: inline-block;
    background-color: lightgreen;
    text-align: center;
    border: 1.5px solid black;
    padding: 8px 10px;
    text-decoration: none;
    color: black;
    border-radius: 5px;
}

.nav-button:hover {
    background-color: green;
    color: yellow;
    transform: scale(1.2);
}

.links a img {
    width: 32px;
    height: 32px;
    margin: 0 10px;
    border-radius: 5px;
    transition: transform 0.3s;
}
  
.links a img:hover {
    transform: scale(1.2);
}


/* divided components into sections for better readability - as per the feedback */
.section {
    width: 95%;
    background-color: antiquewhite;
    padding: 15px;
    margin: 25px auto;
    box-shadow: 0 5px 5px grey;
    scroll-margin-top: 60px;
}


/* Main body */
.name {
    background-color: cyan;
    text-align:center;
}

#pfp {
    width:200px;
    height:300px;
    display:block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid lightgray;
}

/* images */
.image {
    width:200px;
    height:300px;
    display:block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 5px 5px 5px 2px grey;
}

/* photos */
.photos {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 20px;
}

.photos:hover img {
    opacity: 0.3;
    transition: 0.3s ease-in-out;
}

.photos div:hover img {
    opacity: 1; 
    transform: scale(1.2); /* made the image zoom larger than before - as per the feedback */
}

.photos div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description {
    position: absolute;
    background-color:darkslategrey;
    color: white;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 14px;
    text-align: center;
    bottom: -80px;
    z-index: 1000;
}

.photos div:hover .description {
    opacity: 1;
    transform: translateY(10px);
}

/* youtube video */
.my-youtube {
    display:block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 7px 7px 5px 2px grey;
}

hr {
    margin-top: -15px;
}

/* modified project header style to avoid confusion with main headers - as per the feedback */
.project {
    font-size: medium;
}

/* Form Styling */
form {
    max-width: 300px;
    margin: 20px auto;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 6px grey;
}

#connect-form input {
    width: 94%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid grey;
    border-radius: 5px;
}

#connect-form textarea {
    width: 94%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid grey;
    border-radius: 5px;
    resize: vertical;
    min-height: 15px;
    max-height: 150px;
}

#connect-form button {
    width: 100%;
    padding: 10px;
    background-color: darkseagreen;
    color: white;
    border: none;
    border-radius: 5px;
}

#connect-form button:hover {
    background-color: lightseagreen;
}
