/* ============================================================
   IT Realms — portfolio.css
   Cinematic portfolio page styles
   ============================================================ */

/* ============================================================
   PORTFOLIO HERO — full-screen cinematic
   ============================================================ */

.port-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #040410;
}

.port-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.22);
  transition: transform 10s ease;
}

.port-hero:hover .port-hero-bg {
  transform: scale(1.04);
}

.port-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4,4,16,0.6) 0%,
    rgba(4,4,16,0.4) 40%,
    rgba(4,4,16,0.95) 100%
  );
}

.port-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,204,202,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,204,202,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

/* Floating project thumbnails in hero */
.port-hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.port-hero-float {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.12;
  filter: saturate(0.5);
}

.port-hero-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.port-hero-float:nth-child(1) {
  width: 280px; height: 180px;
  top: 15%; right: 8%;
  transform: rotate(3deg);
}

.port-hero-float:nth-child(2) {
  width: 220px; height: 140px;
  top: 45%; right: 20%;
  transform: rotate(-2deg);
}

.port-hero-float:nth-child(3) {
  width: 200px; height: 130px;
  bottom: 25%; right: 5%;
  transform: rotate(1.5deg);
}

.port-hero-content {
  position: relative;
  z-index: 4;
  padding: 160px 5% 100px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.port-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}

.port-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

.port-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 32px;
  max-width: 800px;
}

.port-hero-title em {
  color: var(--teal);
  font-style: normal;
}

.port-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.48);
  max-width: 560px;
  margin-bottom: 52px;
}

/* Stats pills */
.port-hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  background: rgba(255,255,255,0.02);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.port-hero-stat {
  padding: 22px 40px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

.port-hero-stat:last-child { border-right: none; }

.port-hero-stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.port-hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .port-hero-content { padding: 130px 5% 72px; }
  .port-hero-stats { flex-wrap: wrap; }
  .port-hero-stat { flex: 1; min-width: 100px; padding: 16px 18px; }
  .port-hero-floats { display: none; }
}


/* ============================================================
   PROJECT SECTION — dark container
   ============================================================ */

.port-projects {
  padding: 120px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
.port-projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, transparent 0, transparent 80px,
    rgba(38,204,202,0.05) 80px, rgba(38,204,202,0.05) 81px
  );
  pointer-events: none;
  z-index: 0;
}
.port-projects > * { position: relative; z-index: 1; }

.port-projects-header {
  text-align: center;
  margin-bottom: 56px;
}

.port-projects-header .section-eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.port-projects-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d1b2e;
  margin-bottom: 16px;
}

.port-projects-header h2 em { color: var(--teal); font-style: normal; }

.port-projects-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(13,27,46,0.5);
  max-width: 580px;
  margin: 0 auto;
}


/* ============================================================
   FILTER BUTTONS — cinematic pill style
   ============================================================ */

.port-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.port-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid rgba(13,27,46,0.1);
  border-radius: 100px;
  background: #fafafa;
  color: rgba(13,27,46,0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.port-filter-btn:hover {
  border-color: rgba(38,204,202,0.3);
  color: rgba(13,27,46,0.75);
  background: rgba(38,204,202,0.05);
}

.port-filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--dark);
}


/* ============================================================
   PROJECT CARDS — dark cinematic
   ============================================================ */

.port-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(13,27,46,0.07);
  border: 1px solid rgba(13,27,46,0.07);
  border-radius: 16px;
  overflow: hidden;
}

.port-project-card {
  position: relative;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
}

.port-project-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.port-project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
  filter: saturate(0.7) brightness(0.85);
}

.port-project-card:hover .port-project-card-img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.7);
}

.port-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,4,16,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.port-project-card:hover .port-project-card-overlay {
  opacity: 1;
}

.port-project-card-tags-hover {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.port-project-tag-hover {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(38,204,202,0.4);
  border-radius: 100px;
  color: var(--teal);
  background: rgba(38,204,202,0.08);
}

/* Top border teal reveal */
.port-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  z-index: 10;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.port-project-card:hover::before {
  transform: scaleX(1);
}

.port-project-card-body {
  padding: 24px 24px 28px;
  background: #ffffff;
}

.port-project-card-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d1b2e;
  margin-bottom: 10px;
  line-height: 1.3;
}

.port-project-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.port-project-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border: 1px solid rgba(13,27,46,0.1);
  border-radius: 100px;
  color: rgba(13,27,46,0.45);
}

.port-project-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
}

.port-project-link:hover { opacity: 0.75; }

.port-project-link-ext {
  color: rgba(38,204,202,0.55);
}

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

@media (max-width: 580px) {
  .port-project-grid { grid-template-columns: 1fr; }
  .port-projects { padding: 80px 0; }
}


/* ============================================================
   INDUSTRIES SECTION — dark with icons
   ============================================================ */

.port-industries {
  padding: 120px 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}
.port-industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0, transparent 14px,
    rgba(38,204,202,0.04) 14px, rgba(38,204,202,0.04) 15px,
    transparent 15px, transparent 28px,
    rgba(255,230,37,0.03) 28px, rgba(255,230,37,0.03) 29px
  );
  pointer-events: none;
  z-index: 0;
}
.port-industries > * { position: relative; z-index: 1; }

.port-industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(13,27,46,0.07);
  border: 1px solid rgba(13,27,46,0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 72px;
}

.port-industry-card {
  background: #ffffff;
  padding: 36px 28px;
  position: relative;
  transition: background 0.3s ease;
}

.port-industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.port-industry-card:hover {
  background: #f0f4f8;
}

.port-industry-card:hover::before {
  transform: scaleX(1);
}

.port-industry-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(38,204,202,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 20px;
}

.port-industry-icon i,
.port-industry-icon svg {
  width: 20px;
  height: 20px;
}

.port-industry-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d1b2e;
  margin-bottom: 10px;
}

.port-industry-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(13,27,46,0.4);
}

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

@media (max-width: 480px) {
  .port-industries-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   CASE STUDY DEEP DIVES
   ============================================================ */
.pf-deepdive {
  padding: 100px 0;
  background: #ffffff;
  border-top: 1px solid rgba(13,27,46,0.07);
  position: relative;
  overflow: hidden;
}
.pf-deepdive::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 100% 0%, rgba(38,204,202,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 0% 100%, rgba(255,230,37,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.pf-deepdive > * { position: relative; z-index: 1; }

.pf-deepdive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.pf-deepdive-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(13,27,46,0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.pf-deepdive-card:hover {
  border-color: rgba(38,204,202,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

.pf-deepdive-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f4f8;
}
.pf-deepdive-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pf-deepdive-card:hover .pf-deepdive-img-wrap img {
  transform: scale(1.04);
}

.pf-deepdive-body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.pf-deepdive-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow);
}

.pf-deepdive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-deepdive-tags span {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(38,204,202,0.25);
  color: var(--teal);
  letter-spacing: 0.04em;
}

.pf-deepdive-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0d1b2e;
  line-height: 1.3;
  margin: 0;
}

.pf-deepdive-desc {
  font-size: 0.88rem;
  color: rgba(13,27,46,0.55);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.pf-deepdive-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-top: 8px;
  transition: gap 0.2s ease;
}
.pf-deepdive-card:hover .pf-deepdive-cta {
  gap: 10px;
}

@media (max-width: 900px) {
  .pf-deepdive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pf-deepdive-grid { grid-template-columns: 1fr; }
  .pf-deepdive { padding: 64px 0; }
}


/* ============================================================
   RESPONSIVE — Mobile fill-ins
   ============================================================ */
@media (max-width: 580px) {
  .port-section { padding: 56px 0; }
  .port-hero { padding: 80px 0 56px; }
  .port-hero-stats { flex-wrap: wrap; gap: 16px; }
  .pf-deepdive-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .port-hero-floats { display: none; }
  .port-industries-grid { grid-template-columns: 1fr 1fr; }
}
