/* =====================================================================
   RAHUL KUMAR PAL | NIRVANA TEAM OFFICIAL PORTFOLIO
   Design System:
   - Base Theme: Rich Oceanic Marine Blue
   - Boxes, Cards & Design Elements: Electric Bright Red
   - Typography & Headings: Luminous Butter Yellow
   - Typography Font: Minimal 'Plus Jakarta Sans' & 'JetBrains Mono'
   - Ultra High Performance: 60 FPS, Zero CPU/GPU Lag, Zero Flashing
===================================================================== */

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

:root {
  /* ===================================================================
     1. MARINE BLUE FOUNDATION
  =================================================================== */
  --bg-marine-deep: #051329;        /* Deep marine blue canvas */
  --bg-marine: #071a36;             /* Primary marine background */
  --bg-marine-surface: #0a244a;     /* Marine surface container */
  --bg-marine-card: rgba(12, 36, 72, 0.78); /* High-depth card background */
  --bg-marine-card-hover: rgba(16, 46, 92, 0.92);
  --bg-marine-input: #061730;       /* Inputs and code wells */
  
  /* ===================================================================
     2. BRIGHT RED BOXES & DESIGN ACCENTS
  =================================================================== */
  --accent-red: #ff2247;            /* Vivid electric bright red */
  --accent-red-hover: #ff3d5e;      /* Lighter red on hover */
  --accent-red-deep: #d91436;       /* Deep crimson red for gradient stops */
  --accent-red-subtle: rgba(255, 34, 71, 0.12); /* Soft red tint */
  --accent-red-glow: rgba(255, 34, 71, 0.35);   /* Red halo glow */
  
  /* Box & Card Borders (Bright Red) */
  --border-red: rgba(255, 34, 71, 0.42);        /* Sharp red box border */
  --border-red-glow: rgba(255, 34, 71, 0.85);   /* Active glowing red border */
  --border-red-subtle: rgba(255, 34, 71, 0.22); /* Subtle divider */
  
  /* Box Shadows with Red Ambient Hue */
  --shadow-red-card: 0 14px 35px rgba(2, 10, 24, 0.6), 0 0 0 1px rgba(255, 34, 71, 0.32);
  --shadow-red-hover: 0 20px 48px rgba(2, 10, 24, 0.8), 0 0 0 1.5px rgba(255, 34, 71, 0.85), 0 0 28px rgba(255, 34, 71, 0.28);
  --glow-red: 0 0 25px rgba(255, 34, 71, 0.38);
  
  /* ===================================================================
     3. BUTTER YELLOW TYPOGRAPHY & LIGHTING
  =================================================================== */
  --text-butter-bright: #fff58a;    /* Ultra luminous butter yellow (Headings, H1/H2) */
  --text-butter: #ffea75;           /* Primary butter yellow (Titles, labels, links) */
  --text-butter-soft: #faedaa;      /* Warm soft butter yellow (Paragraphs, descriptions) */
  --text-butter-muted: #d9bf65;     /* Muted butter yellow (Secondary notes) */
  --text-butter-dim: #9e8a42;       /* Dim butter yellow (Subtle hints, footer copy) */
  
  /* ===================================================================
     4. CURATED GRADIENTS
  =================================================================== */
  --gradient-butter-red: linear-gradient(135deg, #fff58a 0%, #ffea75 40%, #ff2247 100%);
  --gradient-red-btn: linear-gradient(135deg, #ff2247 0%, #ff3d5e 50%, #e60026 100%);
  --gradient-red-badge: linear-gradient(135deg, rgba(255, 34, 71, 0.25) 0%, rgba(255, 34, 71, 0.08) 100%);
  --gradient-marine-card: linear-gradient(145deg, rgba(14, 42, 82, 0.9) 0%, rgba(8, 26, 54, 0.95) 100%);
  
  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-marine-deep);
  color: var(--text-butter-soft);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================================
   AMBIENT BACKGROUND (ZERO GPU OVERHEAD)
===================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 12% 18%, rgba(255, 34, 71, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(13, 50, 102, 0.6) 0%, transparent 55%),
    radial-gradient(circle at 50% 85%, rgba(255, 34, 71, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, #051329 0%, #040e1f 100%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 34, 71, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 234, 117, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black 45%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 92%);
}

/* =====================================================================
   INTERACTIVE CUSTOM CURSOR (BRIGHT RED & BUTTER YELLOW)
===================================================================== */
.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.22s, height 0.22s, border-color 0.22s, background-color 0.22s;
  box-shadow: 0 0 14px rgba(255, 34, 71, 0.4);
}

.custom-cursor.cursor-hover {
  width: 50px;
  height: 50px;
  border-color: var(--text-butter-bright);
  background-color: rgba(255, 34, 71, 0.12);
  box-shadow: 0 0 20px rgba(255, 245, 138, 0.5);
}

.custom-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--text-butter-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--text-butter-bright);
}

@media (pointer: coarse) {
  .custom-cursor, .custom-cursor-dot { display: none; }
}

/* =====================================================================
   CONTAINER & CORE TYPOGRAPHY
===================================================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-butter-bright);
}

.gradient-text {
  background: var(--gradient-butter-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

/* =====================================================================
   NAVIGATION BAR
===================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(7, 26, 54, 0.92);
  border-bottom: 1px solid var(--border-red);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(2, 10, 24, 0.6), 0 0 20px rgba(255, 34, 71, 0.15);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-butter-bright);
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 34, 71, 0.25), rgba(12, 36, 72, 0.8));
  border: 1.5px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-butter-bright);
  box-shadow: 0 0 16px rgba(255, 34, 71, 0.3);
  transition: var(--transition);
}

.brand-logo:hover .brand-emblem {
  transform: rotate(6deg) scale(1.06);
  border-color: var(--accent-red);
  box-shadow: 0 0 25px rgba(255, 34, 71, 0.5);
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-butter-bright);
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-butter);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-butter-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.24s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-red);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-toggle-btn {
  background: rgba(255, 34, 71, 0.1);
  border: 1px solid var(--border-red);
  color: var(--text-butter);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.audio-toggle-btn:hover {
  background: var(--accent-red);
  color: var(--text-butter-bright);
  box-shadow: 0 0 16px rgba(255, 34, 71, 0.5);
}

.nav-cta-btn {
  background: var(--gradient-red-btn);
  border: 1px solid var(--border-red-glow);
  color: var(--text-butter-bright);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(255, 34, 71, 0.35);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 34, 71, 0.55);
}

/* =====================================================================
   HERO SECTION
===================================================================== */
.hero-section {
  padding-top: 135px;
  padding-bottom: 70px;
  min-height: 800px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
}

/* Verified Play Store Pill (Bright Red Box with Butter Yellow Text) */
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-red-badge);
  border: 1.5px solid var(--border-red);
  color: var(--text-butter-bright);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: 0 0 18px rgba(255, 34, 71, 0.2);
}

.verified-pill-sm {
  margin-bottom: 0;
  padding: 4px 10px;
  font-size: 0.74rem;
}

.verified-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 34, 71, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(255, 34, 71, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 34, 71, 0); }
}

/* Interactive Dot Matrix Text Canvas Area */
.hero-name-wrapper {
  position: relative;
  margin-bottom: 8px;
  min-height: 160px;
}

#hero-text-canvas {
  display: block;
  width: 100%;
  max-width: 680px;
  height: 160px;
  cursor: pointer;
  touch-action: none;
}

.hero-interactive-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--accent-red);
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.9;
  margin-top: -6px;
  margin-bottom: 16px;
}

.hero-interactive-hint svg {
  animation: bounceX 1.8s infinite;
}

@keyframes bounceX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.hero-subhead {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-butter-bright);
  margin-bottom: 16px;
  line-height: 1.45;
}

.hero-bio {
  color: var(--text-butter-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-bio strong {
  color: var(--text-butter-bright);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

/* Primary Button (Bright Red Box, Butter Yellow Text) */
.btn-primary {
  background: var(--gradient-red-btn);
  color: var(--text-butter-bright);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 22px rgba(255, 34, 71, 0.4);
  transition: var(--transition);
  border: 1px solid var(--border-red-glow);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 34, 71, 0.6);
  border-color: #fff;
}

/* Secondary Button (Marine Blue Surface, Bright Red Border, Butter Yellow Text) */
.btn-secondary {
  background: var(--bg-marine-surface);
  border: 1.5px solid var(--border-red);
  color: var(--text-butter);
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(2, 10, 24, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 34, 71, 0.15);
  border-color: var(--accent-red);
  color: var(--text-butter-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 34, 71, 0.25);
}

/* Quick Stats Bar */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-red-subtle);
}

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

.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-butter-bright);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-butter-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* =====================================================================
   PARTICLE PORTRAIT MATRIX CARD (BRIGHT RED BOX ON MARINE BLUE)
===================================================================== */
.portrait-card {
  position: relative;
  background: var(--gradient-marine-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-red);
  box-shadow: var(--shadow-red-card);
  overflow: hidden;
  transition: var(--transition);
}

.portrait-card:hover {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red-hover);
}

.portrait-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-red-subtle);
  background: rgba(7, 26, 54, 0.7);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulseRed 2s infinite;
}

.status-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-butter-bright);
  letter-spacing: 0.02em;
}

.status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-butter);
  background: rgba(255, 34, 71, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-red);
  font-weight: 600;
}

.status-badge-warn {
  color: var(--text-butter-bright);
  border-color: var(--border-red);
  background: rgba(255, 34, 71, 0.15);
}

.portrait-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #051329;
  overflow: hidden;
  touch-action: none;
}

#portrait {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* Original HD photo comparison overlay */
.portrait-photo-overlay {
  position: absolute;
  inset: 0;
  background-image: url('assets/team/rahul.png');
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.portrait-photo-overlay.active {
  opacity: 1;
}

/* In-canvas HUD */
.viewport-hud {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 6;
}

.hud-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-butter);
  background: rgba(5, 19, 41, 0.85);
  border: 1px solid var(--border-red);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

#portrait-fps {
  color: var(--text-butter-bright);
  border-color: var(--accent-red);
}

/* Portrait Card Footer Controls */
.portrait-card-footer {
  padding: 14px 18px 18px;
  background: rgba(7, 26, 54, 0.85);
  border-top: 1.5px solid var(--border-red-subtle);
}

.portrait-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ctrl-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-btn {
  background: var(--bg-marine-surface);
  border: 1px solid var(--border-red);
  color: var(--text-butter);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.ctrl-btn:hover {
  background: rgba(255, 34, 71, 0.2);
  color: var(--text-butter-bright);
  border-color: var(--accent-red);
}

.ctrl-btn.active {
  background: var(--accent-red);
  color: var(--text-butter-bright);
  border-color: var(--accent-red);
  box-shadow: 0 0 12px rgba(255, 34, 71, 0.45);
}

.portrait-hint-text {
  font-size: 0.75rem;
  color: var(--text-butter-muted);
  text-align: center;
  line-height: 1.4;
}

/* =====================================================================
   SECTIONS & SECTION HEADERS
===================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

/* Section Tag (Bright Red Badge with Butter Yellow Text) */
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-butter-bright);
  background: rgba(255, 34, 71, 0.16);
  border: 1.5px solid var(--border-red);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(255, 34, 71, 0.2);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-butter-bright);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-butter-soft);
  line-height: 1.65;
}

/* =====================================================================
   ABOUT CARDS (BRIGHT RED BOXES)
===================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-card {
  background: var(--gradient-marine-card);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-red-card);
  transition: var(--transition);
  position: relative;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red-hover);
}

.about-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 34, 71, 0.16);
  border: 1.5px solid var(--border-red);
  color: var(--text-butter-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 0 16px rgba(255, 34, 71, 0.25);
}

.about-icon.brotherhood {
  background: rgba(255, 34, 71, 0.2);
}

.about-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text-butter-bright);
}

.about-card p {
  color: var(--text-butter-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-butter);
  font-weight: 500;
}

.feature-list li svg {
  color: var(--accent-red);
  flex-shrink: 0;
}

/* =====================================================================
   ECOSYSTEM & PROJECT CARDS (BRIGHT RED BOXES)
===================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--gradient-marine-card);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-red-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red-hover);
}

.project-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

/* Project Pills (Bright Red Box with Butter Yellow Text) */
.project-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-butter-bright);
  background: var(--accent-red);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(255, 34, 71, 0.4);
}

.project-pill.deal {
  background: linear-gradient(135deg, #ff2247, #d91436);
  border: 1px solid var(--border-red-glow);
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--text-butter-bright);
}

.icon-red {
  color: var(--accent-red);
}

.project-desc {
  color: var(--text-butter-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-desc strong {
  color: var(--text-butter-bright);
}

.project-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-butter);
}

.perk-item svg {
  color: var(--accent-red);
  flex-shrink: 0;
}

.project-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Google Play Official Download Button */
.playstore-btn {
  background: var(--bg-marine-deep);
  border: 1.5px solid var(--border-red);
  color: var(--text-butter-bright);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(2, 10, 24, 0.5);
}

.playstore-btn:hover {
  background: rgba(255, 34, 71, 0.15);
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 34, 71, 0.35);
}

.google-play-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
  transition: transform 0.22s ease;
}

.playstore-btn:hover .google-play-icon,
.nav-cta-btn:hover .google-play-icon,
.social-pill-btn:hover .google-play-icon {
  transform: scale(1.1);
}

.btn-text-small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-butter-muted);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-text-large {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-butter-bright);
  line-height: 1.15;
}

/* =====================================================================
   SUBDOMAIN CALCULATOR CARD (BRIGHT RED FRAME)
===================================================================== */
.subdomain-calculator-card {
  background: var(--gradient-marine-card);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-red-card);
  transition: var(--transition);
}

.subdomain-calculator-card:hover {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red-hover);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.calc-title {
  font-size: 1.8rem;
  margin: 12px 0 8px;
  color: var(--text-butter-bright);
}

.calc-desc {
  color: var(--text-butter-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.calc-desc strong {
  color: var(--text-butter-bright);
}

.calc-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-marine-input);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.calc-input-group:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 16px rgba(255, 34, 71, 0.35);
}

.calc-input-group input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-butter-bright);
  width: 100%;
  padding: 8px 0;
}

.calc-domain-suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  color: var(--accent-red);
  font-weight: 700;
  padding-left: 6px;
  user-select: none;
}

.calc-note {
  font-size: 0.82rem;
  color: var(--text-butter-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-note svg {
  color: var(--accent-red);
}

/* Calculator Price Box (Bright Red Bordered Box) */
.calc-price-box {
  background: var(--bg-marine-deep);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(2, 10, 24, 0.6);
  text-align: center;
}

.calc-price-header {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-butter-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.calc-preview-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-butter-bright);
  margin: 10px 0 16px;
}

.price-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-red-subtle);
  border-bottom: 1px solid var(--border-red-subtle);
  margin-bottom: 18px;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-butter-dim);
  font-weight: 600;
}

.price-label.highlight {
  color: var(--accent-red);
  font-weight: 700;
}

.price-market {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--text-butter-dim);
  text-decoration: line-through;
  margin-top: 4px;
}

.price-nirvana {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: var(--text-butter-bright);
  font-weight: 800;
  margin-top: 4px;
}

.calc-cta-btn {
  width: 100%;
  justify-content: center;
}

/* =====================================================================
   TEAM BROTHERHOOD SECTION (BRIGHT RED CARDS)
===================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.member-card {
  background: var(--gradient-marine-card);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-red-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red-hover);
}

.member-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-marine-deep);
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.member-card:hover .member-photo {
  transform: scale(1.06);
}

.member-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 19, 41, 0.95) 100%);
}

.member-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-butter-bright);
  background: var(--accent-red);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  box-shadow: 0 0 10px rgba(255, 34, 71, 0.5);
}

.member-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.member-name {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--text-butter-bright);
}

.member-role {
  font-size: 0.8rem;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-bio-short {
  font-size: 0.88rem;
  color: var(--text-butter-soft);
  line-height: 1.55;
  margin-bottom: 18px;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-red-subtle);
}

.member-social-btn {
  background: rgba(255, 34, 71, 0.1);
  border: 1px solid var(--border-red);
  color: var(--text-butter);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.member-social-btn:hover {
  background: var(--accent-red);
  color: var(--text-butter-bright);
  border-color: var(--accent-red);
}

.cursor-default {
  cursor: default;
}

/* =====================================================================
   PASSIONS & LIFESTYLE (BENTO GRID WITH BRIGHT RED BOXES)
===================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--gradient-marine-card);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-red-card);
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red-hover);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-butter-bright);
}

.bento-card p {
  color: var(--text-butter-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-butter-bright);
  background: rgba(255, 34, 71, 0.14);
  border: 1px solid var(--border-red);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* =====================================================================
   CONTACT & CONNECT SECTION (BRIGHT RED FRAME)
===================================================================== */
.contact-card {
  background: var(--gradient-marine-card);
  border: 2px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-red-card);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red-hover);
}

.contact-title {
  font-size: 2.4rem;
  margin: 14px 0 16px;
  color: var(--text-butter-bright);
}

.contact-desc {
  color: var(--text-butter-soft);
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.social-pill-btn {
  background: var(--bg-marine-surface);
  border: 1.5px solid var(--border-red);
  color: var(--text-butter);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(2, 10, 24, 0.4);
}

.social-pill-btn:hover {
  background: var(--accent-red);
  color: var(--text-butter-bright);
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 34, 71, 0.45);
}

.social-pill-btn svg {
  flex-shrink: 0;
}

/* =====================================================================
   FOOTER
===================================================================== */
.site-footer {
  padding: 36px 0;
  border-top: 1.5px solid var(--border-red-subtle);
  background: var(--bg-marine-deep);
  position: relative;
  z-index: 1;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-butter-muted);
}

.footer-copy strong {
  color: var(--text-butter-bright);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-butter);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-red);
}

/* =====================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET ADAPTATIONS)
===================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .about-grid, .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .contact-title {
    font-size: 1.85rem;
  }

  .project-perks {
    grid-template-columns: 1fr;
  }

  .subdomain-calculator-card {
    padding: 24px 18px;
  }

  .contact-card {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    padding: 12px 0;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .nav-cta-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .hero-section {
    padding-top: 105px;
    padding-bottom: 50px;
    min-height: auto;
  }

  #hero-text-canvas {
    height: 130px;
  }

  .hero-name-wrapper {
    min-height: 130px;
  }

  .hero-subhead {
    font-size: 1.18rem;
  }

  .hero-bio {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .hud-tag {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .portrait-card-header {
    padding: 12px 14px;
  }

  .status-title {
    font-size: 0.78rem;
  }

  .status-badge {
    font-size: 0.65rem;
  }

  .ctrl-btn {
    font-size: 0.72rem;
    padding: 5px 9px;
  }

  .portrait-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ctrl-btn-group {
    justify-content: center;
    flex-wrap: wrap;
  }

  .calc-input-group {
    padding: 4px 10px;
  }

  .calc-input-group input {
    font-size: 0.95rem;
  }

  .calc-domain-suffix {
    font-size: 0.95rem;
  }

  .calc-preview-text {
    font-size: 1.05rem;
    word-break: break-all;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .contact-links-grid {
    flex-direction: column;
    width: 100%;
  }

  .social-pill-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}
