/* ==========================================================================
   FAKRUL DEV // ULTRA-PREMIUM CYBER BENTO & EDGE BIODATA ENGINE
   Crafted with luxury OLED dark aesthetic, glowing gradients & glassmorphism.
   Zero AI template look. 100% Bespoke high-end developer styling.
   ========================================================================== */

:root {
  --bg-deep: #06070a;
  --bg-base: #0a0d14;
  --bg-card: rgba(13, 17, 27, 0.7);
  --bg-card-hover: rgba(19, 26, 42, 0.85);
  --bg-elevated: #151b2b;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(16, 185, 129, 0.4);
  --border-focus: rgba(6, 182, 212, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-code: #38bdf8;
  
  --neon-emerald: #10b981;
  --neon-emerald-glow: 0 0 25px rgba(16, 185, 129, 0.35);
  --neon-cyan: #06b6d4;
  --neon-cyan-glow: 0 0 25px rgba(6, 182, 212, 0.35);
  --neon-amber: #f59e0b;
  --neon-purple: #a855f7;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.12), transparent),
    radial-gradient(circle at 10% 30%, rgba(6, 182, 212, 0.07), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05), transparent 45%),
    var(--bg-deep);
}

/* Subtle Matrix Grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

.app-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
  position: relative;
  z-index: 1;
}

/* Top Telemetry Header */
.telemetry-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.82rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.telemetry-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.pulse-led {
  width: 8px;
  height: 8px;
  background: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: var(--neon-emerald-glow);
  animation: pulse-ring 2.2s infinite;
}

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

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.action-chip:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.action-chip.active {
  color: var(--neon-emerald);
  border-color: var(--neon-emerald);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: var(--neon-emerald-glow);
}

/* ==========================================================================
   HERO PROFILE SECTION (AVATAR PICTURE FRAME WITH NEON GLOW)
   ========================================================================== */
.hero-bento {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.hero-bento::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-emerald), var(--neon-cyan), var(--neon-purple), transparent);
}

.hero-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Avatar Photo Frame Container */
.avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--neon-emerald), var(--neon-cyan), var(--neon-purple));
  opacity: 0.85;
  filter: blur(4px);
  animation: rotate-glow 6s linear infinite alternate;
  z-index: 1;
}

@keyframes rotate-glow {
  0% { transform: scale(0.98); opacity: 0.6; filter: blur(4px); }
  100% { transform: scale(1.02); opacity: 0.95; filter: blur(6px); }
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: #0d121e;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

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

.avatar-frame:hover .avatar-img {
  transform: scale(1.06);
}

/* Fallback monogram placeholder */
.avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #1a2338 0%, #0a0e17 100%);
  color: var(--neon-emerald);
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.avatar-sub-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: -2px;
}

/* Floating Edit Picture Badge Button */
.edit-avatar-trigger {
  position: absolute;
  bottom: -6px;
  right: -6px;
  z-index: 5;
  background: #111726;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: var(--transition-fast);
}

.edit-avatar-trigger:hover {
  background: var(--neon-cyan);
  color: #04242e;
  transform: translateY(-2px);
  box-shadow: var(--neon-cyan-glow);
}

/* Hero Content */
.hero-content h1 {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-bio-lead {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 720px;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.tag-cluster {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.pill-tag.neon {
  color: var(--neon-emerald);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

/* CTA Buttons */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 180px;
}

.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--neon-emerald), #059669);
  color: #022c1b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  transition: var(--transition-fast);
}

.btn-cyber-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.btn-cyber-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cyber-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
}

/* ==========================================================================
   NAVIGATION BAR & TABS
   ========================================================================== */
.bento-tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  background: rgba(13, 17, 27, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.bento-tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: #ffffff;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tab-num {
  color: var(--neon-emerald);
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: slide-up 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
  display: block;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-headline-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.headline-title {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.headline-tag {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Bento Cards Grid */
.bento-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.luxury-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.luxury-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-status {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
}

.badge-status.live {
  color: var(--neon-emerald);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: var(--neon-emerald-glow);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.code-box {
  background: #060910;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

/* Tech Progress Rows */
.tech-metric-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.tech-metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.tech-bar-bg {
  height: 5px;
  background: #141a29;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-emerald), var(--neon-cyan));
  border-radius: var(--radius-full);
}

/* Terminal Shell */
.terminal-card {
  background: #040508;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: #0c0f17;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-screen {
  padding: 1.5rem;
  min-height: 400px;
  max-height: 550px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.terminal-row {
  margin-bottom: 0.4rem;
  word-break: break-all;
}

.cli-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cli-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   MODAL DIALOG (UPDATE AVATAR IMAGE URL)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: modal-fade 200ms ease;
}

@keyframes modal-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-box {
  background: #0d121c;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), var(--neon-emerald-glow);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-input {
  width: 100%;
  background: #05070d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.modal-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.preview-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.preview-circle {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid var(--neon-cyan);
  overflow: hidden;
  background: #060910;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.84rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
