/* Custom site styles extracted from index.html */
:root {
  --bm-bg: #181A1B;
  --bm-accent: #b649ff;
  --c-accent: #9B00FF;
  --c-accent-tint: #C084FC;
  --c-accent-shade: #7C22C5;
  --bm-accent2: #9B00FF;
  --bm-text: #F5F7FA;
  --bm-text-secondary: #B0BEC5;
  --bm-panel: #23272F;
  --bm-hover: #C084FC;
  --bm-error: #FF5252;
  --bm-success: #00E676;
  --bm-info: #2979FF;
  --bm-border: #2C313A;
}
.bm-isotope-btn-active {
  background-color: var(--bm-accent) !important;
  color: #0A192F !important;
  border-color: var(--bm-accent) !important;
}
.bm-isotope-btn {
  /* Tailwind utility classes, use as needed */
}
.bm-projects-grid {
  transition: height 0.3s cubic-bezier(.4,0,.2,1);
}
.bm-project-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.bm-project-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px 0 rgba(168,85,247,0.12);
}
html {
  font-size: 16px;
  font-family: 'Kode Mono', monospace;
}
body {
  font-family: 'Cabin', sans-serif;
  background: #1b1b1b;
  line-height: 1.55;
  display: flex;
  flex-direction: row;
}
h1, h2 {
  font-family: 'Kode Mono', monospace;
  letter-spacing: -0.5px;
}
h3, h4, h5, h6, .bm-heading {
  font-family: 'Kode Mono', monospace;
}
code {
  font-family: 'Kode Mono', monospace;
  font-size: 0.95em;
}
.bm-profile-island {
  width: 383px;
  height: calc((100vh - 5rem) * 0.9);
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  left: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #28203a 60%, #3a1c4a 100%); /* Higher contrast for dark mode */
  box-shadow: 0 8px 40px 0 rgba(155,0,255,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.18);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  gap: 1.5rem;
}
.bm-nav-island {
  width: 56px;
  position: fixed;
  top: 50vh;
  right: 3.5rem;
  transform: translateY(-50%);
  border-radius: 2rem;
  background: linear-gradient(135deg, #28203a 60%, #3a1c4a 100%); /* Higher contrast for dark mode */
  box-shadow: 0 8px 40px 0 rgba(155,0,255,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.18);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 0.5rem;
}
.bm-nav-btn, .bm-social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--bm-accent);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--bm-accent);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  outline: none;
}
.bm-nav-btn-active, .bm-social-btn:hover, .bm-social-btn:focus {
  background: var(--bm-accent) !important;
  color: var(--bm-bg) !important;
  border-color: var(--bm-accent) !important;
}
.bm-nav-btn .bm-nav-icon-active {
  color: #fff !important;
  filter: drop-shadow(0 0 6px var(--bm-accent));
  transition: color 0.2s, filter 0.2s;
}
.bm-social-btn {
  margin: 0 0.25rem;
  font-size: 1.2rem;
  border-color: var(--bm-border);
  color: var(--bm-text-secondary);
  background: var(--bm-panel);
}
.bm-social-btn:hover, .bm-social-btn:focus {
  color: var(--bm-bg);
  background: var(--bm-accent);
  border-color: var(--bm-accent);
}
.bm-profile-img {
  width: 110px; height: 110px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}
.bm-profile-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -1px;
  color: var(--bm-text);
}
.bm-profile-mini {
  font-size: 1rem;
  color: var(--bm-accent);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.bm-profile-contact {
  font-size: 0.95rem;
  color: var(--bm-text-secondary);
  text-align: center;
  margin-bottom: 0.5rem;
}
.bm-profile-cta {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  background: var(--bm-accent);
  color: var(--bm-bg);
  border-radius: 9999px;
  padding: 0.9rem 0;
  border: none;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.bm-profile-cta:hover, .bm-profile-cta:focus {
  background: var(--c-accent-tint);
  color: var(--bm-bg);
}
.bm-profile-copyright {
  font-size: 0.85rem;
  color: #555;
  margin-top: auto;
  text-align: center;
}
.bm-scroll-indicator {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  width: 72px; height: 72px;
  z-index: 20;
  cursor: pointer;
  user-select: none;
}
.bm-scroll-indicator .bm-scroll-svg {
  transform: rotate(-90deg);
  color: var(--bm-accent);
}
.bm-scroll-arrow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--bm-accent);
  font-size: 2rem;
  z-index: 2;
  pointer-events: none;
}
.bm-hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bm-accent);
  border: 2px solid var(--bm-accent);
  border-radius: 9999px;
  padding: 0.3rem 1.1rem;
  background: transparent;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.bm-hero-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 500;
  color: var(--bm-text);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
@media (min-width: 640px) {
  .bm-hero-heading { font-size: 4rem; }
}
@media (min-width: 1024px) {
  .bm-hero-heading { font-size: 4.5rem; }
}
.bm-hero-sub {
  color: var(--bm-text);
  opacity: 0.6;
  font-size: 1.25rem;
  max-width: 480px;
  margin: 0 auto 2.5rem auto;
  font-family: 'Poppins', sans-serif;
}
.bm-hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.bm-hero-stat {
  text-align: center;
  min-width: 120px;
}
.bm-hero-stat-num {
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--bm-accent);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}
.bm-hero-stat-label {
  font-size: 0.85rem;
  color: var(--bm-text-secondary);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-top: 0.2rem;
}
@media (max-width: 640px) {
  .bm-profile-island { display: none; }
  .bm-nav-island { right: 1.5rem; }
  .bm-scroll-indicator { right: 1rem; bottom: 1rem; }
  .bm-hero-stats { flex-direction: column; gap: 1.5rem; }
  .bm-hero-heading { font-size: 2.1rem; }
}
section[id] { scroll-margin-top: 6rem; }
#bm-main {
  margin-left: 383px;
  margin-right: 72px;
  width: calc(100vw - 383px - 72px);
}
@media (max-width: 1024px) {
  body {
    display: block;
  }
  #bm-main {
    margin-left: 0;
    margin-right: 0;
    width: 100vw;
  }
}
.rounded-2xl.custom-bg-panel {
  background: var(--bm-panel) !important;
  color: var(--bm-text);
}
.text-accent {
  color: var(--bm-accent) !important;
}
.bg-accent {
  background: var(--bm-accent) !important;
  color: var(--bm-bg) !important;
}
.border-accent {
  border-color: var(--bm-accent) !important;
}
.hover\:bg-transparent:hover {
  background: transparent !important;
  color: var(--bm-accent) !important;
}
.hover\:text-accent:hover {
  color: var(--bm-accent) !important;
}

/* Light mode overrides */
body.light-mode {
  --bm-bg: #f5f7fa;
  --bm-accent: #9B00FF;
  --c-accent: #7C22C5;
  --c-accent-tint: #C084FC;
  --c-accent-shade: #7C22C5;
  --bm-accent2: #7C22C5;
  --bm-text: #23272F;
  --bm-text-secondary: #555;
  --bm-panel: #fff;
  --bm-hover: #9B00FF;
  --bm-error: #FF5252;
  --bm-success: #00E676;
  --bm-info: #2979FF;
  --bm-border: #E0E0E0;
  background: #f5f7fa;
  color: #23272F;
}
body.light-mode .bm-profile-island,
body.light-mode .bm-nav-island {
  background: linear-gradient(135deg, #f3e9ff 60%, #e6d6fa 100%) !important; /* Higher contrast for light mode */
  box-shadow: 0 8px 40px 0 rgba(155,0,255,0.10), 0 1.5px 8px 0 rgba(0,0,0,0.10) !important;
}
body.light-mode .bm-nav-btn,
body.light-mode .bm-social-btn {
  color: var(--bm-accent);
  background: var(--bm-panel);
  border-color: var(--bm-accent);
}
body.light-mode .bm-nav-btn-active,
body.light-mode .bm-social-btn:hover,
body.light-mode .bm-social-btn:focus {
  background: var(--bm-accent);
  color: var(--bm-bg);
  border-color: var(--bm-accent);
}
body.light-mode .bm-profile-logo {
  color: var(--bm-text);
}
body.light-mode .bm-profile-cta {
  background: var(--bm-accent);
  color: var(--bm-bg);
}
body.light-mode .bm-profile-cta:hover,
body.light-mode .bm-profile-cta:focus {
  background: var(--c-accent-tint);
  color: var(--bm-bg);
}
body.light-mode .bm-project-card {
  background: #fff;
  color: #23272F;
}
body.light-mode .bm-hero-heading {
  color: var(--bm-text);
}
body.light-mode .text-accent {
  color: var(--bm-accent) !important;
}
body.light-mode .bg-accent {
  background: var(--bm-accent) !important;
  color: var(--bm-bg) !important;
}
body.light-mode .border-accent {
  border-color: var(--bm-accent) !important;
}
