/* ===== UI/UX Design Page Styles ===== */
/* Red Theme throughout */

/* Preloader-safe styles - no global opacity/visibility overrides */

/* Global Red Gradient Titles */
.ux-section-title {
  color: #ce403d;
  font-family: var(--tp-ff-platform);
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 50px;
  line-height: normal;
  text-transform: uppercase;
  text-align: center;
  background-image: linear-gradient(
    90deg,
    #ce403d 0%,
    #ce403d 40%,
    #2a2f36 50%,
    #ce403d 60%,
    #ce403d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 20px;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hero Section → moved to service-common.css */
/* Page-specific overrides */
.ux-hero-section {
  padding-bottom: 20px;
}

/* Ensure hero content is visible (preloader fix) */
.ux-hero-title,
.ux-hero-subtitle,
.ux-hero-description,
.ux-hero-content-title,
.tp-section-title,
.dgm-hero-subtitle {
  opacity: 1 !important;
  visibility: visible !important;
}

.ux-hero-feature-icon {
  min-width: 24px;
}
.ux-hero-feature-icon svg {
  stroke: #ce403d !important;
  color: #ce403d !important;
}

/* ===== Services Section ===== */
.ux-services-section {
  background: #f8f9fb;
  position: relative;
}
.ux-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 991px) {
  .ux-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .ux-services-grid {
    grid-template-columns: 1fr;
  }
}
.ux-service-card {
  background: #fff;
  border-radius: 16px;
  padding: 35px 30px;
  border: 1px solid #eef0f4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.ux-service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(206, 64, 61, 0.12);
  border-color: rgba(206, 64, 61, 0.3);
}
.ux-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ce403d 0%, #e85a57 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.ux-service-card:hover::before {
  transform: scaleX(1) !important;
}
.ux-service-icon {
  width: 60px;
  height: 60px;
  background: rgba(206, 64, 61, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.ux-service-card:hover .ux-service-icon {
  background: #ce403d;
}
.ux-service-icon svg {
  width: 28px;
  height: 28px;
  stroke: #ce403d;
  transition: all 0.3s ease;
}
.ux-service-card:hover .ux-service-icon svg {
  stroke: #fff;
}
.ux-service-title {
  font-size: 20px;
  font-weight: 600;
  color: #141414 !important;
  font-family: p_m;
  margin-bottom: 15px;
}
.ux-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ux-service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #636368;
  font-family: p_r;
  margin-bottom: 10px;
}
.ux-service-list li:last-child {
  margin-bottom: 0;
}
.ux-service-list li svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  stroke: #ce403d;
}

/* ===== Projects Section ===== */
.ux-projects-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}
.ux-projects-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(206, 64, 61, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.ux-projects-section .tp-section-title {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ux-projects-section .dgm-hero-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}
.ux-projects-header {
  margin-bottom: 50px;
}
.ux-projects-header-left {
  text-align: left;
}
.ux-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1199px) {
  .ux-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .ux-projects-grid {
    grid-template-columns: 1fr;
  }
}
.ux-project-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ux-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.ux-project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ux-project-image svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.ux-project-card:hover .ux-project-image svg {
  transform: scale(1.05);
}
.ux-project-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ux-project-category {
  display: inline-block;
  font-size: 11px;
  color: #ce403d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-family: p_m;
  background: rgba(206, 64, 61, 0.08);
  padding: 5px 12px;
  border-radius: 15px;
  width: fit-content;
}
.ux-project-title {
  font-size: 18px;
  font-weight: 600;
  color: #141414 !important;
  margin-bottom: 10px;
  font-family: p_m;
  line-height: 1.3;
}
.ux-project-description {
  font-size: 14px;
  color: #636368 !important;
  line-height: 1.6;
  font-family: p_r;
  margin-bottom: 15px;
  flex: 1;
}
.ux-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ux-project-tag {
  font-size: 12px;
  padding: 6px 14px;
  background: #f8f8f8;
  color: #555;
  border-radius: 20px;
  font-family: p_r;
  border: 1px solid #eee;
}

/* ===== Process Section ===== */
.ux-process-section {
  background: #fff;
  position: relative;
}
.ux-process-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}
.ux-process-content {
  flex: 1;
}
.ux-process-image {
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ux-process-svg {
  width: 100%;
  max-width: 450px;
  height: auto;
}
.ux-process-header {
  margin-bottom: 50px;
  text-align: center;
}
.ux-process-subtitle {
  font-size: 18px;
  color: #636368 !important;
  font-family: p_r;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}
/* Process Steps → moved to service-common.css */

/* ===== Why Section ===== */
.ux-why-section {
  background: #f8f9fb;
  position: relative;
}
.ux-why-subtitle {
  font-size: 18px;
  color: #636368 !important;
  font-family: p_r;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}
.ux-why-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 16px;
  height: 100%;
  transition: all 0.4s ease;
}
.ux-why-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(206, 64, 61, 0.12);
}
.ux-why-icon {
  width: 70px;
  height: 70px;
  background: rgba(206, 64, 61, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}
.ux-why-item:hover .ux-why-icon {
  background: #ce403d;
}
.ux-why-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ce403d;
  transition: all 0.3s ease;
}
.ux-why-item:hover .ux-why-icon svg {
  stroke: #fff;
}
.ux-why-item-title {
  font-size: 18px;
  font-weight: 600;
  color: #141414 !important;
  font-family: p_m;
  margin-bottom: 12px;
}
.ux-why-item-text {
  font-size: 14px;
  color: #636368 !important;
  line-height: 1.6;
  font-family: p_r;
  margin: 0;
}

/* CTA Section → moved to service-common.css */
/* Page-specific overrides */
.ux-cta-text {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}
.ux-cta-btn {
  color: #ce403d !important;
}
.ux-cta-btn:hover {
  color: #fff !important;
}
.ux-cta-btn:hover svg {
  transform: translateX(5px) !important;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991px) {
  .ux-process-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .ux-process-image {
    flex: none;
    width: 100%;
    order: 1;
  }
  .ux-process-content {
    order: 2;
  }
  .ux-section-title {
    font-size: 42px;
  }
}
@media (max-width: 767px) {
  .ux-section-title {
    font-size: 32px;
  }
  .ux-services-grid {
    gap: 20px;
  }
  .ux-service-card {
    padding: 25px 20px;
  }
  .ux-process-svg {
    max-width: 320px;
  }
}
@media (max-width: 480px) {
  .ux-section-title {
    font-size: 28px;
  }
}

/* ===== Device Frame Styles for Project Cards ===== */
.ux-project-image image {
  transition: none;
}

.ux-project-card:hover .ux-project-image image {
  transform: none;
}

/* Device-specific frame backgrounds */
.ux-project-image svg {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Browser frame styling */
.ux-project-image svg rect[fill="#1a1a1a"] {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* Mobile frame styling */
.ux-project-image svg rect[rx="20"] {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* ===== UX Project Detail Page Device Frames ===== */
.website-device-frame,
.mobile-device-frame {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.website-device-frame:hover,
.mobile-device-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
}

/* Loading animation for images */
.website-screen img,
.mobile-screen img {
  opacity: 0;
  animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}

/* Stagger animation delays for gallery items */
.device-frames-gallery .website-device-frame:nth-child(1),
.mobile-frames-row .mobile-device-frame:nth-child(1) { animation-delay: 0.1s; }

.device-frames-gallery .website-device-frame:nth-child(2),
.mobile-frames-row .mobile-device-frame:nth-child(2) { animation-delay: 0.2s; }

.device-frames-gallery .website-device-frame:nth-child(3),
.mobile-frames-row .mobile-device-frame:nth-child(3) { animation-delay: 0.3s; }

.device-frames-gallery .website-device-frame:nth-child(4),
.mobile-frames-row .mobile-device-frame:nth-child(4) { animation-delay: 0.4s; }

.device-frames-gallery .website-device-frame:nth-child(5),
.mobile-frames-row .mobile-device-frame:nth-child(5) { animation-delay: 0.5s; }

.device-frames-gallery .website-device-frame:nth-child(6),
.mobile-frames-row .mobile-device-frame:nth-child(6) { animation-delay: 0.6s; }


/* ===== Content Visibility - Preloader Safe ===== */
/* Minimal rules to ensure content shows without breaking preloader */

/* Section titles only */
.ux-section-title,
.tp-section-title {
  opacity: 1;
  visibility: visible;
}

/* Hero content */
.ux-hero-title,
.ux-hero-subtitle {
  opacity: 1;
  visibility: visible;
}
