:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --line: rgba(255,255,255,.12);
  --accent: #6ea8fe; /* Bootstrap-ish blue */

  /* Better anchor scrolling with fixed navbar */
  scroll-padding-top: 80px;
}

body{
  background: radial-gradient(1200px 600px at 20% 10%, rgba(110,168,254,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 30%, rgba(32,201,151,.12), transparent 55%),
              var(--bg);
  color: var(--text);

  /* Prevent overflow on long words/URLs on mobile */
  overflow-wrap: anywhere;
}

/* Ensure anchor targets are not hidden behind fixed navbar */
section[id]{ scroll-margin-top: 80px; }

.navbar-blur{
  /* Slightly more opaque for better readability + fallback */
  background: rgba(11,18,32,.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.hero{
  padding-top: 6rem;
  padding-bottom: 3rem;
}

@media (max-width: 576px){
  .hero{
    padding-top: 5rem;
    padding-bottom: 2.25rem;
  }
  /* Full-width CTAs on small screens */
  .hero .btn{ width: 100%; }
  .hero .d-flex{ gap: .75rem; }
}

.hero-tagline { color: var(--accent); }
.hr-line { border-color: var(--line) !important; opacity: 1; }

.pill{
  display:inline-flex; gap:.5rem; align-items:center;
  padding:.35rem .75rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
}

.glass{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.glass:hover{ background: var(--card2); }

.section{
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}
.section-title{
  font-weight: 700;
  letter-spacing: .2px;
}
.muted{ color: var(--muted); }

.icon{
  width: 110px; height: 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--accent);
  font-weight: 700;

  /* Prevent weird line breaks / wrapping inside the icon box */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1;
  letter-spacing: .2px;
}

.small-link a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.25);
  word-break: break-word;
}
.small-link a:hover{ color: var(--text); border-bottom-color: rgba(255,255,255,.45); }

/* Also ensure mail/link text can wrap nicely */
a.link-light{ word-break: break-word; }

footer{
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
}

/* Honeypot hidden field */
.hp{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ===== Profile image (added) ===== */
.profile-card{
  position: relative;
  overflow: hidden;
}
.profile-img{
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  flex: 0 0 auto;
}
@media (max-width: 576px){
  .profile-img{
    width: 96px;
    height: 96px;
  }
}

/* ===== Language toggle (added) ===== */
.lang-toggle .btn{
  border-color: rgba(255,255,255,.18) !important;
}
.lang-toggle .btn.active{
  pointer-events: none;
}

/* ===== Projects Accordion (Glass) ===== */

.accordion-item {
  background: transparent;
  border: none;
}

.accordion-button {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: none;
}

.accordion-button.collapsed {
  color: #fff;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  outline: none;
}

.accordion-button::after {
  filter: invert(1);
  opacity: 0.6;
}

.accordion-body {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 1rem 1rem;
  padding: 1.25rem;
}

.accordion-item + .accordion-item {
  margin-top: 0.75rem;
}

/* ===== Approach Section ===== */

.approach-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.approach-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,255,255,0.03);
}

.approach-badge{
  flex:0 0 auto;
  min-width:46px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background: rgba(255,255,255,0.10);
  color:#fff;
  font-weight:700;
  font-size:.9rem;
  border:1px solid rgba(255,255,255,0.12);
}

.approach-body{
  width:100%;
}

.approach-badge {
  color: #6ea8fe;
  font-weight: 700;
}

/* ===== backToTop Button ===== */

#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);

  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Experience: Stack sub-card  ===== */

.stack-box{
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.stack-box .muted.small{
  opacity: .85;
}

.stack-box ul li{
  margin-bottom: .25rem;
}

/* ===== Dark / Glass Modal  ===== */

.modal-content {
  background: rgba(11, 15, 20, 0.95);
  color: #e9eef5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-body {
  color: #e9eef5;
}

.modal-body a {
  color: var(--bs-primary);
  text-decoration: none;
}
.modal-body a:hover {
  text-decoration: underline;
}

/* Close button in dark */
.modal .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.8;
}
.modal .btn-close:hover {
  opacity: 1;
}