html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #222;
  background: #fff;
  overflow-x: hidden;
}

:root {
  --nav-h: 4rem;
}

section[id] {
  scroll-margin-top: var(--nav-h);
}

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

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #0f8a5f;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s ease,
    height 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.custom-cursor.cursor-hover {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 16px 4px rgba(16, 185, 129, 0.85);
}

.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c6b49, #0f8a5f 45%, #17a374);
  background-size: 200% 200%;
  animation: loading-gradient 3s ease infinite;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease,
    transform 0.5s ease;
}

#loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.loading-text {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.loading-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: loading-text-in 0.5s ease forwards;
}

.loading-bar {
  width: 140px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 1px;
  animation: loading-bar-fill 1.1s ease-out forwards;
  animation-delay: 0.15s;
}

@keyframes loading-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes loading-text-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading-bar-fill {
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loading-screen {
    transition: none;
    animation: none;
  }

  .loading-text span {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .loading-bar-fill {
    animation: none;
    width: 100%;
  }
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-name {
  color: #222;
  font-weight: 700;
}

.footer-tagline {
  color: #777;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: #0f8a5f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.25rem;
  color: #888;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0.25rem 0;
}

nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  color: #222;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.nav-links {
  position: relative;
  display: flex;
  gap: 1.5rem;
}

.nav-dot {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #0f8a5f;
  opacity: 0;
  transform: translateX(-50%);
  transition:
    left 0.25s ease,
    width 0.25s ease,
    opacity 0.2s ease;
  pointer-events: none;
}

nav a {
  text-decoration: none;
  color: #0f8a5f;
  font-weight: 600;
}

nav a:hover {
  text-decoration: none;
}

.nav-links a.active {
  color: #222;
  text-decoration: none;
  border-bottom: 2px solid #0f8a5f;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
}

h2 {
  border-bottom: 2px solid #eee;
  padding-bottom: 0.25rem;
}

section {
  margin-bottom: 2rem;
}

#experience,
#projects,
#contact {
  margin-bottom: 0;
}

a {
  color: #0f8a5f;
}

#headshot {
  width: 300px;
  height: auto;
  border-radius: 50%;
  flex-shrink: 0;
  order: -1;
}

.green-text {
  color: #0f8a5f;
}
.green-background {
  background-color: #0f8a5f;
  color: #fff;
  padding: 3rem 0;
}

.green-background h2 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.green-background a {
  color: #d1fae5;
}

.green-background .btn {
  border-color: #fff;
  color: #fff;
}

.green-background .btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.green-background .btn-primary {
  background: #fff;
  color: #0f8a5f;
  border-color: #fff;
}

.green-background .btn-primary:hover {
  background: #f0fdf7;
}

.green-background .contact-form label {
  color: #fff;
}

.about-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1 1 380px;
}

.about-text p {
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  flex: 1 1 320px;
}

.about-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.about-gallery img:hover {
  transform: scale(1.03);
  animation: img-shake 0.4s ease;
}

@media (max-width: 700px) {
  .about-layout {
    flex-direction: column;
  }
}

.gray-background {
  background-color: #f4f4f4;
  padding: 3rem 0;
}

.hero {
  position: relative;
  width: min(90vw, 1200px);
  margin: 0 auto 3rem;
  min-height: calc(100vh - var(--nav-h));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  padding: 2rem 1rem;
}

.hero-stars {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: 2px;
  height: 2px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(16, 185, 129, 0.85);
  opacity: 0;
  animation: shoot var(--duration, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.star::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.75));
  transform: translateY(-50%) rotate(var(--angle, 30deg));
  transform-origin: right center;
}

@keyframes shoot {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  28% {
    transform: translate(var(--dx, 220px), var(--dy, 130px));
    opacity: 0;
  }
  100% {
    transform: translate(var(--dx, 220px), var(--dy, 130px));
    opacity: 0;
  }
}

.star-fireball {
  width: 5px;
  height: 5px;
  background: #34d399;
  box-shadow:
    0 0 10px 2px rgba(16, 185, 129, 0.9),
    0 0 20px 6px rgba(16, 185, 129, 0.4);
  animation: shoot-fireball 10s linear infinite;
  animation-delay: var(--delay, 3s);
}

.star-fireball::before {
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.8));
}

@keyframes shoot-fireball {
  0%,
  84% {
    transform: translate(0, 0);
    opacity: 0;
  }
  86% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  93% {
    transform: translate(var(--dx, 480px), var(--dy, 210px));
    opacity: 0;
  }
  100% {
    transform: translate(var(--dx, 480px), var(--dy, 210px));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none;
    opacity: 0;
  }
}

.hero-shapes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--size);
  height: var(--size);
  opacity: 0.12;
  animation: drift var(--duration, 22s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.shape-circle {
  border-radius: 50%;
  background: #34d399;
}

.shape-ring {
  border-radius: 50%;
  border: 2px solid #34d399;
  opacity: 0.2;
}

.shape-blob {
  background: #0f8a5f;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
}

.shape-square {
  background: #34d399;
  border-radius: 10px;
  transform: rotate(20deg);
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(var(--dx1, 30px), var(--dy1, -20px)) rotate(6deg);
  }
  66% {
    transform: translate(var(--dx2, -20px), var(--dy2, 20px)) rotate(-4deg);
  }
  100% {
    transform: translate(var(--dx3, 15px), var(--dy3, -10px)) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #777;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-indicator:hover {
  color: #0f8a5f;
}

.scroll-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(4px, 4px);
  }
}

.hero-text {
  flex: 1 1 480px;
  min-width: 0;
}

.hero h1 {
  margin: 0.25rem 0;
  min-height: 1.2em;
  white-space: nowrap;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.typed-cursor {
  animation: typed-blink 0.7s infinite;
}

@keyframes typed-blink {
  50% {
    opacity: 0;
  }
}

.hero-tagline {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: #444;
  max-width: 42ch;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #0f8a5f;
  border-radius: 8px;
  text-decoration: none;
  color: #0f8a5f;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  background: #e6f7ef;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 138, 95, 0.15);
}

.btn-primary {
  background: #0f8a5f;
  color: #fff;
}

.btn-primary:hover {
  background: #0b6b49;
}

.btn-gray {
  background: transparent;
  color: #777;
  border-color: #777;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-gray:hover {
  color: #0f8a5f;
  border-color: #0f8a5f;
}

@media (max-width: 600px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  #headshot {
    order: 1;
  }

  .hero-tagline {
    max-width: none;
  }

  .hero-links {
    justify-content: center;
  }
}

.otherside-content {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.subtitle {
  margin: 0 0 2rem;
  color: #555;
}

.other-section {
  position: relative;
  margin-bottom: 0;
  padding: 6rem 0;
  background: #fff;
}

.otherside-content + .other-section {
  padding-top: 1rem;
}

.other-section--tint {
  background: #f2faf6;
}

.other-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.other-layout--reverse {
  flex-direction: row-reverse;
}

.other-text {
  flex: 1 1 380px;
}

.other-text h2 {
  margin-top: 0;
}

.other-text p {
  margin: 0 0 1rem;
}

.other-text p:last-of-type {
  margin-bottom: 0;
}

.other-text .stat-grid,
.other-text .other-links {
  margin-top: 1.5rem;
}

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

.other-links--stacked {
  flex: 0 1 200px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.other-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0f8a5f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.other-links a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.other-links a:hover::after {
  transform: translateX(3px);
}

.other-visual {
  flex: 1 1 280px;
}

.visual-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f8a5f, #34d399);
  transition: transform 0.2s ease;
}

.visual-placeholder:hover {
  transform: scale(1.08);
  animation: img-shake 0.4s ease;
  z-index: 2;
}

.visual-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes img-shake {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: -2deg;
  }
  75% {
    rotate: 2deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-placeholder:hover {
    animation: none;
  }
}

.marquee {
  margin-top: 2rem;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee-scroll 55s linear infinite;
}

.marquee-item {
  flex: 0 0 auto;
  width: 340px;
}

.marquee-item .visual-placeholder {
  aspect-ratio: 4 / 3;
}

.marquee-item .visual-placeholder:hover {
  transform: none;
  animation: none;
  z-index: auto;
}

.marquee--vertical {
  margin-top: 0;
  height: 460px;
  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.marquee--vertical .marquee-track {
  flex-direction: column;
  width: 100%;
  height: max-content;
  animation-name: marquee-scroll-vertical;
}

.marquee--vertical .marquee-item {
  width: 100%;
  height: 200px;
}

.marquee--vertical .marquee-item .visual-placeholder {
  aspect-ratio: auto;
  height: 100%;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-scroll-vertical {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@media (max-width: 700px) {
  .marquee--vertical {
    height: 320px;
  }

  .marquee--vertical .marquee-item {
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

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

.other-cards .card {
  background: #fff;
  border-color: #eee;
  color: #222;
}

.other-cards .card:hover {
  transform: translateY(-4px);
  border-color: #0f8a5f;
  box-shadow: 0 12px 24px rgba(15, 138, 95, 0.15);
}

.other-cards .card h3 {
  margin: 0 0 0.5rem;
}

.other-cards .card p {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.95rem;
}

.other-cards .card p:last-of-type {
  margin-bottom: 0;
}

.other-cards .stat-grid,
.other-cards .other-links {
  margin-top: auto;
  padding-top: 1rem;
}

@media (max-width: 700px) {
  .other-layout,
  .other-layout--reverse {
    flex-direction: column;
  }

  .other-section {
    padding: 4rem 0;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stat-grid--single {
  grid-template-columns: 1fr;
  max-width: 200px;
}

.stat-card {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  display: block;
  color: #0f8a5f;
  font-size: 2rem;
  font-weight: 800;
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  color: #555;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

#projects .card {
  background: #fff;
  border-color: #fff;
  color: #222;
}

#projects .card:hover {
  transform: translateY(-4px);
  border-color: #0f8a5f;
  box-shadow: 0 12px 24px rgba(15, 138, 95, 0.15);
}

#projects .card a {
  color: #0f8a5f;
}

#projects .card-featured {
  grid-column: span 2;
  border-color: #0f8a5f;
  background: #f2faf6;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: -1.25rem -1.5rem 1rem;
  background: linear-gradient(135deg, #0f8a5f, #34d399);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.card-thumb > .card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.card-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #0f8a5f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-badge-deployed {
  background: #fff;
  color: #0f8a5f;
}

.card h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

#projects .card h3 {
  margin: 0 0 0.5rem;
}

#projects .card p {
  flex-grow: 1;
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.95rem;
}

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

#projects .card a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

#projects .card a::after {
  content: "→";
  transition: transform 0.2s ease;
}

#projects .card a:hover::after {
  transform: translateX(3px);
}

.card-wide {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.cert-category {
  margin-top: 1.5rem;
}

.cert-category + .cert-category {
  margin-top: 2.5rem;
}

.cert-category-title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.cert-card {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: #0f8a5f;
  box-shadow: 0 12px 24px rgba(15, 138, 95, 0.15);
}

.cert-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cert-card-body {
  min-width: 0;
}

.cert-card h3 {
  margin: 0 0 0.5rem;
}

.cert-card-body > p:last-child {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

.timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 2px;
  background: #d5d5d5;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}

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

.timeline-marker {
  position: absolute;
  top: 6px;
  left: -28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0f8a5f;
  box-shadow: 0 0 0 4px #fff;
}

.timeline-card {
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: #0f8a5f;
  box-shadow: 0 12px 24px rgba(15, 138, 95, 0.15);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #0f8a5f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin: 0 0 0.25rem;
}

.timeline-org {
  margin: 0 0 0.75rem;
  color: #555;
  font-size: 0.9rem;
}

.timeline-card > p:last-child {
  margin: 0;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  padding: 0.1rem 0.6rem;
  border: 1px solid #0f8a5f;
  border-radius: 999px;
  color: #0f8a5f;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.skill-group h3 {
  margin: 0 0 0.5rem;
  color: #0f8a5f;
  font-size: 1rem;
}

.skill-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #eee;
}

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

.contact-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  margin-top: 1.5rem;
}

.contact-info {
  flex: 1 1 320px;
}

.contact-info h2 {
  margin-top: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #444;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  color: #222;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0f8a5f;
  outline: 2px solid rgba(15, 138, 95, 0.2);
  outline-offset: 1px;
}

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

@media (max-width: 700px) {
  .contact-layout {
    flex-direction: column;
  }
}
