/* ==========================================
   Youssef Scroll Journey Widget - Styles
   ========================================== */

.youssef-scroll-journey-container {
  --ysj-accent: #10B981;
  position: relative;
  background: #0a0a0a;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
}

.youssef-scroll-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 1200px;
}

.youssef-journey-title {
  position: absolute;
  top: 40px;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
}

.youssef-scroll-indicator {
  position: absolute;
  bottom: 40px;
  font-size: 1rem;
  color: #888;
  animation: ysj-bounce 2s infinite;
  z-index: 10;
}

@keyframes ysj-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ----------------------------------------
   3D CARD SETUP
   ---------------------------------------- */
.youssef-3d-card {
  position: absolute;
  width: 90%;
  max-width: 600px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.youssef-inner-box {
  padding: 40px;
  background: #111111;
  border-radius: 16px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-color: color-mix(in srgb, var(--ysj-accent) 30%, transparent);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Highlighted Result card */
.youssef-phase-result .youssef-inner-box {
  border-color: var(--ysj-accent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--ysj-accent) 40%, transparent);
  background: linear-gradient(145deg, #111111, #0d1f17);
}

/* Typography */
.youssef-3d-phase {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: var(--ysj-accent);
}

.youssef-3d-metric {
  font-size: 4rem;
  font-weight: 800;
  font-family: 'Roboto Mono', monospace;
  margin-bottom: 15px;
  line-height: 1;
  color: #ffffff;
}

.youssef-phase-result .youssef-3d-metric {
  color: var(--ysj-accent);
  text-shadow: 0 0 20px color-mix(in srgb, var(--ysj-accent) 80%, transparent);
}

.youssef-3d-desc {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
}

/* ----------------------------------------
   INTERACTIVE ICONS (REAL SHAPES)
   ---------------------------------------- */
.youssef-tech-icon-wrapper {
  width: 80px;
  height: 80px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- A. CHALLENGE: TRIANGLE ALERT --- */
.alert-triangle {
  width: 0; height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 45px solid var(--ysj-accent);
  position: relative;
  animation: alert-pulse 2s infinite;
}
.alert-line {
  width: 4px; height: 18px;
  background-color: #111111;
  position: absolute;
  top: 10px; left: -2px;
  border-radius: 2px;
}
.alert-dot {
  width: 4px; height: 4px;
  background-color: #111111;
  position: absolute;
  top: 32px; left: -2px;
  border-radius: 50%;
}
@keyframes alert-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 0px var(--ysj-accent)); }
  50% { opacity: 0.8; filter: drop-shadow(0 0 15px var(--ysj-accent)); }
}

/* --- B. STRATEGY: LIGHTBULB + ORBIT --- */
.bulb-assembly {
  position: relative;
  width: 40px; height: 50px;
}
.bulb-glass {
  width: 30px; height: 30px;
  background: var(--ysj-accent);
  border-radius: 50% 50% 5px 5px;
  position: absolute; top: 0; left: 5px;
  box-shadow: 0 0 15px var(--ysj-accent);
  animation: bulb-glow 3s ease-in-out infinite;
}
.bulb-filament {
  width: 10px; height: 10px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute; top: 8px; left: 15px;
}
.bulb-base-1 {
  width: 20px; height: 5px;
  background: #ffffff; top: 30px; left: 10px; position: absolute;
  border-radius: 2px;
}
.bulb-base-2 {
  width: 24px; height: 5px;
  background: #ffffff; top: 36px; left: 8px; position: absolute;
  border-radius: 2px;
}
.bulb-orbit {
  position: absolute;
  width: 60px; height: 60px;
  border: 1px solid color-mix(in srgb, var(--ysj-accent) 40%, transparent);
  border-radius: 50%;
  top: -5px; left: -10px;
  animation: orbit-spin 4s linear infinite;
}
.bulb-dot {
  width: 6px; height: 6px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: -3px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 8px #ffffff;
}
@keyframes bulb-glow {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 5px var(--ysj-accent); }
  50% { opacity: 1; box-shadow: 0 0 25px var(--ysj-accent); }
}
@keyframes orbit-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- C. EXECUTION: TECH PROCESS NODE --- */
.node-core {
  width: 15px; height: 15px;
  background: var(--ysj-accent);
  position: absolute;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--ysj-accent);
}
.node-arm {
  position: absolute;
  width: 50px; height: 4px;
  background: var(--ysj-accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.node-arm-2 {
  transform: translate(-50%, -50%) rotate(90deg);
}
.node-dot-end {
  width: 8px; height: 8px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 5px #ffffff;
}
.node-dot-end-1 { top: -4px; left: 0; }
.node-dot-end-2 { bottom: -4px; left: 0; }
.node-dot-end-3 { top: -4px; right: 0; }
.node-dot-end-4 { bottom: -4px; right: 0; }
.node-assembly {
  position: relative;
  width: 50px; height: 50px;
  animation: node-spin 3s linear infinite;
}
@keyframes node-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- D. RESULT: CYBERPUNK ROCKET --- */
.rocket-assembly {
  position: relative;
  width: 30px; height: 50px;
  animation: rocket-hover 2s ease-in-out infinite, rocket-vibrate 0.1s linear infinite;
}
.rocket-body {
  width: 20px; height: 30px;
  background: linear-gradient(180deg, var(--ysj-accent) 0%, #111111 100%);
  border-radius: 5px 5px 2px 2px;
  position: absolute;
  bottom: 10px; left: 5px;
  border: 1px solid var(--ysj-accent);
}
.rocket-nose {
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid var(--ysj-accent);
  position: absolute;
  bottom: 40px; left: 5px;
}
.rocket-window {
  width: 8px; height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  bottom: 25px; left: 11px;
}
.rocket-exhaust {
  width: 15px; height: 25px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ysj-accent) 50%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  position: absolute;
  bottom: -15px; left: 7.5px;
  animation: flame-flicker 0.2s infinite alternate;
  opacity: 0.9;
  box-shadow: 0 0 20px var(--ysj-accent);
}
.rocket-exhaust-2 {
  width: 10px; height: 15px;
  background: linear-gradient(180deg, var(--ysj-accent) 0%, transparent 100%);
  border-radius: 50%;
  position: absolute;
  bottom: -5px; left: 10px;
  animation: flame-flicker 0.15s infinite alternate-reverse;
}
@keyframes rocket-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes rocket-vibrate {
  0% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  50% { transform: translateX(1px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}
@keyframes flame-flicker {
  0% { transform: scaleY(1) scaleX(1); opacity: 0.8; }
  100% { transform: scaleY(1.3) scaleX(0.8); opacity: 1; }
}

/* Elementor Icon support */
.youssef-tech-icon-wrapper .elementor-icon {
  font-size: 40px;
  color: var(--ysj-accent);
}
.youssef-tech-icon-wrapper i,
.youssef-tech-icon-wrapper svg {
  font-size: 40px;
  color: var(--ysj-accent);
  width: 40px;
  height: 40px;
}

/* ----------------------------------------
   MOBILE RESPONSIVENESS
   ---------------------------------------- */
@media (max-width: 768px) {
  .youssef-3d-metric { font-size: 2.5rem; }
  .youssef-inner-box { padding: 25px; }
  .youssef-journey-title { font-size: 1.5rem; top: 20px; }
  .youssef-tech-icon-wrapper { width: 60px; height: 60px; margin-bottom: 15px; }
  .rocket-assembly { transform: scale(0.8); }
  .node-assembly { transform: scale(0.8); }
  .bulb-assembly { transform: scale(0.8); }
  .bulb-orbit { transform: scale(0.8); }
}
