/**
 * DEFII Digital Experience 2026
 * Design System & Estilos Globais
 *
 * Paleta Oficial:
 * - Deep Navy: #08182B / #040D17
 * - Electric Blue: #1677FF
 * - Tech Cyan: #19D3E6
 * - White: #FFFFFF
 * - Light Gray: #F3F6FA
 * - Slate / Muted: #8FAEC7
 */

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

:root {
  --color-bg-deep: #040D17;
  --color-bg-navy: #08182B;
  --color-bg-surface: #0B213A;
  --color-bg-card: rgba(8, 24, 43, 0.75);
  --color-bg-card-hover: rgba(14, 38, 68, 0.9);
  
  --color-primary: #1677FF;
  --color-primary-glow: rgba(22, 119, 255, 0.35);
  --color-cyan: #19D3E6;
  --color-cyan-glow: rgba(25, 211, 230, 0.35);
  
  --color-white: #FFFFFF;
  --color-light-gray: #F3F6FA;
  --color-text-primary: #F3F6FA;
  --color-text-muted: #8FAEC7;
  --color-text-dim: #547391;
  
  --border-subtle: rgba(143, 174, 199, 0.15);
  --border-cyan: rgba(25, 211, 230, 0.28);
  --border-electric: rgba(22, 119, 255, 0.35);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset e Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Suporte à redução de movimento (Acessibilidade) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-white) 30%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--color-cyan) !important;
}

.text-muted-custom {
  color: var(--color-text-muted) !important;
}

/* Elementos de Badges / Tags Técnicas */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-cyan);
  background: rgba(25, 211, 230, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.tech-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Botões do Design System */
.btn-defii-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-bg-deep);
  background: linear-gradient(135deg, var(--color-cyan), #00b4d8);
  border: 1px solid var(--color-cyan);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(25, 211, 230, 0.25);
}

.btn-defii-primary:hover {
  background: linear-gradient(135deg, #3ce4f5, var(--color-cyan));
  color: var(--color-bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(25, 211, 230, 0.45);
}

.btn-defii-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
  background: rgba(8, 24, 43, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.btn-defii-secondary:hover {
  background: rgba(22, 119, 255, 0.15);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-cyan);
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline-cyan:hover {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--color-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(4, 13, 23, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(4, 13, 23, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(25, 211, 230, 0.2);
}

.navbar-defii {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  transition: padding var(--transition-fast);
}

.site-header.scrolled .navbar-defii {
  padding: 0.5rem 0;
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.navbar-brand-logo:hover .brand-img {
  transform: scale(1.03);
  opacity: 0.95;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-custom {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--color-cyan);
}

.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  border-radius: 2px;
}

/* Seletor de Idioma Combobox */
.lang-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-select-icon {
  position: absolute;
  left: 0.65rem;
  color: var(--color-cyan);
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 2;
}

.lang-combobox {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(8, 24, 43, 0.75) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--color-white) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  padding: 0.35rem 1.6rem 0.35rem 1.85rem !important;
  border-radius: 6px !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2319D3E6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 9px 9px !important;
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.lang-combobox:hover,
.lang-combobox:focus {
  border-color: var(--color-cyan) !important;
  box-shadow: 0 0 12px rgba(25, 211, 230, 0.25) !important;
  outline: none;
}

.lang-combobox option {
  background-color: var(--color-bg-deep);
  color: var(--color-white);
  font-family: var(--font-mono);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 9.5rem 0 2.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 75% 25%, rgba(22, 119, 255, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(25, 211, 230, 0.08) 0%, transparent 60%);
}

.page-hero {
  position: relative;
  padding-top: 9.5rem !important;
  padding-bottom: 2rem !important;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 1.5rem 0 1rem;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: var(--color-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cards e Superfícies Glassmorphic */
.defii-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.defii-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(25, 211, 230, 0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.defii-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(4, 13, 23, 0.8), 0 0 20px rgba(25, 211, 230, 0.1);
}

.defii-card:hover::before {
  opacity: 1;
}

/* Seções Gerais */
.section-padding {
  padding: 1.5rem 0;
  position: relative;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--color-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* 5 Pilares - Competence Explorer */
.competence-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.competence-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  background: rgba(11, 33, 58, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.competence-tab-btn:hover {
  border-color: var(--color-cyan);
  color: var(--color-white);
  background: rgba(22, 119, 255, 0.12);
}

.competence-tab-btn.active {
  background: rgba(25, 211, 230, 0.12);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 16px rgba(25, 211, 230, 0.2);
}

.competence-display-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(4, 13, 23, 0.8);
}

/* 6 Movimentos - Complexity to Solution */
.flow-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  position: relative;
}

.flow-step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-smooth);
}

.flow-step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-cyan);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.flow-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  color: var(--color-white);
}

.flow-step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.flow-step-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-4px);
  background: rgba(14, 38, 68, 0.85);
  box-shadow: 0 8px 24px rgba(25, 211, 230, 0.15);
}

/* Timeline */
.timeline-track {
  position: relative;
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-cyan), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  background: var(--color-cyan);
  border: 3px solid var(--color-bg-deep);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-cyan);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-cyan);
  margin-bottom: 0.35rem;
}

.timeline-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  display: inline-block;
  text-align: left;
  transition: all var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--color-cyan);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .timeline-track::before {
    left: 20px;
  }
  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 3.5rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-item .timeline-dot {
    left: 13px !important;
  }
}

/* Ecosystem Interactive Canvas */
.ecosystem-canvas-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(8, 24, 43, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.ecosystem-canvas-stage {
  position: relative;
  width: 100%;
  height: 410px;
}

#ecosystemCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ecosystem-overlay-info {
  position: relative;
  width: 100%;
  background: rgba(4, 13, 23, 0.92);
  border-top: 1px solid var(--border-cyan);
  padding: 1.15rem 1.5rem;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .ecosystem-canvas-stage {
    height: 340px;
  }
  .ecosystem-overlay-info {
    padding: 1rem 1.15rem;
  }
}

/* Formulário de Contato */
.form-control-defii {
  background: rgba(8, 24, 43, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--color-white);
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  width: 100%;
  transition: all var(--transition-fast);
}

.form-control-defii:focus {
  background: rgba(11, 33, 58, 0.9);
  border-color: var(--color-cyan);
  color: var(--color-white);
  outline: none;
  box-shadow: 0 0 16px rgba(25, 211, 230, 0.25);
}

.form-label-defii {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  position: relative;
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(143, 174, 199, 0.08);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* Menu Mobile Offcanvas */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  color: var(--color-white);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 991px) {
  .nav-links-desktop {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: rgba(4, 13, 23, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-cyan);
  z-index: 1100;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1090;
  display: none;
}

.mobile-nav-backdrop.open {
  display: block;
}

@media (max-width: 1200px) {
  .nav-links-desktop {
    gap: 0.95rem;
  }
  .nav-link-custom {
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 1.25rem 0;
  }
  .hero-section {
    padding: 7.5rem 0 1.75rem;
  }
  .page-hero {
    padding: 7.5rem 0 1.5rem;
  }
}

/* ==========================================================================
   Portfólio por Áreas (portfolio.php)
   ========================================================================== */
.portfolio-stat-box {
  background: rgba(8, 24, 43, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(8px);
}

.portfolio-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.portfolio-stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.portfolio-filter-bar {
  background: rgba(4, 13, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.portfolio-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(8, 24, 43, 0.75);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio-filter-btn:hover {
  color: var(--color-white);
  border-color: var(--border-cyan);
  background: rgba(25, 211, 230, 0.1);
}

.portfolio-filter-btn.active {
  color: var(--color-bg-deep);
  background: linear-gradient(135deg, var(--color-cyan), #00b4d8);
  border-color: var(--color-cyan);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(25, 211, 230, 0.28);
}

.portfolio-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.portfolio-filter-btn.active .portfolio-count-pill {
  background: rgba(4, 13, 23, 0.22);
}

.portfolio-area-section {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(143, 174, 199, 0.12);
  margin-bottom: 2.25rem;
}

.portfolio-area-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 1rem;
}

.portfolio-area-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(25, 211, 230, 0.12);
  border: 1px solid var(--border-cyan);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.portfolio-project-card {
  padding: 1.65rem;
}

.portfolio-media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #06101d;
  border: 1px solid var(--border-subtle);
  cursor: zoom-in;
}

.portfolio-media-credential {
  aspect-ratio: 16 / 10;
  background: #0b1626;
}

.portfolio-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.portfolio-main-img-contain {
  object-fit: contain;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
}

.portfolio-media-stage:hover .portfolio-main-img {
  transform: scale(1.03);
}

.portfolio-zoom-badge {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(4, 13, 23, 0.84);
  border: 1px solid var(--border-cyan);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  backdrop-filter: blur(6px);
}

.portfolio-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.portfolio-thumb-btn {
  width: 68px;
  height: 46px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #06101d;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all var(--transition-fast);
}

.portfolio-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-thumb-btn:hover,
.portfolio-thumb-btn.active {
  opacity: 1;
  border-color: var(--color-cyan);
}

.portfolio-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.87rem;
  color: var(--color-text-muted);
}

.portfolio-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.portfolio-highlights li i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.portfolio-plat-badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-cyan);
  background: rgba(25, 211, 230, 0.08);
  border: 1px solid rgba(25, 211, 230, 0.22);
}

/* Lightbox Modal */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.portfolio-lightbox.open {
  display: flex;
}

.portfolio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.9);
  backdrop-filter: blur(8px);
}

.portfolio-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #071526;
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

.portfolio-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(4, 13, 23, 0.92);
}

.portfolio-lb-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.portfolio-lb-btn:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.portfolio-lightbox-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 320px;
  max-height: calc(92vh - 70px);
  background: #040d17;
}

.portfolio-lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 110px);
  object-fit: contain;
  border-radius: 6px;
}

.portfolio-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-cyan);
  background: rgba(4, 13, 23, 0.85);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio-lb-nav:hover {
  background: var(--color-cyan);
  color: var(--color-bg-deep);
}

.portfolio-lb-prev {
  left: 1rem;
}

.portfolio-lb-next {
  right: 1rem;
}

@media (max-width: 768px) {
  .portfolio-filter-bar {
    position: static !important;
  }
  .portfolio-project-card {
    padding: 1.2rem;
  }
  .portfolio-lb-nav {
    width: 36px;
    height: 36px;
  }
}
