/* ==========================================
   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(--accent, #059669);
  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(--accent, #059669);
}

.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(--accent, #059669);
  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: 2.5rem 2.5rem 2.25rem;
  background: var(--surface-1);
  border: 1px solid rgba(60, 40, 20, 0.08);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.04);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  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);
}

@media (hover: hover) {
  .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);
}

@media (hover: hover) {
  [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(--accent, #059669);
  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.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.work-principle p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
  flex: 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: 1px dashed rgba(242, 163, 60, 0.3);
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-smooth);
}

.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 var(--duration-slow) var(--ease-smooth);
}

.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 var(--duration-slow) var(--ease-smooth);
}

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

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

@media (hover: hover) {
  .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(--accent, #059669);
  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: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

@media (hover: hover) {
  .btn-cta-primary:hover::before {
    width: 300px;
    height: 300px;
  }
}

@media (hover: hover) {
  .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;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.hero-command::before {
  display: none;
}

.hero-command .command-prefix {
  display: none;
}

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

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

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

  .work-principle {
    padding: 2rem 1.5rem;
    min-height: 180px;
  }

  .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
   ========================================== */
/* Pulse glow uses CSS variable for theme-aware color */
.principle-number {
  --glow-color: rgba(242, 163, 60, 0.4);
  --glow-color-end: rgba(242, 163, 60, 0);
}

:root[data-theme="dark"] .principle-number {
  --glow-color: rgba(52, 211, 153, 0.5);
  --glow-color-end: rgba(52, 211, 153, 0);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--glow-color);
  }
  50% {
    box-shadow: 0 0 0 8px var(--glow-color-end);
  }
}

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

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

/* Selection styling - Accessible teal color */
::selection {
  background: rgba(56, 178, 172, 0.35);
  color: #1a1a1a;
}

::-moz-selection {
  background: rgba(56, 178, 172, 0.35);
  color: #1a1a1a;
}

/* Focus visible for accessibility */
.hero-command:focus-visible,
.work-principle:focus-visible {
  outline: 3px solid #38b2ac;
  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;
  }

  @media (hover: hover) {
    .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;
}

/* ==========================================
   DARK MODE - EMERALD ACCENT OVERRIDES
   Converts to elegant emerald green
   ========================================== */

:root[data-theme="dark"] {
  --orange: #34d399;
  --silver-accent: #34d399;
  --silver-glow: rgba(52, 211, 153, 0.15);
  --silver-subtle: rgba(52, 211, 153, 0.1);
}

/* Skill Proof Lines - Emerald accent */
[data-theme="dark"] .skill-proof {
  border-left-color: var(--silver-accent, #34d399);
  background: rgba(52, 211, 153, 0.08);
}

/* How I Work Tagline - Silver */
[data-theme="dark"] .how-i-work-tagline {
  color: var(--silver-accent, #34d399);
}

/* Principle Number Badge - Silver theme */
[data-theme="dark"] .principle-number {
  color: var(--silver-accent, #34d399);
  background: rgba(52, 211, 153, 0.12);
}

/* Work Moment Section - Silver/purple gradient */
[data-theme="dark"] .work-moment {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(52, 211, 153, 0.25);
}

@media (hover: hover) {
  [data-theme="dark"] .work-moment:hover {
    border-color: rgba(52, 211, 153, 0.45);
  }
}

/* Moment Intro - Silver */
[data-theme="dark"] .moment-intro {
  color: var(--silver-accent, #34d399);
}

/* Hero Command underline - Silver */
[data-theme="dark"] .hero-command::before {
  background: var(--silver-accent, #34d399);
}

/* CTA Button hover glow - Silver */
@media (hover: hover) {
  [data-theme="dark"] .btn-cta-primary:hover {
    box-shadow: 0 12px 32px rgba(52, 211, 153, 0.25);
  }
}

/* Selection in dark mode - Teal/Silver */
[data-theme="dark"] ::selection {
  background: rgba(56, 178, 172, 0.4);
  color: #ffffff;
}

[data-theme="dark"] ::-moz-selection {
  background: rgba(56, 178, 172, 0.4);
  color: #ffffff;
}

/* Focus styles - Silver */
[data-theme="dark"] .hero-command:focus-visible,
[data-theme="dark"] .work-principle:focus-visible {
  outline-color: var(--silver-accent, #34d399);
}

/* Philosophy items highlight - Silver glow */
[data-theme="dark"] .philosophy-item.active,
@media (hover: hover) {
  [data-theme="dark"] .philosophy-item:hover {
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.12),
                inset 0 0 20px rgba(52, 211, 153, 0.05);
    border-color: rgba(52, 211, 153, 0.3);
  }
}

/* Work Principle hover glow - Silver */
@media (hover: hover) {
  [data-theme="dark"] .work-principle.is-visible:hover {
    box-shadow: 0 12px 32px rgba(52, 211, 153, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.3);
  }
}
