/* ==========================================================================
   SinodTech Portfolio — 10.studio Showcase Layout in SinodTech Design System
   Palette: #010204 canvas, #0a0e18 surfaces, #0055FF accent, Outfit/Inter
   ========================================================================== */

.portfolio-page {
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 68% 36% at 50% 0%, rgba(0, 85, 255, 0.16), transparent 62%),
    #010204;
  color: #e2e8f0;
}

.portfolio-wrap {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

/* Active nav item */
.main-nav a.is-current {
  color: #fff !important;
}

.main-nav a.is-current::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   1. Minimal Monumental Centered Hero (10.studio inspired)
   -------------------------------------------------------------------------- */
.st-hero {
  position: relative;
  padding: clamp(104px, 11vw, 152px) 0 clamp(34px, 4vw, 48px);
  text-align: center;
}

.st-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.036) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

.st-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.st-hero-title {
  margin: 0 auto 22px;
  color: #f8fafc;
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  font-size: clamp(3rem, 7.6vw, 6.6rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.st-hero-title-accent {
  background: linear-gradient(135deg, #ffffff 10%, #93c5fd 55%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.st-hero-sub {
  max-width: 660px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   2. Centered Category Filter Pills
   -------------------------------------------------------------------------- */
.st-filters-section {
  position: relative;
  z-index: 2;
  padding: 0 0 clamp(36px, 4.5vw, 54px);
}

.st-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.85);
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.st-pill:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.st-pill.active {
  color: #fff;
  background: #0055FF;
  border-color: #0055FF;
  box-shadow: 0 8px 26px rgba(0, 85, 255, 0.38);
}

.st-pill:focus-visible,
.st-tile-main:focus-visible,
.st-tile-icon-link:focus-visible,
.st-orb-cta:focus-visible {
  outline: 2px solid #338aff;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. 3-Column 16:9 Video Showcase Grid (10.studio signature geometry)
   -------------------------------------------------------------------------- */
.st-showcase {
  position: relative;
  padding: 0 0 clamp(76px, 9vw, 124px);
}

.st-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.st-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 85, 255, 0.22), transparent 68%),
    #070b13;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.48);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    box-shadow 0.35s ease;
}

.st-tile.is-hidden {
  display: none;
}

.st-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 85, 255, 0.55);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(0, 85, 255, 0.18);
}

.st-tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.46) saturate(0.88) contrast(1.06);
  transform: scale(1.01);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.st-tile:hover .st-tile-bg {
  transform: scale(1.07);
  filter: brightness(0.56) saturate(1.02) contrast(1.08);
}

.st-tile-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(1, 2, 4, 0.14) 0%, rgba(1, 2, 4, 0.62) 100%),
    linear-gradient(180deg, rgba(1, 2, 4, 0.52) 0%, transparent 32%, transparent 56%, rgba(1, 2, 4, 0.92) 100%);
}

/* Primary clickable area spanning the tile */
.st-tile-main {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  text-decoration: none;
}

/* Iconic Centered Circular Play Orb */
.st-play-orb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(240, 246, 255, 0.94);
  color: #041029;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 0 rgba(0, 85, 255, 0.4);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.35s ease;
}

.st-play-orb svg {
  margin-left: 2px;
}

.st-play-orb.is-link-orb svg {
  margin-left: 0;
}

.st-tile:hover .st-play-orb {
  transform: scale(1.12);
  background: #0055FF;
  color: #fff;
  box-shadow:
    0 14px 36px rgba(0, 85, 255, 0.52),
    0 0 0 10px rgba(0, 85, 255, 0.18);
}

/* Minimal Top Bar inside Tile */
.st-tile-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.st-tile-sector {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(1, 2, 4, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.st-tile-logo {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.st-tile-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  background: #f8fafc;
}

/* Clean Bottom Caption & Quick Actions */
.st-tile-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.st-tile-info {
  min-width: 0;
}

.st-tile-name {
  margin: 0;
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-tile-meta {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}

.st-tile-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  pointer-events: auto;
}

.st-tile-icon-link {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 24, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #cbd5e1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.st-tile-icon-link:hover {
  background: #0055FF;
  border-color: #0055FF;
  color: #fff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Signature Radiant Blue Horizon CTA (10.studio bottom orb in SinodTech blue)
   -------------------------------------------------------------------------- */
.st-horizon-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 11vw, 140px) 24px clamp(96px, 12vw, 148px);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #010204;
}

.st-horizon-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 130vw);
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 58% at 50% 24%, rgba(0, 85, 255, 0.78) 0%, rgba(0, 61, 204, 0.34) 44%, rgba(1, 2, 4, 0) 76%);
  filter: blur(22px);
}

.st-horizon-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.st-horizon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 700;
}

.st-horizon-title {
  margin: 0 auto 16px;
  color: #ffffff;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.st-horizon-sub {
  max-width: 520px;
  margin: 0 auto 32px;
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.7;
}

.st-horizon-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.st-orb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.st-orb-cta:hover {
  transform: translateY(-2px);
}

.st-orb-cta-primary {
  background: #ffffff;
  color: #010408;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.st-orb-cta-primary:hover {
  background: #eff6ff;
  box-shadow: 0 18px 44px rgba(0, 85, 255, 0.35);
}

.st-orb-cta-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.st-orb-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .st-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portfolio-wrap {
    width: calc(100% - 32px);
  }

  .st-hero {
    padding: 96px 0 28px;
  }

  .st-hero-title {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .st-filters {
    gap: 8px;
  }

  .st-pill {
    min-height: 36px;
    padding: 0 15px;
    font-size: 0.78rem;
  }

  .st-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .st-play-orb {
    width: 52px;
    height: 52px;
  }

  .st-horizon-actions {
    width: 100%;
    flex-direction: column;
  }

  .st-orb-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-tile,
  .st-tile-bg,
  .st-play-orb,
  .st-pill,
  .st-tile-icon-link,
  .st-orb-cta {
    transition: none;
  }
}
