:root {
  --primary: #7dbd00;
  --primary-dark: #5c9900;
  --primary-soft: #eff8df;

  --text: #111827;
  --text-muted: #667085;
  --text-soft: #98a2b3;

  --background: #f8fafb;
  --surface: #ffffff;
  --surface-muted: #f1f5f2;
  --border: #e5e7eb;

  --shadow-sm: 0 4px 14px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 20px 45px rgba(16, 24, 40, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1160px;
  --transition: 220ms ease;
}

/* =========================
   Reset & Base
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(90%, var(--container));
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-title-left {
  text-align: left;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================
   Navbar
   ========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(14px);
}

.nav-content {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.logo-mark {
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* =========================
   Hero
   ========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(circle at 80% 25%, rgba(125, 189, 0, 0.13), transparent 28%),
    linear-gradient(135deg, #f5fbe9 0%, #f8fafb 58%, #eef5f0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 5rem;
}

.hero-text {
  animation: slideInLeft 700ms ease both;
}

.hero-text h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  letter-spacing: -0.045em;
}

.hero-text h1 span {
  color: var(--primary-dark);
}

.hero-lead {
  max-width: 680px;
  margin: 1.5rem 0 0.8rem;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
}

.hero-description {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  color: #fff;
  background: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.hero-tags span,
.project-tags span,
.skill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-image {
  position: relative;
  max-width: 440px;
  justify-self: end;
  animation: slideInRight 700ms ease both;
}

.hero-image-frame {
  position: relative;
  padding: 0.75rem;
  border: 1px solid rgba(125, 189, 0, 0.25);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}

.hero-image-label {
  position: absolute;
  right: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* =========================
   Projects
   ========================= */

.projects {
  background: var(--surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(125, 189, 0, 0.5);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 270px;
  background: #e9eee9;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.045);
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.6rem;
}

.project-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-card-heading h3 {
  font-size: 1.25rem;
}

.project-card-heading > i {
  flex-shrink: 0;
  color: var(--primary-dark);
}

.project-body > p {
  margin: 0.9rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.project-stat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary-soft);
}

.project-stat strong {
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.project-stat span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.project-link i {
  transition: transform var(--transition);
}

.project-card:hover .project-link i {
  transform: translateX(4px);
}

/* =========================
   GitHub-loaded projects
   ========================= */

.github-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.github-project {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
}

.github-project h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.github-project p {
  min-height: 3.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.github-project-meta {
  margin: 1rem 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.github-project .btn {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* =========================
   Skills
   ========================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1.2rem;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.skill-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.skill-card p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* =========================
   About
   ========================= */

.about {
  background: var(--surface);
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 5rem;
}

.about-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-highlight {
  padding: 2.2rem;
  border: 1px solid rgba(125, 189, 0, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--primary-soft), #fff);
  box-shadow: var(--shadow-md);
}

.about-highlight-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
}

.about-highlight h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.about-highlight p {
  color: var(--text-muted);
}

/* =========================
   Contact
   ========================= */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 230px;
  padding: 1rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card > i {
  font-size: 1.4rem;
}

.contact-card span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-weight: 700;
}

.contact-card small {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 600;
}

.contact-card.email {
  color: #d93025;
}

.contact-card.linkedin {
  color: #0077b5;
}

/* =========================
   Footer
   ========================= */

.footer {
  padding: 1.5rem 0;
  background: #111827;
  color: #d1d5db;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  font-size: 0.8rem;
}

.footer a {
  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* =========================
   Animations
   ========================= */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1000px) {
  .hero-content {
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
  }

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

  .about-content {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav-content {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
  }

  .hero-text {
    text-align: center;
  }

  .hero-description,
  .hero-lead {
    margin-inline: auto;
  }

  .hero-buttons,
  .hero-tags {
    justify-content: center;
  }

  .hero-image {
    width: min(100%, 380px);
    margin-inline: auto;
    justify-self: center;
  }

  .hero-image-label {
    right: 0;
  }

  .section-title-left {
    text-align: center;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

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

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(92%, var(--container));
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-image-label {
    position: static;
    justify-content: center;
    margin-top: 0.8rem;
  }

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

  .project-image {
    height: 230px;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-card {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
