/* --- Reset and body styles --- */
@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace+SC&family=Stack+Sans+Text:wght@200..700&display=swap');

body {
  margin: 0;
  background-color: #ede4e5;
  color: black;
  font-family: "Stack Sans Text";
  transition: background-color 0.6s ease-in-out;
overflow: hidden;
}

/* Desktop default */
main, .main-container {
  position: relative;
  top: 0;
}

/* --- Top nav --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: antiquewhite;
  backdrop-filter: blur(6px);
  /* border-bottom: 1px solid white;*/
  z-index: 51;
}

.nav-list {
  display: flex;
  align-items: baseline;
  padding: 0.64rem 2rem;
  list-style: none;
  margin: 0;
  width: 110%;
justify-content: space-evenly;
font-size: 10px;
box-sizing: border-box;

}



.nav-list li a {
  text-decoration: none;
  color: black;
}

.nav-list li a:hover {
  color: #d8b9bd;
}


.nav-list .logo,
.nav-list .year {
  color: #b59297;
  font-size: .6rem;
margin-top: 2px;
}

.nav-list .logo img {
position: fixed;
left: 10px;
margin-top: -16px;
width: 1.5rem;
}

.nav-list .name  {
margin-left: 124px;
}


/* --- Hero banner --- */
.hero-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 45vh;
  margin-top: 2rem;
}

.banner-track {
  display: flex;
  animation: scrollBanner 30s linear infinite;
  /* width will now be set dynamically by JS */
}

@keyframes scrollBanner {
  100% { transform: translateX(-50%); } /* move by half the track */
}

.banner-track img {
  height: 100%; /* Let the image keep its natural height */
  max-height: 45vh; /* Constrain to container if needed */
  width: auto;
  margin-right: 2rem;
}

.hero-title {
  font-size: 8vw;
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  position: fixed;
  margin-top: -10vh; 
  right: 10px;


}

.hero-title img {
width: 40vw;
position: fixed;
right: 122px;
top: 22%;
content: url('1.png')
 

}




/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 16rem;
  height: 100%;
  background-color: #fff9ebb3;
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 1.5rem;
  box-sizing: border-box;
  z-index: 50;
 
}



.sidebar a {
  color: inherit;
  text-decoration: none;
}



.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-item h2, .menu-item h3 {
  font-size: .8rem;
  font-weight: normal;
}




.menu-item span {
  letter-spacing: 3px;
  opacity: 0.6;
  text-align: center;
  flex: 1;
}

.menu-item p {
  color: #888;
font-size: .5rem;
}

.menu-slider { 
  width: 100%; 
  min-height: 14rem; /* Increased even more */
  overflow-x: hidden; 
  overflow-y: hidden; 
  position: relative;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
margin-bottom: -4.5rem;
}

.menu-track {
  display: flex;
  align-items: center;
  gap: 0;
  transition: transform 0.4s ease-in-out;
  position: relative;
}

.menu-track .slide-link {
  flex-shrink: 0;
  width: 95%; /* Increased to 95% - much larger */
  display: block;
}

.menu-track img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
}

.nav-button {
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  display: flex; /* Changed back to flex */
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  margin: 0;
  padding: 0 0.25rem;
  opacity: 1; /* Use opacity instead of display */
  pointer-events: auto;
}

.nav-button:hover {
  color: #000;
}

.nav-button:active {
  color: #666;
}

/* Hide buttons by default */
.nav-button {
  opacity: 0;
  pointer-events: none;
}

/* Show buttons when visible */
.nav-button.visible {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-footer {
  position: fixed;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0; 
}

.sidebar-footer h4 {
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove any padding */
  line-height: 1.5; /* Tight line height */
  font-size: 10px;
font-weight: 100;
}

.sidebar-footer a {
  text-decoration: none;
  color: black;
}

.sidebar-footer a:hover {
  color: #645759;
}

/* Sidebar hover highlight */
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 15px;
  position: relative;
  --highlight-top: 0px;
  --highlight-height: 0px;
}

.digital-highlight-box {
  position: absolute;
  left: -1.5rem;
  width: calc(100% + 3rem);
  height: 40px; /* adjust if needed to match your menu item height */
  top: 357px; /* adjust this value to position it correctly under "Digital" */
  background-color: #ede4e5;
  pointer-events: none;
  z-index: 0; /* behind everything */
}


.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

/* The sliding highlight box */
.sidebar-content::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  width: calc(100% + 3rem);
  top: var(--highlight-top);
  height: var(--highlight-height);
  background-color: var(--highlight-color);
  opacity: 0;
  transition: top 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.6s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.sidebar-content.highlight-active::before {
  opacity: 0.5;
}

/* When NOT active, no transition - instant hide */
.sidebar-content:not(.highlight-active)::before {
  opacity: 0 !important;
}



/* Footer hover styles */
.sidebar-footer h4 {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: 10px;
  font-weight: 100;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: color 0.2s ease;
}

/* Footer hover styles */
.sidebar-footer h4 {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: 10px;
  font-weight: 100;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: color 0.2s ease;
}

/* --- Main container --- */
.main-container {
  margin-left: 16rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
/*overflow>>>??*/

}

main {
  flex-grow: 1;
  padding: 3rem 2rem 2rem 1rem;
  height: 100vh;
  overflow: hidden;       /* LOCKS scrolling in both directions */
}

/* --- Digital Page Content as GRID --- */
.digital-content {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  grid-template-rows: auto 1fr; /* hero row + content row */
  max-height: 100%;
  height: 100%;
  align-items: start;     /* small internal padding only */
  box-sizing: border-box;
}
/* Normal column styling */

/* --- HERO IMAGE placed above columns 2 + 3 --- */
.hero-image {
  grid-column: 2 / 4;      /* spans column 2 AND 3 */
  width: 100%;
  aspect-ratio: 7/4;
  max-width: 43vw;
  margin: 0 0 1rem 0;
  justify-self: end;       /* align with right edge like column 3 */
  display: block;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Link styling */
.project-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  
}

/* Bullet line that appears on hover */
.project-item a::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 25%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background-color: black;
  transition: width 0.3s ease-in-out;
}

/* Hover effect */
.project-item a:hover {
  transform: translateX(10px);
  opacity: 0.6;
}

.project-item a:hover::before {
  width: 10px;
}

/* Column 1 (custom spacing + higher position) */
.content-column1 {
  grid-column: 1;
  padding-right: 8vw;
  margin-left: 4vw;
  margin-top: -15vw;
}

/* More spacing between items in column 1 */
.content-column1 .project-item {
  margin-bottom: 2rem;     /* larger gaps than the default */
}

.content-column1 h2 {
  margin-bottom: 2rem;
  font-size: 0.9rem; 
  font-weight: 100;  /* more space under the section title */
}

/* Keep the paragraph line-height normal */

/* --- Typography (unchanged from your file) --- */
.content-column h2 {
  font-size: 0.9rem;
  padding-top: 13px;
  margin-bottom: 2rem;
  margin-top: 0;
  font-weight: 100;
}

.project-item {
  margin-top: 18px;
  padding-right: 6vw;
}

.project-item h3 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.project-item p {
  font-size: 0.65rem;
  margin: 0;
  color: #666;
  line-height: 1.3;
}
/* --- Footer --- */
.footer {
  text-align: left;
  font-size: 0.5rem;
  color: #b5acac;
  padding: 1rem 1.5rem;
  bottom: 0;
  position: fixed;
  line-height: .1px;
background-color: rgba(237, 228, 229, 1);
}

/* --- Responsive --- */
@media (max-width: 768px) {

  body {
    overflow: visible;
  }
 main {
    height: 107vh;
    overflow-y: auto;  /* scrolling enabled on mobile */
    overflow-x: hidden;
  }
  
.sidebar {
    width: 40%; /* wider for visibility */
    font-size: 0.8rem;
    position: fixed;

  }

  .sidebar-content {
margin-top: -9px;
line-height: 50px;
}

 /* Sidebar adjustments */
  .main-container {
    margin-left: 40%;
height: auto;
 overflow-y: auto !important;  /* scrolling enabled */
    overflow-x: hidden;       
  }

  .sidebar p, 
  .sidebar img,
  .menu-slider, 
  .sidebar h3 {
    display: none;
  }

  /* Switch to one-column stack */
  .digital-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  padding-bottom: 55rem; 
  }

  /* Hero image sits above all columns on mobile */
  .hero-image {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: none;
margin-bottom: 35vh;
margin-top: 22px;
  }

  .content-column {
padding-left: 15px;}



  /* Your existing banners etc. preserved */
  .hero-banner {
    height: 100vh;
  }

  .footer {
    bottom: 0;
    padding-left: 1.25rem;

  }

  .menu-slider { max-height: 0 !important;}

  .nav-list .name {
    margin-left: .1px;
  }

  .banner-track { height: 100vh }

  .hero-title {
    z-index: 50;
    margin-top: -581px;
    padding-right: 3px;
  }

  .banner-track img {
    height: 100%;
    max-height: 98vh;
    width: auto;
    margin-right: 2rem;
  }

  .hero-title img {
    width: 49vw;
    position: fixed;
    right: 5.5%;
    top: 60%;
    content: url('7.png');
  }

.content-column1 {
  grid-column: 1;
  margin-top: -11rem;
  padding-right: 8vw;
margin-left: 4vw;
}

.content-column1 .project-item {
  margin-bottom: .5rem;     /* larger gaps than the default */
}


.digital-highlight-box {
  position: absolute;
  left: -1.5rem;
  width: calc(100% + 3rem);
  height: 72px; /* adjust if needed to match your menu item height */
  top: 218px; /* adjust this value to position it correctly under "Digital" */
  background-color: #ede4e5;
  pointer-events: none;
  z-index: 0; /* behind everything */
}


.content-column1 h2 {  
font-size: 0.8rem; 
margin-bottom: 5px;
}

.content-column h2 {
  font-size: 0.8rem;
margin-bottom: 5px;
}


.project-item h3 {
  font-size: 0.8rem;
  margin: 0 0 0.06rem 0;
}

.project-item p {
  font-size: 0.55rem;
  line-height: 1;
}

/* Disable hover animation on mobile */
  .project-item a {
    transition: none;
  }
  
  .project-item a::before {
    display: none;
  }
  
  .project-item a:hover {
    transform: none;

  }


 body::after {
    content: '';
    position: fixed;
    left: 43%;
    top: 53.51%;
    transform: translate(-50%, -50%);
    width: 2vw;          /* adjust width */
    height: 1px;          /* adjust thickness */
    background-color: black;  /* adjust color */
    z-index: 100;         /* adjust layer */
    pointer-events: none; /* won't block clicks */
  }
}