/* ═══════════════════════════════════════════════════════
   AQUA ENTERPRISE — Premium Projects CSS
   Horizontal Scroll Gallery + Creative Blocks
   ═══════════════════════════════════════════════════════ */

body.projects-page {
  background-color: var(--color-bg-primary, #03091a);
  color: var(--color-text-primary, #ffffff);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */

.premium-hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}
.premium-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.premium-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3,9,26,0.1) 0%, #03091a 100%);
}
.premium-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 5vw;
}
.premium-hero__title {
  font-family: var(--ff-display, 'Cormorant Garamond', serif);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 1rem 0;
  letter-spacing: 0.05em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.premium-hero__title em { color: var(--color-accent-primary, #1a6bff); font-style: italic; }
.premium-hero__sub {
  font-family: var(--ff-body, 'DM Sans', sans-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--color-text-secondary, #a8c4e8);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   HORIZONTAL SCROLL GALLERY (Pinned Section)
   ═══════════════════════════════════════════════════════ */

#sectionPin {
  height: 100vh;
  overflow: hidden;
  display: flex;
  left: 0;
  background: var(--color-bg-primary, #03091a);
  position: relative;
  /* Override global section styles */
  padding-block: 0 !important;
  min-height: auto;
}

/* Gradient edges for depth */
#sectionPin::before,
#sectionPin::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}
#sectionPin::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-primary, #03091a) 0%, transparent 100%);
}
#sectionPin::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-primary, #03091a) 0%, transparent 100%);
}

.pin-wrap {
  height: 100vh;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  padding: 50px 10vw;
  will-change: transform;
}

.pin-wrap > * {
  flex-shrink: 0;
}

/* ── Individual Slide ── */
.pin-slide {
  width: 55vw;
  min-width: 55vw;
  height: 75vh;
  padding: 0 3vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* ── Intro Slide ── */
.pin-slide--intro {
  width: 45vw;
  min-width: 45vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-right: 8vw;
}

.pin-slide--intro h2 {
  font-family: var(--ff-display, 'Cormorant Garamond', serif);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.pin-slide--intro h2 em {
  color: var(--color-accent-primary, #0077B6);
  font-style: italic;
}

.pin-slide--intro p {
  font-size: 1.1rem;
  color: var(--color-text-secondary, #aec9e0);
  line-height: 1.7;
  max-width: 400px;
}

/* ── Image Wrapper inside slides ── */
.pin-slide__img-wrap {
  width: auto;
  max-width: 100%;
  height: 65vh;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-slide__img-wrap img {
  width: auto;
  height: 100%;
  object-fit: contain; /* Show in original size/ratio without cropping */
  border-radius: 20px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.pin-slide:hover .pin-slide__img-wrap img {
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* ── Slide Meta ── */
.pin-slide__meta {
  position: absolute;
  bottom: 5vh;
  left: 3vw;
  z-index: 5;
  padding: 1.5rem 0;
  pointer-events: none;
}

.pin-slide__number {
  font-family: var(--ff-accent, 'Bebas Neue', sans-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: -2rem;
  left: -0.5rem;
  pointer-events: none;
}

.pin-slide__meta h3 {
  font-family: var(--ff-display, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  color: var(--color-text-primary, #ffffff);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.pin-slide__meta p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  max-width: 300px;
  line-height: 1.5;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* ═══════════════════════════════════════════════════════
   PREMIUM LIGHTBOX
   ═══════════════════════════════════════════════════════ */

.premium-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.premium-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.premium-lightbox__bg {
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 26, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.premium-lightbox__img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.premium-lightbox.active .premium-lightbox__img {
  transform: scale(1);
}

.premium-lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.premium-lightbox__close:hover {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  transform: rotate(90deg);
}

.premium-lightbox__close svg {
  width: 24px;
  height: 24px;
}

/* ═══════════════════════════════════════════════════════
   GALLERY INTERLUDE SECTION
   ═══════════════════════════════════════════════════════ */

.gallery-interlude {
  padding: 15vh 5vw;
  background: #041028; /* Deep navy blue shade */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative radial glows */
.gallery-interlude::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 119, 182, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.gallery-interlude::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
  pointer-events: none;
}

.gallery-interlude__inner {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.gallery-interlude__heading {
  font-family: var(--ff-display, 'Cormorant Garamond', serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 1rem 0 2rem;
  letter-spacing: -0.01em;
}

.gallery-interlude__heading em {
  color: var(--color-accent-primary, #0077B6);
  font-style: italic;
}

.gallery-interlude__inner p {
  font-size: 1.2rem;
  color: var(--color-text-secondary, #aec9e0);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   ELEGANT PORTFOLIO (Replaces Blocks 4 & 5)
   ═══════════════════════════════════════════════════════ */

.elegant-portfolio {
  padding: 10vh 5vw;
  background: #020817; /* Very deep slate blue */
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
}

.ep-row {
  display: flex;
  gap: 4rem;
  margin-bottom: 6rem;
  align-items: flex-start;
}

.ep-row--top {
  align-items: stretch;
}

.ep-col {
  flex: 1;
}

.ep-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.ep-heading {
  font-family: var(--ff-display, serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.ep-heading em {
  font-style: italic;
  color: var(--color-accent-primary);
}

.ep-heading-small {
  font-family: var(--ff-display, serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.ep-heading-small em {
  font-style: italic;
  color: var(--color-accent-primary);
}

.ep-text p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.link-arrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-accent-primary);
  padding-bottom: 4px;
  display: inline-block;
  align-self: flex-start;
  transition: color 0.3s;
  cursor: pointer;
}

.link-arrow:hover {
  color: var(--color-accent-primary);
}

.ep-img .port-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  transform: none;
  opacity: 1;
}

.ep-img .port-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-tall .port-img-wrap {
  aspect-ratio: 3/5;
}

/* Middle Row - Features */
.ep-subheading {
  font-family: var(--ff-display, serif);
  font-size: 2rem;
  margin-bottom: 3rem;
}

.ep-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Bottom Row - Services */
.ep-center-title {
  text-align: center;
  margin-bottom: 5rem;
  padding-top: 4rem;
}

.ep-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.service-pill {
  padding: 1.2rem 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  transition: all 0.3s;
  cursor: pointer;
  font-size: 1.1rem;
}

.service-pill:hover, .service-pill.active {
  background: var(--color-bg-card, #0a1f45);
  border-color: var(--color-accent-primary);
}

.feat-item-small {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.feat-item-small .icon {
  font-size: 1.5rem;
}

.feat-item-small p {
  margin: 0;
  font-size: 0.85rem;
}

/* ── STATS STRIP ── */
.stats-strip {
  background: #051c3d; /* Deep sea blue shade */
  padding: 10vh 5vw;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number { font-family: var(--ff-display, serif); font-size: 4rem; color: white; }
.stat-plus { font-family: var(--ff-display, serif); font-size: 3rem; color: var(--color-accent-secondary, #3d8bff); }
.stat-label { display: block; font-family: var(--ff-body, sans-serif); letter-spacing: 0.1em; color: var(--color-text-muted, #5a7fa8); margin-top: 0.5rem; text-transform: uppercase; font-size: 0.8rem; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.1); }

/* ── PROCESS STRIP ── */
.process-strip {
  background: #06142e; /* Midnight blue shade */
  padding: 15vh 5vw;
}
.process-header { text-align: center; margin-bottom: 6rem; }
.process-steps { display: flex; justify-content: space-between; gap: 2rem; max-width: 1400px; margin: 0 auto; }
.process-step { flex: 1; text-align: center; position: relative; }
.step-no { font-family: var(--ff-accent, sans-serif); font-size: 4rem; color: rgba(255,255,255,0.05); display: block; margin-bottom: 1rem; line-height: 1; }
.process-step h3 { font-family: var(--ff-display, serif); font-size: 1.8rem; margin-bottom: 1rem; color: var(--color-accent-primary); }
.process-step p { font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.6; }
.process-connector { width: 50px; height: 1px; background: rgba(255,255,255,0.1); margin-top: 4rem; }

/* ── CTA SECTION ── */
.premium-cta-section { min-height: 60vh; position: relative; display: flex; align-items: center; justify-content: center; }
.premium-cta-section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.premium-cta-section__overlay { position: absolute; inset: 0; background: rgba(4,13,26,0.8); z-index: -1; }
.cta-inner { text-align: center; max-width: 700px; padding: 0 5vw; }
.cta-inner h2 { font-family: var(--ff-display, serif); font-size: clamp(2.5rem, 5vw, 4rem); margin: 1rem 0 2rem; text-transform: uppercase; }
.cta-inner em { color: var(--color-accent-primary); font-style: italic; }
.cta-inner p { font-size: 1.2rem; margin-bottom: 3rem; color: var(--color-text-secondary); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .portfolio-block { padding: 3rem 2rem; border-radius: 24px; }
  
  /* Elegant Portfolio */
  .ep-row { flex-direction: column; gap: 3rem; margin-bottom: 4rem; }
  .ep-img .port-img-wrap { aspect-ratio: auto; height: auto; }
  .ep-tall .port-img-wrap { aspect-ratio: auto; height: auto; }
  .ep-img .port-img-wrap img { height: auto; object-fit: contain; }
  .ep-feature-grid { gap: 2rem; }
  .ep-text { padding: 0; }
  .ep-list { flex-direction: row; flex-wrap: wrap; margin-bottom: 2rem; }
  .ep-center-title { margin-bottom: 3rem; padding-top: 2rem; }

  .stats-grid { flex-wrap: wrap; gap: 3rem; justify-content: center; }
  .stat-divider { display: none; }
  .stat-item { width: 40%; }
  .process-steps { flex-wrap: wrap; }
  .process-step { min-width: 40%; margin-bottom: 2rem; }
  .process-connector { display: none; }

  /* Gallery adjustments */
  .pin-slide { min-width: 70vw; max-width: 70vw; }
  .pin-slide--intro { min-width: 60vw; max-width: 60vw; }
}

@media (max-width: 768px) {
  /* Elegant Portfolio Mobile */
  .ep-feature-grid { grid-template-columns: 1fr; }
  .ep-list { flex-direction: column; }
  
  .stat-item, .process-step { width: 100%; min-width: 100%; }

  /* Gallery mobile tweaks */
  .pin-slide { min-width: 85vw; max-width: 85vw; }
  .pin-slide--intro { min-width: 80vw; max-width: 80vw; }
  .pin-slide__img-wrap { height: 55vh; }

  .pin-slide__meta h3 { font-size: 1.2rem; }
  .pin-slide__number { font-size: 3rem; }

  #sectionPin::before,
  #sectionPin::after {
    width: 40px;
  }

  .gallery-interlude { min-height: 60vh; }
  .gallery-interlude__heading { font-size: clamp(2rem, 8vw, 3.5rem); }

  /* Fix Title Clipping */
  .premium-hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    letter-spacing: 0.02em;
    padding: 0 5vw;
  }
}
