/* Font Definitions */
@font-face {
  font-family: 'Futura';
  src: url('../fonts/Futura-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Futura';
  src: url('../fonts/Futura-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  background: #000;
  color: #fff;
}

body.scrollable {
  overflow-y: auto;
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION - LEFT aligned with blur backdrop
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Blur + dark gradient behind nav */
.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.nav.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Nav buttons container - prevents hover from moving siblings */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contact and Resume buttons - styled with border like Enter button */
.nav-btn {
  font-family: 'Futura', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, padding 0.15s ease, margin 0.15s ease;
}

.nav-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  padding: 12px 24px;
  margin: -2px -4px;
}

/* Separator between action buttons and filters */
.nav-separator {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 10px;
}

/* Filter buttons group */
.nav-filters {
  display: flex;
  align-items: center;
  gap: 30px;
}

.filter-btn {
  font-family: 'Futura', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.15s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.filter-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Active filter - just white color, NOT bold */
.filter-btn.active {
  color: #fff;
}

.filter-btn.active::after {
  transform: scaleX(1);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
  min-height: 100vh;
  padding: 0;
}

/* ============================================
   UNIFIED GRID - Always absolute positioned
   ============================================ */
.unified-grid {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* ============================================
   GRID ITEM - Absolute positioned
   ============================================ */
.grid-item {
  position: absolute;
  overflow: hidden;
  cursor: default;
  pointer-events: none;
  opacity: 0;
  filter: blur(20px);
  transform: scale(0.95);
  will-change: transform, opacity, filter, left, top, width, height;
}

/* Animation class for when items appear */
.grid-item.revealed {
  opacity: 0.85;
  filter: blur(0px);
  transform: scale(1);
  transition: opacity 0.8s ease, filter 1s ease, transform 0.6s ease;
}

/* Gallery mode - full opacity, hoverable */
.grid-item.gallery-mode {
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer;
  pointer-events: auto;
}

.grid-item img,
.grid-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-item video {
  pointer-events: none;
}

/* Hover effect - only in gallery mode */
.grid-item.gallery-mode:hover img,
.grid-item.gallery-mode:hover video {
  transform: scale(1.03);
}

/* Hover overlay with gradient, title, date, and plus icon */
.grid-item .hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 16px 16px;
  background: linear-gradient(to top, 
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.grid-item.gallery-mode:hover .hover-overlay {
  opacity: 1;
}

.hover-overlay .hover-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hover-overlay .hover-title {
  font-family: 'Futura', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hover-overlay .hover-date {
  font-family: 'Futura', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.hover-overlay .hover-plus {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
  position: relative;
}

.hover-overlay .hover-plus::before,
.hover-overlay .hover-plus::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
}

.hover-overlay .hover-plus::before {
  width: 8px;
  height: 1px;
}

.hover-overlay .hover-plus::after {
  width: 1px;
  height: 8px;
}

.grid-item.gallery-mode:hover .hover-plus {
  border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   INTRO OVERLAYS - Blur/Fade on top/bottom
   ============================================ */
.intro-overlays {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 1.2s ease;
}

.intro-overlays.hidden {
  opacity: 0;
}

.fade-overlay {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.fade-top {
  top: 0;
  height: 50%;
  background: linear-gradient(to bottom, 
    #000 0%, 
    #000 20%,
    rgba(0,0,0,0.95) 35%,
    rgba(0,0,0,0.8) 50%,
    rgba(0,0,0,0.5) 65%,
    rgba(0,0,0,0.2) 80%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
}

.fade-bottom {
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, 
    #000 0%, 
    #000 20%,
    rgba(0,0,0,0.95) 35%,
    rgba(0,0,0,0.8) 50%,
    rgba(0,0,0,0.5) 65%,
    rgba(0,0,0,0.2) 80%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, black 40%, transparent 100%);
}

/* ============================================
   INTRO CENTER CONTENT
   ============================================ */
.intro-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.intro-center.visible {
  opacity: 1;
  pointer-events: auto;
}

.intro-center.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Title with blur-glow-reveal animation */
.intro-title {
  font-size: clamp(48px, 12vw, 140px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 40px;
  filter: blur(40px);
  opacity: 0;
  text-shadow: 0 0 120px rgba(255, 255, 255, 1),
               0 0 80px rgba(255, 255, 255, 0.9);
  animation: titleReveal 2s ease forwards;
  animation-delay: 0.2s;
}

@keyframes titleReveal {
  0% {
    filter: blur(50px);
    opacity: 0;
    text-shadow: 0 0 150px rgba(255, 255, 255, 1),
                 0 0 100px rgba(255, 255, 255, 1);
  }
  30% {
    filter: blur(25px);
    opacity: 0.5;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.9),
                 0 0 50px rgba(255, 255, 255, 0.7);
  }
  60% {
    filter: blur(8px);
    opacity: 0.8;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  }
}

/* Enter button wrapper to contain hover expansion */
.enter-btn-wrapper {
  display: inline-block;
}

/* Enter button - padding expansion on hover without affecting title */
.enter-btn {
  font-family: 'Futura', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 32px;
  cursor: pointer;
  opacity: 0;
  animation: enterBtnReveal 0.6s ease forwards;
  animation-delay: 1.5s;
  transition: color 0.15s ease, border-color 0.15s ease, padding 0.15s ease, margin 0.15s ease;
}

@keyframes enterBtnReveal {
  to {
    opacity: 1;
  }
}

.enter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  padding: 14px 38px;
  margin: -2px -6px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 200;
  display: flex;
  align-items: stretch;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.1s ease;
  z-index: 10;
}

.lightbox-close:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.lightbox-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.lightbox-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-width: 0;
}

.lightbox-main img,
.lightbox-main video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Sidebar */
.lightbox-sidebar {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.5);
  border-left: 1px solid rgba(255,255,255,0.1);
  overflow-y: auto;
}

.lightbox-info {
  padding: 40px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lightbox-info h2 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-info p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.lightbox-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lightbox-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.1s ease, transform 0.1s ease;
}

.lightbox-links a:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: scale(1.05);
}

/* Thumbnail grid - 2 column, original aspect ratios */
.lightbox-thumbnails {
  flex: 1;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
  overflow-y: auto;
}

.lightbox-thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease, outline 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.lightbox-thumb.active {
  opacity: 1;
  outline-color: #fff;
}

@media (max-width: 900px) {
  .lightbox-content {
    flex-direction: column;
  }
  
  .lightbox-main {
    flex: 1;
    min-height: 50vh;
  }
  
  .lightbox-sidebar {
    width: 100%;
    max-height: 50vh;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .lightbox-thumbnails {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
