/********************************
 GLOBAL RESET + FONT
*********************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SuisseIntl', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'SuisseIntl';
  src: url('fonts/SuisseIntl-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/********************************
 BODY
*********************************/
body {
  background: white;
  color: black;
  overflow-x: hidden;
}

/********************************
 TOP BAR
*********************************/
.top-bar {
  position: sticky;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 10px;
}

.top-bar-2 {
  position: static;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 40px 0px 10px 10px;
}

.top-bar-3 {
  position: static;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 10px 0px 10px 10px;
}

.top-text {
  width: calc(100% - 5px);
  margin: 0 auto;
  font-size: 19px;
  line-height: 126%;
  pointer-events: none;
}

.top-text-2 {
  width: calc(100% - 5px);
  margin: 0 auto;
  font-size: 19px;
  line-height: 126%;
  pointer-events: none;
}

.central-text {
  width: calc(100% - 5px);
  margin: 0 auto;
  font-size: 19px;
  line-height: 126%;
  pointer-events: none;
  padding: 10px 10px 10px 10px;
}

.top-text-3 {
  width: calc(100% - 5px);
  margin: 0 auto;
  font-size: 19px;
  line-height: 126%;
  /* Remove pointer-events: none; if it's there, otherwise the hover won't trigger! */
  cursor: none; /* Add this */
}

/********************************
 BOTTOM NAVIGATION — GRID ALIGNED
*********************************/
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: transparent;
  padding: 12.5px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;

  z-index: 1000;
}

.bottom-nav a {
  text-decoration: none;
  font-size: 19px;
  transition: color 0.2s ease;
  white-space: nowrap;
  color: #cecece; /* Default inactive color */
}

.bottom-nav .nav-link[aria-current="page"] {
  color: #000; /* Active page color */
}

.bottom-nav .nav-link:hover {
  color: grey;
}

/* Column alignment */
.bottom-nav a:nth-child(1) {
  text-align: left;
}

.bottom-nav a:nth-child(2),
.bottom-nav a:nth-child(3) {
  text-align: center;
}

.bottom-nav a:nth-child(4) {
  text-align: right;
}

/* About page override */
.about-page .bottom-nav {
  background: white;
}




/********************************
 MAIN CONTENT
*********************************/
.content {
  padding: 0 10px 10px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.content::-webkit-scrollbar {
  display: none;
}

/********************************
 GRID / COLUMNS
*********************************/
.columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/********************************
 MEDIA BLOCK
*********************************/
.media {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.media img,
.media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/********************************
 INFO OVERLAY
*********************************/
.media .info-box {
  position: absolute;
  font-size: 16px;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.media .info-box span {
  display: block;
  color: white;
  mix-blend-mode: exclusion;
  filter: brightness(0.2) contrast(2.7) saturate(1.5);
}

.media:hover .info-box {
  opacity: 1;
}

/********************************
 SECTIONS / ROWS
*********************************/
.sections-wrapper {
  margin: 0 12.5px;
}

.section-title {
  font-size: 16px;
  font-weight: normal;
  color: black;
  margin: 80px 0 2px;
}

.section-divider {
  height: 0;
}

.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 16px;
  padding: 2px 0;
}

.row div {
  padding: 0;
}

.section-bottom {
  display: block;
  padding: 50px 0;
  text-decoration: none;
}

/********************************
 BOTTOM BAR (SECONDARY NAV)
*********************************/
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 25%;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: start;
  padding: 0 0 35px 12.5px;
  z-index: 999;
}

.bottom-bar a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
}

.bottom-bar-link {
  color: #cecece;
  font-size: 19px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.bottom-bar-link:hover {
  color: grey;
}

/********************************
 ANIMATIONS
*********************************/
.dissolve {
  transition: opacity 2s ease;
  opacity: 0;
}

/********************************
 RESPONSIVE
*********************************/
@media (max-width: 900px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }

  .section-divider {
    height: 10px;
  }
}

@media (max-width: 768px) {
  .columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-text,
  .bottom-nav a {
    font-size: 14px;
  }


  .central-text {
 
  font-size: 14px;
  
}

  .top-text-2,
  .bottom-nav a {
    font-size: 14px;
  }
   .top-text-3,
  .bottom-nav a {
    font-size: 14px;
  }

  .media .info-box span {
    font-size: 12px;
  }

  .content {
    padding: 0 10px 10px !important;
  }

  .bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 50%;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: start;
    padding: 0 0 35px 12.5px;
    z-index: 999;
  }

  .bottom-bar-link {
    color: rgba(134, 134, 134, 0.373);
    font-size: 14px;
    line-height: 1.2;
    transition: color 0.3s ease;
  }

  /* Keep tablet layout */
  .row {
    grid-template-columns: 1fr 1fr;
  }

  /* Reduce text sizes only */
  .section-title {
    font-size: 12px;
  }

  .row {
    font-size: 12px;
  }
}



















/********************************
 PROJECT SECTION
*********************************/
.project-section {
  display: block;
  width: 100%;
  padding: 12.5px 12.5px;
  border-top: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
}

/********************************
 TEXT ROW — 4 EQUAL COLUMNS
*********************************/
.project-text {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  width: 100%;
  margin-bottom: 24px;
}

.project-text > div {
  font-size: 19px;
  color: #cecece;
  white-space: nowrap;
}

.project-text-2 {
  display: grid;
  position: fixed;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  width: 100%;
  margin-bottom: 0px;
  padding: 12.5px;
}

.project-text-2 > div {
  font-size: 19px;
  color: #000000;
  white-space: nowrap;
}

/* Column-specific alignment */
.project-text > div:nth-child(1) {
  text-align: left;
}

.project-text > div:nth-child(2),
.project-text > div:nth-child(3) {
  text-align: center;
}

.project-text > div:nth-child(4) {
  text-align: right;
}


/* Column-specific alignment */
.project-text-2 > div:nth-child(1) {
  text-align: left;
}

.project-text-2 > div:nth-child(2),
.project-text-2 > div:nth-child(3) {
  text-align: center;
}

.project-text-2 > div:nth-child(4) {
  text-align: right;
}


/********************************
 MEDIA ROW — SAME 4 COLUMNS
*********************************/
/********************************
 MEDIA ROW — SAME 4 COLUMNS
*********************************/
/********************************
 MEDIA ROW — FULL WIDTH DISTRIBUTION
*********************************/
.project-media {
  display: grid;
  grid-auto-flow: column;         /* place items in a single row */
  justify-content: space-between; /* first item left, last item right */
  align-items: stretch;
  gap: 20px;                      /* space between items */
  width: 100%;
}

.project-media > div {
  height: 200px;           /* fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-media img,
.project-media video {
  height: 100%;  /* fill container height */
  width: auto;   /* maintain aspect ratio */
  display: block;
}


/********************************
 OPTIONAL HOVER
*********************************/
.project-section:hover .project-text > div {
  color: grey;
}
.project-text > div {
  font-size: 19px;
  color: #cecece;
  white-space: nowrap;
  transition: color 0.2s ease;
}



@media (max-width: 768px) {

  /* --- Text Row --- */
  .project-text > div {
    display: none;
    font-size: 14px; /* hide all text items by default */
  }

  /* Show only first two text items */
  .project-text > div:nth-child(1),
  .project-text > div:nth-child(2) {
    display: block;
    width: 50%; /* each takes half the width */
  }

  /* Align first text left, second text right */
  .project-text > div:nth-child(1) {
    text-align: left;
  }

  .project-text > div:nth-child(2) {
    text-align: right;
  }

  /* Flex container to distribute text items */
  .project-text {
    display: flex;
    justify-content: space-between; /* first left, second right */
  }

  /* --- Media Row --- */
  .project-media > div {
    display: none; /* hide all media items by default */
  }

  /* Show only first and last media items */
  .project-media > div:first-child,
  .project-media > div:last-child {
    display: flex;
    width: 50%; /* each takes half the width */
  }

  /* Align first image fully left, last image fully right */
  .project-media > div:first-child {
    justify-content: flex-start;
  }

  .project-media > div:last-child {
    justify-content: flex-end;
  }

  /* Flex container to distribute media items */
  .project-media {
    display: flex;
    justify-content: space-between; /* first left, last right */
    gap: 0;
  }

  /* Images/videos scale to fill height, maintain aspect ratio */
  .project-media img,
  .project-media video {
    height: 100%;
    width: auto;
    display: block;
  }


    .project-text-2 > div {
    display: none;
    font-size: 14px; /* hide all text items by default */
  }

  /* Show only first two text items */
  .project-text-2 > div:nth-child(1),
  .project-text-2 > div:nth-child(2) {
    display: block;
    width: 50%; /* each takes half the width */
  }

  /* Align first text left, second text right */
  .project-text-2 > div:nth-child(1) {
    text-align: left;
  }

  .project-text-2 > div:nth-child(2) {
    text-align: right;
  }

  /* Flex container to distribute text items */
  .project-text-2 {
    display: flex;
    justify-content: space-between; /* first left, second right */
  }

}



/* --- PAGE BACKGROUND --- */
body.cv-page {
  /* Replace #FFFFFF with the exact color of your CV background */
  background-color: #f5f5f5; 
  margin: 0;
}

/* --- MOBILE FIRST --- */
.cv_1 {
  width: 100%;
  margin: 0;
  line-height: 0;
  font-size: 0;
  display: block;
  position: relative; 
  overflow: hidden; 
}

.cv_1 img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease; 
  transform-origin: center center;
  user-select: none; 
  -webkit-user-drag: none;

}

.zoom-controls {
  display: none; 
}

/* --- DESKTOP --- */
@media (min-width: 768px) {
  .cv_1 {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed background-color here so the body color shows through */
    background-color: transparent; 
  }
  
  .cv_1 img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain; 
  }

  .zoom-controls {
    display: flex;
    gap: 15px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); 
    z-index: 10;
  }

  .zoom-controls button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: rgba(172, 172, 172, 0.5);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); 
    transition: background-color 0.2s;
  }

  .zoom-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
}



.project-media-x {
  width: 100%;
  max-width: auto;
  overflow: hidden;
  margin: 0px 0px;
  line-height: 0px;
  font-size: 0px;
}

.project-media-x img {
  width: 100%;
  height: auto;
  display: block;
}

.project-media-x video {
  width: 100%;
  height: auto;
  display: block;
}

.project-double-x {
  display: flex;
  flex-direction: column;
}

.media-row-x {
  display: flex;
  width: 100%;
}

.project-media-2-x {
  flex: 1;
  padding: 0px;
}

.project-media-2-x img,
.project-media-2-x video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}



@media (max-width:768px) {

    .media-row-x {
    flex-direction: column;
  }
    
  .project-media-2-x {
    width: 100%;
    height: auto;
  }
    
  .project-media-2-x video,
  .project-media-2-x img {
    width: 100%;
    height: auto;
    display: block;
  }


}




/********************************
 FOOTER
*********************************/
.site-footer {
  width: 100%;
  padding: 12.5px 12.5px 40px 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 19px;
  color: #cecece;
  background: transparent;
}

.site-footer div {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-footer {
    font-size: 14px;
  }
}



.is-hidden {
  display: none;
}


/********************************
 AVAILABILITY CARD
*********************************/
.availability-card {
  background: #FF0095; /* close to your pink */
  color: rgba(255, 255, 255, 0.743);
  border-radius:5px;
  padding: 10px 10px 10px;
  position: relative;
  max-width: 520px;
  line-height: 1.25;
}

/* Close button */
.availability-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.availability-close img {
  width: 16px;
  height: 16px;
  display: block;
}

/* Title */
.availability-title {
  font-size: 19px;
  margin-bottom: 24px;
}

/* Main text */
.availability-text {
  font-size: 19px;
  margin-bottom: 80px;
}

/* Contact */
.availability-contact {
  font-size: 19px;
}

.availability-close:hover {
  opacity: 50%;
}


@media (max-width: 768px) {

  .availability-title,
  .availability-text,
  .availability-contact {
    font-size: 14px;
  }

  .availability-text {
    margin-bottom: 48px;
  }

  /* Replace hover with press */
  .availability-close:hover {
    opacity: 1;
  }

  .availability-close:active {
    opacity: 0.5;
    transform: scale(0.95);
  }
}


.availability-card a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}



/* --- TEMPORARY PROJECT BANNER --- */
.project-section {
  position: relative; /* needed for absolute centering */
}

.project-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  padding: 16px 20px;
  border-radius: 5px;
  border: 1px solid #e5e5e5;

  font-size: 16px;
  color: #000;
  text-align: center;
  line-height: 1.3;

  z-index: 10;
  pointer-events: auto;
}

/* Small fade-in */
.project-banner.show {
  animation: bannerFade 0.25s ease forwards;
}

@keyframes bannerFade {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .project-banner {
    font-size: 14px;
    padding: 12px 14px;
  }
}




/********************************
 CURSOR HOVER MEDIA (IMAGE & VIDEO)
*********************************/
.cursor-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 150px; 
  height: auto;
  border-radius: 0px;
  pointer-events: none; 
  z-index: 9999;
  
  opacity: 0;
  visibility: hidden;
  
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  
}

.cursor-media.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
  .cursor-media {
    display: none !important;
  }
}

