/* =========================================
   PORTFOLIO: GLOBAL DARK MODE OVERRIDES
   ========================================= */
body,
html {
  background-color: #050505 !important;
  color: #ffffff;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.btn.nav-cta {
  background-color: #ffffff;
}

.btn.nav-cta:hover {
  background-color: #dbf9b3;
  color: #050505;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* =========================================
   SPLIT LAYOUT ARCHITECTURE
   ========================================= */
.port-split-layout {
  display: flex;
  width: 100%;
  position: relative;
}

.port-fixed-left {
  width: 35%;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  padding-left: 5%;
}

.port-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400 !important;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}

.port-scroll-right {
  width: 65%;
  padding: 150px 5% 150px 0;
  display: flex;
  flex-direction: column;
  gap: 12rem;
}

/* =========================================
   INDIVIDUAL PROJECT ARCHITECTURE
   ========================================= */
.port-project {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
}

.port-number {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.port-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #111111;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.port-img-wrap::before {
  content: "Image not available at the moment";
  position: absolute;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  z-index: 1;
  padding: 0 1rem;
}

.port-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  color: transparent;
}

.port-project:hover img {
  cursor: pointer;
}

.port-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.port-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.port-meta h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.01em;
}

.port-meta span {
  font-size: 0.85rem;
  color: #b3ff00;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.port-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 968px) {
  .port-split-layout {
    flex-direction: column;
  }

  .port-fixed-left {
    width: 100%;
    height: auto;
    position: relative;
    padding: 150px 5% 4rem 5%;
  }

  .port-scroll-right {
    width: 100%;
    padding: 0 5% 100px 5%;
    gap: 6rem;
  }

  .port-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* =========================================
   PREMIUM CINEMATIC FILM GRAIN (ULTRA-FINE)
   ========================================= */
.noise-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200vw;
  height: 200vh;
  background: transparent
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 120px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.15;
  mix-blend-mode: screen;
  filter: grayscale(100%) contrast(150%);
  animation: noiseAnimation 0.8s infinite;
}

@keyframes noiseAnimation {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  20% { transform: translate(-2%, 1%); }
  30% { transform: translate(1%, -2%); }
  40% { transform: translate(-1%, 2%); }
  50% { transform: translate(-2%, 1%); }
  60% { transform: translate(2%, 0); }
  70% { transform: translate(0, 2%); }
  80% { transform: translate(1%, 3%); }
  90% { transform: translate(-2%, 1%); }
  100% { transform: translate(0, 0); }
}
