@import url("./components.css");
@import url("./animations.css");

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-height) + 36px) 0 54px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 9% auto 8% 5%;
  width: min(26vw, 360px);
  border-left: 1px solid rgba(255, 78, 78, 0.38);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: skewX(-8deg);
  content: "";
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}

.hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.58fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__eyebrow i {
  width: 46px;
  height: 1px;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
}

.hero__title {
  max-width: 960px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 12.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.72;
  text-transform: uppercase;
}

.hero__title .thin {
  display: block;
  color: var(--primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  -webkit-text-stroke: 0;
}

.hero__copy {
  max-width: 680px;
  margin: 32px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 660px;
  margin-top: 42px;
  border: 0;
  background: transparent;
}

.signal-card {
  position: relative;
  min-height: 142px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(62, 0, 155, 0.38), rgba(0, 0, 0, 0.72)),
    rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.signal-card::before {
  position: absolute;
  inset: auto -20% -45% 25%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 78, 78, 0.18);
  filter: blur(26px);
  content: "";
}

.signal-card span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 78, 78, 0.55);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.signal-card strong {
  position: relative;
  display: block;
  margin-top: 20px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.05;
}

.signal-card small {
  position: relative;
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  perspective: 1200px;
}

.hero__monogram {
  position: absolute;
  top: -5%;
  right: 8%;
  z-index: 0;
  color: rgba(255, 255, 255, 0.06);
  font-family: var(--font-serif);
  font-size: clamp(9rem, 20vw, 18rem);
  font-style: italic;
  line-height: 1;
}

.profile-orbit {
  position: absolute;
  inset: 10% 0 12% 10%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 38px;
  transform: rotate(4deg) skewY(-2deg);
  background:
    linear-gradient(135deg, rgba(255,78,78,0.28), transparent 35%),
    linear-gradient(315deg, rgba(62,0,155,0.48), transparent 48%),
    rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.profile-orbit::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  content: "";
}

.profile-placeholder {
  position: absolute;
  inset: 58px 40px 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent),
    linear-gradient(160deg, #160327, #000000);
}

.profile-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
}

.profile-placeholder::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  content: "";
  animation: scan 3.6s linear infinite;
}

.profile-placeholder span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.floating-panel {
  position: absolute;
  z-index: 3;
  width: min(250px, 52vw);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 78, 78, 0.16), rgba(62, 0, 155, 0.22)),
    rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: float 5s ease-in-out infinite;
}

.floating-panel::before {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.6));
  content: "";
}

.floating-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.1;
}

.floating-panel span {
  display: block;
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.floating-panel--ads {
  top: 7%;
  right: 0;
}

.floating-panel--code {
  left: 2%;
  bottom: 11%;
  animation-delay: -1.3s;
}

.hero__badge {
  position: absolute;
  right: -7%;
  bottom: 18%;
  z-index: 4;
  width: 230px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 78, 78, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(62, 0, 155, 0.72), rgba(0, 0, 0, 0.78));
  color: #ffffff;
  border-radius: 30px;
  transform: rotate(3deg);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 78, 78, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.hero__badge::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 78, 78, 0.95), rgba(255, 255, 255, 0.34), rgba(62, 0, 155, 0.85));
  content: "";
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero__badge::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 78, 78, 0.48), transparent 68%);
  content: "";
}

.hero__badge span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__badge span::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 78, 78, 0.86);
  content: "";
}

.hero__badge strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1;
}

.hero__badge-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.hero__badge-tags strong {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 78, 78, 0.3), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.76rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.scroll-cue {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.scroll-cue::after {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--accent), var(--secondary), transparent);
  content: "";
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  padding: 16px 28px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}

.about-layout,
.case-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.media-frame {
  position: sticky;
  top: 110px;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text-muted);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 12px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--border), var(--secondary));
  content: "";
}

.timeline-item {
  position: relative;
  padding-left: 42px;
}

.timeline-item::before {
  position: absolute;
  top: 18px;
  left: 6px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--background);
  border-radius: 50%;
  background: var(--accent);
  content: "";
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-card,
.service-card,
.skill-card,
.project-card,
.certificate-card,
.blog-card,
.achievement-card {
  padding: clamp(18px, 2vw, 26px);
}

.skill-card,
.service-card,
.achievement-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-card h3,
.service-card h3,
.skill-card h3,
.project-card h3,
.blog-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.02;
}

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

.skill-tabs,
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 34px 0 22px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  background: var(--border);
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip.is-active,
.chip:hover {
  color: #ffffff;
  border-color: transparent;
  background: var(--accent);
}

.skill-meter {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}

.skill-meter span {
  display: block;
  width: var(--level);
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffffff, var(--secondary));
}

#skills .skills-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
}

#skills .section-copy {
  margin: 0 0 10px;
}

#skills .skill-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 36px 0 30px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 78, 78, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(62, 0, 155, 0.26), transparent 42%),
    rgba(0, 0, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

#skills .skill-tabs::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(255, 78, 78, 0.68), rgba(255, 255, 255, 0.12), rgba(62, 0, 155, 0.8));
  content: "";
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

#skills .skill-tabs .chip {
  position: relative;
  z-index: 1;
  min-height: 46px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.38s var(--ease),
    color 0.38s var(--ease),
    border-color 0.38s var(--ease),
    box-shadow 0.38s var(--ease),
    background 0.38s var(--ease);
}

#skills .skill-tabs .chip::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 78, 78, 0.38), rgba(62, 0, 155, 0.46), transparent);
  opacity: 0;
  transform: translateX(-28%);
  transition: opacity 0.38s var(--ease), transform 0.48s var(--ease);
  content: "";
}

#skills .skill-tabs .chip::after {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffffff, var(--secondary));
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
  content: "";
}

#skills .skill-tabs .chip:hover,
#skills .skill-tabs .chip:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 78, 78, 0.38);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#skills .skill-tabs .chip:hover::before,
#skills .skill-tabs .chip:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

#skills .skill-tabs .chip.is-active {
  color: #ffffff;
  border-color: rgba(255, 78, 78, 0.52);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 78, 78, 0.34), transparent 46%),
    linear-gradient(135deg, rgba(255, 78, 78, 0.24), rgba(62, 0, 155, 0.32)),
    rgba(0, 0, 0, 0.54);
  box-shadow:
    0 0 0 1px rgba(255, 78, 78, 0.16),
    0 14px 40px rgba(255, 78, 78, 0.14),
    0 18px 54px rgba(62, 0, 155, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#skills .skill-tabs .chip.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

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

#skills .skill-card {
  position: relative;
  min-height: 270px;
  isolation: isolate;
  cursor: pointer;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 20%), rgba(255, 78, 78, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(62, 0, 155, 0.23), rgba(0, 0, 0, 0.72)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition:
    transform 0.42s var(--ease),
    border-color 0.42s var(--ease),
    box-shadow 0.42s var(--ease),
    opacity 0.32s var(--ease);
}

#skills .skill-card::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 78, 78, 0.7), rgba(255, 255, 255, 0.08), rgba(62, 0, 155, 0.72));
  content: "";
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.48;
  pointer-events: none;
  transition: opacity 0.42s var(--ease);
}

#skills .skill-card::after {
  position: absolute;
  right: -32px;
  bottom: -36px;
  z-index: -1;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 78, 78, 0.3), transparent 68%);
  filter: blur(3px);
  content: "";
  animation: float 5.6s ease-in-out infinite;
}

#skills .skill-card:hover,
#skills .skill-card:focus-visible {
  border-color: rgba(255, 78, 78, 0.44);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.36),
    0 0 46px rgba(255, 78, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

#skills .skill-card:hover::before,
#skills .skill-card:focus-visible::before {
  opacity: 1;
}

#skills .skill-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

#skills .skill-card[hidden] {
  display: none;
}

#skills .skill-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

#skills .skill-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 78, 78, 0.46), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(62, 0, 155, 0.28));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: float 6.2s ease-in-out infinite;
}

#skills .skill-logo img {
  position: relative;
  z-index: 2;
  display: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

#skills .skill-logo img.is-loaded {
  display: block;
}

#skills .skill-logo img.is-loaded + span {
  display: none;
}

#skills .skill-logo span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

#skills .skill-badge {
  max-width: 132px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 78, 78, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 78, 78, 0.18), rgba(62, 0, 155, 0.18)),
    rgba(0, 0, 0, 0.3);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#skills .skill-card h3 {
  position: relative;
  z-index: 1;
  min-height: 2.08em;
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 1.55vw, 1.54rem);
}

#skills .skill-card .muted {
  position: relative;
  z-index: 1;
  min-height: 4.8em;
  margin: 0 0 20px;
  font-size: 0.88rem;
  line-height: 1.55;
}

#skills .skill-meter {
  position: relative;
  z-index: 1;
  height: 7px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.34);
}

#skills .skill-meter span {
  width: var(--level);
  background:
    linear-gradient(90deg, var(--accent), #ffffff 52%, var(--secondary)),
    var(--accent);
  box-shadow: 0 0 18px rgba(255, 78, 78, 0.34);
}

#skills .skill-ripple {
  position: absolute;
  z-index: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  animation: skill-ripple 0.58s var(--ease) forwards;
}

.skill-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.skill-modal-grid .metric {
  min-height: 104px;
}

.project-card {
  display: grid;
  gap: 18px;
}

.project-card:nth-child(2) {
  margin-top: 46px;
}

.project-card:nth-child(3) {
  margin-top: 92px;
}

.project-thumb,
.certificate-thumb {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background:
    linear-gradient(135deg, rgba(255,78,78,0.18), transparent 34%),
    linear-gradient(315deg, rgba(62,0,155,0.28), transparent 44%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 14px);
}

.project-thumb {
  aspect-ratio: 1.1;
  min-height: auto;
}

.project-actions,
.social-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.accordion {
  margin-top: 12px;
}

.accordion__button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-weight: 800;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

#experience {
  overflow: hidden;
}

#experience .section-copy {
  max-width: 780px;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(28px, 5vw, 52px);
}

.experience-stat {
  position: relative;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 78, 78, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.experience-stat::after {
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  opacity: 0.72;
  background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), transparent);
  content: "";
}

.experience-stat span {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 0.9;
}

.experience-stat small {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

#experience .experience-timeline {
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(34px, 6vw, 68px);
  padding-left: clamp(18px, 4vw, 74px);
}

#experience .experience-timeline::before {
  left: clamp(8px, 2vw, 30px);
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.experience-timeline__progress {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: clamp(8px, 2vw, 30px);
  z-index: 1;
  width: 2px;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(180deg, var(--accent), #ffffff 48%, var(--secondary));
  box-shadow: 0 0 28px rgba(255, 78, 78, 0.38);
  pointer-events: none;
}

#experience .experience-item {
  padding-left: 0;
}

#experience .experience-item::before {
  display: none;
}

.experience-node {
  position: absolute;
  top: 34px;
  left: calc(clamp(8px, 2vw, 30px) - 10px);
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 4px solid var(--background);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffffff 48%, var(--secondary));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0 34px rgba(255, 78, 78, 0.45);
}

.experience-card {
  transform-style: preserve-3d;
  padding: clamp(20px, 3vw, 34px);
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at var(--x, 18%) var(--y, 12%), rgba(255, 78, 78, 0.2), transparent 30rem),
    rgba(10, 4, 18, 0.68);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.experience-card::before,
.experience-card::after,
.experience-card__glow {
  pointer-events: none;
}

.experience-card:hover,
.experience-card:focus-within {
  border-color: rgba(255, 78, 78, 0.5);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48), 0 0 42px rgba(255, 78, 78, 0.12);
}

.experience-card__glow {
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 78, 78, 0.45), transparent 34%, rgba(62, 0, 155, 0.5));
  transition: opacity 0.35s var(--ease);
}

.experience-card:hover .experience-card__glow,
.experience-card:focus-within .experience-card__glow {
  opacity: 0.5;
}

.experience-card__top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.experience-logo {
  position: relative;
  width: clamp(58px, 8vw, 76px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 78, 78, 0.24), rgba(62, 0, 155, 0.2)),
    rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.experience-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
}

.experience-card__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#experience .experience-card h3 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2.5vw, 2.18rem);
}

.experience-company {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.experience-summary {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 1rem;
}

.experience-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.experience-tools span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 800;
}

.experience-tools svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.experience-accordion {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-toggle {
  position: relative;
  z-index: 2;
  padding-top: 16px;
}

.experience-toggle span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.experience-accordion.is-open .experience-toggle span {
  transform: rotate(45deg);
  background: rgba(255, 78, 78, 0.16);
}

.experience-panel__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  padding-top: 18px;
}

.experience-detail {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.experience-detail--highlights {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 78, 78, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.experience-detail h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
}

.experience-detail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-detail li {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .experience-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-stat:first-child {
    grid-column: span 2;
  }

  .experience-panel__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .experience-stats {
    grid-template-columns: 1fr;
  }

  .experience-stat:first-child {
    grid-column: auto;
  }

  #experience .experience-timeline {
    padding-left: 28px;
  }

  #experience .experience-timeline::before,
  .experience-timeline__progress {
    left: 9px;
  }

  .experience-node {
    left: -1px;
  }

  .experience-card__top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .experience-logo {
    width: 62px;
    border-radius: 18px;
  }

  .experience-tools span,
  .experience-detail li {
    max-width: 100%;
  }
}

.case-study {
  padding: clamp(22px, 4vw, 38px);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

#testimonials {
  overflow: hidden;
}

#testimonials .section-copy {
  max-width: 780px;
}

.clients-showcase {
  margin-top: clamp(30px, 5vw, 56px);
}

.client-logo-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(255, 78, 78, 0.08), rgba(255, 255, 255, 0.035), rgba(62, 0, 155, 0.12)),
    rgba(255, 255, 255, 0.035);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.client-logo-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 12px;
  animation: marquee 30s linear infinite;
}

.client-logo-track span {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 800;
}

.client-logo-track img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.client-card {
  grid-column: span 2;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2.4vw, 30px);
  transform-style: preserve-3d;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at var(--x, 20%) var(--y, 20%), rgba(255, 78, 78, 0.18), transparent 25rem),
    rgba(8, 3, 14, 0.72);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.client-card:nth-child(4),
.client-card:nth-child(5) {
  grid-column: span 3;
}

.client-card::before,
.client-card::after,
.client-card__shine {
  pointer-events: none;
}

.client-card__shine {
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 78, 78, 0.44), transparent 38%, rgba(62, 0, 155, 0.5));
  transition: opacity 0.35s var(--ease);
}

.client-card:hover,
.client-card:focus-within {
  border-color: rgba(255, 78, 78, 0.5);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 0 42px rgba(255, 78, 78, 0.11);
}

.client-card:hover .client-card__shine,
.client-card:focus-within .client-card__shine {
  opacity: 0.54;
}

.client-card__logo {
  position: relative;
  width: clamp(88px, 10vw, 124px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(135deg, rgba(255, 78, 78, 0.18), rgba(62, 0, 155, 0.2));
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.035);
  transition: transform 0.45s var(--ease);
  animation: float 4.8s ease-in-out infinite;
}

.client-card:hover .client-card__logo,
.client-card:focus-within .client-card__logo {
  transform: translateY(-6px) scale(1.04);
}

.client-card__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  transition: transform 0.45s var(--ease);
}

.client-card:hover .client-card__logo img,
.client-card:focus-within .client-card__logo img {
  transform: scale(1.08);
}

.client-card__industry {
  margin: 22px 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
}

.client-services,
.client-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-services {
  margin-top: 20px;
}

.client-tools {
  margin-top: 12px;
}

.client-services span,
.client-tools span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
}

.client-tools span {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
}

.client-tools span::before {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--accent), rgba(255, 255, 255, 0.92) 48%, var(--secondary));
  box-shadow: 0 0 18px rgba(255, 78, 78, 0.18);
  content: "";
}

.client-card__details {
  display: grid;
  gap: 6px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.84rem;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.42s var(--ease), margin-top 0.42s var(--ease), opacity 0.28s var(--ease), transform 0.42s var(--ease);
}

.client-card__details p {
  margin: 0;
}

.client-card:hover .client-card__details,
.client-card:focus-within .client-card__details {
  max-height: 170px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.client-card__button {
  margin-top: auto;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.client-card:hover .client-card__button,
.client-card:focus-within .client-card__button {
  opacity: 1;
  transform: translateY(0);
}

.clients-note {
  max-width: 820px;
  margin: clamp(26px, 5vw, 46px) auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  text-align: center;
}

@media (max-width: 980px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-card,
  .client-card:nth-child(4),
  .client-card:nth-child(5) {
    grid-column: auto;
  }
}

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

  .client-card {
    min-height: 400px;
  }

  .client-card__button {
    opacity: 1;
    transform: none;
  }
}

.certificate-card {
  cursor: zoom-in;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
}

.modal.is-open {
  display: grid;
}

.modal__panel {
  width: min(760px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: clamp(22px, 4vw, 38px);
}

.modal__close {
  float: right;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(255,255,255,0.055);
  padding: 14px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    transparent;
  background-size: 120px 120px;
}

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

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 24vw, 20rem);
  line-height: 0.78;
}

.not-found p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-muted);
}
  border-radius: var(--radius-md);
