/* Design tokens — portfolio (Simone-inspired layout) */
:root {
  --color-accent: #20c997;
  --color-accent-dark: #1ba87e;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #212529;
  --color-muted: #6c757d;
  --color-border: #dee2e6;
  --color-hero: #111418;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-card: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  --radius: 0.35rem;
  --header-h: 72px;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.text-accent {
  color: var(--color-accent);
}

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

.small {
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header — classic light bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, top 0.2s;
}

.nav-toggle::before {
  top: 14px;
  box-shadow: 0 7px 0 var(--color-text);
}

.nav-toggle::after {
  top: 28px;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  top: 21px;
  transform: rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

main {
  padding-top: var(--header-h);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-hero);
  background-image: url("https://images.unsplash.com/photo-1497215842964-222b430dc094?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(32, 201, 151, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem 5rem;
}

.hero-welcome {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.hero-role {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 0.25rem;
  min-height: 2.5rem;
}

.typed-wrap::after {
  content: "|";
  margin-left: 2px;
  color: var(--color-accent);
  animation: blink 0.9s step-end infinite;
}

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

.hero-location {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scroll-dot 1.5s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.4;
    transform: translateY(10px);
  }
}

/* Sections */
.section {
  padding-block: 5rem;
}

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

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  margin: 0 0 0.35rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--color-accent);
  border-radius: 2px;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: 1fr 1fr;
}

.about-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.about-facts {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
}

.about-facts li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.about-facts strong {
  font-weight: 500;
  min-width: 4rem;
  display: inline-block;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #dee2e6;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.stat-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: rgba(32, 201, 151, 0.5);
  box-shadow:
    0 1.25rem 2.5rem rgba(32, 201, 151, 0.14),
    0 0.65rem 1.25rem rgba(0, 0, 0, 0.08);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: color 0.35s ease, transform 0.35s ease;
}

.stat-card:hover .stat-num {
  color: var(--color-accent);
  transform: scale(1.06);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: color 0.35s ease;
}

.stat-card:hover .stat-label {
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .stat-card::before,
  .stat-num,
  .stat-label {
    transition: none;
  }

  .stat-card:hover {
    transform: none;
  }

  .stat-card:hover .stat-num {
    transform: none;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(32, 201, 151, 0.25);
  background: rgba(32, 201, 151, 0.08);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Resume */
.resume-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.resume-block-title {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  font-weight: 600;
}

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

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.25rem;
  border-left: 2px solid var(--color-accent);
  margin-left: 0.35rem;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
}

.timeline-range {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 0.15rem 0.6rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.timeline-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.timeline-org {
  margin: 0 0 0.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.skills-block {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.skills-list {
  display: grid;
  gap: 1.1rem;
  max-width: 720px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.skill-track {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--color-accent);
  border-radius: 4px;
}

.btn-mt {
  margin-top: 1.5rem;
}

/* Portfolio */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  background: var(--color-bg);
  color: var(--color-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.is-active {
  background: rgba(32, 201, 151, 0.08);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dee2e6;
  box-shadow: var(--shadow-sm);
}

.portfolio-item.is-hidden {
  display: none;
}

.portfolio-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dee2e6;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-cap {
  padding: 1rem 1.1rem;
  background: var(--color-bg);
}

.portfolio-cap h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.tag {
  font-size: 0.8rem;
  color: var(--color-muted);
}

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

.quote-card {
  margin: 0;
  padding: 1.75rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.quote-card p {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--color-text);
}

.quote-card footer {
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-sub {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.contact-aside .contact-sub:not(:first-child) {
  margin-top: 1.75rem;
}

.contact-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  max-width: 22rem;
}

.social {
  display: flex;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.contact-form .field {
  display: block;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.15);
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-hero);
  color: rgba(255, 255, 255, 0.65);
  padding: 1.5rem 0;
}

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

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 991px) {
  .about-grid,
  .resume-columns,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.is-open {
    max-height: 480px;
  }

  .nav-list {
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-bg-alt);
  }

  .services-grid,
  .portfolio-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 1.5rem;
  }
}
