:root {
  --primary-color: #046A38;
  --secondary-color: #F7941D;
  --dark-color: #101820;
  --light-color: #F8F9FA;
  --white-color: #FFFFFF;
  --muted-color: #667085;
  --border-color: #E5E7EB;
  --heading-color: #111827;
  --body-color: #344054;
  --shadow-soft: 0 16px 40px rgba(16, 24, 32, 0.10);
  --shadow-hover: 0 22px 55px rgba(16, 24, 32, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  background: var(--white-color);
  color: var(--body-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-weight: 800;
  line-height: 1.15;
}

p {
  margin-bottom: 1rem;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.06);
  padding: 0.9rem 0;
  backdrop-filter: blur(16px);
}

.navbar-brand {
  color: var(--dark-color);
  font-size: 1.2rem;
  font-weight: 900;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--primary-color);
}

.navbar-toggler {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(4, 106, 56, 0.18);
}

.nav-link {
  color: #25313d;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  position: relative;
}

.nav-link::after {
  background: var(--secondary-color);
  border-radius: 999px;
  bottom: 0.2rem;
  content: "";
  height: 2px;
  left: 0.8rem;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  width: calc(100% - 1.6rem);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0.75rem 1.25rem;
  transition: var(--transition);
}

.btn-lg {
  padding: 0.9rem 1.35rem;
}

.btn-brand {
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-color: var(--white-color);
  --bs-btn-hover-bg: #03542d;
  --bs-btn-hover-border-color: #03542d;
  --bs-btn-hover-color: var(--white-color);
  box-shadow: 0 12px 25px rgba(4, 106, 56, 0.25);
}

.btn-brand:hover,
.btn-outline-light:hover {
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white-color);
}

/* Hero */
.hero-section {
  background-image: url("../images/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white-color);
  min-height: 100vh;
  position: relative;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.80) 45%, rgba(16, 24, 32, 0.26) 100%),
    radial-gradient(circle at 20% 55%, rgba(4, 106, 56, 0.35), transparent 34%);
  inset: 0;
  position: absolute;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: var(--white-color);
  font-size: clamp(3.25rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.1rem;
}

.hero-section .lead {
  color: var(--white-color);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  color: var(--secondary-color);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

/* Sections */
.section-pad {
  padding: 96px 0;
}

.section-muted {
  background: var(--light-color);
}

.section-heading {
  margin-bottom: 2.4rem;
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

h3 {
  font-size: 1.12rem;
  font-weight: 850;
}

/* About */
#about {
  background: var(--white-color);
}

.stats-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  min-height: 140px;
  padding: 1.4rem;
  transition: var(--transition);
}

.stats-grid div:hover {
  border-color: rgba(4, 106, 56, 0.25);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.stats-grid strong {
  color: var(--dark-color);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.stats-grid span {
  color: var(--muted-color);
  display: block;
  font-size: 0.95rem;
}

/* Skills */
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-cloud span {
  align-items: center;
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.06);
  color: var(--dark-color);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 800;
  min-height: 44px;
  padding: 0.7rem 1rem;
  transition: var(--transition);
}

.skill-cloud span i {
  color: var(--primary-color);
}

.skill-cloud span:hover {
  border-left-color: var(--secondary-color);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.skill-cloud span:hover i {
  color: var(--secondary-color);
}

/* Cards */
.service-card,
.project-card,
.credential-card,
.contact-panel {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.service-card,
.project-card,
.credential-card {
  height: 100%;
  padding: 1.6rem;
  transition: var(--transition);
}

.service-card:hover,
.project-card:hover,
.credential-card:hover {
  border-color: rgba(4, 106, 56, 0.28);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.service-card p,
.project-card p,
.credential-card p,
.timeline p,
.contact-section p {
  color: var(--muted-color);
}

.card-icon,
.project-tag {
  align-items: center;
  background: rgba(4, 106, 56, 0.10);
  border-radius: 999px;
  color: var(--primary-color);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 1.2rem;
  min-width: 42px;
  padding: 0 0.9rem;
}

.service-card:hover .card-icon {
  background: var(--primary-color);
  color: var(--white-color);
}

.project-tag {
  background: rgba(247, 148, 29, 0.14);
  color: #9a560c;
  height: 36px;
}

.project-card h3,
.credential-card h3,
.service-card h3 {
  margin-bottom: 0.75rem;
}

/* Experience timeline */
.timeline {
  border-left: 3px solid rgba(4, 106, 56, 0.22);
  padding-left: 1.6rem;
}

.timeline-item {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.07);
  margin-bottom: 1.4rem;
  padding: 1.4rem;
  position: relative;
  transition: var(--transition);
}

.timeline-item::before {
  background: var(--secondary-color);
  border: 4px solid var(--light-color);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(247, 148, 29, 0.45);
  content: "";
  height: 18px;
  left: -34px;
  position: absolute;
  top: 1.55rem;
  width: 18px;
}

.timeline-item:hover {
  border-color: rgba(4, 106, 56, 0.25);
  box-shadow: var(--shadow-soft);
  transform: translateX(4px);
}

.timeline-item p strong {
  color: var(--primary-color);
  font-size: 0.95rem;
}

.timeline-item p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-section {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(4, 65, 39, 0.96)),
    var(--dark-color);
  color: var(--white-color);
}

.contact-section h2 {
  color: var(--white-color);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.74);
}

.reference-note {
  color: var(--white-color) !important;
  font-weight: 900;
}

.contact-panel {
  overflow: hidden;
  padding: 0.6rem 1.6rem;
}

.contact-panel a {
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  color: var(--dark-color);
  display: flex;
  font-size: 1rem;
  font-style: normal;
  font-weight: 850;
  gap: 0.3rem;
  overflow-wrap: anywhere;
  padding: 1.05rem 0;
  text-decoration: none;
}

.contact-panel a:last-child {
  border-bottom: 0;
}

.contact-panel a i {
  color: var(--primary-color);
  flex: 0 0 auto;
}

.contact-panel a:hover {
  color: var(--primary-color);
  padding-left: 0.35rem;
}

/* Footer and back-to-top link */
.site-footer {
  background: #0B1117;
  color: rgba(255, 255, 255, 0.74);
  padding: 1.3rem 0;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--white-color);
  display: inline-flex;
  font-weight: 800;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.site-footer a:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-2px);
}

/* Tablet */
@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 76px;
  }

  .navbar {
    padding: 0.7rem 0;
  }

  .navbar-collapse {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-top: 0.8rem;
    padding: 1rem;
  }

  .nav-link {
    padding: 0.65rem 0.2rem;
  }

  .nav-link::after {
    display: none;
  }

  .hero-overlay {
    background: rgba(16, 24, 32, 0.84);
  }

  .hero-section h1 {
    max-width: 760px;
  }

  .section-pad {
    padding: 82px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  body {
    font-size: 0.98rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section .row {
    min-height: 100vh;
    padding: 6rem 0 3rem;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .btn-lg,
  .btn {
    width: 100%;
  }

  .section-pad {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 1.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .skill-cloud span {
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .service-card,
  .project-card,
  .credential-card,
  .timeline-item {
    padding: 1.25rem;
  }

  .timeline {
    padding-left: 1.2rem;
  }

  .timeline-item::before {
    left: -28px;
  }

  .timeline-item:hover {
    transform: none;
  }

  .contact-panel {
    padding: 0.35rem 1.2rem;
  }

  .site-footer a {
    justify-content: center;
    width: 100%;
  }
}
