:root {
  --bg: #111a31;
  --bg-alt: #25303f;
  --surface: #131c34;
  --surface-soft: #18233e;
  --text: #f7fbff;
  --muted: #9ca9bd;
  --accent: #2180ff;
  --accent-hover: #1a68d1;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 48px rgba(3, 10, 24, 0.28);
  --radius: 18px;
  --container: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Libre Franklin", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-main {
  min-height: calc(100vh - 180px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 26, 49, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 98px;
}

.site-header__brand img,
.site-header__brand .custom-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-header__toggle span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.site-header__navwrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.site-nav__menu,
.site-footer__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav__menu a,
.site-footer__menu a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav__menu .current-menu-item > a,
.site-nav__menu a:hover,
.site-footer__menu .current-menu-item > a,
.site-footer__menu a:hover {
  color: var(--accent);
}

.site-header__button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-header__button:hover,
.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button--small {
  min-height: 34px;
  padding: 8px 16px;
  font-size: 11px;
}

.intro-stage {
  position: relative;
  height: 220vh;
  background: var(--bg);
}

.intro-sticky {
  position: sticky;
  top: 0;
  overflow: hidden;
  height: 100vh;
  background:
    radial-gradient(circle at top, rgba(33, 128, 255, 0.18), transparent 30%),
    var(--bg);
}

.intro-background,
.intro-vignette {
  position: absolute;
  inset: 0;
}

.intro-background {
  background-image:
    linear-gradient(180deg, rgba(8, 15, 31, 0.76) 0%, rgba(11, 20, 38, 0.28) 55%, rgba(17, 26, 49, 0.88) 100%),
    url("https://danielsirlupurios.com/wp-content/uploads/2025/12/hero.png_1920x1080-1.webp");
  background-position: center;
  background-size: cover;
  transform-origin: center center;
  will-change: transform;
}

.intro-vignette {
  background:
    radial-gradient(circle at center, rgba(33, 128, 255, 0.12), transparent 38%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(8, 15, 31, 0.24), rgba(8, 15, 31, 0.78));
}

.intro-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(48vw, 36rem);
  aspect-ratio: 1;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center;
  will-change: transform, opacity;
}

.intro-orbit__ring,
.intro-orbit__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.intro-orbit__ring {
  border: 1px solid rgba(118, 214, 213, 0.2);
  box-shadow: 0 0 32px rgba(33, 128, 255, 0.08), inset 0 0 32px rgba(118, 214, 213, 0.04);
}

.intro-orbit__ring--outer {
  transform: scale(1);
  border-style: dashed;
}

.intro-orbit__ring--middle {
  inset: 16%;
  border-color: rgba(33, 128, 255, 0.32);
}

.intro-orbit__ring--inner {
  inset: 34%;
  border-color: rgba(255, 255, 255, 0.2);
}

.intro-orbit__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 72%;
  transform-origin: top;
  background: linear-gradient(180deg, rgba(118, 214, 213, 0), rgba(118, 214, 213, 0.46), rgba(118, 214, 213, 0));
}

.intro-orbit__line--one {
  transform: translate(-50%, -50%) rotate(42deg);
}

.intro-orbit__line--two {
  transform: translate(-50%, -50%) rotate(-58deg);
}

.intro-orbit__node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 24px currentColor;
}

.intro-orbit__node--one,
.intro-orbit__node--three {
  background: #76d6d5;
  color: #76d6d5;
}

.intro-orbit__node--two,
.intro-orbit__node--four {
  background: #2180ff;
  color: #2180ff;
}

.intro-orbit__node--one {
  top: 14%;
  left: 22%;
}

.intro-orbit__node--two {
  top: 24%;
  right: 16%;
}

.intro-orbit__node--three {
  bottom: 20%;
  left: 18%;
}

.intro-orbit__node--four {
  bottom: 14%;
  right: 24%;
}

.intro-orbit__pulse {
  inset: 42%;
  background: radial-gradient(circle, rgba(118, 214, 213, 0.78) 0%, rgba(33, 128, 255, 0.2) 42%, rgba(33, 128, 255, 0) 72%);
  animation: introPulse 4.2s ease-in-out infinite;
}

.hero__eyebrow {
  margin: 0 0 24px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.intro-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: min(calc(100% - 48px), 760px);
  text-align: center;
  will-change: transform, opacity;
}

.intro-indicator {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(247, 251, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

.intro-indicator__arrow {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.1), rgba(247, 251, 255, 0.82));
  position: relative;
}

.intro-indicator__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(247, 251, 255, 0.82);
  border-bottom: 1px solid rgba(247, 251, 255, 0.82);
  transform: translateX(-50%) rotate(45deg);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__description {
  max-width: 560px;
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 16px;
}

.section {
  padding: 88px 0;
}

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

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

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2,
.about-grid__content h2,
.reasons-grid__content h2,
.cta-strip__content h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.1;
}

.section-heading--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.post-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.service-card {
  border-radius: 8px;
}

.service-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-card__body {
  padding: 22px 20px 20px;
}

.service-card h3,
.value-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
}

.service-card p,
.about-grid__content p,
.value-card p,
.check-list li,
.post-card__excerpt,
.single-entry__content,
.generic-entry__content {
  color: var(--muted);
  font-size: 16px;
}

.about-grid,
.reasons-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-grid__media img,
.reasons-grid__media img {
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.about-grid__content .button {
  margin-top: 10px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
}

.value-card__number {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.check-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 40px;
  font-weight: 600;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 20%, transparent 22%),
    var(--accent);
  box-shadow: 0 0 0 4px rgba(33, 128, 255, 0.16);
}

.cta-strip {
  padding: 92px 0;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(17, 26, 49, 0.52), rgba(17, 26, 49, 0.52)),
    url("https://danielsirlupurios.com/wp-content/uploads/2025/12/hero.png_1920x1080-1.webp");
  background-position: center;
  background-size: cover;
}

.cta-strip__content {
  max-width: 760px;
}

.cta-strip__content p {
  margin: 12px 0 24px;
  color: #d9e6fb;
}

.blog-page,
.generic-page,
.single-post-page {
  padding: 72px 0 96px;
  background: var(--bg-alt);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  border-radius: 0;
  box-shadow: none;
}

.post-card__image-link {
  display: block;
}

.post-card__image {
  width: 100%;
  aspect-ratio: 1.1 / 0.78;
  object-fit: cover;
}

.post-card__content {
  padding: 18px 16px 22px;
  background: #111a31;
}

.post-card__title,
.single-entry__title,
.generic-entry__title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  line-height: 1.08;
}

.post-card__title {
  font-size: 24px;
}

.post-card__terms {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.post-card__excerpt p {
  margin: 0 0 14px;
}

.post-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.pagination-wrap {
  margin-top: 34px;
}

.pagination-wrap .nav-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: var(--accent);
  color: #fff;
}

.single-entry,
.generic-entry {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.single-entry__meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-entry__thumbnail {
  margin: 28px 0 34px;
}

.single-entry__thumbnail img {
  width: 100%;
}

.single-entry__content > *:first-child,
.generic-entry__content > *:first-child {
  margin-top: 0;
}

.single-entry__content a,
.generic-entry__content a {
  color: var(--accent);
}

.site-footer__top,
.site-footer__bottom {
  text-align: center;
}

.site-footer__top {
  padding: 28px 0;
  background: #121b31;
  border-top: 1px solid var(--border);
}

.site-footer__copy {
  margin: 0;
  color: #c7d3e6;
  font-size: 13px;
}

.site-footer__bottom {
  padding: 20px 0 26px;
  background: var(--bg-alt);
}

.site-footer__menu {
  gap: 22px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
}

.js .intro-content {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.88);
}

.js .reveal-up {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes introPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Timeline, Tech Stack & Project Filters */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tech-tag {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}

.tech-tag:hover {
  border-color: var(--accent);
  background: rgba(33, 128, 255, 0.08);
}

.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(33, 128, 255, 0.16);
  transition: background-color 0.2s;
}

.timeline-item:hover::before {
  background: var(--accent);
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}

.timeline-company {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(33, 128, 255, 0.3);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(33, 128, 255, 0.3);
}

.project-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__img-wrap img {
  transform: scale(1.05);
}

.project-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card__category {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.project-card__title {
  font-size: 20px;
  margin: 0 0 12px;
  line-height: 1.3;
}

.project-card__title a:hover {
  color: var(--accent);
}

.project-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Contact Form 7 Forms Styles */
.wpcf7 {
  max-width: 600px;
  margin: 40px auto 0;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(33, 128, 255, 0.15);
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.wpcf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid transparent;
}

.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: rgba(118, 214, 213, 0.08);
  border-color: rgba(118, 214, 213, 0.3);
  color: #76d6d5;
}

.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

@media (max-width: 1024px) {
  .service-grid,
  .posts-grid,
  .value-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-header__toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header__navwrap {
    position: absolute;
    top: 98px;
    left: 24px;
    right: 24px;
    display: none;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
    background: rgba(19, 28, 52, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  body.menu-open .site-header__navwrap {
    display: grid;
  }

  .site-nav__menu,
  .site-footer__menu {
    flex-direction: column;
    gap: 16px;
  }

  .site-header__button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-container {
    width: min(calc(100% - 32px), var(--container));
  }

  .intro-stage {
    height: 180vh;
  }

  .intro-orbit {
    width: min(74vw, 28rem);
  }

  .section,
  .blog-page,
  .generic-page,
  .single-post-page {
    padding: 60px 0;
  }

  .section-heading--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-grid,
  .posts-grid,
  .value-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .single-entry,
  .generic-entry {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-stage {
    height: auto;
  }

  .intro-sticky {
    position: relative;
  }

  .intro-content,
  .reveal-up {
    opacity: 1;
    transform: none;
  }

  .intro-orbit__pulse {
    animation: none;
  }
}
