/* 
 * MSA WORLD MEDIA ENTERTAINMENT
 * Redesigned Visual Identity — Cyber-Luxury Gaming/Media Aesthetic
 * Deep blacks, neon violet, electric cyan, precision geometry
 */

/* ===========================
   CUSTOM PROPERTIES
=========================== */
:root {
  --color-bg-void: #050508;
  --color-bg-deep: #080811;
  --color-bg-panel: #0c0c18;
  --color-bg-surface: #10101f;
  --color-bg-elevated: #14142a;
  --color-bg-glass: rgba(16, 16, 31, 0.7);

  --color-primary: #7c3aed;
  --color-primary-bright: #9d5cff;
  --color-primary-glow: rgba(124, 58, 237, 0.4);
  --color-cyan: #0ff;
  --color-cyan-dim: #00c8d4;
  --color-cyan-glow: rgba(0, 255, 255, 0.25);
  --color-amber: #f59e0b;
  --color-pink: #f43f5e;

  --color-text-primary: #f0f0ff;
  --color-text-secondary: #9090bb;
  --color-text-muted: #4a4a70;

  --border-dim: rgba(124, 58, 237, 0.12);
  --border-active: rgba(124, 58, 237, 0.5);
  --border-cyan: rgba(0, 255, 255, 0.2);

  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow-glow-primary: 0 0 30px rgba(124, 58, 237, 0.3), 0 0 60px rgba(124, 58, 237, 0.1);
  --shadow-glow-cyan: 0 0 20px rgba(0, 255, 255, 0.2), 0 0 40px rgba(0, 255, 255, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-dim);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-active), 0 0 30px rgba(124, 58, 237, 0.15);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-void);
  color: var(--color-text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-cyan-dim));
  border-radius: 3px;
}

/* ===========================
   ANIMATED BACKGROUND SYSTEM
=========================== */
.bg-system {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Grid overlay */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Radial vignette */
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 60% at 80% 80%, rgba(0, 200, 212, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(5, 5, 8, 0.9) 100%);
}

/* Scan lines */
.bg-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
}

/* Ambient orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 200, 212, 0.08) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation-delay: -6s;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.05) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -3s;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

/* ===========================
   MSA LOGO — NEW DESIGN
=========================== */

/* === HEADER LOGO === */
.msa-logo {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hexagonal clip path frame */
.msa-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3b1d8f 40%, #0a0a1a 100%);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border: 0;
}

/* Top edge highlight */
.msa-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.6) 0%, transparent 40%);
  z-index: 2;
}

.msa-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 8px rgba(157, 92, 255, 1), 0 0 20px rgba(0, 255, 255, 0.5);
  position: relative;
  z-index: 3;
}

.msa-logo .logo-glow {
  position: absolute;
  inset: -4px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: var(--color-primary);
  filter: blur(12px);
  opacity: 0.35;
  z-index: 0;
  animation: hex-pulse 3s ease-in-out infinite alternate;
}

@keyframes hex-pulse {
  0% { opacity: 0.25; filter: blur(10px); }
  100% { opacity: 0.5; filter: blur(16px); }
}

/* === LARGE HERO LOGO === */
.msa-logo-hero {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
}

/* Outer ring */
.msa-logo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--color-primary) 0deg,
    var(--color-cyan-dim) 120deg,
    var(--color-primary) 240deg,
    var(--color-cyan-dim) 360deg
  );
  animation: logo-spin 8s linear infinite;
  opacity: 0.8;
}

/* Inner mask */
.msa-logo-hero::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-bg-panel);
  z-index: 1;
}

.msa-logo-hero .logo-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.msa-logo-hero .logo-text-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 15px var(--color-primary-bright), 0 0 30px rgba(0, 255, 255, 0.4);
  line-height: 1;
}

.msa-logo-hero .logo-text-sub {
  font-family: var(--font-display);
  font-size: 6px;
  letter-spacing: 4px;
  color: var(--color-cyan);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
  margin-top: 2px;
}

/* Glow halo */
.msa-logo-hero .logo-halo {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  animation: halo-breathe 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes logo-spin {
  to { transform: rotate(360deg); }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* === SMALL FOOTER LOGO === */
.msa-logo-small {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msa-logo-small::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3b1d8f 100%);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.msa-logo-small::after {
  content: '';
  position: absolute;
  inset: -3px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: var(--color-primary);
  filter: blur(8px);
  opacity: 0.3;
  z-index: -1;
}

.msa-logo-small .logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 0 6px rgba(157, 92, 255, 1);
  position: relative;
  z-index: 2;
}

/* ===========================
   HEADER
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-dim);
}

/* Top accent line */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-cyan-dim), transparent);
  opacity: 0.6;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--color-primary-bright), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-base);
  line-height: 1.2;
}

.brand-subtitle {
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 3.5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  line-height: 1;
}

.header-brand:hover .brand-title {
  filter: brightness(1.2);
  text-shadow: 0 0 20px var(--color-primary-glow);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search */
.search-wrapper {
  position: relative;
}

.search-input {
  width: 220px;
  padding: 9px 40px 9px 16px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-primary);
  outline: none;
  transition: all var(--transition-base);
}

.search-input::placeholder {
  color: var(--color-text-muted);
  font-size: 12px;
}

.search-input:focus {
  border-color: var(--color-primary);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), inset 0 0 20px rgba(124, 58, 237, 0.03);
  width: 260px;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color var(--transition-base);
}

.search-input:focus ~ .search-icon {
  color: var(--color-primary);
}

/* Sort */
.sort-select {
  padding: 9px 14px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-primary);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-base);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239090bb' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.sort-select:focus, .sort-select:hover {
  border-color: var(--border-active);
  background-color: rgba(124, 58, 237, 0.1);
}

.sort-select option {
  background: var(--color-bg-panel);
  color: var(--color-text-primary);
}

/* Theme Toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-active);
  background: rgba(124, 58, 237, 0.15);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.sun, .moon {
  position: absolute;
  inset: 0;
  transition: all 0.3s ease;
}

.sun::before {
  content: '☀';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.moon::before {
  content: '◐';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-primary-bright);
  line-height: 1;
}

.sun { opacity: 0; }
.dark .sun { opacity: 0; }
.dark .moon { opacity: 1; }
.moon { opacity: 1; }

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}

/* Angular decorative elements */
.hero-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0.4;
}

.hero-corner-tl {
  top: 60px;
  left: 60px;
  border-top: 1px solid var(--color-cyan);
  border-left: 1px solid var(--color-cyan);
}

.hero-corner-tr {
  top: 60px;
  right: 60px;
  border-top: 1px solid var(--color-cyan);
  border-right: 1px solid var(--color-cyan);
}

.hero-corner-bl {
  bottom: 60px;
  left: 60px;
  border-bottom: 1px solid var(--color-primary);
  border-left: 1px solid var(--color-primary);
}

.hero-corner-br {
  bottom: 60px;
  right: 60px;
  border-bottom: 1px solid var(--color-primary);
  border-right: 1px solid var(--color-primary);
}

/* HUD line decorations */
.hero-hud-line {
  position: absolute;
  pointer-events: none;
}

.hero-hud-line-h {
  height: 1px;
  width: 200px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.3;
}

.hero-hud-line-h-left {
  top: 50%;
  left: 0;
}

.hero-hud-line-h-right {
  top: 50%;
  right: 0;
  transform: rotate(180deg);
}

/* Floating particles */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  animation: particle-float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-particle:nth-child(1) {
  width: 4px; height: 4px;
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  top: 20%; left: 15%;
  animation-delay: 0s;
}

.hero-particle:nth-child(2) {
  width: 3px; height: 3px;
  background: var(--color-primary-bright);
  box-shadow: 0 0 8px var(--color-primary);
  top: 35%; right: 20%;
  animation-delay: -2s;
}

.hero-particle:nth-child(3) {
  width: 5px; height: 5px;
  background: var(--color-amber);
  box-shadow: 0 0 10px var(--color-amber);
  bottom: 25%; left: 25%;
  animation-delay: -4s;
}

.hero-particle:nth-child(4) {
  width: 3px; height: 3px;
  background: var(--color-cyan-dim);
  box-shadow: 0 0 6px var(--color-cyan-dim);
  bottom: 40%; right: 15%;
  animation-delay: -6s;
}

.hero-particle:nth-child(5) {
  width: 2px; height: 2px;
  background: var(--color-primary-bright);
  top: 60%; left: 10%;
  animation-delay: -1s;
}

.hero-particle:nth-child(6) {
  width: 4px; height: 4px;
  background: var(--color-pink);
  box-shadow: 0 0 8px var(--color-pink);
  top: 15%; right: 35%;
  animation-delay: -3s;
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
  33% { transform: translateY(-18px) translateX(8px); opacity: 1; }
  66% { transform: translateY(8px) translateX(-6px); opacity: 0.8; }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

/* Status badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--color-cyan);
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: badge-appear 0.8s ease 0.3s both;
}

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

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

@keyframes badge-appear {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero headline */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: headline-rise 1s ease 0.5s both;
}

.hero-headline-line1 {
  display: block;
  font-size: clamp(40px, 7vw, 90px);
  color: var(--color-text-primary);
  text-shadow: 0 0 60px rgba(124, 58, 237, 0.2);
}

.hero-headline-line2 {
  display: block;
  font-size: clamp(40px, 7vw, 90px);
  background: linear-gradient(90deg, var(--color-primary-bright) 0%, var(--color-cyan) 50%, var(--color-primary-bright) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: headline-rise 1s ease 0.5s both, text-shimmer 4s linear infinite;
}

@keyframes text-shimmer {
  to { background-position: 200% center; }
}

@keyframes headline-rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero subtext */
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: headline-rise 1s ease 0.7s both;
}

/* CTA group */
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: headline-rise 1s ease 0.9s both;
}

/* Stats row */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-dim);
  animation: headline-rise 1s ease 1.1s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary-bright), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-family: var(--font-display);
  display: block;
  margin-top: 2px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #5b21b6 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6), inset 0 1px 0 rgba(255,255,255,0.15);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--color-cyan);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.03);
}

.btn-outline:hover {
  background: rgba(0, 255, 255, 0.07);
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15), inset 0 0 20px rgba(0, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Small button */
.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

/* ===========================
   PORTFOLIO SECTION
=========================== */
.portfolio-section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
  background: rgba(8, 8, 17, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--color-primary-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Category filters */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.category-filter {
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.category-filter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.category-filter:hover {
  color: var(--color-text-primary);
  border-color: var(--border-active);
  background: rgba(124, 58, 237, 0.1);
}

.category-filter:hover::after,
.category-filter.active::after {
  width: 80%;
}

.category-filter.active {
  color: #fff;
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ===========================
   PORTFOLIO CARDS
=========================== */
.portfolio-card {
  background: rgba(12, 12, 24, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* Top edge glow line */
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

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

.portfolio-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

/* Card image area */
.card-image-area {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.card-image-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  height: 100%;
}

.card-image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.3s ease;
  filter: brightness(0.85) saturate(0.9);
}

.portfolio-card:hover .card-image-strip img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.1);
}

/* Category tag on image */
.card-category-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 10px;
  background: rgba(5, 5, 8, 0.85);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary-bright);
  backdrop-filter: blur(4px);
}

/* Overlay gradient */
.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 24, 0.8) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* Card body */
.card-body {
  padding: 16px 18px 18px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.portfolio-card:hover .card-title {
  color: var(--color-primary-bright);
}

.card-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Card actions */
.card-actions {
  display: flex;
  gap: 10px;
}

.card-btn {
  flex: 1;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  border: none;
}

.card-btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #5b21b6);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

.card-btn-primary:hover {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  filter: brightness(1.1);
}

.card-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  border: 1px solid var(--border-dim);
}

.card-btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-text-primary);
  border-color: var(--border-active);
}

/* ===========================
   EMPTY STATE
=========================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.empty-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(0, 200, 212, 0.05) 100%);
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-cyan-dim), transparent);
  opacity: 0.5;
}

.cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--color-cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ===========================
   MODAL
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-panel {
  background: var(--color-bg-panel);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), var(--shadow-glow-primary);
  animation: modal-enter 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Top accent bar */
.modal-panel::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-cyan), var(--color-primary), transparent);
  flex-shrink: 0;
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-primary);
}

.modal-close {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-text-secondary);
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--color-pink);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}

/* Carousel */
.modal-carousel {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(5, 5, 8, 0.7);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary-bright);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.carousel-btn-prev { left: 16px; }
.carousel-btn-next { right: 16px; }

.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.carousel-dot.active {
  background: var(--color-primary-bright);
  box-shadow: 0 0 8px var(--color-primary);
  width: 18px;
  border-radius: 3px;
}

.modal-content-area {
  padding: 24px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-tag-category {
  padding: 5px 12px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary-bright);
}

.modal-tag-link {
  padding: 5px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-amber);
  text-decoration: none;
  transition: all var(--transition-base);
}

.modal-tag-link:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.modal-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(5, 5, 8, 0.9);
  border-top: 1px solid var(--border-dim);
  padding: 60px 24px 32px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-cyan-dim), transparent);
  opacity: 0.4;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand .brand-title {
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 300px;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  text-decoration: none;
}

.footer-social-link:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--border-active);
  color: var(--color-primary-bright);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.footer-links-col a {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--color-primary-bright);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(124, 58, 237, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tagline-dot {
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--color-primary);
  animation: dot-pulse 2s infinite;
}

/* ===========================
   AOS overrides
=========================== */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ===========================
   UTILITIES
=========================== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.hidden { display: none !important; }

/* Line clamps */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .hero-stats { gap: 24px; }
  .hero-corner { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  .header-controls { width: 100%; }
  .search-input, .search-input:focus { width: 100%; }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; padding: 60px 16px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-title { font-size: 26px; }
}

/* ===========================
   REDUCED MOTION
=========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}