/* ---- FONTS CSS CODES ------ */

.ibm-plex-mono-thin {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 100;
  font-style: normal;
}

.ibm-plex-mono-extralight {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 200;
  font-style: normal;
}

.ibm-plex-mono-light {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-style: normal;
}

.ibm-plex-mono-regular {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-mono-medium {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-mono-semibold {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-style: normal;
}

.ibm-plex-mono-bold {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.ibm-plex-mono-thin-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 100;
  font-style: italic;
}

.ibm-plex-mono-extralight-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 200;
  font-style: italic;
}

.ibm-plex-mono-light-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-style: italic;
}

.ibm-plex-mono-regular-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.ibm-plex-mono-medium-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: italic;
}

.ibm-plex-mono-semibold-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-style: italic;
}

.ibm-plex-mono-bold-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-style: italic;
}


/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f2f2f2;
    font-family: "IBM Plex Mono", monospace;
    color: #333;
    font-size: 12px;
    letter-spacing: 1px;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 9999;
}

/* Header */
header {
    padding-top: 17px;
    text-align: center;
    position: sticky;
    top: 0;
    background: #f2f2f2;
    z-index: 9999;
    height: var(--nav-height);
}

:root {
    --nav-height: 17px;
}


nav a {
    text-decoration: none;
    color: #888;
    margin: 0 10px;
    transition: 0.3s;
    background-color: #f2f2f2;
}

nav a.active, nav a:hover {
    color: #001eff;
    text-decoration: underline;
}


/* Main Container */
.main-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background-color: #f2f2f2;
    min-width: 0;
}

/* Project Info */
.main-project-info-container {
  background-color: #f2f2f2;
  display: grid;
  gap: 27px;
  padding: 20px;
  padding-bottom: 5px;
  grid-template-columns: repeat(auto-fit, minmax(200, 1fr));
  width: 100%;
  max-width: 100%;
}

@media (min-width: 467px) {
    .main-project-info-container {
        background-color: #f2f2f2;
        display: grid;
        gap: 27px;
        padding: 20px;
        padding-bottom: 5px;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
    }
}

/* All direct grid children */
.main-project-info-container > * {
    min-width: 0;
}


.sec-nav {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


/* Flex Format */
.main-project-info-container-flex {
  background-color: #f2f2f2;
  display: flex;
  gap: 27px;
  padding: 23px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  z-index: 11;
}


#sticky-1 {
  position: sticky;
  top: var(--nav-height);
  z-index: 10;
}


.project-info-tag {
  color: #888;
  text-align-last: right;
}

.project-info-tag:hover {
  color: #001eff;
  text-decoration: underline;
  cursor: pointer;
}


/* PROJECT INFO RESPONSIVE ALIGN */
@media (max-width: 466px) {
  .project-info-tag {
    text-align-last: left;
  }
}


/* Project Grid Styles */
.work-grid {
    justify-content: center;
    flex-wrap: wrap;
}


.project-pair {
    background-color: #001eff;
}

.image-row {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .image-row {
        grid-template-columns: 1fr;
    }
    
    body {
        font-size: 14px;
    }

    .bottom-nav {
        font-size: 12px;
    }
}


/* Page Gaps */
.gap {
    padding: 5%;
}

.gap-2 {
    padding-top: 3%;
}

.gap-3 {
    padding-top: 0.5%;
}

.gap-4 {
    padding: 1%;
}

.gap-5 {
    padding: 2%;
}


.bottom-nav {
  display: flex;
  gap: 40px;
  flex-direction: row;
  padding-top: 245px;
  justify-content: center;
}


.nav-prev {
  color: #888;
  text-decoration: none;
}

.nav-prev:hover {
  color: #001eff;
  text-decoration: underline;
  cursor: pointer;
}


.nav-next {
  color: #888;
  text-decoration: none;
}

.nav-next:hover {
  color: #001eff;
  text-decoration: underline;
  cursor: pointer;
}


/* Text-Breaker Responsive */
h1, p, a {
    max-width: 100%;
    word-break: break-word;
}


/* Footer */
footer {
    text-align: center;
    width: 100%;
    background-color: #001eff;
    padding-bottom: 45px;
}

.footer-links {
    text-decoration: none;
    color: #f2f2f2;
    margin: 0 5px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: #f2f2f2;
    margin: 0 5px;
}

.footer-links a:hover {
    color: #a4a4a4;
    text-decoration: underline;
}


.slider-img-main-container {

}


/*/////////// IMAGE SLIDER CSS CODE //////////*/

.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    font-size: 14px;
    transform: translate(-40%, -40%);
    color: rgb(0,30,255);
}

.nav-zone {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 25vw;
    z-index: 12;
    background: rgba(0,30,255,0.0);
    pointer-events: auto;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-zone {
        position: fixed;
        top: 0;
        height: 100vh;
        width: 2vw;
        z-index: 10;
        pointer-events: none;
    }
}


.nav-zone.left { left: 0; }
.nav-zone.right { right: 0; }

.slider-overlay {
    backdrop-filter: blur(1px);
    background: rgba(255,255,255,0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container {
    width: 100%;
    max-width: 1000%;
    overflow: hidden;
}

/* FIX: Added -webkit- prefixes for Safari and fixed touch-action for iOS */
.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    /* FIX: Changed from pan-y to pan-y pinch-zoom so iOS doesn't block horizontal swipes */
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.media-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img,
.slide video {
    max-width: min(65vw, 850px);
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

/* PROGRESS BAR */
.progress-bar {
    margin-top: 12px;
    width: min(65vw, 850px);
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: rgb(0, 30, 255);
}

@media (max-width: 768px) {
    .slide img,
    .slide video {
        max-width: 90vw;
        max-height: 75vh;
    }

    .progress-bar {
        width: 90vw;
    }
}

.info-lockup {
    display: flex;
    padding-top: 19px;
    justify-content: center;
}

.counter {
    opacity: 0.6;
    font-size: 12px;
}
