/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Teachers", system-ui, sans-serif;
  background-color: #f9f8f3;
  color: #18181b;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(249, 248, 243, 0.92);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1rem;
  height: 1.5px;
  border-radius: 9999px;
  background: #18181b;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  border-top: 1px solid rgba(24, 24, 27, 0.06);
  background-color: rgba(249, 248, 243, 0.98);
}

.nav-mobile-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.85rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3f3f46;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link:focus-visible {
  background: rgba(24, 24, 27, 0.05);
  color: #18181b;
  outline: none;
}

body.nav-open {
  overflow: hidden;
}

/* Hero mobile polish */
.hero-profile {
  padding-right: 1.25rem;
}

.hero-photo {
  height: 11rem;
  width: 11rem;
}

/* Subtle square grid background */
.hero-grid {
  background-color: #f9f8f3;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

/* Soft fade so the grid doesn’t overpower the edges */
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 35%,
    rgba(249, 248, 243, 0) 0%,
    rgba(249, 248, 243, 0.55) 70%,
    rgba(249, 248, 243, 0.9) 100%
  );
}

/* Social rail */
.social-rail {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Button hover polish */
.btn-outline:hover {
  background-color: #f4f4f5;
}

.btn-solid:hover {
  background-color: #0f172a;
}

.btn-hire {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-hire:hover {
  background-color: #c8ff00;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 255, 0, 0.35);
}

.btn-hire:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(200, 255, 0, 0.25);
}

/* Infinite marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Work section dark grid */
.work-section {
  background-color: #0a0c0a;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Work card hover panel */
.work-card .work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.work-card:hover .work-img,
.work-card:focus-within .work-img {
  filter: blur(3px);
  transform: scale(1.06);
}

.work-card .work-hover {
  transform: translateY(100%);
}

.work-card:hover .work-hover,
.work-card:focus-within .work-hover {
  transform: translateY(0);
}

.work-card .work-arrow {
  transform: scale(0.85);
  opacity: 0;
}

.work-card:hover .work-arrow,
.work-card:focus-within .work-arrow {
  transform: scale(1);
  opacity: 1;
}

/* Skills section */
.skills-section {
  background-color: #f9f8f3;
}

.skill-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.skill-card-primary .skill-aside {
  background: linear-gradient(
    90deg,
    rgba(155, 89, 255, 0.18) 0%,
    rgba(155, 89, 255, 0.06) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}

.skill-card-secondary .skill-aside {
  background: linear-gradient(
    90deg,
    rgba(90, 160, 100, 0.2) 0%,
    rgba(90, 160, 100, 0.07) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}

.skill-aside {
  padding: 1.75rem 1.5rem;
}

.skill-aside-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.skill-aside-text {
  margin: 0;
  max-width: 16rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #9ca3af;
}

.skill-card-primary .skill-aside-title {
  color: #7b2fff;
}

.skill-card-secondary .skill-aside-title {
  color: #3d8b4a;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.45rem 0.85rem;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: #4f4f4f;
  cursor: pointer;
  transition: background-color 0.25s ease,
  color 0.25s ease,
  border-color 0.25s ease;
}

.skill-tag-primary:hover,
.skill-tag-primary:focus-visible {
  background-color: #7b2fff;
  border-color: #7b2fff;
  color: #fff;
  outline: none;
}

.skill-tag-secondary:hover,
.skill-tag-secondary:focus-visible {
  background-color: #c8ff00;
  border-color: #c8ff00;
  color: #111;
  outline: none;
}

@media (min-width: 768px) {
  .skill-card {
    grid-template-columns: minmax(220px, 28%) 1fr;
  }

  .skill-aside {
    border-right: 1px solid #e5e7eb;
    padding: 2rem 1.75rem;
  }

  .skill-tags {
    padding: 1.75rem 2rem;
    gap: 0.75rem;
  }

  .skill-tag {
    padding: 0.5rem 1rem;
    font-size: 14px;
  }
}

/* Experience / Impact */
.experience-section {
  background-color: #0a0c0a;
  background-image:
    linear-gradient(to right, rgba(200, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 255, 0, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.experience-card {
  border: 1px solid rgba(200, 255, 0, 0.22);
  border-radius: 1.25rem;
  background: rgba(12, 16, 12, 0.85);
  box-shadow: 0 0 0 1px rgba(200, 255, 0, 0.04), 0 0 28px rgba(200, 255, 0, 0.06);
  padding: 1.75rem 1.5rem;
}

.experience-line {
  display: none;
}

.experience-dot {
  display: none;
}

@media (min-width: 768px) {
  .experience-timeline {
    padding-inline: 0.5rem;
  }

  .experience-line {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 0;
    border-top: 2px dashed rgba(200, 255, 0, 0.45);
    transform: translateY(-50%);
  }

  .experience-dot {
    display: block;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #c8ff00;
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.7);
    transform: translateY(-50%);
  }

  .experience-dot-left {
    left: -5px;
  }

  .experience-dot-right {
    right: -5px;
  }
}

/* Education */
.education-section {
  background-color: #f9f8f3;
}

.education-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 1.25rem;
  background: #fff;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.education-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
}

/* .education-badge-base {
  position: absolute;
  inset: 10px 6px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
} */

.education-badge-seal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.18);
}

/* Work Style / Essentials */
.essentials-section {
  background-color: #0a0c0a;
  background-image:
    linear-gradient(to right, rgba(200, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 255, 0, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.essentials-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(22, 26, 22, 0.9);
  padding: 1.5rem 1.25rem;
  text-align: left;
}

/* Testimonials */
.testimonials-section {
  background-color: #f9f8f3;
}

.testimonials-slider {
  position: relative;
  width: 100%;
}

.testimonials-viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.testimonials-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  will-change: transform;
  animation: testimonials-marquee 45s linear infinite;
}

.testimonials-slider.is-paused .testimonials-track,
.testimonials-slider:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes testimonials-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.testimonials-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e4e4e7;
  border-radius: 9999px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.testimonials-nav:hover {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(86vw, 380px);
  min-height: 0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1.1rem 0.95rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.testimonial-quote {
  display: block;
  margin-bottom: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: #18181b;
  flex-shrink: 0;
}

.testimonial-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.testimonial-divider {
  width: 100%;
  height: 1px;
  margin: 0.85rem 0 0.75rem;
  border: 0;
  background: #ececec;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
  background: #eef2ff;
  flex-shrink: 0;
}

.testimonial-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.testimonial-date {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #888;
}

/* Mobile: one-card slider with arrows */
@media (max-width: 767px) {
  .testimonials-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.65rem;
  }

  .testimonials-nav {
    display: inline-flex;
    align-self: center;
    width: 2.5rem;
    height: 2.5rem;
  }

  .testimonials-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .testimonials-track {
    width: 100%;
    gap: 0.85rem;
    animation: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .testimonials-slider.is-paused .testimonials-track,
  .testimonials-slider:hover .testimonials-track {
    animation-play-state: running;
  }

  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    min-height: 260px;
    padding: 1.35rem 1.25rem 1.2rem;
  }

  .testimonial-quote {
    margin-bottom: 0.65rem;
    font-size: 1.85rem;
  }

  .testimonial-text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .testimonial-divider {
    margin: 1.1rem 0 1rem;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .testimonial-name {
    font-size: 1rem;
  }

  .testimonial-date {
    font-size: 0.84rem;
  }
}

@media (min-width: 768px) {
  .testimonial-card {
    flex-basis: 380px;
    padding: 1.1rem 1.15rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
    transition: none;
  }

  .testimonials-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Footer / Contact */
.site-footer {
  background-color: #0a0a0a;
  color: #fff;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1rem 1.75rem;
}

.footer-main {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.25rem 0;
}

.footer-name {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9ca3af;
}

.footer-heading {
  margin: 0 0 1.85rem;
  white-space: nowrap;
  font-size: clamp(1.35rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

@media (max-width: 379px) {
  .footer-heading {
    white-space: normal;
  }
}

.footer-heading span {
  color: #c8ff00;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-nm {
  display: block;
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.08);
  user-select: none;
  pointer-events: none;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.7rem;
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.footer-social img,
.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
  filter: grayscale(1) brightness(1.35);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.footer-social:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.footer-social:hover img,
.footer-social:hover svg {
  filter: grayscale(1) brightness(1.7);
  opacity: 1;
}

.footer-contact-card {
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  border: 1px solid rgba(200, 255, 0, 0.28);
  border-radius: 1.35rem;
  background: #0c0e0c;
  box-shadow: 0 0 40px rgba(200, 255, 0, 0.04);
  padding: 1.4rem 1.35rem 1.35rem;
}

.footer-contact-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.footer-lock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border: 1px solid rgba(200, 255, 0, 0.4);
  border-radius: 0.75rem;
  color: #c8ff00;
  background: rgba(200, 255, 0, 0.05);
}

.footer-contact-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #c8ff00;
  line-height: 1.25;
}

.footer-contact-sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.footer-contact-rows {
  margin: 1rem 0 1.35rem;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.footer-contact-value {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #d1d5db;
  white-space: nowrap;
}

.footer-contact-value svg {
  color: #c8ff00;
  flex-shrink: 0;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border-radius: 9999px;
  background: #c8ff00;
  padding: 0.55rem 0.55rem 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-cta:hover {
  background: #d4ff33;
  transform: translateY(-1px);
}

.footer-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9999px;
  background: #111;
  color: #fff;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b7280;
}

@media (min-width: 640px) {
  .footer-inner {
    padding: 4.5rem 1.5rem 2rem;
  }

  .footer-contact-card {
    max-width: none;
    margin-inline: 0;
    padding: 1.6rem 1.55rem 1.5rem;
  }
}

@media (min-width: 900px) {
  .footer-inner {
    padding: 5rem 2rem 2.25rem;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 3.5rem;
    align-items: center;
  }

  .footer-nm {
    margin-top: 1.5rem;
    font-size: 4rem;
  }
}

/* Shared section mobile spacing */
.work-section,
.skills-section,
.experience-section,
.education-section,
.essentials-section,
.testimonials-section {
  overflow-x: clip;
}

@media (max-width: 639px) {
  .work-section,
  .skills-section,
  .experience-section,
  .education-section,
  .essentials-section,
  .testimonials-section {
    padding: 3.5rem 1rem;
  }

  .education-card {
    padding: 1.5rem 1.15rem 1.35rem;
  }

  .experience-card,
  .essentials-card {
    padding: 1.35rem 1.15rem;
  }

  .marquee {
    font-size: 0.85rem;
  }
}

@media (min-width: 640px) {
  .hero-photo {
    height: 14rem;
    width: 14rem;
  }
}

@media (min-width: 768px) {
  .hero-photo {
    height: 16rem;
    width: 16rem;
  }

  html {
    scroll-padding-top: 6rem;
  }
}

/* Work Details page */
.work-details-page {
  background: transparent;
}

.work-meta-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px dashed #e5e7eb;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.work-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px dashed #e5e7eb;
}

.work-meta-item:last-child {
  border-bottom: none;
}

.work-meta-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
}

.work-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.work-banner {
  position: relative;
  background: #111;
  line-height: 0;
}

.work-banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.work-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.work-play-btn:hover {
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%) scale(1.05);
}

.project-details-panel {
  border: 1.5px dashed #d4d4d8;
  border-radius: 1.25rem;
  background: rgba(250, 250, 250, 0.85);
  padding: 0.25rem 0;
}

.project-details-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem;
  border-bottom: 1.5px dashed #d4d4d8;
}

.project-details-row:last-child {
  border-bottom: none;
}

.project-details-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.project-details-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #52525b;
}

/* Showreel & Media */
.showreel-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showreel-heading-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4rem;
  margin: 0 0 1.5rem;
  cursor: default;
}

.showreel-heading {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  white-space: nowrap;
}

.showreel-hover-cluster {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 4rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.72);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.showreel-hover-cluster--left {
  right: calc(50% + 7.75rem);
}

.showreel-hover-cluster--right {
  left: calc(50% + 7.75rem);
}

.showreel-hover-thumb {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.6rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
  background: #e5e7eb;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.showreel-hover-cluster--left .showreel-hover-thumb:nth-child(1) {
  transform: translate(-1.15rem, 0.25rem) rotate(-14deg);
}

.showreel-hover-cluster--left .showreel-hover-thumb:nth-child(2) {
  z-index: 2;
  transform: translate(0, -0.3rem) rotate(-2deg);
}

.showreel-hover-cluster--left .showreel-hover-thumb:nth-child(3) {
  transform: translate(1.15rem, 0.3rem) rotate(12deg);
}

.showreel-hover-cluster--right .showreel-hover-thumb:nth-child(1) {
  transform: translate(-1.15rem, 0.28rem) rotate(-12deg);
}

.showreel-hover-cluster--right .showreel-hover-thumb:nth-child(2) {
  z-index: 2;
  transform: translate(0, -0.28rem) rotate(2deg);
}

.showreel-hover-cluster--right .showreel-hover-thumb:nth-child(3) {
  transform: translate(1.15rem, 0.25rem) rotate(14deg);
}

.showreel-heading-wrap:hover .showreel-hover-cluster,
.showreel-heading-wrap:focus-within .showreel-hover-cluster {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.showreel-media-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  border: 1.5px dashed #d4d4d8;
  border-radius: 1.75rem;
  background: rgba(248, 248, 248, 0.9);
  padding: 1rem;
}

.showreel-media-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 1.25rem;
}

@media (min-width: 768px) {
  .work-meta-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .work-meta-item {
    padding: 1.15rem 1.25rem;
    border-bottom: none;
    border-right: 1px dashed #e5e7eb;
  }

  .work-meta-item:last-child {
    border-right: none;
  }

  .work-play-btn {
    width: 4.75rem;
    height: 4.75rem;
  }

  .project-details-row {
    grid-template-columns: minmax(160px, 0.32fr) 1fr;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    align-items: start;
  }

  .project-details-title {
    font-size: 1.15rem;
  }

  .project-details-text {
    font-size: 0.95rem;
  }

  .showreel-heading-wrap {
    min-height: 4.75rem;
  }

  .showreel-hover-cluster {
    width: 6.75rem;
    height: 4.75rem;
  }

  .showreel-hover-cluster--left {
    right: calc(50% + 10rem);
  }

  .showreel-hover-cluster--right {
    left: calc(50% + 10rem);
  }

  .showreel-hover-thumb {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 0.7rem;
  }

  .showreel-hover-cluster--left .showreel-hover-thumb:nth-child(1) {
    transform: translate(-1.4rem, 0.28rem) rotate(-14deg);
  }

  .showreel-hover-cluster--left .showreel-hover-thumb:nth-child(2) {
    transform: translate(0, -0.35rem) rotate(-2deg);
  }

  .showreel-hover-cluster--left .showreel-hover-thumb:nth-child(3) {
    transform: translate(1.4rem, 0.35rem) rotate(12deg);
  }

  .showreel-hover-cluster--right .showreel-hover-thumb:nth-child(1) {
    transform: translate(-1.4rem, 0.3rem) rotate(-12deg);
  }

  .showreel-hover-cluster--right .showreel-hover-thumb:nth-child(2) {
    transform: translate(0, -0.32rem) rotate(2deg);
  }

  .showreel-hover-cluster--right .showreel-hover-thumb:nth-child(3) {
    transform: translate(1.4rem, 0.28rem) rotate(14deg);
  }

  .showreel-media-box {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.35rem;
    border-radius: 2rem;
  }

  .showreel-media-img {
    border-radius: 1.5rem;
  }
}

@media (max-width: 639px) {
  .showreel-hover-cluster--left {
    right: calc(50% + 6.1rem);
  }

  .showreel-hover-cluster--right {
    left: calc(50% + 6.1rem);
  }

  .showreel-hover-thumb {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
  }

  .showreel-hover-cluster--left .showreel-hover-thumb:nth-child(1) {
    transform: translate(-0.9rem, 0.2rem) rotate(-12deg);
  }

  .showreel-hover-cluster--left .showreel-hover-thumb:nth-child(3) {
    transform: translate(0.9rem, 0.22rem) rotate(10deg);
  }

  .showreel-hover-cluster--right .showreel-hover-thumb:nth-child(1) {
    transform: translate(-0.9rem, 0.22rem) rotate(-10deg);
  }

  .showreel-hover-cluster--right .showreel-hover-thumb:nth-child(3) {
    transform: translate(0.9rem, 0.2rem) rotate(12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-play-btn {
    transition: none;
  }

  .showreel-hover-cluster,
  .showreel-hover-thumb {
    transition: none;
  }
}
