/* From portfolio.css */

/* ===== PORTFOLIO PAGE STYLES ===== */

/* ==================== HERO ==================== */
.pf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
  background: #0c0c10;
}

.pf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Grid lines */
.pf-grid-line {
  position: absolute;
}

.pf-gl-h {
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.pf-gl-h::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -200px;
  width: 200px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.5), transparent);
  animation: pfLineSweepH 8s ease-in-out infinite;
}

.pf-gl-h:nth-child(1)::after { animation-delay: 0s; animation-duration: 7s; }
.pf-gl-h:nth-child(2)::after { animation-delay: 1.2s; animation-duration: 6s; }
.pf-gl-h:nth-child(3)::after { animation-delay: 2.8s; animation-duration: 8s; }
.pf-gl-h:nth-child(4)::after { animation-delay: 0.6s; animation-duration: 5.5s; }
.pf-gl-h:nth-child(5)::after { animation-delay: 3.5s; animation-duration: 7.5s; }

.pf-gl-v {
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.04), transparent);
}

.pf-gl-v::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -100px;
  width: 3px;
  height: 100px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(230, 57, 70, 0.35), transparent);
  animation: pfLineSweepV 9s ease-in-out infinite;
}

.pf-gl-v:nth-child(6)::after { animation-delay: 0s; animation-duration: 8s; }
.pf-gl-v:nth-child(7)::after { animation-delay: 1.8s; animation-duration: 7s; }
.pf-gl-v:nth-child(8)::after { animation-delay: 3s; animation-duration: 6.5s; }
.pf-gl-v:nth-child(9)::after { animation-delay: 0.8s; animation-duration: 9s; }
.pf-gl-v:nth-child(10)::after { animation-delay: 2.5s; animation-duration: 7.5s; }

@keyframes pfLineSweepH {
  0% { left: -200px; }
  100% { left: calc(100% + 200px); }
}

@keyframes pfLineSweepV {
  0% { top: -100px; }
  100% { top: calc(100% + 100px); }
}

/* Floating orbs */
.pf-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
}

.pf-orb-1 {
  width: 550px; height: 550px;
  background: #e63946;
  top: 5%; left: -12%;
  animation: pfOrbFloat 14s ease-in-out infinite alternate;
}

.pf-orb-2 {
  width: 400px; height: 400px;
  background: #8b5cf6;
  bottom: 10%; right: -8%;
  animation: pfOrbFloat 18s ease-in-out infinite alternate-reverse;
}

.pf-orb-3 {
  width: 300px; height: 300px;
  background: #e63946;
  top: 50%; left: 40%;
  animation: pfOrbFloat 16s ease-in-out 2s infinite alternate;
}

@keyframes pfOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* Particles */
.pf-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.6);
  animation: pfParticleFloat 8s ease-in-out infinite;
}

.pf-p1 { top: 20%; left: 10%; animation-delay: 0s; }
.pf-p2 { top: 30%; left: 80%; animation-delay: 1.5s; width: 3px; height: 3px; }
.pf-p3 { top: 60%; left: 25%; animation-delay: 3s; width: 5px; height: 5px; }
.pf-p4 { top: 70%; left: 70%; animation-delay: 2s; }
.pf-p5 { top: 40%; left: 55%; animation-delay: 4s; width: 3px; height: 3px; }
.pf-p6 { top: 85%; left: 40%; animation-delay: 1s; width: 6px; height: 6px; }

@keyframes pfParticleFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  25% { transform: translate(15px, -25px); opacity: 0.8; }
  50% { transform: translate(-10px, -40px); opacity: 0.3; }
  75% { transform: translate(20px, -15px); opacity: 0.7; }
}

/* Hero content */
.pf-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.pf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 40px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.2);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  animation: pfFadeUp 0.8s ease-out both;
}

.pf-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63946;
  animation: pfPulse 2s ease-in-out infinite;
}

@keyframes pfPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.pf-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.15;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  animation: pfFadeUp 0.8s ease-out 0.15s both;
}

.pf-highlight {
  color: #e63946 !important;
  font-weight: 700;
  font-style: italic;
}

.pf-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
  animation: pfFadeUp 0.8s ease-out 0.3s both;
}

.pf-hero-cta {
  animation: pfFadeUp 0.8s ease-out 0.45s both;
}

@keyframes pfFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero scroll indicator */
.pf-hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: pfFadeUp 0.8s ease-out 0.6s both;
}

.pf-hero-scroll span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
}

.pf-hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(230,57,70,0.6), transparent);
  animation: pfScrollPulse 2s ease-in-out infinite;
}

@keyframes pfScrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.pf-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
  z-index: 1;
  pointer-events: none;
}


/* ==================== STATS BAR ==================== */
.pf-stats {
  padding: 80px 0;
  background: #fff;
  position: relative;
}

.pf-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,57,70,0.2), transparent);
}

.pf-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.pf-stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.pf-stat-item.pf-revealed {
  opacity: 1;
  transform: translateY(0);
}

.pf-stat-num {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 700;
  color: #e63946;
  line-height: 1;
  display: inline;
}

.pf-stat-suffix {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: #e63946;
}

.pf-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pf-stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}


/* ==================== SECTION COMMON ==================== */
.pf-projects,
.pf-process {
  padding: 120px 0;
  background: #fff;
  position: relative;
}

.pf-section-header {
  text-align: center;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s ease-out;
}

.pf-section-header.pf-revealed {
  opacity: 1;
  transform: translateY(0);
}

.pf-section-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #e63946;
  margin-bottom: 16px;
  font-weight: 500;
}

.pf-section-header h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}

.pf-section-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.45);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ==================== FILTER BAR ==================== */
.pf-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: nowrap;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
  overflow-x: auto;
}

.pf-filter-btn {
  padding: 10px 22px;
  border-radius: 40px;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pf-filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.pf-filter-btn.active {
  color: #fff;
  background: var(--accent-red);
  box-shadow: 0 4px 20px var(--accent-red-glow);
}


/* ==================== PROJECT CARDS GRID ==================== */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pf-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.pf-card.pf-revealed {
  opacity: 1;
  transform: translateY(0);
}

.pf-card:nth-child(1) { transition-delay: 0s; }
.pf-card:nth-child(2) { transition-delay: 0.1s; }
.pf-card:nth-child(3) { transition-delay: 0.2s; }
.pf-card:nth-child(4) { transition-delay: 0.3s; }
.pf-card:nth-child(5) { transition-delay: 0.4s; }
.pf-card:nth-child(6) { transition-delay: 0.5s; }

.pf-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(230,57,70,0), rgba(230,57,70,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.pf-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230, 57, 70, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(230, 57, 70, 0.05);
}

.pf-card:hover::before {
  background: linear-gradient(135deg, rgba(230,57,70,0.3), rgba(230,57,70,0.05));
}

/* Featured card spans 2 columns */
.pf-card-featured {
  grid-column: span 2;
}

.pf-card-featured .pf-card-image {
  height: 320px;
}

/* Filter animations */
.pf-card.pf-hidden {
  display: none;
}

/* Card Image */
.pf-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.pf-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.pf-card:hover .pf-card-image img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pf-card:hover .pf-card-overlay {
  opacity: 1;
}

.pf-card-expand {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: scale(0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.pf-card:hover .pf-card-expand {
  transform: scale(1);
}

.pf-card-expand:hover {
  background: var(--accent-red);
  box-shadow: 0 0 30px var(--accent-red-glow);
}

.pf-card-expand svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.pf-card-badge-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.pf-card-cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  /*background: #4caf50;*/
  backdrop-filter: blur(2px);
  color: #16a34a;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Card Body */
.pf-card-body {
  padding: 24px;
}

.pf-card-title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.pf-card:hover .pf-card-title {
  color: var(--accent-red);
}

.pf-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.pf-card-tags span {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  background: rgba(230, 57, 70, 0.08);
  color: var(--accent-red);
  border: 1px solid rgba(230, 57, 70, 0.12);
  transition: all 0.3s ease;
}

.pf-card:hover .pf-card-tags span {
  background: rgba(230, 57, 70, 0.12);
  border-color: rgba(230, 57, 70, 0.2);
}

/* Card External Links */
.pf-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 4px;
}

.pf-card-instagram,
.pf-card-website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
}

.pf-card-instagram svg,
.pf-card-website svg {
  width: 14px;
  height: 14px;
}

.pf-card-instagram:hover {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent-red);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.15);
}

.pf-card-website:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-hover);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Links */
.pf-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.pf-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.pf-modal-link svg {
  width: 16px;
  height: 16px;
}

.pf-modal-link-ig:hover {
  background: rgba(230, 57, 70, 0.12);
  color: var(--accent-red);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 5px 20px rgba(230, 57, 70, 0.2);
}

.pf-modal-link-web:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-hover);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.pf-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.pf-card-client {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pf-card-client svg {
  color: var(--text-muted);
}

.pf-card-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-secondary);
  font-weight: 500;
}


/* ==================== PROCESS TIMELINE ==================== */
.pf-process {
  background: #0c0c10;
}

.pf-process-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 60px;
}

.pf-process-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(230,57,70,0.3), rgba(230,57,70,0.05));
}

.pf-process-step {
  position: relative;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease-out;
}

.pf-process-step.pf-revealed {
  opacity: 1;
  transform: translateX(0);
}

.pf-process-step:last-child {
  margin-bottom: 0;
}

.pf-process-dot {
  position: absolute;
  left: -60px;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #141418;
  border: 2px solid rgba(230, 57, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.4s ease;
}

.pf-process-step:hover .pf-process-dot {
  border-color: #e63946;
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.2);
  background: rgba(230, 57, 70, 0.1);
}

.pf-process-dot span {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: #e63946;
}

.pf-process-content {
  background: #141418;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px 32px;
  transition: all 0.4s ease;
}

.pf-process-step:hover .pf-process-content {
  border-color: rgba(230, 57, 70, 0.15);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: translateX(6px);
}

.pf-process-content h3 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.pf-process-content p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}


/* ==================== CTA SECTION ==================== */
.pf-cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.pf-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pf-cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.pf-cta-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(230, 57, 70, 0.1);
  top: -20%;
  left: -10%;
  animation: pfOrbFloat 12s ease-in-out infinite alternate;
}

.pf-cta-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.08);
  bottom: -20%;
  right: -10%;
  animation: pfOrbFloat 15s ease-in-out infinite alternate-reverse;
}

.pf-cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.pf-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.pf-cta-content h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.pf-cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 40px;
}

.pf-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 36px !important;
  font-size: 1rem !important;
}


/* ==================== MODAL ==================== */
.pf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pf-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pf-modal {
  background: #141418;
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pf-modal-overlay.active .pf-modal {
  transform: scale(1) translateY(0);
}

.pf-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.pf-modal-close:hover {
  background: #e63946;
  border-color: #e63946;
}

.pf-modal-close svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.pf-modal-image {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.pf-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-modal-body {
  padding: 36px;
}

.pf-modal-cat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(230, 57, 70, 0.1);
  color: #e63946;
  border: 1px solid rgba(230, 57, 70, 0.2);
  margin-bottom: 16px;
}

.pf-modal-title {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
  line-height: 1.3;
}

.pf-modal-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 24px;
}

.pf-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pf-modal-tags span {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  background: rgba(230, 57, 70, 0.08);
  color: rgba(230, 57, 70, 0.8);
  border: 1px solid rgba(230, 57, 70, 0.15);
}

.pf-modal-meta {
  display: flex;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}

.pf-modal-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.pf-modal-meta-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.pf-modal-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}


/* ==================== SCROLLBAR ==================== */
.pf-modal::-webkit-scrollbar {
  width: 4px;
}

.pf-modal::-webkit-scrollbar-track {
  background: transparent;
}

.pf-modal::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.3);
  border-radius: 4px;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-card-featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .pf-hero {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .pf-hero-title {
    font-size: 2.2rem;
  }

  .pf-grid {
    grid-template-columns: 1fr;
  }

  .pf-card-featured {
    grid-column: span 1;
  }

  .pf-card-featured .pf-card-image {
    height: 220px;
  }

  .pf-stats-grid {
    gap: 30px;
  }

  .pf-stat-divider {
    display: none;
  }

  .pf-stat-num {
    font-size: 2.5rem;
  }

  .pf-filter-bar {
    gap: 4px;
    padding: 4px;
  }

  .pf-filter-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .pf-process-timeline {
    padding-left: 50px;
  }

  .pf-process-dot {
    left: -50px;
    width: 38px;
    height: 38px;
  }

  .pf-process-dot span {
    font-size: 0.75rem;
  }

  .pf-process-content {
    padding: 20px 24px;
  }

  .pf-projects,
  .pf-process {
    padding: 80px 0;
  }

  .pf-cta {
    padding: 80px 0;
  }

  .pf-modal {
    margin: 16px;
    max-height: 85vh;
  }

  .pf-modal-image {
    height: 220px;
  }

  .pf-modal-body {
    padding: 24px;
  }

  .pf-modal-title {
    font-size: 1.4rem;
  }

  .pf-cta-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pf-hero-title {
    font-size: 1.8rem;
  }

  .pf-hero-sub {
    font-size: 0.95rem;
  }

  .pf-stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .pf-filter-bar {
    border-radius: 16px;
  }

  .pf-filter-btn {
    flex: 1 0 auto;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .pf-card-body {
    padding: 18px;
  }
}

/* ==================== BASE POLYFILLS FOR TAILWIND ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

svg {
  max-width: 24px;
  height: auto;
  display: inline-block;
}

.pf-card-image img {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-secondary, sans-serif);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #e63946;
  color: #fff;
  border: 1px solid #e63946;
}

.btn-primary:hover {
  background-color: transparent;
  color: #e63946;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
}

.btn-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==================== BASE POLYFILLS FIXES ==================== */
.container {
  margin-left: auto !important;
  margin-right: auto !important;
}

svg {
  max-width: 24px !important;
}

.pf-card-image img {
  width: 100% !important;
}


/* From payment.php */

.selected-card {
        border-color: hsl(142, 70%, 45%) !important;
        background: hsl(142, 70%, 98%) !important;
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(34,197,94,0.1);
    }
    .selected-card .icon-wrapper {
        background: hsl(142, 70%, 45%);
        color: white;
    }
    .selected-card .check-icon {
        transform: scale(1);
    }

    @keyframes scale-in {
        from { transform: scale(0.95); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
    .scale-in-center {
        animation: scale-in 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }


.inline-style-2 { top:12% }

.inline-style-3 { top:32% }

.inline-style-4 { top:52% }

.inline-style-5 { top:72% }

.inline-style-6 { top:92% }

.inline-style-7 { left:15% }

.inline-style-8 { left:35% }

.inline-style-9 { left:55% }

.inline-style-10 { left:75% }

.inline-style-11 { left:90% }

/* From privacy-policy.php */

.prose strong {
        color: hsl(150, 20%, 10%);
    }
    .list-circle {
        list-style-type: circle;
    }

/* From terms-of-service.php */

.prose strong {
        color: hsl(150, 20%, 10%);
    }

.inline-style-12 { animation-delay: 2s; }

/* From about.php */

@keyframes spin-slow {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .animate-spin-slow {
        animation: spin-slow 20s linear infinite;
    }

/* From features.php */

/* Marquee Animation */
.animate-marquee {
    animation: marquee 40s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.feature-item {
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-8px);
}

/* From header.php */

:root {
            --primary: 142 70% 45%;
            --primary-foreground: 0 0% 100%;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            scroll-behavior: smooth;
        }
        
        .font-display {
            font-family: 'Space Grotesk', sans-serif;
        }
        
        .glass {
            background: white;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
        }
        
        .text-gradient-primary {
            background: linear-gradient(135deg, hsl(142, 70%, 45%), hsl(142, 80%, 55%));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .shadow-glow {
            box-shadow: 0 0 40px -10px hsla(142, 70%, 45%, 0.4);
        }

        /* Responsive Fixes & Global Typography */
        html, body {
            max-width: 100vw;
            overflow-x: hidden;
            position: relative;
        }

        /* Fluid Typography System */
        :root {
            /* Clamp: min-size, preferred-size, max-size */
            --h1-size: clamp(2.25rem, 5vw + 1rem, 5.5rem);
            --h2-size: clamp(1.875rem, 4vw + 1rem, 4.5rem);
            --h3-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
        }

        .responsive-h1 { font-size: var(--h1-size); line-height: 1.1; }
        .responsive-h2 { font-size: var(--h2-size); line-height: 1.2; }
        .responsive-h3 { font-size: var(--h3-size); line-height: 1.3; }
        
        @media (max-width: 640px) {
            h1, h2, h3, h4, h5, h6 {
                word-wrap: break-word;
                overflow-wrap: break-word;
                hyphens: auto;
            }
        }

.inline-style-13 { background-image: linear-gradient(to right, hsl(142, 70%, 45%) 1px, transparent 1px), linear-gradient(to bottom, hsl(142, 70%, 45%) 1px, transparent 1px); background-size: 40px 40px; }

/* From pricing.php */

.features-scrollbar::-webkit-scrollbar {
            width: 4px;
        }

        .features-scrollbar::-webkit-scrollbar-track {
            background: transparent;
        }

        .features-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(16, 185, 129, 0.2);
            border-radius: 10px;
        }

        .features-scrollbar::-webkit-scrollbar-thumb:hover {
            background: rgba(16, 185, 129, 0.4);
        }

        .features-scrollbar {
            scrollbar-width: thin;
            scrollbar-color: rgba(16, 185, 129, 0.2) transparent;
        }

.inline-style-14 { background: linear-gradient(90deg, #ffb84d 0%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* From testimonials.php */

/*.section-testimonials {*/
/*            background: radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 30%), radial-gradient(circle at 75% 10%, rgba(14, 198, 134, 0.08), transparent 25%), radial-gradient(circle at 25% 15%, rgba(234, 88, 12, 0.08), transparent 22%), #dbdee4;*/
/*            border-top: 1px solid rgba(255, 255, 255, 0.92);*/
/*            border-bottom: 1px solid rgba(255, 255, 255, 0.92);*/
/*        }*/

        .section-testimonials::before {
            content: '';
            position: absolute;
            inset: 0;
            /*background: radial-gradient(circle at 20% 10%, rgba(14, 198, 134, 0.18), transparent 24%), radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.16), transparent 22%), linear-gradient(180deg, rgba(15, 23, 42, 0.15), transparent 40%);*/
            /*pointer-events: none;*/
            opacity: 0.75;
        }

        .section-testimonials .section-header {
            position: relative;
            z-index: 1;
        }

        .section-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            font-size: 0.78rem;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: #a855f7;
            font-weight: 700;
        }

        .tag-square {
            width: 10px;
            height: 10px;
            background: #ff4d6d;
            border-radius: 3px;
        }

        /* .testi-track-wrapper {
            position: relative;
            overflow: hidden;
            padding: 16px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.92);
            box-shadow: inset 0 1px 30px rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(18px);
        } */

        .testi-track {
            display: flex;
            gap: 22px;
            width: max-content;
            will-change: transform;
            animation: newsScroll 35s linear infinite;
        }

        .testi-track.reverse {
            animation-direction: reverse;
            animation-duration: 42s;
        }

        .testi-card {
            position: relative;
            min-width: 360px;
            max-width: 360px;
            flex-shrink: 0;
            border-radius: 30px;
            border: 1px solid transparent;
            background-image: linear-gradient(135deg, rgba(15, 230, 144, 0.30), rgba(255, 80, 174, 0.30)), linear-gradient(180deg, rgba(7, 12, 24, 0.95), rgba(14, 20, 38, 0.95));
            background-origin: border-box;
            background-clip: padding-box, border-box;
            padding: 28px 26px;
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
            box-shadow: inset 0 0 50px rgba(15, 38, 74, 0.22), inset 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.28);
        }

        .testi-card:hover {
            transform: translateY(-6px);
            box-shadow: inset 0 0 70px rgba(15, 38, 74, 0.26), inset 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 70px rgba(0, 0, 0, 0.32);
        }

        .testi-track::before,
        .testi-track::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 120px;
            pointer-events: none;
        }

        .testi-track::before {
            left: 0;
            background: linear-gradient(to right, rgba(5, 8, 15, 1), transparent);
        }

        .testi-track::after {
            right: 0;
            background: linear-gradient(to left, rgba(5, 8, 15, 1), transparent);
        }

        @keyframes newsScroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .testi-top {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 18px;
        }

        .testi-avatar {
            width: 52px;
            height: 52px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 800;
            font-size: 0.95rem;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .testi-name {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 4px;
            color: #f8fafc;
        }

        .testi-role {
            font-size: 0.88rem;
            color: rgba(255, 255, 255, 0.62);
        }

        .testi-body {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.9;
            font-size: 0.95rem;
            margin-bottom: 22px;
        }

        .testi-company {
            color: #ff4d6d;
            font-weight: 700;
            letter-spacing: 0.02em;
            font-size: 0.92rem;
        }

        @media (max-width: 1024px) {
            .section-testimonials {
                padding-top: 80px;
                padding-bottom: 60px;
            }
        }

        @media (max-width: 768px) {
            .testi-grid {
                grid-template-columns: repeat(1, minmax(0, 1fr));
            }
        }
