/* ==========================================================================
   COMPUTATIONAL PHOTOGRAPHY & ON-DEVICE VISION STYLING
   NextGen TechEdge Solutions Corporate Engineering Showcase
   ========================================================================== */

:root {
  --ng-photo-obsidian: #08090d;
  --ng-photo-dark-card: #11131c;
  --ng-photo-pink: #f445a2;
  --ng-photo-purple: #8426b0;
  --ng-photo-coral: #df414c;
  --ng-photo-sunset: #ff875b;
  --ng-photo-ink: #f6f5fb;
  --ng-photo-border: rgba(132, 38, 176, 0.25);
  --ng-photo-glow: rgba(244, 69, 162, 0.15);
}

/* Section Container */
.photo-engineering-section {
  position: relative;
  background: #090a10;
  color: #ffffff;
  padding: 100px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-engineering-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 38, 176, 0.18) 0%, rgba(244, 69, 162, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.photo-engineering-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 38, 176, 0.16) 0%, rgba(223, 65, 76, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.photo-section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto 60px;
}

.photo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ng-photo-pink);
  background: rgba(244, 69, 162, 0.1);
  border: 1px solid rgba(244, 69, 162, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.photo-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
}

.photo-section-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #f445a2 50%, #df414c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.photo-section-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.68;
  color: #b3b3c5;
  margin: 0 auto;
}

/* Showcase Grid */
.photo-showcase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .photo-showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Individual Showcase Card */
.photo-card {
  position: relative;
  background: #11131f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(22px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 69, 162, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px var(--ng-photo-glow);
}

.photo-card.card-restovue:hover {
  border-color: rgba(223, 65, 76, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(223, 65, 76, 0.2);
}

.photo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 22px;
  width: 100%;
}

.photo-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 6px;
  line-height: 1.3;
  white-space: normal;
  max-width: 100%;
}

.photo-badge-pink {
  background: rgba(244, 69, 162, 0.15);
  color: #f445a2;
  border: 1px solid rgba(244, 69, 162, 0.3);
}

.photo-badge-coral,
.photo-badge-teal {
  background: rgba(223, 65, 76, 0.14);
  color: #ff6b7a;
  border: 1px solid rgba(223, 65, 76, 0.32);
}

.photo-subdomain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.76rem;
  color: #9d9db3;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  word-break: break-all;
}

.photo-subdomain-tag:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 576px) {
  .photo-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.photo-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.photo-card-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f445a2;
  margin-bottom: 16px;
}

.card-restovue .photo-card-tagline {
  color: #ff6b7a;
}

.photo-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #b5b5c8;
  margin-bottom: 24px;
}

/* Device Presentation Container */
.photo-device-stage {
  position: relative;
  background: radial-gradient(circle at center, rgba(30, 22, 45, 0.7) 0%, rgba(13, 14, 22, 0.9) 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  overflow: hidden;
}

.photo-device-stage img {
  max-width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s ease;
}

.photo-card:hover .photo-device-stage img {
  transform: scale(1.02);
}

/* Key Engineering Points */
.photo-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d1d1e0;
}

.photo-highlight-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #f445a2;
}

.card-restovue .photo-highlight-item svg {
  color: #df414c;
}

/* Action Buttons */
.photo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-photo-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #f445a2 0%, #8426b0 100%);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-photo-primary.btn-restovue {
  background: linear-gradient(135deg, #df414c 0%, #8426b0 100%);
  color: #ffffff;
}

.btn-photo-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-photo-primary.btn-restovue:hover {
  color: #ffffff;
  opacity: 0.92;
}

.btn-photo-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #c5c5d6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-photo-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* Architecture Showcase Banner */
.photo-diagram-banner {
  position: relative;
  z-index: 1;
  background: #10121d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px;
  margin-top: 30px;
}

.photo-diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.photo-diagram-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.photo-diagram-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  color: #a5a5b5;
  margin: 4px 0 0;
}

.photo-svg-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  background: #090a12;
}

.photo-svg-wrapper img,
.photo-svg-wrapper svg {
  width: 100%;
  height: auto;
  min-width: 800px;
  display: block;
}

/* Accessibility / Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .photo-card,
  .photo-device-stage img,
  .btn-photo-primary,
  .btn-photo-outline {
    transition: none !important;
    transform: none !important;
  }
}

.photo-card.card-cueprompt:hover {
  border-color: rgba(255, 90, 78, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 90, 78, 0.25);
}
.card-cueprompt .photo-card-tagline {
  color: #ff8577;
}
.card-cueprompt .photo-highlight-item svg {
  color: #FF6B5B;
}
.card-cueprompt .photo-device-stage {
  background: radial-gradient(circle at center, rgba(255, 107, 91, 0.16) 0%, rgba(13, 14, 22, 0.94) 75%);
  border-color: rgba(255, 107, 91, 0.16);
  padding: 24px 16px;
}
.card-cueprompt .photo-device-stage img {
  max-width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.65));
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.btn-cueprompt {
  background: linear-gradient(135deg, #FF6B5B 0%, #D93829 100%) !important;
}
.btn-cueprompt:hover {
  background: linear-gradient(135deg, #FF5A4E 0%, #C2362C 100%) !important;
  box-shadow: 0 6px 20px rgba(255, 90, 78, 0.4) !important;
}
