/**
 * PTech Infinity Marquee Showcase Stylesheet
 * 60fps GPU-accelerated Infinite Horizontal Marquee
 */

:root {
  --ptech-mq-speed-slow: 60s;
  --ptech-mq-speed-normal: 35s;
  --ptech-mq-speed-fast: 22s;
  --ptech-mq-gap: 24px;
}

/* Marquee Container */
.ptech-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ptech-marquee-track {
  display: flex;
  width: max-content;
  gap: var(--ptech-mq-gap);
}

.ptech-marquee-group {
  display: flex;
  align-items: stretch;
  gap: var(--ptech-mq-gap);
  flex-shrink: 0;
  animation: ptechMarqueeScroll var(--ptech-mq-speed-normal) linear infinite;
  will-change: transform;
}

/* Speed Modifiers */
.ptech-marquee-wrapper[data-speed="slow"] .ptech-marquee-group {
  animation-duration: var(--ptech-mq-speed-slow);
}
.ptech-marquee-wrapper[data-speed="fast"] .ptech-marquee-group {
  animation-duration: var(--ptech-mq-speed-fast);
}

/* Direction Modifiers */
.ptech-marquee-wrapper[data-direction="right"] .ptech-marquee-group {
  animation-direction: reverse;
}

/* Pause on Hover */
.ptech-marquee-pause-hover:hover .ptech-marquee-group {
  animation-play-state: paused;
}

/* Keyframes */
@keyframes ptechMarqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--ptech-mq-gap)));
  }
}

/* ==========================================================================
   Project Showcase Cards
   ========================================================================== */
.ptech-proj-card {
  width: 360px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.ptech-proj-card:hover {
  transform: translateY(-8px);
  border-color: #6366F1;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.ptech-proj-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0F172A;
}

.ptech-proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ptech-proj-card:hover .ptech-proj-img {
  transform: scale(1.08);
}

.ptech-proj-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.ptech-proj-stat-pill {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #10B981;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ptech-proj-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ptech-proj-cat {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6366F1;
}

.ptech-proj-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 6px 0 8px;
  letter-spacing: -0.3px;
}

.ptech-proj-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748B;
  margin-bottom: 18px;
  flex-grow: 1;
}

.ptech-proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  margin-top: auto;
}

.ptech-proj-tech {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
}

.ptech-proj-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: #6366F1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ptech-proj-btn:hover {
  color: #4338CA;
  transform: translateX(3px);
}

/* ==========================================================================
   Testimonials Marquee Cards
   ========================================================================== */
.ptech-tst-card {
  width: 420px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.ptech-tst-card:hover {
  transform: translateY(-8px);
  border-color: #6366F1;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
}

.ptech-tst-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.ptech-tst-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ptech-tst-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.ptech-tst-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 2px;
}

.ptech-tst-role {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #64748B;
  margin: 0;
}

.ptech-tst-badge {
  background: #ECFDF5;
  color: #059669;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #A7F3D0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ptech-tst-stars {
  color: #F59E0B;
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.ptech-tst-quote {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .ptech-proj-card { width: 300px; }
  .ptech-tst-card { width: 320px; padding: 22px 18px; }
}
