/* =========================================
   TOKENS
   ========================================= */
:root {
  --green:       #10B981;
  --green-light: #34D399;
  --green-dim:   #D1FAE5;
  --blue:        #3B82F6;
  --dark:        #0A1628;
  --dark-2:      #112240;
  --mid:         #64748B;
  --light:       #F1F5F9;
  --white:       #FFFFFF;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow:      0 4px 24px rgba(10,22,40,0.08);
  --shadow-lg:   0 12px 48px rgba(10,22,40,0.14);
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --nav-h:       64px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================
   LAYOUT HELPERS
   ========================================= */
.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

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

.section__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section__heading {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 2.5rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}
.btn--primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16,185,129,0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(10,22,40,0.18);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,22,40,0.07);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: var(--shadow);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.nav__logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--green); }

.nav__cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav__cta:hover {
  background: var(--green-light) !important;
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding-top: var(--nav-h);
}

/* subtle grid overlay */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,185,129,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(16,185,129,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
  padding-block: 4rem;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.hero__name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__actions .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.hero__actions .btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

/* decorative lightning bolt */
.hero__bolt {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: clamp(80px, 10vw, 160px);
  color: rgba(16,185,129,0.12);
  pointer-events: none;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

/* =========================================
   ABOUT
   ========================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text p {
  color: var(--mid);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  background: var(--green-dim);
  color: #065F46;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-head);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(10,22,40,0.08);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-card--accent {
  background: var(--dark);
  border-color: transparent;
}

.stat-card__num {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 500;
  line-height: 1.4;
}

.stat-card--accent .stat-card__label {
  color: rgba(255,255,255,0.6);
}

/* =========================================
   SKILLS
   ========================================= */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-group {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(10,22,40,0.08);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.skill-group__icon {
  font-size: 1.75rem;
  margin-bottom: 0.9rem;
}

.skill-group__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.skill-group__list li {
  font-size: 0.9rem;
  color: var(--mid);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(10,22,40,0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group__list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.skill-group__list li:last-child {
  border-bottom: none;
}

/* =========================================
   EXPERIENCE / TIMELINE
   ========================================= */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline__dot {
  position: absolute;
  left: -2.45rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green);
}

.timeline__card {
  background: var(--white);
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.timeline__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(10,22,40,0.07);
}

.timeline__company {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.timeline__date {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  font-family: var(--font-head);
  background: var(--green-dim);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
}

.timeline__role {
  margin-bottom: 1.5rem;
}

.timeline__role:last-child {
  margin-bottom: 0;
}

.timeline__role h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.timeline__role ul {
  padding-left: 1rem;
  list-style: disc;
}

.timeline__role ul li {
  font-size: 0.95rem;
  color: var(--mid);
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

/* =========================================
   PROJECTS
   ========================================= */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border: 1px solid rgba(10,22,40,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card--highlight {
  border-color: var(--green);
}

/* Visual header */
.project-card__visual {
  width: 100%;
  height: 148px;
  background: var(--dark);
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.project-card__visual--dashboard { background: #071a2e; }
.project-card__visual--strategy  { background: #0d1b38; }
.project-card__visual--rag       { background: #071a15; }
.project-card__visual--erp       { background: #111827; }

.project-card__visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animate SVG bars on hover */
.project-card:hover .bar {
  animation: bar-grow 0.4s ease forwards;
}

@keyframes bar-grow {
  from { transform: scaleY(0.85); transform-origin: bottom; }
  to   { transform: scaleY(1);    transform-origin: bottom; }
}

.project-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.project-card__tag {
  font-size: 0.73rem;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.project-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}

.project-card__desc {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.7;
}

/* =========================================
   CONTACT
   ========================================= */
.contact__container {
  text-align: center;
}

.contact__sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  border: 2px solid rgba(10,22,40,0.12);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact__link:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16,185,129,0.18);
}

.contact__link-icon {
  font-size: 1.1rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark);
  padding: 1.75rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}

.footer__copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

.footer__claude {
  color: var(--green);
  transition: color 0.2s;
}
.footer__claude:hover { color: var(--green-light); }

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(10,22,40,0.08);
    box-shadow: var(--shadow);
    gap: 1rem;
  }

  .nav__burger { display: flex; }

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

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

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

  .timeline { padding-left: 1.25rem; }

  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 420px) {
  .skills__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
}
