@import url("https://use.typekit.net/azp4gbd.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "baskerville-display-pt", sans-serif;
    font-weight: 400;
    font-style: normal;
}

p {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    color: #c8c0c4;
}

b {
    font-weight: 700;
}


.hero {
    width: 100%;
    height: 100vh;
    background: url('../images/3.1bggif.gif') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header {
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
    font-size: 1.2rem;
}


.menu {
    cursor: pointer;
    font-size: 1.4rem;
}

.hamburger-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255);
    color: black;
    display: flex;
    align-items: center;
    text-align:center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: black;
}


.hamburger-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Style for the hamburger menu items */
.hamburger-menu .menu-items div {
    position: relative;
    padding: 10px;
    transition: color 0.3s ease-in-out;
    /* Transition for text color */
}

.hamburger-menu .menu-items div:hover {
    background: linear-gradient(to right, #A29090, #B4B1BC);
    color: white;
    background-size: 100% 100%;
    background-position: 0 0;
    transition: opacity 0.5s ease-in-out;
}

a {
    text-decoration: none;
    color: inherit;

}


.split-screen {
    display: flex;
    flex-direction: row;
    /* Ensures left and right split */
    /* height: 100vh; */
    width: 100%;
    color: #f2f0f1;
}

.left {
    width: 20%;
    padding: 4%;
    background-color: black;
    display: flex;
    flex-direction: column;
    border-right: #A29090 0.25px solid;


}

.left h2 {
    margin-top: 5%px;
    font-size: 1rem;

}

.left p {

    color: #c8c0c4;
    font-size: 1rem;
}

.right {
    width: 80%;
    padding-left: 6%;
    padding-right: 6%;
    padding-top: 5px;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align content to the top */
}

.right h2 {
    font-size: 3rem;
}

.title{
width:70%;
}

.task-1-firstimage {
    padding-top: 15px;
    padding-bottom:50px;
}

.responsive-video {
    width: 100%;
    /* max-width: 600px;*/
    height: auto;
    display: block;
    margin: 0 auto;
    /* center the video */
}


.p5-desccontainer {
    margin-top: 60px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    font-family: 'Inter', sans-serif;
    line-height: 1.3rem;


}

.p5-desclefttag {
    border-top: 0.5px solid #f2f0f1;
    flex-basis: 350px;
    /* This allows it to grow in a flex context */
    flex-shrink: 0;
    /* Prevent it from shrinking */
    font-size: 0.85rem;
    font-weight: 500;
    padding-top: 5px;
    color: #f2f0f1;

}

.p5-descbox {
    padding-top: 5px;
    font-weight: 300;
    color: #c8c0c4;
}

.p5-smalltag {
    font-size: 0.8rem;
    line-height: 1.15rem;
    width: 230px;
    margin-right: 10px;
    color: grey;
    float: left;
    padding-bottom: 5px;
}

.p5-desc {
    float: none;

}

/* second content */
.multi-page-section {
    
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom:70px;
  }
  
  .hover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hover-text{
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size:0.9rem;
    top: 0;
    left: 0;
    width: 100%; /* ensures it stays within card */
    height: 100%;
    text-align: center;
    word-wrap: break-word;       /* wrap long words */
    overflow-wrap: break-word;   /* prevent text overflow */
    box-sizing: border-box;  
}

.hover-card audio {
    width: 100%;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
}
  .page-content-container {
    position: relative;
    overflow: hidden;
  }
  
  .page-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    transition: opacity 0.5s ease;
  }
  
  .page-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  
  
  .left-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hover-card {
    position: relative;
    background: #e0e0e0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    overflow: hidden;
    cursor: pointer;
  }
  
  .hover-card .hover-text {
    position: absolute;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
  }
  
  .hover-card:hover .hover-text {
    opacity: 1;
  }
  
  .right-description h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .right-description p {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    color: #c8c0c4;
    font-size: 1rem;
  }
  
  .nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;

  }
  
  .nav-buttons button {
    background: none;
    color:white;
    padding: 5px 15px;
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  /* third content */
  /* 2x2 Grid Layout */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    position: relative;
}

/* Hover effect */
.image-item {
    position: relative;
    overflow: hidden;
    
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
   
}

.image-item:hover img {
    transform: scale(1.05);
}

.bottomimage{
  padding-bottom:50px;
}
.bottomimage img{
  width:80%;
  height: auto;
  display: block;
  margin: 0 auto;
}


  /* Responsive */
  @media (max-width: 768px) {
    .page-content {
      grid-template-columns: 1fr;
    }
    .left-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .thumbnail-gallery{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    position: relative;
    padding-bottom:100px;
  }
  .thumb{
    position: relative;
    overflow: hidden;
  }

  .thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;

  }
  .thumb:hover img {
    transform: scale(1.05);
}
  .modal.hidden {
    display: none;
  }
  
  .modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: auto; /* Enable scrolling if content overflows */
  }
  
  .modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh; /* Restrict the height */
    background: #ffffff;
    padding: 2rem;
    overflow: auto; /* Allow for scrolling if content is larger than the modal */
    box-sizing: border-box;
  }
  
  .close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    color: rgb(0, 0, 0);
    cursor: pointer;
  }
  
  .grid-container {
    margin-top:40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1rem;
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent image overflow */
  }
  
  .grid-container .description-box {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 1rem;
    font-size: 1rem;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  
  .grid-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the image fits within the container without distortion */
    display: block;
    margin: 0 auto; /* Center the image inside its container */
    border: 0.25px black solid;
  }
  