html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: sans-serif;
}

/* --- PARALLAX STYLES --- */
.parallax, .parallax2 {
    background-image: url(Nature_Portfolio.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 1px;
}
.parallax {
    height: 100vh;
}
.parallax2 {
    height: 50vh;
    position: relative;
}

/* --- NAVIGATION --- */

/* Background bar appears on scroll */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: gray;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.navbar.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Always-visible nav content */
.navbar-content {
    position: fixed;
    top: 0;
    width: 95%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 30px;
    z-index: 1001;
    background: transparent;
    flex-wrap: nowrap;
}

.name {
    font-size: 1.5rem;
    font-weight: 100;
    color: white;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    font-size: 1.5rem;
    color: white;
}
.nav-links a:hover {
    text-decoration: underline;
}



.About, .Projects, .Contact {
    text-decoration: none;
    font-size: 1.5rem;
    color: white;
}
.About:hover, .Projects:hover, .Contact:hover {
    text-decoration: underline;
}

/* --- MAIN HEADERS --- */
.titlename {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 100;
    color: white;
}
.intro {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 100;
    color: white;
}

/* --- CONTENT SECTIONS --- */
.currently {
    text-align: center;
    padding: 5vh 5vw;
    height: auto;
}
.projects {
    text-align: center;
    background-color: rgb(240, 239, 239);
    height: auto;
    padding: 5vh 5vw;
}
.project-tit {
    font-size: 2.5rem;
    font-weight: 900;
    color: black;
    margin-top: 10px;
}

/* --- CURRENTLY SECTION LAYOUT --- */
.currently-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: black;
    text-align: center;
    margin-top: 10px;
}
.currtit, .prevtit, .inttit {
    font-size: 1.5rem;
    font-weight: 100;
    color: black;
    text-align: left;
    margin-top: 4vh;
}
.currently-list, .previously-list, .interests {
    font-size: 1rem;
    font-weight: 100;
    color: black;
    text-align: left;
    margin-top: 1vh;
    line-height: 200%;
}

/* --- IMAGE --- */
.currently img.climbing {
    width: 25vw;
    max-width: 100%;
    height: auto;
    float: left;
    margin: 5vh 5vw 0 5vw;
}

/* --- BUTTONS --- */
.linkedin, .resume {
    display: inline-block;
    padding: 10px 20px;
    background-color: lightgreen;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin: 2vh 0vw;
}
.linkedin:hover, .resume:hover {
    background-color: green;
    color: white;
}

/* --- CONTACT SECTION --- */
.email {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 500;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
}
.pemail {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
}
.linkicon {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.linkicon:hover {
    color: rgb(165, 162, 162);
}
.tm {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
}

/* --- LINKS --- */
.org {
    color: #2a7ae2;
    font-weight: 500;
    text-decoration: none;
}
.org:hover {
    text-decoration: underline;
    color: #1a5cb8;
}

/* -----------------------
   RESPONSIVE STYLING
------------------------ */
@media screen and (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        height: auto;
        padding: 10px;
    }

    .name, .About, .Projects, .Contact {
        position: static;
        font-size: 1.2rem;
        margin: 0.5rem;
    }

    .titlename, .intro {
        position: static;
        transform: none;
        text-align: center;
        font-size: 2rem;
        margin: 1rem;
    }

    .currently img.climbing {
        float: none;
        display: block;
        margin: 2vh auto;
        width: 90%;
        height: auto;
    }

    .currently-title, .currtit, .prevtit, .inttit,
    .currently-list, .previously-list, .interests,
    .linkedin, .resume {
        position: static;
        margin: 1rem auto;
        text-align: center;
    }

    .linkedin, .resume {
        display: block;
        width: 80%;
    }

    .email, .pemail, .linkicon, .tm {
        position: static;
        transform: none;
        text-align: center;
        margin: 1rem auto;
    }
}

/*Project Grid*/
.project-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.project-tile{
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.project-tile img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-tile:hover img{
    transform: scale(1.05);
}
.project-title{
    position: absolute;
    bottom:0;
    left:0;
    right:0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-tile:hover .project-title{
    opacity: 1;
}
/*Modal Styling*/
.project-modal{
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}
.modal-content {
    max-width: 1000px;
    margin: 50px auto;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    color: white;
    position: relative;
}
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
}
.modal-images {
  display: flex;
  gap: 5px; /* space between images */
  flex-wrap: wrap; /* wraps on small screens */
  justify-content: center; /* center horizontally */
  align-items: center;
  margin-top: 20px;
}
.modal-images img {
  border-radius: 5px;
  box-sizing: border-box;
  object-fit: cover;
}
.currently-flex-container {
  display: flex;
  align-items: center; /* keeps top edges aligned */
  justify-content: center; /* centers horizontally */
  gap: 30px;
  flex-wrap: nowrap;
  max-width: calc(100% - 10vw); /* optional: constrain total width */
  margin: 0 auto; /* center the flex container itself */
}

.currently-flex-container img.climbing {
  width: 25vw;
  max-width: 100%;
  height: auto;
  float: none; /* remove float */
  margin: 0; /* remove margin, flex controls spacing */
}
.currently-text {
  flex: 1; /* take remaining space */
  text-align: left; /* keep text aligned left within its box */
}
