/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: "Instrument Serif", serif;
    background-color: #ededed;
    color: #101010;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: relative;
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0),rgba(255, 255, 255, 0),rgba(255, 255, 255, 0),rgba(255, 255, 255, 0));

}

/* Navigation Bar */
nav.top-section {
    position: fixed;
width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(0, 0, 0, 0));
    box-sizing: border-box; /* Ensures padding doesn't exceed width */
    z-index: 3;

}

nav.top-section .home-button {
    text-decoration: none;
    color: #000;
    font-size: 1.4rem;
    margin-right: auto; /* Push the home button to the far left */
    transition: color 0.3s ease;
}

nav.top-section .home-button:hover {
    color: #707070;
}

nav.top-section .right-links {
    display: flex;
    gap: 80px; /* Keep spacing between "work" and "play" consistent */
}

nav.top-section .right-links a {
    text-decoration: none;
    color: #000;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

nav.top-section .right-links a:hover {
    color: #707070;
}
.links {
    margin-top: 2rem;
    margin-bottom: 2rem;

    display: flex;
    justify-content: space-between;}

.links a{
    text-decoration: none;
    color: #000;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}
.links a:hover{
    color: #707070;


}
/* Work Layout */
.work-layout {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    height: calc(100vh - 10vh); /* Adjust to fit the viewport minus nav height */
    overflow: hidden;
}

/* Work Title Section */
.work-title-container {
    flex: 0 0 auto; /* Retain size based on content */
    display: flex;
    align-items: flex-end;
    justify-content: left;
    /* background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); */
}

/* Projects Section */
.projects-container {
    flex: 1; /* Take up the remaining space */
    display: flex;
    justify-content: right;
    align-items: flex-start;
    overflow-y: auto; /* Enable vertical scroll */
    padding: 200px 25px 40px 0;
    z-index: 0;
    
}
.projects-container::-webkit-scrollbar {
    display: none;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    grid-gap: 40px;
    width: 90%; /* Adjust the grid width */
}
.grid-item {
    position: relative; /* Make grid-item the reference for absolute positioning */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #101010;
}

.grid-item-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-bottom: 5px; /* Space between the title and the image */
}

.date {
font-family:"Noto Sans", sans-serif;
    font-size: 0.8rem; /* Small size for the year */
    color: #808080; /* Grey color */
    position: absolute;
    top: 10px; /* Space from the top of the grid-item */
    right: 10px; /* Space from the right of the grid-item */
}

.grid-item-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: left;
    padding: 10px;
    background-size: cover;
    background-position: center;
    min-height: 260px;
    text-decoration: none;
    color: #101010;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Apply background images via CSS classes */
.mishti-cover {
    background-image: url('assets/images/mishticover1.jpg');
}
.echoes-cover {
    background-image: url('assets/images/echoes/echoescover.jpeg');
}
.tacto-cover {
    background-image: url('assets/images/tactotunescover.jpg');
}
.gi-cover {
    background-image: url('assets/images/gi/gicover.jpg');
}
.handinhand-cover {
    background-image: url('assets/images/hnhcover.jpg');
}
.dbp-cover {
    background-image: url('assets/images/dbpcover2.jpg');
}
.visorch-cover {
    background-image: url('assets/images/visorchcover1.jpg');
}
.rnz-cover {
    background-image: url('assets/images/rnz/rnz1.jpg');
}
.breakfast-cover {
    background-image: url('assets/images/breakfast/breakfast1.png');
}
.reel-cover {
    background-image: url('assets/images/reelcover.jpg');
}


.grid-item-title h3 {
    margin: 0;
    padding-bottom: 5px;
    font-weight: 300;
    font-size: 1.5rem;
}
.grid-item-image p {
    margin: 0;
    font-family: "Noto Sans", sans-serif;
    font-weight: 200;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.3s ease;
}
.grid-item-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: left;
    padding: 10px;
    background-size: cover;
    background-position: center;
    min-height: 260px;
    text-decoration: none;
    color: #101010;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Overlay gradient (initially hidden) */
.grid-item-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 1) 90%);
    opacity: 0;
    transition: opacity 0.3s ease;
}



/* Hover effect */
.grid-item-image:hover::after {
    opacity: 1; /* Show gradient overlay */
}

.grid-item-image:hover p {
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

/* .grid-item-image:hover {
    transform: scale(1.02);
} */

/* Bottom Section */
.bottom-section {
    height: 16.5vh;
    color: #2d2d2d;

    /* background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); */
    text-align: left;
    font-size: 6rem;
    padding: 40px 0 0px 40px;
}

/* Center Section (for index.html) */
.center-section {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-section .plus {
    color: #000;
    font-family:  "Instrument Serif" serif;
    font-size: 1.9rem;
    font-weight: 700;
    cursor: pointer; /* Change the cursor to a hand pointer */
    transition: color 0.3s ease transform 0.3s ease;
}

.center-section .plus:hover {
    color: #e55107;
    transform: scale(1.5);

}

/* Matter.js Canvas (for index.html) */
#matter-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Send the canvas behind other content */
}

@media (max-width: 1024px) {
    .projects-container {
        padding: 150px 20px 20px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }

    .grid-item-image {
        min-height: 220px;
    }

    .bottom-section {
        font-size: 4rem;
        padding-left: 20px;
    }

    nav.top-section .right-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav.top-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    nav.top-section .right-links {
        gap: 20px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .center-section .plus {
        font-size: 1.5rem;
    }

    .bottom-section {
        font-size: 3rem;
    }

    .main-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .image-container {
        width: 100%;
        max-width: 100%;
    }

    .text-container {
        padding-left: 0;
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        font-size: 1.2rem;
    }

    .experience-container {
        grid-template-columns: 1fr;
        bottom: 40px;
    }

    .text-container p {
        bottom: 0;
    }
}

@media (max-width: 480px) {
    .bottom-section {
        font-size: 2.5rem;
    }

    .grid-item-title h3 {
        font-size: 1.2rem;
    }

    nav.top-section .home-button,
    nav.top-section .right-links a {
        font-size: 1.2rem;
    }

    .footer-links {
        font-size: 1rem;
    }
}
