/* ==========================================
   IMPACT-FIRST PORTFOLIO STYLES
   Punchy, outcome-focused visual system
   ========================================== */

/* ==========================================
   SKILL PROOF LINES
   ========================================== */
.skill-proof {
  margin-top: 0.25rem;
  padding: 0.625rem 0.875rem;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--orange, #f2a33c);
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

[data-theme="dark"] .skill-proof {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border-left-color: var(--orange, #f2a33c);
}

.philosophy-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
  color: var(--text-primary);
}

.philosophy-item > span {
  display: block;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.125rem;
}

[data-theme="dark"] .philosophy-item > span {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   HOW I WORK SECTION
   ========================================== */
.how-i-work {
  padding: 6rem 0;
}

.how-i-work-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--orange, #f2a33c);
  margin-top: 0.5rem;
}

.how-i-work-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 3rem auto;
  max-width: 820px;
}

.work-principle {
  position: relative;
  padding: 2rem 2.5rem;
  background: #faf8f5;
  border: 1px solid rgba(60, 40, 20, 0.08);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s ease,
              opacity 0.5s ease;
  /* Initial hidden state for scroll animation */
  opacity: 0;
  transform: translateY(30px);
}

/* Scroll reveal animation */
.work-principle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-principle.is-visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(60, 40, 20, 0.08);
}

[data-theme="dark"] .work-principle {
  background: rgba(28, 28, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .work-principle.is-visible:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.principle-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange, #f2a33c);
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.75rem;
  background: rgba(242, 163, 60, 0.1);
  border-radius: 20px;
}

.work-principle h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.work-principle p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}

/* Hide the gradient illustrations - clean look */
.principle-illustration {
  display: none;
}

[data-theme="dark"] .work-principle p {
  color: rgba(255, 255, 255, 0.8);
}

/* Work Moment (playful live section) */
.work-moment {
  position: relative;
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(242, 163, 60, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
  border: 2px dashed rgba(242, 163, 60, 0.3);
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.work-moment::before {
  content: '☕';
  position: absolute;
  font-size: 8rem;
  opacity: 0.06;
  top: 50%;
  left: 10%;
  transform: translateY(-50%) rotate(-15deg);
  pointer-events: none;
  transition: all 0.3s ease;
}

.work-moment::after {
  content: '☕';
  position: absolute;
  font-size: 6rem;
  opacity: 0.04;
  top: 50%;
  right: 10%;
  transform: translateY(-50%) rotate(20deg);
  pointer-events: none;
  transition: all 0.3s ease;
}

.work-moment:hover {
  border-radius: 28px;
  border-color: rgba(242, 163, 60, 0.5);
}

.work-moment:hover::before {
  opacity: 0.12;
  transform: translateY(-50%) rotate(-20deg) scale(1.1);
}

.work-moment:hover::after {
  opacity: 0.08;
  transform: translateY(-50%) rotate(25deg) scale(1.1);
}

[data-theme="dark"] .work-moment {
  background: linear-gradient(135deg, rgba(242, 163, 60, 0.05) 0%, rgba(255, 107, 157, 0.05) 100%);
  border-color: rgba(242, 163, 60, 0.4);
}

.moment-intro {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange, #f2a33c);
  margin-bottom: 0.75rem;
}

.moment-text {
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
}

/* ==========================================
   CTA ENHANCEMENTS
   ========================================== */
.cta-meta {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.btn-cta-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-cta-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(242, 163, 60, 0.4);
}

/* ==========================================
   HERO TITLE WRAPPING
   ========================================== */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-type-wrap {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  white-space: nowrap;
}

/* ==========================================
   HERO COMMAND ENHANCEMENTS
   ========================================== */
.hero-command {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.hero-command::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange, #f2a33c);
  transition: width 0.3s ease;
}

.hero-command:hover::before {
  width: 100%;
}

.hero-command .command-prefix {
  font-weight: 700;
  margin-right: 0.5rem;
  color: var(--orange, #f2a33c);
}

/* ==========================================
   PHILOSOPHY ITEMS PUNCHIER
   ========================================== */
.philosophy-quote em {
  font-style: normal;
  color: var(--orange, #f2a33c);
  position: relative;
}

.philosophy-quote em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f2a33c, #ff6b9d);
  opacity: 0.5;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
  .how-i-work-grid {
    gap: 1.25rem;
  }

  .work-principle {
    padding: 1.5rem;
  }

  .work-moment {
    padding: 2rem 1.5rem;
  }

  .work-moment::before {
    font-size: 6rem;
    left: 5%;
  }

  .work-moment::after {
    font-size: 4rem;
    right: 5%;
  }

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

  .skill-proof {
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
  }
}

/* ==========================================
   MICRO-INTERACTIONS & POLISH
   ========================================== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(242, 163, 60, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(242, 163, 60, 0);
  }
}

.work-principle:hover .principle-number {
  animation: pulse-glow 2s infinite;
}

/* Smooth scroll behavior for navigation */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: var(--orange, #f2a33c);
  color: white;
}

::-moz-selection {
  background: var(--orange, #f2a33c);
  color: white;
}

/* Focus visible for accessibility */
.hero-command:focus-visible,
.work-principle:focus-visible {
  outline: 3px solid var(--orange, #f2a33c);
  outline-offset: 4px;
}

/* ==========================================
   SCROLL-TRIGGERED ANIMATIONS
   ========================================== */
.philosophy-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.philosophy-item:nth-child(1) { animation-delay: 0.1s; }
.philosophy-item:nth-child(2) { animation-delay: 0.2s; }
.philosophy-item:nth-child(3) { animation-delay: 0.3s; }
.philosophy-item:nth-child(4) { animation-delay: 0.4s; }

/* Work principles - staggered scroll reveal delays */
.work-principle:nth-child(1) { transition-delay: 0s; }
.work-principle:nth-child(2) { transition-delay: 0.1s; }
.work-principle:nth-child(3) { transition-delay: 0.2s; }
.work-principle:nth-child(4) { transition-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .philosophy-item,
  .work-principle {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .work-principle:hover .principle-number {
    animation: none;
  }
}

/* ==========================================
   FOOTER ADJUSTMENTS
   ========================================== */
.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column ul li {
  margin: 0;
}

.footer-signature {
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.footer-bottom {
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}
