/* ==========================================================================
   WENEX AI - Next-Gen Deeptech Stylesheet
   Architecture: Tailwind CSS + Plus Jakarta Sans + Interactive Photo Reveals
   ========================================================================== */

/* Custom Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090B0E;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00e5ff;
}

/* ==========================================================================
   SECTOR CARD REVEAL MECHANISM
   ========================================================================== */
.sector-card {
  position: relative;
  overflow: hidden;
  background-color: #12161F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.sector-card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 20px 40px -15px rgba(0, 229, 255, 0.15);
  transform: translateY(-3px);
}

/* Image Background Layer with Parallax / Zoom */
.sector-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) saturate(1.1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  z-index: 1;
}

.sector-card:hover .sector-bg-img {
  transform: scale(1.08);
  filter: brightness(0.75) saturate(1.25);
}

/* Progressive Dark Vignette / Scrim */
.sector-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 11, 14, 0.98) 0%,
    rgba(9, 11, 14, 0.82) 45%,
    rgba(9, 11, 14, 0.35) 80%,
    rgba(9, 11, 14, 0.15) 100%
  );
  z-index: 2;
  transition: background 0.5s ease;
}

.sector-card:hover .sector-scrim {
  background: linear-gradient(
    to top,
    rgba(9, 11, 14, 0.99) 0%,
    rgba(9, 11, 14, 0.88) 55%,
    rgba(9, 11, 14, 0.45) 85%,
    rgba(9, 11, 14, 0.2) 100%
  );
}

/* Content Container */
.sector-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* The Animated Writings Container */
.sector-writings {
  opacity: 0.85;
  max-height: 180px;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.45s ease;
}

/* Desktop initial teaser state: subtle preview that fully expands on hover or scroll reveal */
@media (min-width: 768px) {
  .sector-card:not(.revealed):not(:hover) .sector-writings {
    opacity: 0.4;
    transform: translateY(6px);
  }
  
  .sector-card.revealed .sector-writings,
  .sector-card:hover .sector-writings {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: always comfortable and clear */
@media (max-width: 767px) {
  .sector-card {
    min-height: 340px;
    padding: 1.5rem;
  }
  .sector-writings {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glowing Indicator Animation */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Founder Avatar Rings */
.avatar-ring-cyan {
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
}

.avatar-ring-emerald {
  box-shadow: 0 0 25px rgba(0, 229, 163, 0.25);
}
