/* ================================================
   Design System — Frosted Glass + Snowflakes
   Co-designed with the.devflakes studio aesthetic
   ================================================ */

:root {
  --bg-primary:    #06090f;
  --bg-secondary:  #0d1424;
  --bg-card:       #131d33;
  --bg-card-hover: #182542;
  --accent:        #7dd3fc;
  --accent-hover:  #bae6fd;
  --accent-deep:   #0ea5e9;
  --accent-muted:  rgba(125, 211, 252, 0.12);
  --accent-glow:   rgba(125, 211, 252, 0.35);
  --text-primary:  #e8eef7;
  --text-secondary:#9bacc4;
  --text-muted:    #6b7a91;
  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(255,255,255,0.14);
  --glass-bg:      rgba(255,255,255,0.04);
  --glass-border:  rgba(255,255,255,0.08);
  --shadow-glow:   0 0 40px rgba(125, 211, 252, 0.15);
  --radius-pill:   50px;
  --radius-card:   18px;
  --radius-sm:     8px;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* keep Saja variables from breaking theme CSS */
  --clr-theme-1:       #7dd3fc;
  --clr-body-heading:  #06090f;
  --clr-body-heading2: #0d1424;
  --clr-body-text:     #9bacc4;
  --clr-body-text2:    rgba(232,238,247,0.55);
  --clr-body-text3:    #6b7a91;
  --clr-common-white:  #e8eef7;
  --clr-common-black:  #000000;
  --clr-bg-gray:       #0d1424;
  --clr-bg-gray2:      #131d33;
  --clr-border-1:      rgba(255,255,255,0.06);
  --clr-border-4:      rgba(255,255,255,0.1);
  --clr-border-5:      rgba(255,255,255,0.14);
  --clr-border-6:      rgba(255,255,255,0.08);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
}

/* Ambient gradient blobs */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Make sure content sits above the ambient layers */
.bd-header-area, main, footer, #preloader, .progress-wrap, #snowflakes-canvas { position: relative; z-index: 1; }

/* Snowflake canvas (fixed, full viewport) */
#snowflakes-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

a { text-decoration: none; transition: color .25s; color: var(--text-primary); }
img { max-width: 100%; }
h1,h2,h3,h4,h5,h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
code, pre { font-family: var(--font-mono); }

/* ---- Preloader ---- */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
}
#preloader .spinner {
  width: 44px; height: 44px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Back to top ---- */
.progress-wrap.back-to-top-btn {
  position: fixed; right: 28px; bottom: 28px;
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .3s;
}
.progress-wrap.back-to-top-btn::after {
  content: '\f077';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #fff; font-size: 13px;
}
.progress-wrap.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.progress-wrap .progress-circle { display: none; }

/* ---- Section spacing ---- */
.pt-120 { padding-top: 120px; }
.pb-120 { padding-bottom: 120px; }
.pb-90  { padding-bottom: 90px; }
.pt-90  { padding-top: 90px; }
.mb-30  { margin-bottom: 30px; }
.mb-50  { margin-bottom: 50px; }
.mb-60  { margin-bottom: 60px; }
@media (max-width: 767px) {
  .pt-120 { padding-top: 80px; }
  .pb-120 { padding-bottom: 80px; }
}

/* ---- Section labels ---- */
.bd-section-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}
.bd-section-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}
.bd-section-title span { color: var(--accent); }
@media (max-width: 991px) { .bd-section-title { font-size: 36px; } }
@media (max-width: 575px) { .bd-section-title { font-size: 28px; } }

/* ---- Buttons ---- */
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 32px;
  background: var(--accent);
  color: #fff;
  font-size: 15px; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  transition: all .25s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.theme-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.theme-btn-border {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 32px;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-hover);
  transition: all .25s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.theme-btn-border:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---- Tech pill tags ---- */
.tech-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hover);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: all .25s;
  margin: 4px;
}
.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

/* ================================================
   HEADER
   ================================================ */
.bd-header-area {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 999;
  padding: 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.bd-header-area.sticky-menu {
  background: rgba(14,17,23,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  animation: none;
  box-shadow: none;
}
.bd-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

/* Logo */
.bd-logo a {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.bd-logo .logo-monogram {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.bd-logo .logo-name {
  font-size: 16px; font-weight: 600;
  color: var(--text-primary);
}

/* Desktop nav */
.bd-main-nav {
  display: flex; align-items: center;
  list-style: none; margin: 0; padding: 0; gap: 4px;
}
.bd-main-nav li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.bd-main-nav li a:hover,
.bd-main-nav li a.active {
  color: var(--text-primary);
  background: var(--border);
}

/* Header right */
.bd-header-right { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.bd-hamburger {
  display: none;
  background: none; border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  cursor: pointer; padding: 8px 10px;
  flex-direction: column; gap: 4px;
}
.bd-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all .3s;
}
@media (max-width: 991px) {
  .bd-main-nav { display: none; }
  .bd-hamburger { display: flex; }
}

/* Mobile nav */
.bd-mobile-nav {
  display: none;
  background: rgba(22,28,45,0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.bd-mobile-nav.open { display: block; }
.bd-mobile-nav ul { list-style: none; margin: 0; padding: 0 24px; }
.bd-mobile-nav ul li a {
  display: block; padding: 11px 0;
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.bd-mobile-nav ul li a:hover { color: var(--accent); }

/* ================================================
   HERO
   ================================================ */
.bd-hero-area {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex; align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
/* Subtle background gradient blob */
.bd-hero-area::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,107,242,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.bd-hero-area::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,107,242,0.07) 0%, transparent 70%);
  bottom: 0; left: -80px;
  pointer-events: none;
}
.bd-hero-content { position: relative; z-index: 1; padding: 60px 0 80px; }

.bd-hero-name {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: 20px;
}
.bd-hero-role {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bd-hero-role .separator {
  color: var(--text-muted);
  font-weight: 400;
}
.bd-hero-role .tagline {
  color: var(--text-secondary);
  font-weight: 400;
}
.bd-hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 16px;
}
.bd-hero-desc-2 {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 44px;
}

/* CTA row */
.bd-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

/* Tech tag row */
.bd-hero-tags { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 60px; }

/* Connect bar */
.bd-hero-connect {
  display: flex; align-items: center; gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.bd-hero-connect .connect-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
}
.bd-hero-connect a {
  color: var(--text-muted);
  font-size: 18px;
  transition: color .2s;
  display: inline-flex;
}
.bd-hero-connect a:hover { color: var(--accent); }

/* ================================================
   ABOUT
   ================================================ */
.bd-about-area { background: var(--bg-primary); }
.bd-about-img img {
  width: 100%; border-radius: var(--radius-card);
  filter: grayscale(10%);
}
.bd-about-experience {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent);
  padding: 22px 28px;
  border-radius: var(--radius-card);
  text-align: center; color: #fff;
}
@media (max-width: 991px) {
  .bd-about-experience { right: 10px; bottom: -10px; }
}
.bd-about-experience .exp-number {
  font-size: 44px; font-weight: 800;
  line-height: 1; display: block;
}
.bd-about-experience .exp-label {
  font-size: 13px; font-weight: 500;
}
.bd-about-text p {
  font-size: 16px; line-height: 1.8;
  color: var(--text-secondary); margin-bottom: 18px;
}
.bd-about-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 28px 0;
}
.bd-about-info-item .label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: 4px;
}
.bd-about-info-item .value {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
}
.bd-exp-item { display: flex; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.bd-exp-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bd-exp-dot {
  flex-shrink: 0; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); margin-top: 7px;
}
.bd-exp-item h6 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.bd-exp-item .company { font-size: 13px; color: var(--accent); font-weight: 500; }
.bd-exp-item .period { font-size: 12px; color: var(--text-muted); margin-left: 8px; }

/* ================================================
   SERVICES
   ================================================ */
.bd-service-area { background: var(--bg-secondary); }
.bd-service {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  height: 100%;
  transition: all .3s;
}
.bd-service:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124,107,242,0.1);
}
.bd-service-icon {
  font-size: 32px; color: var(--accent);
  margin-bottom: 22px; display: block;
  width: 60px; height: 60px;
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: all .3s;
}
.bd-service:hover .bd-service-icon {
  background: var(--accent);
  color: #fff;
}
.bd-service h4 { font-size: 19px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.bd-service p { font-size: 14px; line-height: 1.75; color: var(--text-secondary); margin: 0; }

/* ================================================
   PORTFOLIO
   ================================================ */
.bd-portfolio-area { background: var(--bg-primary); }
.bd-portfolio {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all .3s;
}
.bd-portfolio::before {
  position: absolute; inset: 0; content: '';
  background: linear-gradient(to top, rgba(14,17,23,0.92) 0%, rgba(14,17,23,0.3) 60%, transparent 100%);
  opacity: 0;
  z-index: 1;
  transition: opacity .35s;
}
.bd-portfolio:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(124,107,242,0.12); }
.bd-portfolio:hover::before { opacity: 1; }
.bd-portfolio img { width: 100%; display: block; transition: transform .5s ease; }
.bd-portfolio:hover img { transform: scale(1.06); }
.bd-portfolio-text {
  position: absolute; left: 24px; right: 24px; bottom: -80px;
  z-index: 2; transition: bottom .3s ease;
}
.bd-portfolio:hover .bd-portfolio-text { bottom: 22px; }
.bd-portfolio-text span {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px;
}
.bd-portfolio-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0; }

/* Portfolio tags row */
.bd-portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bd-portfolio-tags .tag {
  font-size: 11px; padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* Filter buttons */
.bd-portfolio-three-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.bd-portfolio-three-menu button {
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-hover);
  height: 38px; border-radius: var(--radius-pill);
  padding: 0 20px; outline: none;
  background: transparent; color: var(--text-secondary);
  transition: all .2s; cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.bd-portfolio-three-menu button:hover,
.bd-portfolio-three-menu button.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ================================================
   SKILLS
   ================================================ */
.bd-stats-area { background: var(--bg-secondary); }
.bd-stat-item {
  text-align: center; padding: 50px 20px;
  border-right: 1px solid var(--border);
}
.bd-stat-item:last-child { border-right: none; }
@media (max-width: 767px) { .bd-stat-item { border-right: none; border-bottom: 1px solid var(--border); } }
.bd-stat-number {
  font-size: 56px; font-weight: 800;
  color: var(--accent); line-height: 1;
  display: inline-block; margin-bottom: 8px;
}
.bd-stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 400; display: block; }

.bd-skills-area { background: var(--bg-primary); }
.bd-skill-item { margin-bottom: 22px; }
.bd-skill-item:last-child { margin-bottom: 0; }
.bd-skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.bd-skill-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.bd-skill-percent { font-size: 13px; font-weight: 600; color: var(--accent); }
.bd-skill-bar { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bd-skill-fill { height: 100%; background: var(--accent); border-radius: 4px; }

/* Skill group table */
.bd-skill-group-item {
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.bd-skill-group-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bd-skill-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px;
}
.bd-skill-group-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ================================================
   TESTIMONIALS
   ================================================ */
.bd-testimonial-area { background: var(--bg-secondary); }
.bd-testimonial-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  transition: border-color .3s;
}
.bd-testimonial-item:hover { border-color: var(--accent); }
@media (max-width: 575px) { .bd-testimonial-item { padding: 28px 22px; } }
.bd-testimonial-rating { color: #f59e0b; font-size: 13px; margin-bottom: 18px; letter-spacing: 2px; }
.bd-testimonial-quote {
  font-size: 16px; line-height: 1.8;
  color: var(--text-secondary); margin-bottom: 28px;
  font-style: italic;
}
.bd-testimonial-quote::before { content: '\201C'; font-size: 40px; color: var(--accent); line-height: 0; vertical-align: -18px; margin-right: 4px; font-style: normal; }
.bd-testimonial-author { display: flex; align-items: center; gap: 14px; }
.bd-testimonial-author img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--accent);
}
.bd-testimonial-name { font-size: 15px; font-weight: 700; color: var(--text-primary); display: block; margin-bottom: 2px; }
.bd-testimonial-role { font-size: 12px; color: var(--accent); display: block; }
.bd-testimonial-rel { font-size: 11px; color: var(--text-muted); display: block; margin-top: 1px; }

/* Swiper pagination */
.testimonial-pagination { text-align: center; margin-top: 36px; }
.testimonial-pagination .swiper-pagination-bullet {
  width: 6px; height: 6px; border-radius: 6px;
  background: var(--border-hover); opacity: 1;
  transition: all .3s; display: inline-block; margin: 0 4px;
}
.testimonial-pagination .swiper-pagination-bullet-active {
  background: var(--accent); width: 24px;
}

/* ================================================
   CONTACT
   ================================================ */
.bd-contact-area { background: var(--bg-primary); }
.bd-contact-info-item { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.bd-contact-info-item:last-child { margin-bottom: 0; }
.bd-contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--accent);
  transition: all .25s;
}
.bd-contact-info-item:hover .bd-contact-icon {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.bd-contact-info-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  display: block; margin-bottom: 4px;
}
.bd-contact-info-value { font-size: 15px; font-weight: 600; color: var(--text-primary); }
a.bd-contact-info-value:hover { color: var(--accent); }

/* Availability badge */
.bd-availability-badge {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--accent-muted);
  border: 1px solid rgba(124,107,242,.3);
  border-radius: var(--radius-card);
}
.bd-availability-badge strong { color: var(--text-primary); display: block; margin-bottom: 4px; font-size: 14px; }
.bd-availability-badge p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* Contact form */
.bd-contact-form .form-control {
  width: 100%; height: 54px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 14px; color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  transition: border-color .25s;
  outline: none; box-shadow: none;
}
.bd-contact-form .form-control::placeholder { color: var(--text-muted); }
.bd-contact-form .form-control:focus { border-color: var(--accent); background: var(--bg-card-hover); }
.bd-contact-form textarea.form-control { height: 150px; padding: 16px 18px; resize: none; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ================================================
   FOOTER
   ================================================ */
.bd-footer-area { background: var(--bg-secondary); padding: 70px 0 0; border-top: 1px solid var(--border); }
.bd-footer-widget h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 22px; }
.bd-footer-widget p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }
.bd-footer-links { list-style: none; padding: 0; margin: 0; }
.bd-footer-links li { margin-bottom: 10px; }
.bd-footer-links li a {
  font-size: 14px; color: var(--text-secondary);
  transition: color .2s; display: inline-flex; align-items: center; gap: 6px;
}
.bd-footer-links li a:hover { color: var(--accent); }
.bd-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.bd-footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 14px;
  transition: all .25s; text-decoration: none;
}
.bd-footer-social a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }
.bd-footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; margin-top: 50px; }
.bd-footer-copy { font-size: 13px; color: var(--text-muted); margin: 0; }
.bd-footer-copy a { color: var(--accent); }

/* ================================================
   PAGE TITLE (portfolio page)
   ================================================ */
.bd-page-title-area {
  background: var(--bg-primary);
  padding: 140px 0 70px;
  border-bottom: 1px solid var(--border);
}
.bd-page-title { font-size: 52px; font-weight: 800; color: var(--text-primary); margin-bottom: 14px; }
@media (max-width: 575px) { .bd-page-title { font-size: 36px; } }
.bd-breadcrumb { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.bd-breadcrumb li { font-size: 14px; color: var(--text-muted); }
.bd-breadcrumb li a { color: var(--text-muted); transition: color .2s; }
.bd-breadcrumb li a:hover { color: var(--accent); }
.bd-breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--border-hover); }

/* ================================================
   WOW / Bootstrap overrides
   ================================================ */
.wow { visibility: hidden; }
.container { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.offcanvas-overlay { display: none; }

/* override any Saja background colors bleeding through */
.bd-service-area, .bd-testimonial-area, .bd-stats-area { }

/* ================================================
   RESPONSIVE OVERRIDES  (mobile-first additions)
   ================================================ */

/* ── Small laptop / large tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .bd-header-inner { padding: 16px 0; }
  .container { padding-left: 20px; padding-right: 20px; }
}

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {
  .pt-120 { padding-top: 64px; }
  .pb-120 { padding-bottom: 64px; }
  .container { padding-left: 18px; padding-right: 18px; }

  /* About — photo centers, experience badge shrinks */
  .about-photo-wrap { margin: 0 auto; max-width: 320px; }
  .bd-about-experience { padding: 16px 20px; right: 10px; bottom: -16px; }
  .bd-about-experience .exp-number { font-size: 34px; }
  .bd-about-experience .exp-label { font-size: 12px; }
  .bd-about-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Education/Cert + Toptal — center the toptal badge column */
  .edu-cert-row { margin-top: 24px; }
  .toptal-col { margin-top: 8px; }

  /* Contact tabs — allow wrapping, tighten padding */
  .contact-panel-tabs { flex-wrap: wrap; gap: 8px; }
  .contact-panel-tabs .cpt {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Chat scroll button — keep visible, slightly smaller */
  .progress-wrap { right: 20px; bottom: 20px; height: 44px; width: 44px; }

  /* Footer — tighten top padding */
  .bd-footer-area { padding-top: 50px; }
  .bd-footer-bottom { margin-top: 30px; }

  /* Hero buttons stack better */
  .bd-hero-cta { flex-wrap: wrap; gap: 10px; }

  /* Page title (portfolio page) */
  .bd-page-title-area { padding: 110px 0 50px; }
}

/* ── Phone (≤480px) ── */
@media (max-width: 480px) {
  .pt-120 { padding-top: 52px; }
  .pb-120 { padding-bottom: 52px; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* About info — single column on small phones */
  .bd-about-info { grid-template-columns: 1fr; }

  /* Section title spacing */
  .bd-section-title-wrapper { margin-bottom: 36px !important; }

  /* Edu/Cert cards — tighter padding */
  .edu-cert-card { padding: 22px 20px; }
  .edu-cert-icon { width: 42px; height: 42px; font-size: 17px; margin-bottom: 14px; }
  .edu-cert-title { font-size: 16px; margin-bottom: 14px; }

  /* Service cards — tighter padding */
  .bd-service { padding: 26px 22px; }
  .bd-service h4 { font-size: 17px; }

  /* Testimonials — smaller author block */
  .bd-testimonial-author img { width: 44px; height: 44px; }
  .bd-testimonial-quote { font-size: 15px; }

  /* Contact info icons — shrink */
  .bd-contact-icon { width: 42px; height: 42px; font-size: 15px; }
  .bd-contact-info-value { font-size: 14px; word-break: break-word; }
  .bd-contact-info-item { gap: 14px; margin-bottom: 22px; }

  /* Stats numbers — smaller */
  .bd-stat-number { font-size: 42px; }

  /* Hero — let clamp handle, but tighten paddings */
  .bd-hero-area { padding-top: 100px; padding-bottom: 60px; }

  /* Chat scroll button — bottom-right corner safe distance */
  .progress-wrap { right: 16px; bottom: 16px; height: 42px; width: 42px; }

  /* Footer logo + social */
  .bd-footer-social a { width: 36px; height: 36px; font-size: 13px; }
}

/* ── Small phone (≤375px, iPhone SE) ── */
@media (max-width: 375px) {
  .pt-120 { padding-top: 44px; }
  .pb-120 { padding-bottom: 44px; }

  .bd-section-title { font-size: 24px !important; }
  .bd-section-subtitle { font-size: 10px; }

  /* About experience badge — minimal */
  .bd-about-experience { padding: 12px 16px; }
  .bd-about-experience .exp-number { font-size: 28px; }

  /* Edu/Cert cards even tighter */
  .edu-cert-card { padding: 18px 16px; }

  /* Service / portfolio card tightening */
  .bd-service { padding: 22px 18px; }

  /* Hero title (in case clamp leaves it too big) */
  .bd-hero-title { font-size: 38px !important; line-height: 1.1 !important; }

  /* Contact tab labels — shrink further */
  .contact-panel-tabs .cpt { padding: 9px 10px; font-size: 12px; }

  /* Toptal badge — slightly shrink so it doesn't dominate */
  .toptal-a { width: 180px; padding: 20px 0 32px; }
  .toptal-b { font-size: 17px; }
  .toptal-c { width: 100px; }
}

/* ================================================
   FROSTED GLASS OVERRIDES
   Layered on top of base components to introduce
   the icy-blue, glassmorphism aesthetic.
   ================================================ */

/* Header — frosted glass at all times */
.bd-header-area {
  background: rgba(6, 9, 15, 0.55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
}
.bd-header-area.sticky-menu {
  background: rgba(6, 9, 15, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
}
.bd-logo .logo-monogram {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg-primary);
  box-shadow: 0 0 16px var(--accent-glow);
}
.bd-main-nav li a {
  font-family: var(--font-sans);
}
.bd-main-nav li a:hover,
.bd-main-nav li a.active {
  color: var(--accent-hover);
  background: rgba(125, 211, 252, 0.08);
}

/* Buttons — keep the pill shape, refine palette */
.theme-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(125, 211, 252, 0.25);
  font-family: var(--font-sans);
}
.theme-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: var(--bg-primary);
  box-shadow: 0 8px 30px rgba(125, 211, 252, 0.45);
  transform: translateY(-2px);
}
.theme-btn-border {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  border-color: var(--glass-border);
  font-family: var(--font-sans);
}
.theme-btn-border:hover {
  border-color: var(--border-hover);
  color: var(--accent-hover);
  background: rgba(125, 211, 252, 0.05);
}

/* Tech pills — icier */
.tech-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  background: rgba(125, 211, 252, 0.05);
  border-color: rgba(125, 211, 252, 0.18);
  color: var(--accent-hover);
}
.tech-tag:hover {
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.4);
  color: var(--accent-hover);
}

/* Section title — gradient text on the highlighted span */
.bd-section-title {
  letter-spacing: -0.03em;
}
.bd-section-title span {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.bd-section-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* Hero name — gradient sheen */
.bd-hero-name {
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
}
.bd-hero-role .tagline { color: var(--accent-hover); }
.bd-hero-connect .connect-label { font-family: var(--font-mono); }

/* Hero code card — keep the dark terminal feel but ice up the border */
.code-outer {
  background: rgba(6, 9, 15, 0.7) !important;
  border: 1px solid rgba(125, 211, 252, 0.35) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(125, 211, 252, 0.12) !important;
}
.code-inner {
  background: rgba(8, 13, 20, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.ck  { color: var(--accent) !important; }
.cp  { color: #818cf8 !important; }
.cs  { color: #86efac !important; }

/* Glass card mixin applied to existing card classes */
.bd-service,
.bd-portfolio,
.edu-cert-card,
.contact-panel,
.bd-skill-group-item,
.availability-badge {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.bd-service::before,
.bd-portfolio::before,
.edu-cert-card::before,
.contact-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  z-index: 2;
}
.bd-service:hover,
.bd-portfolio:hover,
.edu-cert-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Portfolio overlay re-tuned for glass */
.bd-portfolio::before {
  background: linear-gradient(to top, rgba(6,9,15,0.92) 0%, rgba(6,9,15,0.3) 60%, transparent 100%);
  height: 100%;
  opacity: 0;
  transition: opacity .35s;
}
.bd-portfolio:hover::before { opacity: 1; }

/* Service icon */
.bd-service-icon {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(125, 211, 252, 0.04));
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: var(--accent-hover);
}
.bd-service:hover .bd-service-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg-primary);
  box-shadow: 0 0 18px var(--accent-glow);
  border-color: transparent;
}

/* About — info pill values and the experience timeline dot */
.bd-exp-dot {
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 10px var(--accent-glow);
}
.bd-exp-item h6 { font-family: var(--font-sans); }
.bd-about-experience {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg-primary);
  box-shadow: 0 12px 40px rgba(125, 211, 252, 0.3);
}
.bd-about-info-item .label { font-family: var(--font-mono); }

/* Stats — icy numbers */
.stat-number { color: var(--accent-hover); }
.stat-label { font-family: var(--font-mono); letter-spacing: 0.1em; }

/* Skill bars */
.bd-skill-fill {
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-hover));
}
.bd-skill-percent { font-family: var(--font-mono); color: var(--accent-hover); }
.bd-skill-name { font-family: var(--font-sans); }
.bd-skill-group-label { font-family: var(--font-mono); color: var(--accent); }

/* Footer */
.bd-footer-area {
  background: rgba(6, 9, 15, 0.6);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bd-footer-widget h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.bd-footer-bottom { border-top-color: var(--glass-border); }

/* Edu / Cert cards inside about */
.edu-cert-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 16px var(--accent-glow);
  color: var(--bg-primary);
}

/* Contact panel header */
.contact-panel-header {
  background: rgba(255,255,255,0.02);
  border-bottom-color: var(--glass-border);
}
.cpt {
  font-family: var(--font-sans);
}
.cpt.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg-primary);
}
.cf-input {
  background: rgba(255,255,255,0.03);
  border-color: var(--glass-border);
  font-family: var(--font-sans);
}
.cf-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}
.cf-label { font-family: var(--font-mono); }
.availability-badge {
  border-left-color: var(--accent);
}
.availability-badge strong { color: var(--accent-hover); }

/* Embedded chat */
.embedded-chat-input #ec-input {
  background: rgba(255,255,255,0.03);
  border-color: var(--glass-border);
  font-family: var(--font-sans);
}
.embedded-chat-input #ec-input:focus { border-color: var(--accent); }
#ec-send {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg-primary);
}
#ec-send:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); }

/* AI Chat scroll button (bottom right) */
.progress-wrap.back-to-top-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 24px rgba(125, 211, 252, 0.35);
}

/* Preloader spinner */
#preloader .spinner {
  border-top-color: var(--accent);
}

/* Section backgrounds — keep them deep and consistent */
.bd-service-area { background: transparent; }
.bd-about-area, .bd-hero-area, .bd-portfolio-area, .bd-skills-area, .bd-contact-area { background: transparent; }
.bd-stats-area { background: transparent; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.bd-hero-area::before, .bd-hero-area::after { display: none; }

/* ================================================
   AI TOUCHES — global (override Bootstrap/Astro)
   ================================================ */

/* ---- AI status pill ---- */
.ai-status-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  margin-bottom: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all .25s;
  width: max-content;
}
.ai-status-pill:hover {
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(125, 211, 252, 0.06);
  color: var(--accent-hover);
}
.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: ai-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.ai-status-dot.small { width: 6px; height: 6px; }
@keyframes ai-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.25); }
}
.ai-status-label { letter-spacing: .04em; }

/* ---- AI prompt bar ---- */
form.ai-prompt-bar {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 540px;
  margin: 0 0 28px !important;
  padding: 6px 6px 6px 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: border-color .25s, box-shadow .25s, background .25s;
  box-shadow: none !important;
}
form.ai-prompt-bar:focus-within {
  border-color: var(--accent) !important;
  background: rgba(125, 211, 252, 0.04) !important;
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12) !important;
}
form.ai-prompt-bar .ai-prompt-icon {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
form.ai-prompt-bar input.ai-prompt-input,
form.ai-prompt-bar input[type="text"].ai-prompt-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
  font-size: 14.5px !important;
  padding: 10px 4px !important;
  margin: 0 !important;
  letter-spacing: -0.005em;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0 !important;
}
form.ai-prompt-bar input.ai-prompt-input::placeholder {
  color: var(--text-muted) !important;
  opacity: 1;
}
form.ai-prompt-bar .ai-prompt-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
form.ai-prompt-bar button.ai-prompt-send {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  padding: 0 !important;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
  color: var(--bg-primary) !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(125, 211, 252, 0.25) !important;
  font-family: var(--font-sans);
}
form.ai-prompt-bar button.ai-prompt-send:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(125, 211, 252, 0.45) !important;
}
form.ai-prompt-bar button.ai-prompt-send svg {
  display: block;
  color: var(--bg-primary);
}
@media (max-width: 575px) {
  form.ai-prompt-bar .ai-prompt-hint { display: none; }
}
@media (max-width: 991px) {
  .ai-status-pill, form.ai-prompt-bar {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---- Streaming code card header & syntax highlighting ---- */
.code-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 16px;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  margin-bottom: 18px;
}
.code-card-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.code-card-dot.dot-r { background: #f87171; }
.code-card-dot.dot-y { background: #fbbf24; }
.code-card-dot.dot-g { background: #34d399; }
.code-card-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.code-card-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.code-block { min-height: 156px; font-family: var(--font-mono); }
.code-block .syn-k { color: #7dd3fc; }
.code-block .syn-v { color: #e8eef7; }
.code-block .syn-p { color: #818cf8; font-weight: 600; }
.code-block .syn-s { color: #86efac; }
.code-block .syn-n { color: #fbbf24; }
.code-block .syn-c { color: #6b7a91; font-style: italic; }

#streaming-code + .code-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--accent-glow);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ---- Aurora shimmer ---- */
@property --ai-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.ai-shimmer {
  position: relative;
  isolation: isolate;
}
.ai-shimmer::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--ai-angle),
    transparent 0deg,
    rgba(125, 211, 252, 0) 20deg,
    rgba(125, 211, 252, 0.55) 50deg,
    rgba(186, 230, 253, 0.85) 70deg,
    rgba(129, 140, 248, 0.55) 90deg,
    transparent 130deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: ai-shimmer-rotate 6s linear infinite;
  z-index: 3;
}
@keyframes ai-shimmer-rotate { to { --ai-angle: 360deg; } }
@supports not (background: conic-gradient(from 0deg, transparent, transparent)) {
  .ai-shimmer::after { display: none; }
}
.tech-tag.ai-shimmer { border-radius: var(--radius-pill); }
.tech-tag.ai-shimmer::after { padding: 1px; }

/* ================================================
   Hero streaming card — lock height & polish
   ================================================ */

/* Fixed card geometry so typing/erasing doesn't reflow */
.bd-hero-code .code-outer {
  display: flex;
  flex-direction: column;
}
.bd-hero-code .code-inner {
  height: 260px !important;
  min-height: 260px !important;
  padding: 24px 28px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}
.bd-hero-code .code-block {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 200px;
  max-height: 100%;
  margin: 0;
  white-space: pre;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.85;
}

/* Cursor positioned at the end of the typed content */
.bd-hero-code .code-inner > .code-cursor {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: none; /* hidden by default; visible only at empty state */
}

@media (max-width: 1199px) {
  .bd-hero-code .code-inner { height: 240px !important; min-height: 240px !important; }
  .bd-hero-code .code-block { font-size: 15.5px; min-height: 180px; }
}
@media (max-width: 991px) {
  .bd-hero-code .code-inner { height: 230px !important; min-height: 230px !important; }
}

/* ================================================
   AI prompt bar under code card — variant
   ================================================ */
form.ai-prompt-bar.ai-prompt-bar-below {
  width: 100% !important;
  max-width: none !important;
  margin: 14px 0 0 !important;
}
form.ai-prompt-bar.ai-prompt-bar-below .ai-prompt-hint { display: none; }
