/* ==========================================================================
   EroInoDes Corporate Styling Sheet
   A blend of high-end corporate luxury, K-Pop stage lighting, & Shoujo romance
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-bg-dark: #0B0813;
  --color-bg-panel: rgba(20, 16, 35, 0.7);
  --color-primary: #FF2E93; /* Neon Pink */
  --color-secondary: #00F0FF; /* Neon Cyan */
  --color-accent: #FFB3D1; /* Soft Shoujo Rose */
  --color-text-white: #FFFFFF;
  --color-text-muted: #B3AFCA;
  --color-glow-pink: rgba(255, 46, 147, 0.4);
  --color-glow-cyan: rgba(0, 240, 255, 0.4);
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow-pink: rgba(255, 46, 147, 0.3);
  --glass-border-glow-cyan: rgba(0, 240, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Drama Mode Hue & Saturation Shifts --- */
body.drama-mode {
  --color-bg-dark: #1F071D;
  --color-bg-panel: rgba(54, 15, 50, 0.7);
  --color-primary: #FF007F;
  --color-secondary: #FF85FF;
  --color-text-muted: #FFD4F3;
  --glass-bg: rgba(255, 100, 200, 0.06);
  --glass-border: rgba(255, 100, 200, 0.2);
  --glass-shadow: 0 12px 40px 0 rgba(255, 46, 147, 0.2);
}

/* --- Base Elements & CSS Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-dark);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-white);
  background-color: var(--color-bg-dark);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* --- Canvas Particle Layer --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity 0.8s ease;
}

body.drama-mode #particle-canvas {
  opacity: 0.75;
}

main {
  position: relative;
  z-index: 1;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.serif-italic {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
}

.highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p {
  color: var(--color-text-muted);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-primary), var(--color-secondary));
  border-radius: 5px;
  border: 2px solid var(--color-bg-dark);
}

/* --- Reusable Components (Glassmorphism & Buttons) --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-800 {
  max-width: 800px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.glass-bg {
  background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.03), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(255, 46, 147, 0.03), transparent 50%);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #E01E7E);
  color: var(--color-text-white);
  box-shadow: 0 4px 20px var(--color-glow-pink);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 46, 147, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-white);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--color-secondary);
  box-shadow: 0 8px 25px var(--color-glow-cyan);
}

.btn-sparkle {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: var(--color-bg-dark);
  font-weight: 800;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-sparkle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 55%
  );
  transform: rotate(-45deg);
  transition: transform 0.6s ease;
}

.btn-sparkle:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255, 46, 147, 0.5), 0 0 15px rgba(0, 240, 255, 0.5);
  color: var(--color-text-white);
}

.btn-sparkle:hover::before {
  transform: translate(50%, 50%) rotate(-45deg);
}

.btn-pulse {
  animation: pulse-glow-btn 2.5s infinite;
}

.icon-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 18px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
  border-color: var(--color-accent);
}

/* --- Grid Systems --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* --- Glowing Header --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 8, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  padding: 10px 0;
  background: rgba(11, 8, 19, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px var(--color-glow-pink);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-white);
  letter-spacing: -0.5px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-text-white);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: brightness(0.4) saturate(1.2);
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(11, 8, 19, 0.4) 0%,
    rgba(11, 8, 19, 0.8) 50%,
    var(--color-bg-dark) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  background: rgba(255, 46, 147, 0.12);
  border: 1px solid var(--color-primary);
  color: var(--color-accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  margin-bottom: 24px;
  color: var(--color-text-white);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 750px;
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--color-text-white);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- About / Concept Section --- */
.about-text-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.philosophy-content p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--color-text-muted);
}

.stat-badges {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.stat-badge {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.about-image-column {
  display: flex;
  justify-content: center;
}

.image-frame-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  max-width: 640px;
  width: 100%;
}

.about-group-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1s ease;
}

.image-frame-container:hover .about-group-img {
  transform: scale(1.05);
}

.frame-overlay-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 8, 19, 0.9) 0%, rgba(11, 8, 19, 0) 50%);
  pointer-events: none;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
  text-align: center;
}

/* --- Benefits Grid --- */
.benefit-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-bounce);
}

.benefit-card:hover {
  transform: translateY(-10px);
  border-color: var(--glass-border-glow-cyan);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.15);
}

.benefit-icon {
  font-size: 40px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.benefit-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-white);
}

.benefit-desc {
  font-size: 14px;
  line-height: 1.5;
}

/* --- Consultants Members Section --- */
.consultant-card {
  position: relative;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: var(--transition-bounce);
  background-color: #120F24;
}

.consultant-card:hover {
  transform: translateY(-12px) scale(1.02);
}

/* Individual Consultant Portraits Display */
.photo-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  overflow: hidden;
  background-color: #0B0813;
}

.consultant-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Centered and slightly focused upward for portraits */
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.95) contrast(1.02);
}

/* Custom CSS/SVG Mysterious Silhouette for Reika (Exhausted Quota Fallback) */
.reika-silhouette {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #540645 0%, #150212 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.reika-silhouette::before {
  content: 'RS';
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 800;
  color: rgba(255, 46, 147, 0.07);
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 6px;
  z-index: 1;
}

/* Elegant glowing vector design inside the mysterious placeholder */
.reika-silhouette-svg {
  width: 90px;
  height: 90px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px var(--color-primary));
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom CSS/SVG Manga Portrait for Leo (Curly Megane Tech Style) */
.leo-silhouette {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #0A2647 0%, #030814 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.leo-silhouette-svg {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 0 8px var(--color-secondary));
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.consultant-card:hover .leo-silhouette-svg {
  transform: scale(1.08) rotate(2deg);
}

.consultant-card:hover .reika-silhouette-svg {
  transform: scale(1.15) rotate(-5deg);
}

.consultant-card:hover .consultant-photo {
  transform: scale(1.08);
}

/* Glass Card Content Area */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  padding: 20px;
  background: linear-gradient(
    to bottom,
    rgba(20, 16, 35, 0.9) 0%,
    rgba(11, 8, 19, 0.98) 100%
  );
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-smooth);
}

.card-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.card-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  margin-bottom: 2px;
}

.card-role {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

/* Reveal Statistics on Hover */
.stats-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 8, 19, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(100%);
  transition: var(--transition-smooth);
  z-index: 2;
}

.consultant-card:hover .stats-preview-overlay {
  transform: translateY(0);
}

.stats-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-bar-group {
  margin-bottom: 12px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-radius: 3px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.consultant-card:hover .stat-bar-fill {
  /* Set by Javascript dynamically based on profile, or fallback to CSS transition triggers */
}

/* Consultant-specific theme glow on cards */
.consultant-card[data-id="hans"]:hover {
  border-color: #FFAA00;
  box-shadow: 0 0 25px rgba(255, 170, 0, 0.45);
}
.consultant-card[data-id="leo"]:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 25px var(--color-glow-cyan);
}
.consultant-card[data-id="min-ho"]:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 25px var(--color-glow-pink);
}
.consultant-card[data-id="reika"]:hover {
  border-color: #D313F5;
  box-shadow: 0 0 25px rgba(211, 19, 245, 0.5);
}

/* --- Synergy Matcher Widget --- */
.matcher-card {
  padding: 50px 40px;
  margin-top: 20px;
}

.matcher-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  background: rgba(11, 8, 19, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--color-text-white);
  padding: 16px 20px;
  font-size: 16px;
  border-radius: 14px;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-glow-pink);
  background: rgba(11, 8, 19, 0.8);
}

select.form-input option {
  background: #141023;
  color: var(--color-text-white);
  padding: 12px;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.hidden {
  display: none !important;
}

/* Scanning Animation State */
.matcher-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.heartbeat-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 24px;
}

.heartbeat-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  animation: heartPulse 1.2s infinite;
}

.heartbeat-ring {
  border: 3px solid var(--color-primary);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulseRing 1.8s infinite;
}

.scanning-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.scanning-details {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.progress-bar {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-radius: 4px;
}

/* Synergy Result Card */
.result-celebration {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: 30px;
  text-shadow: 0 0 10px var(--color-glow-cyan);
}

.result-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  width: 100%;
  margin-bottom: 30px;
}

.result-photo-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.result-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-badge-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 8, 19, 0.85);
  border: 1px solid var(--color-primary);
  color: var(--color-accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-white);
}

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

.result-quote-box {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  position: relative;
  margin: 8px 0;
}

.result-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--color-text-white);
  line-height: 1.5;
}

.quote-mark {
  display: none;
}

.result-move-box {
  font-size: 14px;
  color: var(--color-text-muted);
}

.result-move-box strong {
  color: var(--color-text-white);
}

.result-move {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.result-actions {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  width: 100%;
}

/* --- Projects Completed Section --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: 0 4px 15px var(--color-glow-pink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-bounce);
  animation: scaleIn 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-glow-pink);
  box-shadow: 0 12px 35px rgba(255, 46, 147, 0.1);
}

.project-category {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-white);
}

.project-detail-item {
  font-size: 14px;
  line-height: 1.5;
}

.project-detail-item strong {
  color: var(--color-text-white);
  display: block;
  margin-bottom: 2px;
}

.project-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-lead {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-link {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--color-secondary);
  border-radius: 999px;
  transition: var(--transition-smooth);
}

.project-link:hover {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
  box-shadow: 0 0 16px var(--color-glow-cyan);
}

/* --- Satirical Footer --- */
.main-footer {
  background: #06040B;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 30px 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.8fr 0.7fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo-text {
  font-size: 26px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.footer-locations h3, .footer-links h3 {
  font-size: 16px;
  color: var(--color-text-white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-locations ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-locations li {
  color: var(--color-text-muted);
}

.footer-locations li strong {
  color: var(--color-text-white);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-bottom-flex p {
  font-size: 12px;
  max-width: 500px;
}

/* --- Profile dialog modal --- */
.profile-modal {
  margin: auto;
  width: 92%;
  max-width: 1000px;
  background: var(--color-bg-panel);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  outline: none;
}

.profile-modal::backdrop {
  background: rgba(5, 3, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  font-size: 14px;
}

.modal-close-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: rotate(90deg);
}

.modal-content {
  padding: 0;
  animation: zoomFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Content inside modal */
.modal-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 560px;
}

.modal-photo-area {
  position: relative;
  background: radial-gradient(circle at 50% 40%, #1a1228 0%, #0B0813 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-info-area {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: 600px;
}

.modal-header-block {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.modal-codename {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.modal-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 4px;
}

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

.modal-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.modal-quote-box {
  background: rgba(255, 46, 147, 0.03);
  border-left: 3px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 10px 0;
}

.modal-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--color-text-white);
  line-height: 1.5;
}

.modal-bio-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.tabs-container {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.tab-header-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-header-btn.active {
  color: var(--color-primary);
}

.tab-header-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

.tab-panel {
  animation: fadeIn 0.3s ease;
}

.modal-stats-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-move-block {
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
  margin-top: 16px;
}

.modal-move-block strong {
  color: var(--color-text-white);
  display: block;
  margin-bottom: 4px;
}

.move-tag {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes zoomFade {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@keyframes heartPulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  14% { transform: translate(-50%, -50%) scale(1.25); }
  28% { transform: translate(-50%, -50%) scale(1); }
  42% { transform: translate(-50%, -50%) scale(1.2); }
  70% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pulse-glow-btn {
  0% { box-shadow: 0 4px 20px rgba(255, 46, 147, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(255, 46, 147, 0.8), 0 0 15px rgba(0, 240, 255, 0.4); }
  100% { box-shadow: 0 4px 20px rgba(255, 46, 147, 0.4); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-column {
    order: -1;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-photo-area {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* Simplification for small sizes */
  }
  .section {
    padding: 60px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .result-photo-container {
    height: 240px;
    width: 180px;
    margin: 0 auto;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .btn {
    width: 100%;
  }
}
