/* =========================
   SERVICES PAGE STYLES
========================= */

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes rotateShape {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Category-specific animations */
@keyframes spinLogo {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.1); }
}

@keyframes flipCard {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(180deg); }
}

@keyframes slideScreen {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes billboardSlide {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes printFlip {
  from { transform: rotateX(-90deg); opacity: 0; }
  to { transform: rotateX(0); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes paintStroke {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Page wrapper */
.services-page {
  background: #ffffff;
  overflow-x: hidden;
}

/* =========================
   HERO SECTION
========================= */

.services-hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, 
    #0f172a 0%, 
    #1e293b 50%,
    #0f172a 100%);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.services-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, 
    rgba(255, 77, 90, 0.15) 0%, 
    rgba(255, 159, 60, 0.15) 100%);
  border: 1px solid rgba(255, 77, 90, 0.3);
  border-radius: 999px;
  color: #fca5a5;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.services-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.25rem 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  display: inline-block;
  width: 100%;
}

.services-hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto;
}

/* Animated background shapes */
.hero-shapes {
  min-height: 400px;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #ff4d5a 0%, #ff9f3c 100%);
  border-radius: 50%;
  top: -200px;
  left: -100px;
  animation: float 8s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #6366f1 0%, #9333ea 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  bottom: -150px;
  right: -100px;
  animation: float 10s ease-in-out infinite reverse, rotateShape 20s linear infinite;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #ff9f3c 0%, #fbbf24 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  top: 50%;
  right: 10%;
  animation: pulse 6s ease-in-out infinite, rotateShape 15s linear infinite reverse;
}

/* =========================
   SERVICES CONTENT
========================= */

.services-content {
  padding: 4rem 0;
}

.service-category {
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-category.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Category Headers */
.category-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid transparent;
  background: linear-gradient(to right, 
    rgba(255, 77, 90, 0.1) 0%, 
    transparent 100%) padding-box,
    linear-gradient(to right, 
    #ff4d5a 0%, 
    transparent 50%) border-box;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff4d5a 0%, #ff9f3c 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.category-header:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-icon svg {
  width: 32px;
  height: 32px;
}

.category-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  background: linear-gradient(135deg, #1e293b 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-info p {
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Service Cards - Base Styles */
.service-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 77, 90, 0.05) 0%, 
    rgba(255, 159, 60, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  transition: color 0.3s ease;
}

.service-hover-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff4d5a 0%, #ff9f3c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-hover-content {
  opacity: 1;
  transform: translateY(0);
}

.service-hover-content p {
  color: white;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* =========================
   CATEGORY-SPECIFIC EFFECTS
========================= */

/* Logo & Identity - Spinning effect */
[data-category="identity"] .service-card:hover .service-icon {
  animation: spinLogo 0.6s ease-in-out;
}

[data-category="identity"] .service-card {
  border-color: rgba(255, 77, 90, 0.3);
}

[data-category="identity"] .service-card:hover {
  transform: translateY(-8px) rotate(2deg);
  box-shadow: 0 20px 40px rgba(255, 77, 90, 0.2);
}

/* Graphic Design - Pop and bounce effect */
[data-category="graphic"] .service-card:hover .service-icon {
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-category="graphic"] .service-card {
  border-color: rgba(147, 51, 234, 0.3);
}

[data-category="graphic"] .service-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

[data-category="graphic"] .service-hover-content {
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
}

/* Web Design - Screen slide effect */
[data-category="web"] .service-card:hover .service-icon {
  animation: slideScreen 0.5s ease-out;
}

[data-category="web"] .service-card {
  border-color: rgba(59, 130, 246, 0.3);
}

[data-category="web"] .service-card:hover {
  transform: translateY(-8px) perspective(1000px) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

[data-category="web"] .service-hover-content {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

/* Digital Marketing - Pulse effect */
[data-category="digital"] .service-card:hover .service-icon {
  animation: pulse 0.5s ease-in-out 2;
}

[data-category="digital"] .service-card {
  border-color: rgba(236, 72, 153, 0.3);
}

[data-category="digital"] .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

[data-category="digital"] .service-hover-content {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

/* Outdoor & Signage - Billboard slide */
[data-category="outdoor"] .service-card:hover .service-icon {
  animation: billboardSlide 0.6s ease-out;
}

[data-category="outdoor"] .service-card {
  border-color: rgba(34, 197, 94, 0.3);
}

[data-category="outdoor"] .service-card:hover {
  transform: translateY(-8px) translateX(5px);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
}

[data-category="outdoor"] .service-hover-content {
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

/* Print Design - Flip effect */
[data-category="print"] .service-card:hover .service-icon {
  animation: printFlip 0.6s ease-out;
}

[data-category="print"] .service-card {
  border-color: rgba(251, 146, 60, 0.3);
}

[data-category="print"] .service-card:hover {
  transform: translateY(-8px) perspective(1000px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(251, 146, 60, 0.2);
}

[data-category="print"] .service-hover-content {
  background: linear-gradient(135deg, #fb923c 0%, #f59e0b 100%);
}

/* Product & Merchandise - Bounce effect */
[data-category="product"] .service-card:hover .service-icon {
  animation: bounce 0.5s ease-in-out 2;
}

[data-category="product"] .service-card {
  border-color: rgba(168, 85, 247, 0.3);
}

[data-category="product"] .service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 45px rgba(168, 85, 247, 0.2);
}

[data-category="product"] .service-hover-content {
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
}

/* Art & Illustration - Paint stroke effect */
[data-category="art"] .service-card:hover .service-icon {
  animation: paintStroke 0.8s ease-out;
}

[data-category="art"] .service-card {
  border-color: rgba(236, 72, 153, 0.3);
}

[data-category="art"] .service-card:hover {
  transform: translateY(-8px) rotate(-2deg);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

[data-category="art"] .service-hover-content {
  background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
}

/* Staggered animation delays for cards within categories */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }
.service-card:nth-child(7) { transition-delay: 0.35s; }
.service-card:nth-child(8) { transition-delay: 0.4s; }
.service-card:nth-child(9) { transition-delay: 0.45s; }
.service-card:nth-child(10) { transition-delay: 0.5s; }
.service-card:nth-child(11) { transition-delay: 0.55s; }
.service-card:nth-child(12) { transition-delay: 0.6s; }
.service-card:nth-child(13) { transition-delay: 0.65s; }
.service-card:nth-child(14) { transition-delay: 0.7s; }

/* =========================
   CTA SECTION
========================= */

.services-cta {
  padding: 4rem 0;
  background: linear-gradient(180deg,
    #0b1120 0%,
    #020617 100%);
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 77, 90, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

/* Services page specific CTA button */
.services-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d5a 0%, #ff9f3c 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 
    0 10px 30px rgba(255, 77, 90, 0.3),
    0 4px 12px rgba(255, 159, 60, 0.2);
  transition: all 0.3s ease;
}

.services-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(255, 77, 90, 0.4),
    0 8px 20px rgba(255, 159, 60, 0.3);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .services-hero h1 {
    font-size: 2.25rem;
  }

  .services-hero-lead {
    font-size: 1.1rem;
  }

  .category-info h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .services-hero {
    padding: 4rem 0 3rem;
  }

  .services-hero h1 {
    font-size: 1.75rem;
  }

  .services-hero-lead {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .category-icon {
    width: 50px;
    height: 50px;
  }

  .category-info h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .services-hero {
    min-height: 400px;
    padding: 4rem 0 3rem;
  }
}
/* Mouse trail - Stars/Sparkles */
.trail-star {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background: linear-gradient(135deg, 
    rgba(255, 77, 90, 0.9) 0%, 
    rgba(255, 159, 60, 0.6) 50%,
    rgba(251, 191, 36, 0.4) 100%);
  filter: drop-shadow(0 0 3px rgba(255, 159, 60, 0.8));
}