/* ==========================================================================
   Dip Mondal Portfolio — Animated Ocean Cyber Design System
   Core Palette: #08171E, #042B44, #096B90, #71B7D5, #A1CCDC
   Accent: Emerald & Mint Green (#10B981, #34D399, #6EE7B7)
   Featuring: Flawless Light Mode, Compact Mobile UI, Interactive Canvas,
   Count-Up Stats, Holographic Rings & Smooth Micro-interactions
   ========================================================================== */

/* --- Custom Variables & Palette Tokens --- */
:root {
  /* Brand Palette (User Specified) */
  --c-abyss: #08171E;       /* Deepest Navy / Base Canvas */
  --c-ocean: #042B44;       /* Deep Ocean Blue / Card Background */
  --c-marine: #096B90;      /* Vibrant Marine / Primary Accent */
  --c-sky: #71B7D5;         /* Soft Aqua Sky / Secondary Accent */
  --c-ice: #A1CCDC;         /* Light Ice Glow / Highlight & Text */

  /* Vibrant Green Accents */
  --c-green: #10B981;
  --c-green-glow: #34D399;
  --c-green-light: #6EE7B7;
  --c-green-bg: rgba(16, 185, 129, 0.16);
  --c-green-border: rgba(16, 185, 129, 0.35);

  /* Dark Theme System (Primary) */
  --bg-primary: #08171E;
  --bg-secondary: #051c27;
  --bg-tertiary: #042B44;
  --bg-card: rgba(4, 43, 68, 0.68);
  --bg-card-hover: rgba(9, 107, 144, 0.38);
  --bg-glass: rgba(8, 23, 30, 0.86);
  --bg-input: rgba(4, 43, 68, 0.75);

  --border-subtle: rgba(161, 204, 220, 0.14);
  --border-card: rgba(113, 183, 213, 0.24);
  --border-card-hover: rgba(113, 183, 213, 0.65);
  --border-focus: #71B7D5;

  --text-primary: #F4FAFC;
  --text-secondary: #A1CCDC;
  --text-muted: #6e99af;
  --text-accent: #71B7D5;

  --accent-cyan: #71B7D5;
  --accent-marine: #096B90;
  --accent-ice: #A1CCDC;
  --accent-emerald: #10B981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Gradients with Ocean & Emerald Harmony */
  --gradient-ocean: linear-gradient(135deg, #096B90 0%, #71B7D5 50%, #A1CCDC 100%);
  --gradient-emerald: linear-gradient(135deg, #096B90 0%, #71B7D5 50%, #10B981 100%);
  --gradient-shimmer: linear-gradient(90deg, #A1CCDC 0%, #71B7D5 25%, #10B981 50%, #71B7D5 75%, #A1CCDC 100%);
  --gradient-card: linear-gradient(135deg, rgba(9, 107, 144, 0.22) 0%, rgba(4, 43, 68, 0.5) 100%);
  --gradient-hero: radial-gradient(circle at 10% 12%, rgba(9, 107, 144, 0.42) 0, transparent 38%),
                   radial-gradient(circle at 88% 20%, rgba(4, 43, 68, 0.55) 0, transparent 45%),
                   radial-gradient(circle at 45% 85%, rgba(16, 185, 129, 0.16) 0, transparent 48%),
                   radial-gradient(circle at 80% 75%, rgba(113, 183, 213, 0.2) 0, transparent 50%);

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(4, 43, 68, 0.35);
  --shadow-md: 0 10px 30px rgba(8, 23, 30, 0.6);
  --shadow-lg: 0 20px 50px rgba(4, 43, 68, 0.7);
  --shadow-glow: 0 0 35px rgba(113, 183, 213, 0.3);
  --shadow-glow-green: 0 0 35px rgba(16, 185, 129, 0.35);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'DM Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 74px;
}

/* ==========================================================================
   PERFECT LIGHT MODE THEME OVERRIDES
   Crisp contrast, high-authority headings, rich cards, legible badges & shadows
   ========================================================================== */
body.light-theme {
  --bg-primary: #f2f7fa;
  --bg-secondary: #e6f0f5;
  --bg-tertiary: #d7e7ee;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(242, 247, 250, 0.9);
  --bg-input: #ffffff;

  --border-subtle: rgba(4, 43, 68, 0.1);
  --border-card: rgba(9, 107, 144, 0.18);
  --border-card-hover: rgba(9, 107, 144, 0.55);
  --border-focus: #096B90;

  --text-primary: #08171E;
  --text-secondary: #042B44;
  --text-muted: #3d5e70;
  --text-accent: #096B90;

  --c-green-bg: rgba(16, 185, 129, 0.12);
  --c-green-border: rgba(16, 185, 129, 0.35);
  --c-green-light: #047857;

  --gradient-shimmer: linear-gradient(90deg, #096B90 0%, #047857 35%, #042B44 65%, #096B90 100%);
  --gradient-hero: radial-gradient(circle at 15% 15%, rgba(113, 183, 213, 0.22) 0, transparent 40%),
                   radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.12) 0, transparent 45%),
                   radial-gradient(circle at 50% 80%, rgba(9, 107, 144, 0.08) 0, transparent 50%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 251, 0.88) 100%);

  --shadow-sm: 0 2px 10px rgba(4, 43, 68, 0.06);
  --shadow-md: 0 8px 25px rgba(4, 43, 68, 0.09);
  --shadow-lg: 0 16px 40px rgba(4, 43, 68, 0.12);
  --shadow-glow: 0 0 25px rgba(9, 107, 144, 0.18);
}

body.light-theme #bg-canvas {
  opacity: 0.45;
}

body.light-theme .header.scrolled {
  box-shadow: 0 6px 20px rgba(4, 43, 68, 0.08);
}

body.light-theme .brand-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .cmd-palette-btn,
body.light-theme .theme-toggle-btn {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(4, 43, 68, 0.04);
}

body.light-theme .btn-secondary {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.25);
  color: #042B44;
  box-shadow: var(--shadow-sm);
}

body.light-theme .btn-secondary:hover {
  background: #f0f7fb;
  border-color: #096B90;
  color: #096B90;
}

body.light-theme .social-link-btn {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
  box-shadow: var(--shadow-sm);
}

body.light-theme .social-link-btn:hover {
  background: #096B90;
  color: #ffffff;
  border-color: #096B90;
}

body.light-theme .hero-status-pill {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #047857;
}

body.light-theme .floating-pill {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(9, 107, 144, 0.25);
  color: #042B44;
  box-shadow: 0 6px 20px rgba(4, 43, 68, 0.1);
}

body.light-theme .stat-card {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.15);
  box-shadow: var(--shadow-sm);
}

body.light-theme .stat-card:hover {
  border-color: #096B90;
  box-shadow: var(--shadow-md);
}

body.light-theme .stat-icon {
  background: rgba(9, 107, 144, 0.1);
  color: #096B90;
  border-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .stat-icon.icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

body.light-theme .pillar-card {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.15);
  box-shadow: var(--shadow-sm);
}

body.light-theme .skill-card {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.15);
  box-shadow: var(--shadow-sm);
}

body.light-theme .skill-filter-btn,
body.light-theme .project-filter-btn {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .project-card {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.16);
  box-shadow: var(--shadow-sm);
}

body.light-theme .project-card:hover {
  border-color: #096B90;
  box-shadow: var(--shadow-md);
}

body.light-theme .tech-tag {
  background: rgba(9, 107, 144, 0.08);
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .tech-tag.tag-green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

body.light-theme .timeline-card {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.15);
  box-shadow: var(--shadow-sm);
}

body.light-theme .timeline-dot {
  background: #ffffff;
  border-color: #10B981;
}

body.light-theme .cert-card,
body.light-theme .profile-card,
body.light-theme .contact-info-card,
body.light-theme .contact-form-wrap {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.15);
  box-shadow: var(--shadow-sm);
}

body.light-theme .contact-method-item {
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  border-color: rgba(9, 107, 144, 0.12);
}

body.light-theme .contact-copy-btn {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .profile-stats-row {
  background: #f8fafc;
  border-color: rgba(9, 107, 144, 0.12);
}

body.light-theme .form-control {
  background: #f8fafc;
  border-color: rgba(9, 107, 144, 0.2);
  color: #08171E;
}

body.light-theme .form-control:focus {
  background: #ffffff;
  border-color: #096B90;
  box-shadow: 0 0 0 3px rgba(9, 107, 144, 0.15);
}

body.light-theme .footer {
  background: #042B44;
  color: #A1CCDC;
  border-top-color: rgba(161, 204, 220, 0.15);
}

body.light-theme .footer-brand {
  color: #ffffff;
}

body.light-theme .promo-announcement-bar {
  background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
  border-bottom: 1px solid rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .promo-bar-text {
  color: #042B44;
}

body.light-theme .promo-bar-text strong {
  color: #096B90;
}

body.light-theme .promo-bar-badge {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #059669;
}

body.light-theme .promo-bar-cta {
  background: #096B90;
  border-color: #042B44;
  color: #ffffff;
}

body.light-theme .promo-bar-cta:hover {
  background: #059669;
  color: #ffffff;
}

body.light-theme .nav-pill-free {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #059669;
}

body.light-theme .pdf-promo-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: rgba(9, 107, 144, 0.25);
  box-shadow: 0 10px 30px rgba(9, 107, 144, 0.08);
}

body.light-theme .pdf-promo-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}

body.light-theme .pdf-promo-icon-wrap {
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
  border-color: rgba(9, 107, 144, 0.3);
  color: #059669;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

body.light-theme .pdf-promo-tagline {
  color: #096B90;
}

body.light-theme .pdf-promo-desc {
  color: #334155;
}

body.light-theme .pdf-chip {
  background: rgba(9, 107, 144, 0.08);
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .pdf-chip i {
  color: #059669;
}

body.light-theme .pdf-feature-tile {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .pdf-tile-num {
  color: #059669;
}

body.light-theme .pdf-tile-label {
  color: #042B44;
}

body.light-theme .pdf-tile-desc {
  color: #64748b;
}

body.light-theme .contact-action-btn {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .contact-action-btn:hover {
  background: #10B981;
  color: #ffffff;
}

body.light-theme .contact-status-pill {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .contact-social-pill {
  background: #f8fafc;
  color: #042B44;
  border-color: rgba(9, 107, 144, 0.15);
}

body.light-theme .contact-social-pill:hover {
  background: #ecfdf5;
  color: #047857;
  border-color: #10B981;
}

body.light-theme .form-header-icon {
  background: #e0f2fe;
  color: #096B90;
  border-color: rgba(9, 107, 144, 0.25);
}

body.light-theme .input-with-icon > i {
  color: #64748b;
}

body.light-theme .input-with-icon:focus-within > i {
  color: #096B90;
}

body.light-theme .project-mockup-frame {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  box-shadow: 0 4px 16px rgba(9, 107, 144, 0.08);
}

body.light-theme .mockup-browser-bar {
  background: #e0f2fe;
  border-bottom-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .mockup-url-pill {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .canvas-pdf-render {
  background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
}

body.light-theme .canvas-chat-analyzer {
  background: linear-gradient(135deg, #f0fdf4, #f8fafc);
}

body.light-theme .canvas-similarity {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

body.light-theme .canvas-spam {
  background: linear-gradient(135deg, #fef2f2, #f0f9ff);
}

body.light-theme .canvas-campus {
  background: linear-gradient(135deg, #f0f9ff, #f8fafc);
}

body.light-theme .canvas-diet {
  background: linear-gradient(135deg, #f0fdf4, #f0f9ff);
}

body.light-theme .mockup-doc-preview {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .mini-chip {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .chat-bubble.incoming {
  background: #e0f2fe;
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .diff-pane {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.15);
}

body.light-theme .mockup-sms-bubble {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .sms-text {
  color: #042B44;
}

body.light-theme .mini-notice-pin {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.15);
}

body.light-theme .notice-pin-title {
  color: #042B44;
}

body.light-theme .calorie-ring-box {
  background: #ffffff;
}

body.light-theme .macro-lbl {
  color: #64748b;
}

body.light-theme .macro-val {
  color: #042B44;
}

body.light-theme .resume-modal-content {
  background: #ffffff !important;
  border-color: rgba(9, 107, 144, 0.25) !important;
}

body.light-theme .resume-modal-header {
  background: #f0f9ff;
  border-bottom-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .resume-modal-title {
  color: #042B44;
}

body.light-theme .resume-cv-pill {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.3);
}

body.light-theme .resume-close-btn {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .resume-close-btn:hover {
  background: var(--accent-rose);
  color: #ffffff;
  border-color: var(--accent-rose);
}

body.light-theme .resume-tab-switcher {
  background: #e0f2fe;
  border-color: rgba(9, 107, 144, 0.25);
}

body.light-theme .resume-summary-item {
  background: #f8fafc;
  border-color: rgba(9, 107, 144, 0.15);
}

body.light-theme .resume-entry {
  background: #f8fafc;
}

body.light-theme .sound-toggle-btn {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(4, 43, 68, 0.04);
}

body.light-theme .sound-toggle-btn.sound-active {
  background: #f0fdf4;
  border-color: rgba(5, 150, 105, 0.4);
  color: #047857;
}

body.light-theme .pdf-viewer-toolbar {
  background: #f0f9ff;
  border-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .pdf-tool-btn {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .pdf-tool-btn:hover {
  background: #f0fdf4;
  border-color: #10b981;
  color: #047857;
}

body.light-theme .pdf-zoom-badge {
  background: #e0f2fe;
  color: #042B44;
  border-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .resume-canvas-scroll {
  background: #e2e8f0;
  border-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .resume-pdf-loading {
  color: #042B44;
}

body.light-theme .skill-tags {
  color: #334155;
}

body.light-theme .resume-honor-item {
  color: #334155;
}

body.light-theme .project-ping-pill {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
  color: #059669;
}

body.light-theme .project-ping-pill:hover {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.5);
}

body.light-theme .ping-dot {
  background: #059669;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.6);
}

body.light-theme .modal-telemetry-bar {
  background: #f0fdf4;
  border-color: rgba(5, 150, 105, 0.25);
}

body.light-theme .telemetry-dot {
  background: #059669;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
}

body.light-theme .telemetry-status {
  color: #047857;
}

body.light-theme .telemetry-host {
  color: #042B44;
  border-left-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .telemetry-latency {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .telemetry-latency i {
  color: #059669;
}

body.light-theme .telemetry-ping-btn {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.35);
  color: #047857;
}

body.light-theme .telemetry-ping-btn:hover {
  background: rgba(5, 150, 105, 0.18);
  border-color: rgba(5, 150, 105, 0.5);
}

body.light-theme .arch-node {
  background: #f8fafc;
  border-color: rgba(9, 107, 144, 0.18);
}

body.light-theme .arch-node:hover {
  background: #f0fdf4;
  border-color: rgba(5, 150, 105, 0.35);
}

body.light-theme .arch-icon-wrap {
  background: #e0f2fe;
  border-color: rgba(9, 107, 144, 0.2);
  color: #047857;
}

body.light-theme .arch-node-title {
  color: #042B44;
}

body.light-theme .arch-node-sub {
  color: #096B90;
}

body.light-theme .arch-node-desc {
  color: #475569;
}

body.light-theme .arch-step-badge {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.3);
}

body.light-theme .arch-connector {
  color: rgba(9, 107, 144, 0.3);
}

body.light-theme #back-to-top {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.4);
  color: #047857;
  box-shadow: var(--shadow-md);
}

body.light-theme #back-to-top .progress-ring-bg {
  stroke: rgba(9, 107, 144, 0.14);
}

body.light-theme #back-to-top .progress-ring-circle {
  stroke: #059669;
}

body.light-theme #back-to-top:hover {
  background: #10B981;
  color: #ffffff;
}

body.light-theme #back-to-top:hover .progress-ring-circle {
  stroke: #ffffff;
}

/* Explicit Light Theme Terminal Perfection — High Contrast & Razor-Sharp Vision */
body.light-theme .terminal-window {
  background: #041d2c;
  border: 1px solid rgba(9, 107, 144, 0.45);
  box-shadow: 0 18px 45px rgba(4, 43, 68, 0.2), 0 0 35px rgba(113, 183, 213, 0.18);
}

body.light-theme .terminal-header {
  background: #03253b;
  border-bottom: 1px solid rgba(161, 204, 220, 0.22);
}

body.light-theme .terminal-title {
  color: #A1CCDC;
}

body.light-theme .terminal-tab-btn {
  color: #A1CCDC;
  background: rgba(161, 204, 220, 0.12);
  border: 1px solid rgba(161, 204, 220, 0.2);
}

body.light-theme .terminal-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(161, 204, 220, 0.22);
  border-color: rgba(161, 204, 220, 0.4);
}

body.light-theme .terminal-tab-btn.active {
  color: #34D399;
  background: rgba(16, 185, 129, 0.25);
  border-color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

body.light-theme .terminal-body {
  background: #041d2c;
  color: #E2F1F8;
}

body.light-theme .terminal-line {
  color: #E2F1F8;
}

body.light-theme .terminal-prompt {
  color: #34D399 !important;
}

body.light-theme .terminal-cmd {
  color: #FFFFFF !important;
}

body.light-theme .terminal-output {
  color: #D6ECF5 !important;
  border-left-color: #71B7D5;
}

body.light-theme .terminal-output a {
  color: #71B7D5;
}

body.light-theme .terminal-output a:hover {
  color: #34D399;
}

body.light-theme .terminal-output.success {
  color: #34D399 !important;
}

body.light-theme .terminal-output.accent {
  color: #71B7D5 !important;
}

body.light-theme .terminal-input {
  color: #FFFFFF !important;
}

body.light-theme .terminal-input::placeholder {
  color: rgba(161, 204, 220, 0.6);
}

body.light-theme .terminal-quick-actions {
  background: #021a29;
  border-top: 1px solid rgba(161, 204, 220, 0.2);
}

body.light-theme .terminal-quick-actions span {
  color: #89BDD3 !important;
}

body.light-theme .quick-cmd-btn {
  background: rgba(9, 107, 144, 0.4);
  border: 1px solid rgba(113, 183, 213, 0.35);
  color: #E0F2FE;
}

body.light-theme .quick-cmd-btn:hover {
  background: #096B90;
  border-color: #34D399;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  background-image: var(--gradient-hero);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Animated Interactive Background Canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.4s ease;
}

/* Cursor Glow Tracker */
.cursor-glow {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 183, 213, 0.13) 0%, rgba(16, 185, 129, 0.08) 35%, rgba(9, 107, 144, 0.05) 65%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: screen;
}

@media (pointer: coarse) {
  .cursor-glow { display: none !important; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Scroll Progress Bar with Liquid Animation --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #096B90, #71B7D5, #10B981, #A1CCDC, #71B7D5);
  background-size: 250% 100%;
  animation: liquid-gradient 4.5s ease infinite;
  z-index: 1000;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.7);
}

@keyframes liquid-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Layout Container --- */
.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* --- Animated Shimmer Text --- */
.text-gradient {
  background: var(--gradient-shimmer);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 6s linear infinite;
  display: inline-block;
}

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

/* --- Header & Glassmorphic Sticky Navbar --- */
/* --- Top Promo Announcement Bar --- */
.promo-announcement-bar {
  background: linear-gradient(90deg, #042B44 0%, #096B90 50%, #042B44 100%);
  border-bottom: 1px solid rgba(113, 183, 213, 0.25);
  color: #f8fafc;
  font-size: 0.82rem;
  padding: 8px 16px;
  position: relative;
  z-index: 101;
}

.promo-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.promo-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo-bar-text {
  color: #f1f5f9;
  font-size: 0.82rem;
}

.promo-bar-text strong {
  color: #71b7d5;
}

.promo-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(113, 183, 213, 0.2);
  border: 1px solid rgba(113, 183, 213, 0.4);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.promo-bar-cta:hover {
  background: var(--c-green);
  color: #08171E;
  border-color: var(--c-green-light);
  transform: translateX(2px);
}

/* Nav Link PDF Free Badge */
.nav-link-pdf {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-pill-free {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 10px 30px rgba(4, 43, 68, 0.45);
  border-bottom-color: var(--border-card);
}

.navbar {
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  position: relative;
}

.brand:hover .brand-badge {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--c-green-bg);
  color: var(--c-green-light);
  border: 1px solid var(--c-green-border);
  transition: all var(--transition-fast);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 12px var(--c-green), 0 0 20px var(--c-green);
  animation: pulse-aura 2.2s infinite ease-in-out;
}

@keyframes pulse-aura {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; filter: brightness(1.3); }
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #71B7D5, #10B981);
  border-radius: 2px;
  transition: width var(--transition-base);
}

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

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

/* Command Palette Trigger Button */
.cmd-palette-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.cmd-palette-btn:hover {
  border-color: var(--c-sky);
  color: var(--text-primary);
  background: rgba(9, 107, 144, 0.3);
  box-shadow: 0 0 15px rgba(113, 183, 213, 0.3);
}

.kbd {
  display: inline-flex;
  padding: 2px 6px;
  font-size: 0.72rem;
  background: rgba(161, 204, 220, 0.15);
  border-radius: 4px;
  color: var(--c-sky);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--c-green-light);
  border-color: var(--c-green);
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
body.light-theme .theme-toggle-btn .sun-icon { display: block; }
body.light-theme .theme-toggle-btn .moon-icon { display: none; }

/* Sound Feedback Toggle Button */
.sound-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.sound-toggle-btn:hover {
  color: var(--c-green-light);
  border-color: var(--c-green);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.sound-toggle-btn.sound-active {
  color: var(--c-green-light);
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.sound-toggle-btn .sound-icon-on { display: none; }
.sound-toggle-btn .sound-icon-off { display: block; }
.sound-toggle-btn.sound-active .sound-icon-on { display: block; }
.sound-toggle-btn.sound-active .sound-icon-off { display: none; }

/* Mobile Menu Button */
.menu-toggle-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  place-items: center;
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* --- Animated Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #096B90 0%, #71B7D5 50%, #10B981 100%);
  color: #08171E;
  box-shadow: 0 6px 24px rgba(9, 107, 144, 0.45), 0 0 18px rgba(16, 185, 129, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(113, 183, 213, 0.6), 0 0 25px rgba(16, 185, 129, 0.45);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(4, 43, 68, 0.75);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: rgba(9, 107, 144, 0.35);
  border-color: var(--c-green);
  transform: translateY(-2px);
  color: var(--c-green-light);
  box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.25);
}

.btn-outline {
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--c-green-light);
  background: rgba(16, 185, 129, 0.12);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--c-green);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

/* --- Section Headers --- */
section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-green-light);
  margin-bottom: 12px;
}

.section-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 10px var(--c-green);
  animation: pulse-aura 2s infinite ease-in-out;
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

/* --- Hero Section --- */
.hero-section {
  padding: 60px 0 90px;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

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

/* Pulsing Green Status Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: var(--c-green-bg);
  border: 1px solid var(--c-green-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-green-light);
  margin-bottom: 22px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  animation: float-soft 3.5s ease-in-out infinite;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 14px var(--c-green), 0 0 22px var(--c-green);
  animation: pulse-aura 1.8s infinite;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-typing-wrap {
  font-size: clamp(1.15rem, 2.3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 18px;
  min-height: 2.3rem;
  display: flex;
  align-items: center;
}

.hero-typing {
  color: var(--c-sky);
  margin-left: 6px;
  text-shadow: 0 0 18px rgba(113, 183, 213, 0.5);
}

body.light-theme .hero-typing {
  color: #096B90;
  text-shadow: none;
}

.typing-cursor {
  display: inline-block;
  color: var(--c-green-light);
  margin-left: 2px;
  font-weight: 400;
  animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.68;
  margin-bottom: 30px;
}

.hero-highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}

.social-links-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.05rem;
  transition: all var(--transition-base);
  position: relative;
}

.social-link-btn:hover {
  background: var(--c-marine);
  color: var(--text-primary);
  border-color: var(--c-green);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

/* --- Animated Hologram Avatar with Green & Cyan Halo --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-orbital-container {
  position: relative;
  width: min(380px, 85vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* Outer Orbital Ring (Clockwise, Cyan / Teal) */
.orbital-ring-outer {
  position: absolute;
  inset: -14px;
  border-radius: 46px;
  border: 2px dashed rgba(113, 183, 213, 0.4);
  animation: orbit-rotate 24s linear infinite;
  pointer-events: none;
}

/* Inner Orbital Ring (Counter-Clockwise, Mint Green Glow) */
.orbital-ring-inner {
  position: absolute;
  inset: -6px;
  border-radius: 40px;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  animation: orbit-rotate-rev 18s linear infinite;
  pointer-events: none;
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-rotate-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.hero-avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  padding: 12px;
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  border: 2px solid rgba(161, 204, 220, 0.2);
  filter: contrast(1.05) brightness(1.02);
}

/* Floating Tech Badges */
.floating-pill {
  position: absolute;
  padding: 8px 15px;
  background: rgba(4, 43, 68, 0.88);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(4, 43, 68, 0.6);
  z-index: 5;
  transition: all 0.3s ease;
}

.floating-pill:hover {
  transform: scale(1.1) translateY(-4px) !important;
}

.pill-fastapi {
  top: 6%;
  left: -8%;
  border: 1px solid var(--c-green-border);
  color: var(--c-green-light);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
  animation: float-badge-1 4.5s ease-in-out infinite;
}
.pill-fastapi i { color: var(--c-green); }

.pill-gemini {
  bottom: 12%;
  left: -6%;
  border: 1px solid rgba(113, 183, 213, 0.4);
  color: var(--c-ice);
  box-shadow: 0 0 16px rgba(113, 183, 213, 0.25);
  animation: float-badge-2 5s ease-in-out infinite 1.2s;
}
.pill-gemini i { color: var(--c-sky); }

.pill-python {
  top: 14%;
  right: -8%;
  border: 1px solid var(--c-green-border);
  color: var(--c-green-light);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  animation: float-badge-1 4.8s ease-in-out infinite 2.4s;
}
.pill-python i { color: var(--c-green); }

.pill-cpp {
  bottom: 6%;
  right: -4%;
  border: 1px solid rgba(113, 183, 213, 0.35);
  color: var(--c-ice);
  box-shadow: 0 0 16px rgba(113, 183, 213, 0.2);
  animation: float-badge-2 4.2s ease-in-out infinite 0.6s;
}
.pill-cpp i { color: var(--c-sky); }

@keyframes float-badge-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-badge-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- Metrics / Stats Banner with Animated Counters --- */
.stats-banner {
  padding: 0;
  margin-top: -30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-md), 0 0 25px rgba(113, 183, 213, 0.25);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(9, 107, 144, 0.28);
  color: var(--c-sky);
  border: 1px solid rgba(113, 183, 213, 0.3);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.stat-icon.icon-green {
  background: var(--c-green-bg);
  border-color: var(--c-green-border);
  color: var(--c-green-light);
}

.stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 18px rgba(113, 183, 213, 0.45);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  font-family: var(--font-sans);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Interactive Terminal Section --- */
.terminal-section {
  padding: 50px 0 90px;
}

.terminal-window {
  background: #041c29;
  border: 1px solid rgba(113, 183, 213, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 45px rgba(9, 107, 144, 0.35);
  overflow: hidden;
  position: relative;
}

.terminal-header {
  background: #032135;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(161, 204, 220, 0.18);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #10B981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #A1CCDC;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-tabs {
  display: flex;
  gap: 6px;
}

.tab-full { display: inline; }
.tab-short { display: none; }
.prompt-full { display: inline; }
.prompt-short { display: none; }

.terminal-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 11px;
  border-radius: 6px;
  color: #A1CCDC;
  background: rgba(161, 204, 220, 0.1);
  border: 1px solid rgba(161, 204, 220, 0.15);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.terminal-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(161, 204, 220, 0.2);
  border-color: rgba(161, 204, 220, 0.35);
}

.terminal-tab-btn.active {
  color: #34D399;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #E2F1F8;
  min-height: 280px;
  max-height: 440px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #E2F1F8;
}

.terminal-prompt {
  color: #34D399 !important;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal-cmd {
  color: #FFFFFF !important;
  font-weight: 500;
}

.terminal-output {
  color: #D6ECF5 !important;
  padding-left: 14px;
  border-left: 2px solid #71B7D5;
  margin-top: 6px;
  line-height: 1.65;
}

.terminal-output a {
  color: #71B7D5;
  text-decoration: underline;
  text-decoration-color: rgba(113, 183, 213, 0.5);
  transition: all var(--transition-fast);
}

.terminal-output a:hover {
  color: #34D399;
  text-decoration-color: #34D399;
}

.terminal-output.success { color: #34D399 !important; }
.terminal-output.accent { color: #71B7D5 !important; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.terminal-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #FFFFFF;
  background: transparent;
  border: none;
  outline: none;
}

.terminal-input::placeholder {
  color: rgba(161, 204, 220, 0.6);
}

.terminal-quick-actions {
  padding: 12px 24px;
  background: #021827;
  border-top: 1px solid rgba(161, 204, 220, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.terminal-quick-actions span {
  color: #89BDD3 !important;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.quick-cmd-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(9, 107, 144, 0.35);
  border: 1px solid rgba(113, 183, 213, 0.3);
  color: #E0F2FE;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.quick-cmd-btn:hover {
  background: #096B90;
  border-color: #34D399;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.25);
}

/* --- About Section --- */
.about-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-lead {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-base);
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.pillar-icon.icon-green { color: var(--c-green-light); }
.pillar-icon.icon-blue { color: var(--c-sky); }

.pillar-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.pillar-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Skills Section --- */
.skills-filter-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.skill-filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-filter-btn:hover,
.skill-filter-btn.active {
  background: linear-gradient(135deg, #096B90, #10B981);
  color: #08171E;
  border-color: var(--c-green);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-sky);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.skill-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.skill-icon-wrap.accent-green {
  background: var(--c-green-bg);
  border: 1px solid var(--c-green-border);
  color: var(--c-green-light);
}

.skill-icon-wrap.accent-blue {
  background: rgba(9, 107, 144, 0.25);
  border: 1px solid rgba(113, 183, 213, 0.25);
  color: var(--c-sky);
}

.skill-card:hover .skill-icon-wrap {
  transform: scale(1.08) rotate(4deg);
}

.skill-info h3 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- Projects Section --- */
.projects-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.project-filter-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.project-filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.project-filter-btn:hover,
.project-filter-btn.active {
  background: var(--gradient-emerald);
  color: #08171E;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, -150px);
  left: var(--mouse-x, -150px);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(113, 183, 213, 0.16) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-sky);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(113, 183, 213, 0.3);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-sky);
}

.project-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--c-green-bg);
  color: var(--c-green-light);
  border: 1px solid var(--c-green-border);
}

.project-header-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-ping-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  color: var(--c-green-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1;
  white-space: nowrap;
}

.project-ping-pill:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: pingPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  display: inline-block;
}

@keyframes pingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* --- Project Mockup Frames --- */
.project-mockup-frame {
  display: block;
  width: 100%;
  margin: 12px 0 16px;
  background: rgba(8, 23, 30, 0.9);
  border: 1px solid rgba(113, 183, 213, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}

.project-card:hover .project-mockup-frame {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.mockup-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(4, 43, 68, 0.85);
  border-bottom: 1px solid rgba(113, 183, 213, 0.18);
  font-family: var(--font-mono);
}

.mockup-window-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-close { background: #ef4444; opacity: 0.8; }
.dot-min { background: #f59e0b; opacity: 0.8; }
.dot-expand { background: #10b981; opacity: 0.8; }

.mockup-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(8, 23, 30, 0.7);
  border: 1px solid rgba(113, 183, 213, 0.15);
  color: var(--c-sky);
  font-size: 0.68rem;
  max-width: 60%;
}

.mockup-lock-icon {
  font-size: 0.62rem;
  color: var(--c-green-light);
}

.mockup-url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-green-light);
}

.mockup-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-green-light);
  box-shadow: 0 0 6px var(--c-green-light);
  animation: pulseDot 2s infinite;
}

/* Mockup Canvas Area */
.mockup-canvas {
  height: 125px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Hover overlay */
.mockup-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 43, 68, 0.85);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 5;
}

.project-mockup-frame:hover .mockup-hover-overlay {
  opacity: 1;
}

.mockup-hover-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--c-green);
  color: #08171E;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  transform: translateY(4px);
  transition: all var(--transition-fast);
}

.project-mockup-frame:hover .mockup-hover-btn {
  transform: translateY(0);
}

/* Canvas 1: PDF Render */
.canvas-pdf-render {
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 60%), linear-gradient(135deg, rgba(4, 43, 68, 0.6), rgba(8, 23, 30, 0.8));
}

.mockup-doc-preview {
  width: 68px;
  height: 90px;
  background: #ffffff;
  border-radius: 4px;
  padding: 8px 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(161, 204, 220, 0.3);
}

.doc-crest-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #042B44;
  color: #34d399;
  font-size: 0.55rem;
  display: grid;
  place-items: center;
}

.doc-lines-mini {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-line {
  height: 3px;
  border-radius: 2px;
  background: #cbd5e1;
}

.doc-line.title-line {
  width: 80%;
  background: #096B90;
}

.doc-line.sub-line {
  width: 60%;
  background: #10B981;
}

.doc-line.body-line {
  width: 90%;
  background: #e2e8f0;
}

.mockup-chips-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(4, 43, 68, 0.8);
  border: 1px solid rgba(113, 183, 213, 0.25);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-family: var(--font-mono);
}

.mini-chip.chip-green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--c-green-light);
}

/* Canvas 2: WhatsApp Chat */
.canvas-chat-analyzer {
  background: radial-gradient(circle at 10% 20%, rgba(37, 211, 102, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(4, 43, 68, 0.6), rgba(8, 23, 30, 0.8));
}

.mockup-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 55%;
}

.chat-bubble {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.65rem;
  line-height: 1.25;
}

.chat-bubble.incoming {
  background: rgba(9, 107, 144, 0.35);
  border: 1px solid rgba(113, 183, 213, 0.25);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

.chat-bubble.outgoing {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}

.mockup-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  padding: 4px;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}

.chart-col .bar {
  width: 14px;
  border-radius: 3px 3px 0 0;
  transition: all var(--transition-fast);
}

.bar-green { background: #10B981; }
.bar-cyan { background: #71B7D5; }
.bar-slate { background: #475569; }

.col-lbl {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Canvas 3: Assignment Similarity */
.canvas-similarity {
  background: radial-gradient(circle at 50% 50%, rgba(113, 183, 213, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(4, 43, 68, 0.6), rgba(8, 23, 30, 0.8));
}

.mockup-diff-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
}

.diff-pane {
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid rgba(113, 183, 213, 0.2);
  border-radius: 6px;
  padding: 6px;
  width: 38%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.diff-title {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: var(--c-sky);
}

.diff-line {
  height: 3px;
  background: rgba(161, 204, 220, 0.2);
  border-radius: 2px;
}

.diff-line.match {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.diff-meter-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 23, 30, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.meter-num {
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--c-green-light);
}

.meter-lbl {
  font-size: 0.52rem;
  color: var(--text-muted);
}

/* Canvas 4: SMS Spam */
.canvas-spam {
  background: radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.1) 0%, transparent 60%), linear-gradient(135deg, rgba(4, 43, 68, 0.6), rgba(8, 23, 30, 0.8));
}

.mockup-sms-bubble {
  background: rgba(4, 43, 68, 0.7);
  border: 1px solid rgba(113, 183, 213, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  max-width: 55%;
}

.sms-sender {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--c-sky);
  margin-bottom: 2px;
}

.sms-text {
  font-size: 0.62rem;
  color: #e2e8f0;
  line-height: 1.25;
}

.verdict-tag.tag-spam {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.66rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Canvas 5: Campus Notice Hub */
.canvas-campus {
  background: radial-gradient(circle at 80% 80%, rgba(113, 183, 213, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(4, 43, 68, 0.6), rgba(8, 23, 30, 0.8));
}

.mockup-notices-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 58%;
}

.mini-notice-pin {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(4, 43, 68, 0.65);
  border: 1px solid rgba(113, 183, 213, 0.2);
}

.notice-badge {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.badge-kgec { background: rgba(16, 185, 129, 0.25); color: #34d399; }
.badge-makaut { background: rgba(9, 107, 144, 0.35); color: #71b7d5; }

.notice-pin-title {
  font-size: 0.62rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Canvas 6: AI Diet Manager */
.canvas-diet {
  background: radial-gradient(circle at 10% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(4, 43, 68, 0.6), rgba(8, 23, 30, 0.8));
}

.mockup-diet-grid {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calorie-ring-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(4, 43, 68, 0.8);
  border: 2px solid var(--c-green-light);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.cal-num {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--c-green-light);
}

.cal-unit {
  font-size: 0.48rem;
  color: var(--text-muted);
}

.macro-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 80px;
}

.macro-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-family: var(--font-mono);
}

.macro-lbl { width: 34px; color: var(--text-muted); }
.macro-val { color: var(--text-primary); font-weight: 600; }

.macro-track {
  width: 32px;
  height: 4px;
  background: rgba(161, 204, 220, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.macro-fill { height: 100%; border-radius: 2px; }
.fill-green { background: #10B981; }
.fill-sky { background: #71B7D5; }
.fill-slate { background: #94a3b8; }

.project-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-card-desc {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(9, 107, 144, 0.2);
  border: 1px solid rgba(113, 183, 213, 0.25);
  color: var(--c-ice);
  transition: all var(--transition-fast);
}

.tech-tag.tag-green {
  background: var(--c-green-bg);
  border-color: var(--c-green-border);
  color: var(--c-green-light);
}

.project-card:hover .tech-tag {
  border-color: rgba(113, 183, 213, 0.5);
}

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

.project-links-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.project-link:hover {
  color: var(--c-green-light);
}

.project-details-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.project-details-btn:hover {
  color: var(--c-sky);
}

/* --- Project Details Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 23, 30, 0.88);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #042B44;
  border: 1px solid rgba(113, 183, 213, 0.35);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 30px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(9, 107, 144, 0.5);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: all var(--transition-base);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-backdrop.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 23, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
}

.modal-project-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.modal-project-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-sky);
  margin-bottom: 18px;
}

.modal-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 16px 0 8px;
}

.modal-body-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-feature-list {
  list-style: none;
  margin: 12px 0 18px;
}

.modal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-feature-item i {
  color: var(--c-green-light);
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* --- Modal Telemetry Bar --- */
.modal-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin: 14px 0 20px;
  background: rgba(8, 23, 30, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 10px;
}

.telemetry-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.telemetry-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
}

.telemetry-status {
  font-weight: 700;
  color: var(--c-green-light);
  letter-spacing: 0.02em;
}

.telemetry-host {
  color: var(--c-sky);
  font-size: 0.72rem;
  padding-left: 6px;
  border-left: 1px solid rgba(113, 183, 213, 0.25);
}

.telemetry-ping-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-latency {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--c-sky);
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(9, 107, 144, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(113, 183, 213, 0.25);
}

.telemetry-latency i {
  color: var(--c-green-light);
}

.telemetry-ping-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--c-green-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.telemetry-ping-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.telemetry-ping-btn.is-pinging i {
  animation: fa-spin 0.8s linear infinite;
}

/* --- System Architecture & Data Flow Pipeline --- */
.modal-arch-pipeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 22px;
}

.arch-node {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(8, 23, 30, 0.55);
  border: 1px solid rgba(113, 183, 213, 0.18);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.arch-node:hover {
  background: rgba(4, 43, 68, 0.65);
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateX(3px);
}

.arch-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(9, 107, 144, 0.25);
  border: 1px solid rgba(113, 183, 213, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green-light);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition-base);
}

.arch-node:hover .arch-icon-wrap {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34D399;
}

.arch-node-content {
  flex: 1;
  min-width: 0;
}

.arch-node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.arch-step-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--c-green-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.05em;
}

.arch-node-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.arch-node-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-sky);
  margin-bottom: 4px;
}

.arch-node-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
  color: rgba(113, 183, 213, 0.4);
  font-size: 0.75rem;
}

.arch-connector i {
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(2px); opacity: 0.9; color: var(--c-green-light); }
}

/* --- Timeline & Education Section --- */
.timeline-wrap {
  max-width: 860px;
  margin-inline: auto;
  position: relative;
  padding-left: 36px;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-green) 0%, var(--c-sky) 50%, var(--c-marine) 100%);
}

.timeline-card {
  position: relative;
  margin-bottom: 36px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition-base);
}

.timeline-card:last-child {
  margin-bottom: 0;
}

.timeline-card:hover {
  transform: translateX(6px);
  border-color: var(--c-sky);
  box-shadow: var(--shadow-md);
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 24px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--c-green);
  box-shadow: 0 0 14px var(--c-green);
  z-index: 3;
}

.timeline-card:nth-child(even) .timeline-dot {
  border-color: var(--c-sky);
  box-shadow: 0 0 14px var(--c-sky);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-green-light);
  margin-bottom: 5px;
}

.timeline-card:nth-child(even) .timeline-date {
  color: var(--c-sky);
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-institution {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Certifications Sub-grid */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-base);
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-sky);
  box-shadow: var(--shadow-sm);
}

.cert-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.cert-icon.icon-green {
  background: var(--c-green-bg);
  color: var(--c-green-light);
  border: 1px solid var(--c-green-border);
}

.cert-icon.icon-blue {
  background: rgba(9, 107, 144, 0.25);
  color: var(--c-sky);
  border: 1px solid rgba(113, 183, 213, 0.3);
}

.cert-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.cert-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--c-sky);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Coding Profiles Showcase --- */
/* --- PDF Render Promo Showcase Section --- */
.pdf-promo-section {
  padding: 64px 0 40px;
  position: relative;
}

.pdf-promo-card {
  background: linear-gradient(135deg, rgba(4, 43, 68, 0.85) 0%, rgba(8, 23, 30, 0.95) 100%);
  border: 1px solid rgba(113, 183, 213, 0.28);
  border-radius: var(--radius-xl);
  padding: 42px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.pdf-promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.pdf-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--c-green-light);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.pdf-promo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}

.pdf-promo-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pdf-promo-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #096B90, #042B44);
  border: 1px solid rgba(113, 183, 213, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #34d399;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.pdf-promo-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pdf-promo-tagline {
  font-size: 0.86rem;
  font-family: var(--font-mono);
  color: var(--c-sky);
  margin-top: 3px;
}

.pdf-promo-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pdf-promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pdf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(9, 107, 144, 0.25);
  border: 1px solid rgba(113, 183, 213, 0.22);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 500;
}

.pdf-chip i {
  color: var(--c-green-light);
  font-size: 0.75rem;
}

.pdf-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pdf-launch-btn {
  background: linear-gradient(135deg, #10b981 0%, #096b90 100%) !important;
  color: #08171E !important;
  font-weight: 700;
  border: none !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.pdf-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
  color: #04141c !important;
}

.pdf-frontpage-btn {
  background: rgba(4, 43, 68, 0.75) !important;
  border: 1px solid rgba(113, 183, 213, 0.35) !important;
  color: var(--c-sky) !important;
}

.pdf-frontpage-btn:hover {
  background: rgba(9, 107, 144, 0.5) !important;
  border-color: var(--c-sky) !important;
  color: #ffffff !important;
}

/* Feature Preview 2x2 Grid */
.pdf-promo-features-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pdf-feature-tile {
  background: rgba(8, 23, 30, 0.75);
  border: 1px solid rgba(113, 183, 213, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  transition: all var(--transition-fast);
}

.pdf-feature-tile:hover {
  border-color: var(--c-green-border);
  transform: translateY(-2px);
  background: rgba(4, 43, 68, 0.6);
}

.pdf-tile-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--c-green-light);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.pdf-tile-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.pdf-tile-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.coding-profiles-section {
  padding: 50px 0 90px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-sky);
  box-shadow: var(--shadow-md);
}

.profile-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-avatar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.icon-leetcode { background: rgba(255, 161, 22, 0.15); color: #ffa116; border: 1px solid rgba(255, 161, 22, 0.3); }
.icon-github { background: rgba(161, 204, 220, 0.12); color: var(--text-primary); border: 1px solid var(--border-subtle); }

.profile-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-handle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-sky);
}

.profile-stats-row {
  display: flex;
  gap: 18px;
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.profile-stat-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.profile-stat-item span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* --- Contact Section & Form --- */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-sizing: border-box;
}

.contact-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--c-green-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.contact-info-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(4, 43, 68, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.contact-method-item:hover {
  border-color: var(--c-green);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-method-icon.icon-green {
  background: var(--c-green-bg);
  color: var(--c-green-light);
  border: 1px solid var(--c-green-border);
}

.contact-method-icon.icon-blue {
  background: rgba(9, 107, 144, 0.25);
  color: var(--c-sky);
  border: 1px solid rgba(113, 183, 213, 0.3);
}

.contact-method-info {
  flex: 1;
  min-width: 0;
}

.contact-method-label {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-method-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-action-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-green-bg);
  border: 1px solid var(--c-green-border);
  color: var(--c-green-light);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.contact-action-btn:hover {
  background: var(--c-green);
  color: #08171E;
  border-color: var(--c-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Contact Social Pills Row */
.contact-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

.contact-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid rgba(113, 183, 213, 0.25);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-social-pill:hover {
  border-color: var(--c-green);
  color: var(--c-green-light);
  transform: translateY(-2px);
  background: rgba(9, 107, 144, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.contact-social-pill.promo-pill {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--c-green-light);
  background: rgba(16, 185, 129, 0.1);
}

.contact-social-pill.promo-pill:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--c-green);
  color: #ffffff;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-sizing: border-box;
}

.form-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.form-header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(9, 107, 144, 0.35), rgba(4, 43, 68, 0.8));
  border: 1px solid rgba(113, 183, 213, 0.3);
  display: grid;
  place-items: center;
  color: var(--c-green-light);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.contact-form-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.contact-form-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Input With Inner Icon */
.input-with-icon {
  position: relative !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.input-with-icon > i {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--c-sky) !important;
  opacity: 0.8;
  font-size: 0.95rem !important;
  pointer-events: none !important;
  z-index: 3 !important;
  transition: all var(--transition-fast) !important;
}

.input-with-icon .form-control {
  width: 100% !important;
  padding: 12px 15px 12px 44px !important;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.92rem;
  box-sizing: border-box !important;
  transition: all var(--transition-fast);
}

.input-with-icon .form-control:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.input-with-icon:focus-within > i {
  color: var(--c-green-light) !important;
  opacity: 1 !important;
}

.input-with-icon.textarea-wrap > i {
  top: 16px !important;
  transform: none !important;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* --- Footer --- */
.footer {
  background: #04141c;
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0 36px;
  font-size: 0.86rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

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

.footer-bio {
  max-width: 480px;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.footer-tagline {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--c-sky);
}

.footer-bottom {
  border-top: 1px solid rgba(161, 204, 220, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
}

.footer-sublinks {
  margin: 0;
  color: var(--text-muted);
}

.footer-sublinks a {
  color: var(--c-sky);
  text-decoration: none;
}

.footer-sublinks a:hover {
  color: var(--c-green-light);
  text-decoration: underline;
}

.footer-promo-link {
  color: var(--c-green-light) !important;
  font-weight: 600;
}

/* --- Back to Top Floating Button with Circular Reading Progress Ring --- */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #042B44;
  border: 1px solid var(--border-card);
  color: var(--c-green-light);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  z-index: 90;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-base);
  overflow: visible;
}

#back-to-top .progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

#back-to-top .progress-ring-bg {
  stroke: rgba(113, 183, 213, 0.16);
}

#back-to-top .progress-ring-circle {
  stroke: var(--c-green);
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.6));
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--c-green);
  color: #08171E;
  border-color: var(--c-green-light);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

#back-to-top:hover .progress-ring-circle {
  stroke: #FFFFFF;
}

/* --- Resume Modal Styles --- */
.resume-modal-content {
  max-width: 860px !important;
  width: 94% !important;
  max-height: 90vh !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  background: #042B44 !important;
  border: 1px solid rgba(113, 183, 213, 0.35) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(9, 107, 144, 0.4) !important;
}

.resume-modal-header {
  display: flex;
  flex-direction: column;
  padding: 18px 24px 14px;
  background: rgba(8, 23, 30, 0.9);
  border-bottom: 1px solid rgba(113, 183, 213, 0.2);
  gap: 12px;
}

.resume-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.resume-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.resume-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #096B90, #042B44);
  border: 1px solid rgba(113, 183, 213, 0.3);
  display: grid;
  place-items: center;
  color: var(--c-green-light);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.resume-modal-titles {
  flex: 1;
  min-width: 0;
}

.resume-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.resume-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.resume-cv-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--c-green-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.resume-modal-subtitle {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--c-sky);
  margin: 2px 0 0;
}

.resume-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 23, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.resume-close-btn:hover {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
}

.resume-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.resume-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.resume-tab-switcher {
  display: flex;
  background: rgba(4, 43, 68, 0.8);
  border: 1px solid rgba(113, 183, 213, 0.25);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.resume-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.resume-tab-btn.active {
  background: var(--c-green);
  color: #08171E;
}

.resume-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Tab 1: Structured Overview */
.resume-tab-pane {
  display: none;
}

.resume-tab-pane.active {
  display: block;
}

.resume-summary-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.resume-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(8, 23, 30, 0.6);
  border: 1px solid rgba(113, 183, 213, 0.18);
  border-radius: var(--radius-md);
}

.resume-summary-item i {
  color: var(--c-green-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.resume-summary-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.resume-summary-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.resume-structured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.resume-section-block {
  margin-bottom: 22px;
}

.resume-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--c-sky);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(113, 183, 213, 0.2);
}

.resume-section-heading i {
  color: var(--c-green-light);
  font-size: 0.88rem;
}

.resume-entry {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(8, 23, 30, 0.4);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--c-green-light);
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.resume-entry-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-green-light);
}

.resume-entry-sub {
  font-size: 0.76rem;
  color: var(--c-sky);
  margin: 2px 0 4px;
  font-family: var(--font-mono);
}

.resume-entry-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.resume-project-link {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--c-green-light);
  text-decoration: none;
}

.resume-project-link:hover {
  text-decoration: underline;
}

.resume-skills-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-skill-row {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.skill-cat {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-sky);
  min-width: 90px;
  flex-shrink: 0;
}

.skill-tags {
  color: #e2e8f0;
}

.resume-honors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-honor-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.resume-honor-item i {
  color: var(--c-green-light);
  font-size: 0.85rem;
}

.resume-honor-item a {
  color: var(--c-sky);
}

/* Tab 2: Embedded PDF Viewer & High-Resolution Canvas */
.pdf-viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: rgba(8, 23, 30, 0.7);
  border: 1px solid rgba(113, 183, 213, 0.2);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(4, 43, 68, 0.6);
  border: 1px solid rgba(113, 183, 213, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pdf-tool-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--c-green-light);
  transform: translateY(-1px);
}

.pdf-tool-btn.btn-primary-tool {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--c-green-light);
  font-weight: 600;
}

.pdf-tool-btn.btn-primary-tool:hover {
  background: #10B981;
  color: #08171E;
}

.pdf-zoom-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--c-sky);
  padding: 3px 8px;
  background: rgba(9, 107, 144, 0.2);
  border: 1px solid rgba(113, 183, 213, 0.2);
  border-radius: 4px;
  min-width: 46px;
  text-align: center;
}

.resume-canvas-scroll {
  width: 100%;
  min-height: 64vh;
  max-height: 72vh;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 10px;
  background: #02121c;
  border: 1px solid rgba(113, 183, 213, 0.25);
  border-radius: var(--radius-sm);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

#resume-pdf-canvas {
  display: block;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: transform 0.15s ease-out;
}

.resume-pdf-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-sky);
  background: rgba(4, 43, 68, 0.8);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(113, 183, 213, 0.3);
}

.resume-pdf-loading i {
  color: var(--c-green-light);
}

.resume-pdf-fallback {
  width: 100%;
  height: 65vh;
}

.resume-pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.resume-fallback-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-keyboard-hint {
  font-size: 0.72rem;
  color: var(--c-sky);
  font-family: var(--font-mono);
}

.pdf-keyboard-hint kbd {
  padding: 1px 5px;
  background: rgba(113, 183, 213, 0.15);
  border-radius: 3px;
  border: 1px solid rgba(113, 183, 213, 0.25);
}


/* --- Command Palette Modal --- */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 23, 30, 0.85);
  backdrop-filter: blur(14px);
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.cmd-palette-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-modal {
  background: #042B44;
  border: 1px solid rgba(113, 183, 213, 0.35);
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(9, 107, 144, 0.5);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform var(--transition-base);
}

.cmd-palette-backdrop.open .cmd-palette-modal {
  transform: translateY(0);
}

.cmd-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(161, 204, 220, 0.12);
}

.cmd-search-input-wrap i {
  color: var(--c-sky);
  font-size: 1.05rem;
}

.cmd-search-input {
  flex: 1;
  font-size: 0.96rem;
  color: #f8fafc;
}

body.light-theme .cmd-palette-modal {
  background: #ffffff;
  border-color: rgba(9, 107, 144, 0.25);
  box-shadow: 0 16px 45px rgba(4, 43, 68, 0.2);
}

body.light-theme .cmd-search-input {
  color: #08171E;
}

body.light-theme .cmd-item {
  color: #042B44;
}

body.light-theme .cmd-item:hover,
body.light-theme .cmd-item.selected {
  background: rgba(9, 107, 144, 0.08);
  color: #08171E;
}

body.light-theme .cmd-palette-footer {
  background: #f1f5f9;
  border-top-color: rgba(9, 107, 144, 0.1);
  color: #64748b;
}

.cmd-results-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  list-style: none;
}

.cmd-group-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 6px 12px 3px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmd-item-left i {
  color: var(--c-sky);
  width: 16px;
  text-align: center;
}

.cmd-item:hover,
.cmd-item.selected {
  background: rgba(9, 107, 144, 0.35);
  color: #f8fafc;
}

.cmd-palette-footer {
  padding: 9px 18px;
  background: #021b2c;
  border-top: 1px solid rgba(161, 204, 220, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* --- Toast Notification --- */
#toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #042B44;
  border: 1px solid var(--c-green);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(4, 43, 68, 0.8), 0 0 20px rgba(16, 185, 129, 0.35);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  transform: translateX(-40px);
  opacity: 0;
  transition: all var(--transition-base);
}

body.light-theme .toast {
  background: #ffffff;
  color: #08171E;
  border-color: #10B981;
  box-shadow: 0 8px 24px rgba(4, 43, 68, 0.15);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  color: var(--c-green-light);
}

/* --- Scroll Reveal Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   FEATURE 2: LEETCODE & GITHUB ACTIVITY RADAR WIDGET (BASE / DESKTOP)
   ========================================================================== */
.activity-radar-wrap {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px dashed rgba(113, 183, 213, 0.22);
}

.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.radar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-green-light);
  font-weight: 700;
  margin-bottom: 4px;
}

.radar-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
}

.radar-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.radar-header-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.radar-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(113, 183, 213, 0.12);
  color: #71B7D5;
  border: 1px solid rgba(113, 183, 213, 0.25);
}

.radar-stat-badge.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}

.activity-radar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.radar-card {
  background: #042B44;
  border: 1px solid rgba(113, 183, 213, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.radar-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-cyan-light);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(113, 183, 213, 0.18);
}

.radar-card.radar-pulse-flash {
  animation: radarCardFlash 1.6s ease-in-out;
}

@keyframes radarCardFlash {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  30% { transform: scale(1.02); box-shadow: 0 0 35px rgba(16, 185, 129, 0.7); border-color: var(--c-green); }
  100% { transform: scale(1); box-shadow: var(--shadow-lg); border-color: rgba(113, 183, 213, 0.18); }
}

.radar-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radar-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.leetcode-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.github-icon {
  background: rgba(113, 183, 213, 0.15);
  color: #71B7D5;
  border: 1px solid rgba(113, 183, 213, 0.3);
}

.radar-card-meta {
  flex: 1;
  min-width: 0;
}

.radar-card-meta h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 2px;
}

.radar-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.radar-external-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  transition: all var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
}

.radar-external-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--c-green);
  color: #FFFFFF;
}

/* LeetCode Circular Dial & Breakdown */
.leetcode-stats-overview {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px;
  background: rgba(8, 23, 30, 0.65);
  border-radius: var(--radius-md);
  border: 1px solid rgba(113, 183, 213, 0.12);
}

.lc-dial-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lc-circle-box {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #10B981 0% 50.5%, #F59E0B 50.5% 96.2%, #EF4444 96.2% 100%);
  display: grid;
  place-items: center;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.lc-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #042B44;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.lc-total-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.lc-total-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 1px;
}

.lc-total-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-green-light);
  margin-top: 2px;
  font-weight: 700;
}

.lc-attempting-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.lc-breakdown-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.lc-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lc-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.diff-tag {
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.diff-tag.diff-easy {
  color: #34D399;
  background: rgba(16, 185, 129, 0.16);
}

.diff-tag.diff-medium {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.16);
}

.diff-tag.diff-hard {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.16);
}

.diff-count {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFFFFF;
  font-size: 0.78rem;
}

.diff-count span {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 400;
}

.diff-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.diff-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.diff-fill.fill-easy {
  background: linear-gradient(90deg, #059669, #10B981);
}

.diff-fill.fill-medium {
  background: linear-gradient(90deg, #D97706, #F59E0B);
}

.diff-fill.fill-hard {
  background: linear-gradient(90deg, #DC2626, #EF4444);
}

/* GitHub Metrics & Heatmap */
.github-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gh-metric-box {
  padding: 10px 8px;
  background: rgba(8, 23, 30, 0.65);
  border: 1px solid rgba(113, 183, 213, 0.12);
  border-radius: var(--radius-sm);
  text-align: center;
}

.gh-metric-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.gh-metric-lbl {
  display: block;
  font-size: 0.66rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heatmap-container {
  padding: 14px;
  background: rgba(8, 23, 30, 0.65);
  border-radius: var(--radius-md);
  border: 1px solid rgba(113, 183, 213, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.hm-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-primary);
}

.hm-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.heatmap-matrix {
  display: grid;
  grid-template-rows: repeat(7, 10px);
  grid-auto-flow: column;
  grid-auto-columns: 10px;
  gap: 3px;
  width: max-content;
  padding: 2px 0;
}

.hm-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hm-cell:hover {
  transform: scale(1.4);
  z-index: 2;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.hm-cell.lvl-0 {
  background: rgba(113, 183, 213, 0.08);
}

.hm-cell.lvl-1 {
  background: rgba(16, 185, 129, 0.32);
}

.hm-cell.lvl-2 {
  background: rgba(16, 185, 129, 0.65);
}

.hm-cell.lvl-3 {
  background: #10B981;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.5);
}

.radar-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.radar-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(113, 183, 213, 0.08);
  color: #A1CCDC;
  border: 1px solid rgba(113, 183, 213, 0.18);
  font-family: var(--font-mono);
}

.radar-tech-pill.pill-green {
  background: rgba(16, 185, 129, 0.08);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   FEATURE 5: SKILL-TO-PROJECT INTERACTIVE HIGHLIGHTING (BASE / DESKTOP)
   ========================================================================== */
.skills-interactive-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--c-green-light);
  margin: -6px 0 22px 0;
  font-weight: 500;
  text-align: center;
}

.skill-card {
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.skill-card:focus-visible {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.skill-card.is-active-skill {
  border-color: var(--c-green) !important;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(16, 185, 129, 0.15) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(4, 43, 68, 0.98)) !important;
  transform: translateY(-3px);
}

.project-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.project-card.project-matched-highlight {
  border-color: var(--c-green) !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.38), 0 8px 30px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-5px) scale(1.01) !important;
  z-index: 2;
}

.skill-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  animation: matchPillPulse 2s infinite alternate;
}

@keyframes matchPillPulse {
  0% { transform: scale(1); box-shadow: 0 0 4px rgba(16, 185, 129, 0.3); }
  100% { transform: scale(1.04); box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
}

.project-card.project-dimmed {
  opacity: 0.3 !important;
  filter: grayscale(60%) !important;
  transform: scale(0.98) !important;
  pointer-events: none;
}

/* ==========================================================================
   LIGHT THEME OVERRIDES FOR NEW FEATURES
   ========================================================================== */
body.light-theme .activity-radar-wrap {
  border-top-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .radar-title {
  color: #08171E;
}

body.light-theme .radar-card {
  background: #FFFFFF;
  border-color: rgba(9, 107, 144, 0.16);
  box-shadow: 0 4px 20px rgba(9, 107, 144, 0.08);
}

body.light-theme .radar-card-meta h4 {
  color: #08171E;
}

body.light-theme .radar-external-btn {
  background: rgba(9, 107, 144, 0.06);
  color: #08171E;
  border-color: rgba(9, 107, 144, 0.2);
}

body.light-theme .leetcode-stats-overview {
  background: #F1F5F9;
  border-color: rgba(9, 107, 144, 0.15);
}

body.light-theme .lc-circle-inner {
  background: #FFFFFF;
}

body.light-theme .lc-total-num {
  color: #08171E;
}

body.light-theme .lc-attempting-chip {
  background: rgba(9, 107, 144, 0.08);
  border-color: rgba(9, 107, 144, 0.2);
  color: #042B44;
}

body.light-theme .diff-count {
  color: #08171E;
}

body.light-theme .diff-track {
  background: rgba(0, 0, 0, 0.08);
}

body.light-theme .gh-metric-box {
  background: #F1F5F9;
  border-color: rgba(9, 107, 144, 0.15);
}

body.light-theme .gh-metric-val {
  color: #08171E;
}

body.light-theme .heatmap-container {
  background: #F1F5F9;
  border-color: rgba(9, 107, 144, 0.15);
}

body.light-theme .hm-cell.lvl-0 {
  background: rgba(9, 107, 144, 0.1);
}

body.light-theme .radar-tech-pill {
  background: rgba(9, 107, 144, 0.06);
  color: #042B44;
  border-color: rgba(9, 107, 144, 0.16);
}

body.light-theme .skill-card.is-active-skill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(241, 245, 249, 0.98)) !important;
}

/* ==========================================================================
   COMPACT, BEAUTIFUL & PROFESSIONAL MOBILE VIEW (< 1024px & < 768px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-status-pill {
    margin-inline: auto;
  }

  .hero-typing-wrap {
    justify-content: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .social-links-bar {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 8px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  section {
    padding: 38px 0;
  }

  .container {
    width: min(100% - 24px, 1200px);
  }

  /* Compact Navbar - Zero wrapping, clean actions */
  .navbar {
    gap: 8px;
  }

  .brand {
    font-size: 1.05rem;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 6px;
  }

  .brand-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
  }

  .brand-name {
    white-space: nowrap;
  }

  .brand-badge {
    font-size: 0.62rem;
    padding: 1px 6px;
  }

  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  /* Hide large resume button from top navbar on mobile */
  .nav-actions .nav-cv-btn,
  .nav-actions .btn-outline {
    display: none !important;
  }

  /* Command Palette Trigger - Icon only on mobile */
  .cmd-palette-btn {
    padding: 6px 9px;
    gap: 0;
    border-radius: var(--radius-sm);
  }

  .cmd-palette-btn span,
  .cmd-palette-btn span.cmd-text,
  .cmd-palette-btn span.kbd {
    display: none !important;
  }

  .cmd-palette-btn i {
    font-size: 0.88rem;
    margin: 0;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }

  .sound-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }

  .menu-toggle-btn {
    display: grid !important;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  /* Compact Animated Mobile Nav Drawer */
  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + 6px);
    left: 12px;
    right: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 14px 40px rgba(4, 43, 68, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    z-index: 99;
  }

  body.light-theme .nav-links {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 40px rgba(4, 43, 68, 0.15);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 0.92rem;
    padding: 6px 0;
  }

  /* Compact Hero Section */
  .hero-section {
    padding: 22px 0 36px;
    min-height: 0;
  }

  .hero-status-pill {
    font-size: 0.72rem;
    padding: 4px 12px;
    margin-bottom: 12px;
    margin-inline: auto;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    margin-bottom: 8px;
    line-height: 1.12;
  }

  /* Fixed Hero Typing Wrap - No broken columns */
  .hero-typing-wrap {
    display: block !important;
    text-align: center;
    font-size: 1.05rem;
    min-height: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.4;
    white-space: normal;
  }

  .hero-typing-wrap .typing-prefix {
    white-space: nowrap;
    display: inline;
  }

  .hero-typing {
    display: inline;
  }

  .typing-cursor {
    display: inline;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 18px;
    margin-inline: auto;
    max-width: 95%;
  }

  /* Hero Actions - Smart 2-row layout */
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-actions .btn-primary {
    flex: 1 1 100%;
    padding: 10px 14px;
    font-size: 0.88rem;
    justify-content: center;
  }

  .hero-actions .btn-secondary,
  .hero-actions .copy-email-btn {
    flex: 1 1 calc(50% - 4px);
    padding: 9px 10px;
    font-size: 0.8rem;
    justify-content: center;
  }

  .social-links-bar {
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
  }

  .social-link-btn {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }

  /* Compact Avatar on Mobile */
  .avatar-orbital-container {
    width: 220px;
    height: 220px;
    margin-inline: auto;
  }

  .orbital-ring-outer {
    inset: -8px;
    border-radius: 32px;
  }

  .orbital-ring-inner {
    inset: -3px;
    border-radius: 28px;
  }

  .hero-avatar-frame {
    border-radius: 24px;
    padding: 7px;
  }

  .hero-avatar-img {
    border-radius: 18px;
  }

  .floating-pill {
    display: none;
  }

  /* Compact 2x2 Stats Dashboard Grid */
  .stats-banner {
    margin-top: -6px;
    margin-bottom: 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 10px 12px;
    gap: 8px;
    border-radius: var(--radius-md);
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .stat-number {
    font-size: 1.25rem;
  }

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

  /* Section Headings */
  .section-header {
    margin-bottom: 20px;
  }

  .section-kicker {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .section-title {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .section-subtitle {
    font-size: 0.82rem;
    margin-top: 4px;
  }

  /* About Section */
  .about-lead {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .about-text {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pillar-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .pillar-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .pillar-title {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .pillar-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* Skills Filter & Grid */
  .skills-filter-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 6px;
    margin-bottom: 16px;
  }

  .skills-filter-nav::-webkit-scrollbar {
    display: none;
  }

  .skill-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 5px 12px;
    font-size: 0.74rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .skill-card {
    padding: 10px;
    gap: 8px;
    border-radius: 9px;
  }

  .skill-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 7px;
  }

  .skill-info h3 {
    font-size: 0.8rem;
  }

  .skill-badge {
    font-size: 0.62rem;
  }

  /* Projects Filter - Horizontal Scrollable Pill Carousel (Zero Stacking!) */
  .project-filter-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    gap: 6px;
    margin-bottom: 16px;
  }

  .project-filter-nav::-webkit-scrollbar {
    display: none;
  }

  .project-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 13px;
    font-size: 0.76rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .project-card-header {
    margin-bottom: 8px;
  }

  .project-num {
    font-size: 0.68rem;
  }

  .project-status-tag {
    font-size: 0.66rem;
    padding: 2px 7px;
  }

  .project-header-badges {
    gap: 5px;
  }

  .project-ping-pill {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .project-card-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .project-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .project-tech-tags {
    gap: 5px;
    margin-bottom: 12px;
  }

  .tech-tag {
    font-size: 0.66rem;
    padding: 2px 7px;
  }

  .project-card-footer {
    padding-top: 10px;
  }

  .project-link,
  .project-details-btn {
    font-size: 0.76rem;
    padding: 5px 9px;
  }

  /* Terminal Window on Mobile */
  .terminal-section {
    padding: 28px 0 42px;
  }

  .terminal-header {
    padding: 8px 12px;
    gap: 6px;
  }

  .terminal-title {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .term-shell-badge {
    display: none !important;
  }

  .terminal-tabs {
    gap: 4px;
  }

  .terminal-tab-btn {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .tab-full {
    display: none !important;
  }

  .tab-short {
    display: inline !important;
  }

  .terminal-body {
    padding: 12px 14px;
    font-size: 0.74rem;
    line-height: 1.45;
    min-height: 180px;
    max-height: 280px;
  }

  .terminal-line {
    margin-bottom: 8px;
  }

  .terminal-output {
    padding-left: 10px;
    margin-top: 4px;
    font-size: 0.74rem;
  }

  .terminal-input-row {
    margin-top: 8px;
    gap: 6px;
  }

  .terminal-input {
    font-size: 0.74rem;
  }

  /* Terminal Prompt Shortener on Mobile */
  .prompt-short {
    display: inline !important;
  }

  .prompt-full {
    display: none !important;
  }

  .terminal-prompt {
    font-size: 0.74rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Terminal Quick Actions - Horizontal Scroll Carousel */
  .terminal-quick-actions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 12px;
    gap: 6px;
  }

  .terminal-quick-actions::-webkit-scrollbar {
    display: none;
  }

  .terminal-quick-actions span {
    white-space: nowrap;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  .quick-cmd-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  /* Timeline */
  .timeline-wrap {
    padding-left: 18px;
  }

  .timeline-dot {
    left: -18px;
    width: 12px;
    height: 12px;
  }

  .timeline-card {
    padding: 12px 14px;
    margin-bottom: 16px;
  }

  .timeline-date {
    font-size: 0.68rem;
    margin-bottom: 3px;
  }

  .timeline-title {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  .timeline-institution {
    font-size: 0.74rem;
    margin-bottom: 6px;
  }

  .timeline-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* Certifications & Profiles */
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .cert-card {
    padding: 12px;
  }

  .cert-title {
    font-size: 0.86rem;
  }

  .cert-issuer {
    font-size: 0.72rem;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-card {
    padding: 16px 14px;
  }

  /* --- Top Promo Announcement Bar (Mobile) --- */
  .promo-announcement-bar {
    padding: 6px 12px;
  }

  .promo-bar-container {
    gap: 6px;
    font-size: 0.74rem;
  }

  .promo-bar-badge {
    font-size: 0.64rem;
    padding: 2px 6px;
  }

  .promo-bar-text {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .promo-bar-cta {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

    .project-mockup-frame {
    margin: 10px 0 12px;
  }

  .mockup-canvas {
    height: 110px;
    padding: 10px 12px;
  }

  .mockup-doc-preview {
    width: 60px;
    height: 80px;
    padding: 6px 4px;
  }

  .resume-modal-content {
    width: 96% !important;
    max-height: 92vh !important;
  }

  .resume-modal-header {
    padding: 12px 14px 10px !important;
    gap: 10px !important;
  }

  .resume-header-top {
    gap: 8px !important;
  }

  .resume-modal-title-wrap {
    gap: 10px !important;
  }

  .resume-modal-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
  }

  .resume-title-line {
    gap: 6px !important;
  }

  .resume-modal-title {
    font-size: 0.98rem !important;
    line-height: 1.25 !important;
  }

  .resume-cv-pill {
    font-size: 0.6rem !important;
    padding: 1px 6px !important;
  }

  .resume-modal-subtitle {
    font-size: 0.68rem !important;
    margin-top: 1px !important;
  }

  .resume-close-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.88rem !important;
  }

  .resume-modal-actions {
    gap: 6px !important;
  }

  .resume-tab-btn {
    padding: 4px 8px !important;
    font-size: 0.68rem !important;
  }

  .resume-action-buttons {
    gap: 6px !important;
  }

  .resume-download-link {
    padding: 4px 9px !important;
    font-size: 0.72rem !important;
  }

  .resume-ext-link {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  .resume-entry-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }

  .resume-project-link {
    font-size: 0.72rem !important;
    word-break: break-all !important;
    margin-top: 1px !important;
  }

  .resume-skill-row {
    flex-direction: column !important;
    gap: 2px !important;
    margin-bottom: 6px !important;
  }

  .resume-modal-body {
    padding: 16px 14px;
  }

  .resume-structured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resume-summary-banner {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .pdf-viewer-toolbar {
    padding: 6px 8px;
    gap: 6px;
  }

  .pdf-toolbar-group {
    gap: 4px;
  }

  .pdf-tool-btn {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .pdf-tool-btn span {
    display: none;
  }

  .pdf-zoom-badge {
    padding: 2px 5px;
    font-size: 0.68rem;
    min-width: 38px;
  }

  .resume-canvas-scroll {
    min-height: 48vh;
    max-height: 58vh;
    padding: 10px 4px;
  }

  .pdf-keyboard-hint {
    display: none;
  }

  /* Project Modal & Telemetry on Mobile */
  .modal-content {
    width: 95%;
    padding: 22px 16px;
    max-height: 90vh;
  }

  .modal-project-title {
    font-size: 1.3rem;
  }

  .modal-telemetry-bar {
    padding: 8px 12px;
    font-size: 0.72rem;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 10px 0 16px;
  }

  .telemetry-info {
    width: 100%;
    justify-content: space-between;
  }

  .telemetry-ping-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .modal-arch-pipeline {
    gap: 6px;
    margin: 10px 0 18px;
  }

  .arch-node {
    padding: 10px 10px;
    gap: 10px;
  }

  .arch-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .arch-node-title {
    font-size: 0.82rem;
  }

  .arch-node-sub {
    font-size: 0.68rem;
  }

  .arch-node-desc {
    font-size: 0.74rem;
  }

/* --- PDF Render Promo Section (Mobile) --- */
  .pdf-promo-section {
    padding: 36px 0;
  }

  .pdf-promo-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  .pdf-promo-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-bottom: 16px;
  }

  .pdf-promo-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pdf-promo-brand {
    gap: 12px;
    margin-bottom: 12px;
  }

  .pdf-promo-icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .pdf-promo-title {
    font-size: 1.3rem;
  }

  .pdf-promo-tagline {
    font-size: 0.78rem;
  }

  .pdf-promo-desc {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .pdf-promo-chips {
    gap: 6px;
    margin-bottom: 18px;
  }

  .pdf-chip {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .pdf-promo-actions {
    flex-direction: column;
    gap: 10px;
  }

  .pdf-promo-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.86rem;
  }

  .pdf-promo-features-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .pdf-feature-tile {
    padding: 12px 10px;
  }

  .pdf-tile-num {
    font-size: 1.15rem;
    margin-bottom: 2px;
  }

  .pdf-tile-label {
    font-size: 0.78rem;
    margin-bottom: 2px;
  }

  .pdf-tile-desc {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  /* --- Contact Section & Form (Mobile Redesign) --- */
  .contact-section {
    padding: 36px 0 24px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .contact-info-card,
  .contact-form-wrap {
    padding: 18px 14px !important;
    border-radius: var(--radius-md) !important;
    box-sizing: border-box !important;
  }

  .contact-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    margin-bottom: 10px !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    border-radius: 999px !important;
    color: var(--c-green-light) !important;
  }

  .contact-info-title {
    font-size: 1.25rem !important;
    margin-bottom: 6px !important;
  }

  .contact-info-text {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }

  .contact-methods {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .contact-method-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-method-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }

  .contact-method-info {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  .contact-method-label {
    font-size: 0.66rem !important;
    margin-bottom: 1px !important;
  }

  .contact-method-val {
    font-size: 0.76rem !important;
    font-family: var(--font-mono) !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .contact-action-btn,
  .contact-copy-btn {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    padding: 4px 8px !important;
    font-size: 0.68rem !important;
    gap: 4px !important;
    border-radius: 4px !important;
  }

  .contact-social-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-top: 12px !important;
  }

  .contact-social-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
    background: rgba(4, 43, 68, 0.7) !important;
    border: 1px solid rgba(113, 183, 213, 0.25) !important;
    border-radius: 999px !important;
  }

  .form-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }

  .form-header-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
  }

  .contact-form-title {
    font-size: 1.15rem !important;
    margin-bottom: 2px !important;
  }

  .contact-form-subtitle {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }

  .form-group {
    margin-bottom: 12px !important;
    gap: 4px !important;
  }

  .form-label {
    font-size: 0.76rem !important;
    margin-bottom: 2px !important;
  }

  .input-with-icon {
    position: relative !important;
    width: 100% !important;
    display: block !important;
  }

  .input-with-icon > i {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0.88rem !important;
    z-index: 3 !important;
    pointer-events: none !important;
  }

  .input-with-icon .form-control {
    width: 100% !important;
    padding: 9px 12px 9px 38px !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
  }

  .input-with-icon.textarea-wrap > i {
    top: 13px !important;
    transform: none !important;
  }

  textarea.form-control {
    min-height: 85px !important;
  }

  .submit-btn {
    padding: 10px 16px !important;
    font-size: 0.86rem !important;
  }

  /* --- Footer Mobile Redesign --- */
  .footer {
    padding: 32px 0 76px !important; /* 76px bottom clearance guarantees floating button never overlaps footer text! */
  }

  .footer-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
  }

  .footer-bio {
    max-width: 100% !important;
  }

  .footer-brand {
    font-size: 1.2rem !important;
  }

  .footer-tagline {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    margin-top: 3px !important;
  }

  .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
    padding: 0 !important;
    margin: 6px 0 0 0 !important;
    width: 100% !important;
  }

  .footer-links li {
    display: inline-block !important;
  }

  .footer-links a {
    font-size: 0.84rem !important;
    padding: 2px 0 !important;
    display: inline-block !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding-top: 14px !important;
    max-width: calc(100% - 46px) !important; /* Keeps text away from bottom-right floating button */
  }

  .footer-copy,
  .footer-sublinks {
    font-size: 0.74rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  /* Back-to-Top Floating Button (Mobile) */
  #back-to-top {
    bottom: 16px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 0.95rem !important;
    z-index: 60 !important;
  }

  /* Feature 2: Radar Mobile (<= 768px) */
  .activity-radar-wrap {
    margin-top: 36px;
    padding-top: 28px;
  }

  .radar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .radar-header-badges {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .radar-stat-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .radar-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .activity-radar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .radar-card {
    padding: 18px 14px;
    gap: 16px;
  }

  .radar-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .radar-card-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .radar-card-meta {
    flex: 1;
    min-width: 0;
  }

  .radar-card-meta h4 {
    font-size: 0.98rem;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .radar-handle {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .radar-external-btn {
    padding: 5px 9px;
    font-size: 0.72rem;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .leetcode-stats-overview {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 14px 12px;
  }

  .lc-dial-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .lc-circle-box {
    width: 86px;
    height: 86px;
    padding: 4px;
  }

  .lc-total-num {
    font-size: 1.22rem;
  }

  .lc-total-sub {
    font-size: 0.58rem;
  }

  .lc-attempting-chip {
    font-size: 0.62rem;
    padding: 2px 7px;
  }

  .lc-breakdown-list {
    width: 100%;
    text-align: left;
    gap: 9px;
  }

  .github-metrics-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .gh-metric-box {
    padding: 8px 4px;
  }

  .gh-metric-val {
    font-size: 1.05rem;
  }

  .gh-metric-lbl {
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .heatmap-container {
    padding: 10px;
  }

  .heatmap-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .radar-tags-row {
    gap: 6px;
  }

  .radar-tech-pill {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .skills-interactive-hint {
    font-size: 0.74rem;
    margin-bottom: 16px;
  }

  .nav-links.open .nav-link.active {
    background: rgba(16, 185, 129, 0.12);
    border-left: 3px solid #10B981;
    color: #FFFFFF !important;
    padding-left: 14px;
  }
}

/* ==========================================================================
   VERY SMALL MOBILE (< 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .stats-grid {
    gap: 6px;
  }

  .stat-card {
    padding: 8px 10px;
  }

  .stat-number {
    font-size: 1.18rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .contact-info-card,
  .contact-form-wrap {
    padding: 16px 12px;
  }

  .pdf-promo-features-preview {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* 480px Tweaks for Activity Radar */
  .activity-radar-wrap {
    margin-top: 28px;
    padding-top: 22px;
  }

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

  .activity-radar-grid {
    gap: 12px;
  }

  .radar-card {
    padding: 14px 10px;
    gap: 12px;
  }

  .radar-card-top {
    gap: 8px;
  }

  .radar-card-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .radar-card-meta h4 {
    font-size: 0.92rem;
  }

  .radar-handle {
    font-size: 0.68rem;
  }

  .radar-external-btn {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .lc-circle-box {
    width: 76px;
    height: 76px;
  }

  .lc-total-num {
    font-size: 1.12rem;
  }

  .github-metrics-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .gh-metric-box {
    padding: 6px 2px;
  }

  .gh-metric-val {
    font-size: 0.92rem;
  }

  .gh-metric-lbl {
    font-size: 0.56rem;
  }

  .radar-tech-pill {
    font-size: 0.64rem;
    padding: 2px 7px;
  }

  .skills-interactive-hint {
    font-size: 0.72rem;
    padding: 0 4px;
  }

  /* Modal fine-tuning for 480px */
  .resume-modal-header {
    padding: 10px 12px 8px !important;
  }

  .resume-modal-title {
    font-size: 0.92rem !important;
  }

  .resume-tab-btn {
    padding: 5px 8px !important;
    font-size: 0.7rem !important;
  }

  .resume-download-action-btn {
    padding: 5px 9px !important;
    font-size: 0.7rem !important;
  }
}
