/* ============ BOOK COVER DESIGN PAGE STYLES ============ */

/* === HERO SECTION === */
.service-hero {
  font-family: "Inter", sans-serif;
}

/* === ENHANCED SHOWCASE GRID LAYOUT === */
.design-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  position: relative;
}

/* === ENHANCED DESIGN ROW WITH FLOATING EFFECT === */
.design-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 0.97) 100%
  );
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.05),
    0 5px 15px rgba(31, 122, 140, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 122, 140, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
}

.design-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f7a8c, #4fc3d6, #1f7a8c);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* === ANIMATION KEYFRAMES FOR FLOATING ELEMENTS === */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-15px) translateX(-5px);
  }
}

/* Enhanced floating animations */
.design-row:nth-child(1) {
  animation: float 6s ease-in-out infinite 0s;
}

.design-row:nth-child(2) {
  animation: float-delayed 7s ease-in-out infinite;
}

.design-row:nth-child(3) {
  animation: float 6s ease-in-out infinite 2s;
}

.design-row:nth-child(4) {
  animation: float-delayed 7s ease-in-out infinite 1s;
}

.design-row:nth-child(5) {
  animation: float 6s ease-in-out infinite 4s;
}

/* === ENHANCED HOVER EFFECTS === */
.design-row:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 15px 30px rgba(31, 122, 140, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.9);
  border-color: rgba(31, 122, 140, 0.2);
  z-index: 10;
}

/* Border glow effect on hover */
.design-row::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(45deg, #1f7a8c, #4fc3d6, #1f7a8c);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.design-row:hover::after {
  opacity: 1;
}

/* Soft blur effect on adjacent rows */
.design-row:hover ~ .design-row {
  filter: blur(1px);
  opacity: 0.9;
}

/* === ENHANCED DESIGN IMAGE WITH 3D EFFECT === */
.design-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.design-image::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(31, 122, 140, 0.1) 25%,
    rgba(79, 195, 214, 0.2) 50%,
    rgba(31, 122, 140, 0.1) 75%,
    transparent 100%
  );
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.design-image:hover::before {
  opacity: 1;
}

.book-cover-img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateZ(0);
  filter: brightness(0.98) contrast(1.05);
}

.design-image:hover .book-cover-img {
  transform: scale(1.1) translateZ(20px);
  filter: brightness(1.05) contrast(1.1);
}

/* === FLOATING BADGE EFFECT === */
.design-row .design-image::after {
  content: "DESIGN SHOWCASE";
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #1f7a8c, #4fc3d6);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(31, 122, 140, 0.3);
}

.design-image:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* === ENHANCED DESIGN CONTENT === */
.design-content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.design-content::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    transparent,
    #1f7a8c,
    #4fc3d6,
    transparent
  );
  border-radius: 2px;
  opacity: 0.6;
}

.design-row:nth-child(even) .design-content::before {
  left: auto;
  right: -2rem;
}

.design-content h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
}

.design-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1f7a8c, #4fc3d6);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.design-content:hover h3::after {
  width: 100px;
}

.design-content p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #475569;
}

.design-content ul {
  font-family: "Inter", sans-serif;
  position: relative;
  padding-left: 0.5rem;
}

.design-content li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.design-content li:hover {
  transform: translateX(5px);
  color: #1f7a8c;
}

.design-content li i {
  background: linear-gradient(135deg, #1f7a8c, #4fc3d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
  margin-right: 0.75rem;
}

/* Enhanced genre badge */
.design-content .inline-block {
  background: linear-gradient(
    135deg,
    rgba(31, 122, 140, 0.12),
    rgba(79, 195, 214, 0.08)
  );
  border: 1px solid rgba(31, 122, 140, 0.25);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(31, 122, 140, 0.1);
}

.design-content .inline-block:hover {
  background: linear-gradient(
    135deg,
    rgba(31, 122, 140, 0.2),
    rgba(79, 195, 214, 0.15)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(31, 122, 140, 0.15);
}

/* === ALTERNATING ROW BACKGROUND COLORS === */
.design-row:nth-child(odd) {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(241, 245, 249, 0.95) 100%
  );
}

.design-row:nth-child(even) {
  background: linear-gradient(
    145deg,
    rgba(249, 250, 251, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
}

/* === RADIAL HOVER EFFECT === */
.design-row:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(79, 195, 214, 0.03) 0%,
    transparent 70%
  );
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* === SMOOTH TRANSITION FOR ALL ELEMENTS === */
.design-row * {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === DESIGN PROCESS STEPS === */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #1f7a8c 0%, #1a697a 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 6px 12px rgba(31, 122, 140, 0.2);
}

.step-content h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #1f2937;
}

.step-content p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.6;
}

/* === GRADIENT TEXT COLORS === */
.text-\[\#4fc3d6\] {
  color: #4fc3d6;
}

/* === DARK BACKGROUND SECTION === */
.bg-gradient-to-b {
  position: relative;
  overflow: hidden;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .design-row {
    gap: 3rem;
    padding: 1.5rem;
  }

  .design-content::before {
    left: -1.5rem;
  }

  .design-row:nth-child(even) .design-content::before {
    right: -1.5rem;
  }
}

@media (max-width: 768px) {
  .design-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.5rem;
  }

  .design-content {
    padding: 0;
  }

  .design-content::before {
    display: none;
  }

  .design-image {
    order: 1;
    max-width: 85%;
    margin: 0 auto;
  }

  .design-content {
    order: 2;
  }

  .design-row:nth-child(even) .design-image {
    order: 1;
  }

  .design-row:nth-child(even) .design-content {
    order: 2;
  }

  .design-image::after {
    font-size: 0.6rem;
    padding: 5px 10px;
  }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* General responsive adjustments */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    gap: 1rem;
  }

  .p-6,
  .p-8 {
    padding: 1rem;
  }

  .text-3xl,
  .text-4xl,
  .text-5xl {
    font-size: 1.875rem;
  }
}

@media (max-width: 640px) {
  .design-showcase-grid {
    gap: 4rem;
  }

  .design-row {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .design-image {
    max-width: 90%;
  }

  /* Additional responsive classes */
  .flex-col-sm {
    flex-direction: column;
  }

  .gap-4 {
    gap: 0.75rem;
  }

  .text-lg {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .design-row {
    padding: 1rem;
  }

  .design-content h3 {
    font-size: 1.5rem;
  }

  .design-content p {
    font-size: 0.95rem;
  }

  .design-showcase-grid {
    gap: 4rem;
  }

  .step-number {
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
  }
}
