/* ===========================================================
   Modern overrides — George Dakhil CV
   Loaded AFTER styles.css to override the Start Bootstrap theme.
   Accent: emerald (tied to "Bolos y Verdes"). Clean & readable.
   =========================================================== */

:root {
  --bs-primary: #047857;            /* emerald-700 */
  --bs-primary-rgb: 4, 120, 87;
  --bs-link-color: #047857;
  --bs-link-hover-color: #065f46;   /* emerald-800 */
  --accent: #10b981;                /* emerald-500 (bright) */
  --accent-strong: #047857;
  --ink: #1f2937;                   /* slate-800 body */
  --muted: #6b7280;                 /* gray-500 */
  --line: #e5e7eb;                  /* gray-200 */
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1.mb-0 { font-weight: 700; letter-spacing: -0.5px; }

/* Section titles with an accent underline */
section.resume-section h2 {
  font-weight: 700;
  margin-bottom: 2.5rem !important;
}
section.resume-section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.7rem;
  border-radius: 4px;
  background: var(--accent);
}

.subheading {
  font-family: "Poppins", sans-serif;
  text-transform: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: var(--muted);
}

.lead { color: #374151; line-height: 1.75; }

/* ---- Sidebar ---- */
#sideNav.bg-primary {
  background: linear-gradient(180deg, #059669 0%, #047857 55%, #065f46 100%) !important;
}
#sideNav .navbar-nav .nav-item .nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#sideNav .navbar-nav .nav-item .nav-link:hover,
#sideNav .navbar-nav .nav-item .nav-link.active {
  opacity: 1;
  transform: translateX(3px);
}
#sideNav .navbar-brand .img-profile {
  border: 0.4rem solid rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease;
}
#sideNav .navbar-brand .img-profile:hover { transform: scale(1.03); }
#sideNav .navbar-toggler:focus { outline-color: #34d399; }

/* ---- Social icons ---- */
.social-icons .social-icon {
  background-color: #374151;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.social-icons .social-icon:hover {
  background-color: var(--accent-strong);
  transform: translateY(-3px);
}

/* ---- Date pill (experience / education) ---- */
.date-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.10);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- Project cards ---- */
.project-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.13);
  border-color: var(--accent);
}
.project-card h3 { font-weight: 700; margin-bottom: 0.2rem; }
.project-featured {
  border-left: 5px solid var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

/* ---- Tech tags / skill pills ---- */
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin: 0.2rem 0.25rem 0.2rem 0;
}

/* ---- Project links ---- */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  margin-right: 1.25rem;
}
.project-link:hover { text-decoration: underline; }

/* ---- Skills ---- */
.dev-icons li { transition: transform 0.2s ease, color 0.2s ease; }
.dev-icons li:hover { color: var(--accent-strong); transform: translateY(-5px); }
.fa-ul .fa-li .fa-check { color: var(--accent); }
