/* ==========================================================================
   PROTEAN STUDIOS — UNTOLD STUDIOS INSPIRATION DESIGN SYSTEM
   Next-Generation Creative Studio, VFX, Music Videos & Real-Time Technology
   Electric Neon Gradients, Staggered Grid, High-Tech Dark Mode
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ut-bg: #070709;
  --ut-surface: #0f1015;
  --ut-card: #15161e;
  --ut-border: rgba(255, 255, 255, 0.08);
  --ut-border-hover: rgba(52, 226, 228, 0.4);
  
  --ut-text: #ffffff;
  --ut-text-muted: #8e90a0;
  
  --ut-gradient-primary: linear-gradient(135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%);
  --ut-gradient-cyan: linear-gradient(135deg, #00d084 0%, #0693e3 100%);
  --ut-cyan: #34e2e4;
  --ut-purple: #ab1dfe;
  --ut-blue: #4721fb;
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --ease-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--ut-bg);
  color: var(--ut-text);
  font-family: var(--font-main);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── CONTAINER ───────────────────────────────────────────────────────── */
.container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}

/* ── HEADER ──────────────────────────────────────────────────────────── */
.ut-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ut-border);
  padding: 1.25rem 0;
}

.ut-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ut-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.ut-brand-symbol {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ut-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(71, 33, 251, 0.45);
}

.ut-brand-symbol span {
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}

.ut-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.ut-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.ut-nav-link {
  color: var(--ut-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.ut-nav-link:hover,
.ut-nav-link.active {
  color: #fff;
}

.ut-header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ut-btn-hub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ut-text-muted);
  text-decoration: none;
  border: 1px solid var(--ut-border);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.ut-btn-hub:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.ut-btn-gradient {
  background: var(--ut-gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(171, 29, 254, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ut-btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(171, 29, 254, 0.55);
}

/* ── HERO SECTION ────────────────────────────────────────────────────── */
.ut-hero {
  padding: 5.5rem 0 3.5rem;
  position: relative;
}

.ut-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ut-border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ut-cyan);
  margin-bottom: 1.5rem;
}

.ut-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ut-cyan);
  box-shadow: 0 0 8px var(--ut-cyan);
}

.ut-hero-h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 1100px;
  margin-bottom: 1.75rem;
}

.ut-gradient-text {
  background: var(--ut-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ut-hero-p {
  color: var(--ut-text-muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 2.5rem;
}

/* ── CATEGORY FILTER TABS ────────────────────────────────────────────── */
.ut-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ut-border);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}

.ut-tab-btn {
  background: transparent;
  border: 1px solid var(--ut-border);
  color: var(--ut-text-muted);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease-fluid);
}

.ut-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.ut-tab-btn.active {
  background: #fff;
  color: #070709;
  border-color: #fff;
}

/* ── ASYMMETRICAL SHOWCASE GRID ──────────────────────────────────────── */
.ut-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 6rem;
}

@media (max-width: 900px) {
  .ut-grid { display: flex; flex-direction: column; gap: 2rem; }
}

.ut-card {
  background: var(--ut-card);
  border: 1px solid var(--ut-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.4s var(--ease-fluid), border-color 0.4s ease, box-shadow 0.4s ease;
}

.ut-card:hover {
  transform: translateY(-6px);
  border-color: var(--ut-border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(71, 33, 251, 0.25);
}

.ut-card.col-7 { grid-column: span 7; }
.ut-card.col-5 { grid-column: span 5; }
.ut-card.col-6 { grid-column: span 6; }
.ut-card.col-12 { grid-column: span 12; }

.ut-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.ut-card.col-12 .ut-card-media {
  aspect-ratio: 21 / 9;
}

.ut-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-fluid);
  display: block;
}

.ut-card:hover .ut-card-media img {
  transform: scale(1.04);
}

.ut-card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ut-card:hover .ut-card-media video {
  opacity: 1;
}

.ut-card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}

.ut-badge {
  background: rgba(7, 7, 9, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ut-cyan);
  text-transform: uppercase;
}

.ut-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.ut-card-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ut-text-muted);
}

.ut-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.ut-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ut-text-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── STUDIO METRICS & CAPABILITIES ───────────────────────────────────── */
.ut-metrics-section {
  padding: 4rem 0;
  border-top: 1px solid var(--ut-border);
  border-bottom: 1px solid var(--ut-border);
  background: linear-gradient(180deg, rgba(15, 16, 21, 0.4) 0%, transparent 100%);
  margin-bottom: 6rem;
}

.ut-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

@media (max-width: 600px) {
  .ut-metrics-grid { grid-template-columns: 1fr; }
}

.ut-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ut-metric-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--ut-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ut-metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.ut-metric-desc {
  font-size: 0.85rem;
  color: var(--ut-text-muted);
  line-height: 1.5;
}

/* ── MODAL WALKTHROUGH ───────────────────────────────────────────────── */
.ut-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ut-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ut-modal-box {
  width: 100%;
  max-width: 960px;
  background: #111218;
  border: 1px solid var(--ut-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.ut-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ut-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ut-modal-media {
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.ut-modal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ut-modal-content {
  padding: 2.5rem;
}

.ut-modal-h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ut-modal-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ut-cyan);
  margin-bottom: 1.25rem;
}

.ut-modal-p {
  color: var(--ut-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ── HIGH-CRAFT FOOTER ───────────────────────────────────────────────── */
.ut-footer {
  border-top: 1px solid var(--ut-border);
  background: #050507;
  padding: 5rem 0 3rem;
  margin-top: auto;
}

.ut-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 800px) {
  .ut-footer-grid { grid-template-columns: 1fr; }
}

.ut-footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ut-footer-p {
  color: var(--ut-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 440px;
}

.ut-footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--ut-cyan);
  margin-bottom: 1rem;
}

.ut-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ut-text-muted);
}

.ut-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ut-border);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--ut-text-muted);
}
