/* ==== Base & Theme ==== */
:root {
  --bg: #0b1720;
  --bg-soft: #11212d;
  --card: #101b25;
  --ink: #e7f0f7;
  --ink-subtle: #c9d7e3;
  --primary: #38b27a;
  --primary-600: #2f9566;
  --ring: rgba(56,178,122,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

/* ==== Navbar ==== */
.custom-navbar {
  background: linear-gradient(180deg, rgba(11,23,32,0.75), rgba(11,23,32,0));
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(231,240,247,0.06);
  padding: .6rem 0;
  transition: background .2s ease, box-shadow .2s ease;
}
.custom-navbar.scrolled {
  background: #0b1720;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.custom-navbar .nav-link {
  color: var(--ink-subtle);
  margin: 0 .25rem;
}
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
  color: var(--ink);
}
.custom-navbar .btn {
  --bs-btn-color: #0b1720;
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
}
.custom-navbar .navbar-nav .nav-item {
  margin-left: 1rem;   /* increase spacing between items */
  margin-right: 1rem;  /* optional, adds balance */
}

/* ==== Hero ==== */
.hero-section {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 5rem;
  background: radial-gradient(1000px 600px at 20% -10%, rgba(56,178,122,.35), transparent 40%);
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 90% 20%, rgba(56,178,122,.2), transparent 40%);
  pointer-events: none;
}
.hero-image {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(231,240,247,.1);
}
.text-hero { color: var(--ink-subtle); }
.text-hero-subtle { color: #a9c0d2; }
.fw-extrabold { font-weight: 800; }

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(231,240,247,0.08);
}
.socials a:hover { outline: 3px solid var(--ring); }

/* ==== Sections ==== */
.section-pad { padding: 5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-title { margin: 0 0 .25rem; }
.section-subtitle { color: var(--ink-subtle); margin: 0; }

/* ==== Timeline ==== */
.timeline { position: relative; margin-left: .5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(56,178,122,.15));
}
.tl-card {
  position: relative;
  margin-left: 2.25rem;
  background: var(--card);
  border: 1px solid rgba(231,240,247,.08);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
}
.tl-dot {
  position: absolute;
  left: -26px; top: 1rem;
  width: 14px; height: 14px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(56,178,122,.15);
}
.tl-dates {
  font-size: .9375rem;
  color: var(--ink-subtle);
}

/* ==== Projects ==== */
.project-card {
  background: var(--card);
  border: 1px solid rgba(231,240,247,.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project-body { padding: 1.25rem 1.25rem 0 1.25rem; }
.project-footer {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(231,240,247,.06);
}
.tech-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-list span {
  background: rgba(231,240,247,.06);
  border: 1px solid rgba(231,240,247,.08);
  color: var(--ink-subtle);
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .85rem;
}

/* ==== Contact ==== */
.contact-card {
  background: var(--card);
  border: 1px solid rgba(231,240,247,.08);
  border-radius: 16px;
  padding: 1.25rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem 0;
  color: var(--ink);
}
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form .form-control {
  background: #0e1a23;
  border-color: rgba(231,240,247,.1);
  color: var(--ink);
}
.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .25rem var(--ring);
}

/* ==== Footer ==== */
.footer {
  padding: 1.25rem 0 2rem;
  background: #0a141c;
  border-top: 1px solid rgba(231,240,247,.06);
}

/* ==== Utilities ==== */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-600);
  --bs-btn-hover-border-color: var(--primary-600);
}
.badge.text-bg-secondary {
  background: rgba(231,240,247,.12) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(231,240,247,.08);
}

@media (max-width: 991.98px) {
  .hero-section { padding-top: 6rem; }
  .timeline::before { left: 8px; }
  .tl-dot { left: -24px; }
}

/* ===== Skills Section ===== */
.skills-group {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.9;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.skill {
  background: var(--card);
  border: 1px solid rgba(231,240,247,.08);
  border-radius: 14px;
  padding: 1rem .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}

.skill i {
  font-size: 2.25rem; /* icon size */
  line-height: 1;
}

.skill span {
  font-size: .95rem;
  color: var(--ink);
}

/* Hover: lift & slightly enlarge */
.skill:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  border-color: rgba(231,240,247,.18);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .skill { transition: none; }
  .skill:hover { transform: none; }
}

/* Optional: bump icon size on wide screens */
@media (min-width: 992px) {
  .skill i { font-size: 2.6rem; }
}


/* Keep sections with .bg-body dark like the rest of the site */
.bg-body {
  background-color: var(--bg) !important;
  color: var(--ink);
}

/* Fix muted text color on dark background */
.text-muted {
  color: var(--ink-subtle) !important;
  opacity: 0.9 !important;
}

/* If you want slightly brighter for that heading only */
#contact .text-muted {
  color: var(--ink) !important;
  opacity: 1 !important;
}


/* Strengthen the Experience header contrast a bit */
#experience .section-title { color: var(--ink); }
#experience .section-subtitle { color: var(--ink-subtle); }