/* ========== INDEX PAGE STYLES ========== */

/* ========== HERO ========== */
.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero .avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 3px solid var(--color-accent-soft);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}

.hero .avatar-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* Pixel art needs crispy rendering */
.hero .avatar-wrap img:nth-child(5) { image-rendering: pixelated; }

/* 6 images: 10s first hold, 10s each after, 60s total cycle */
.hero .avatar-wrap img:nth-child(1) { animation: ava1 60s ease-in-out forwards; }
.hero .avatar-wrap img:nth-child(2) { animation: ava2 60s ease-in-out forwards; }
.hero .avatar-wrap img:nth-child(3) { animation: ava3 60s ease-in-out forwards; }
.hero .avatar-wrap img:nth-child(4) { animation: ava4 60s ease-in-out forwards; }
.hero .avatar-wrap img:nth-child(5) { animation: ava5 60s ease-in-out forwards; }
.hero .avatar-wrap img:nth-child(6) { animation: ava6 60s ease-in-out forwards; }

@keyframes ava1 { 0% { opacity: 1; } 14% { opacity: 1; } 17% { opacity: 0; } }
@keyframes ava2 { 14% { opacity: 0; } 17% { opacity: 1; } 31% { opacity: 1; } 34% { opacity: 0; } }
@keyframes ava3 { 31% { opacity: 0; } 34% { opacity: 1; } 48% { opacity: 1; } 51% { opacity: 0; } }
@keyframes ava4 { 48% { opacity: 0; } 51% { opacity: 1; } 64% { opacity: 1; } 67% { opacity: 0; } }
@keyframes ava5 { 64% { opacity: 0; } 67% { opacity: 1; } 81% { opacity: 1; } 84% { opacity: 0; } }
@keyframes ava6 { 81% { opacity: 0; } 84% { opacity: 1; } 100% { opacity: 1; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--color-link);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero .location {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero .location i { color: var(--color-accent); margin-right: 0.25rem; }

.hero .intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 550px;
  margin: 0 auto 2rem;
}

.hero .contact-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero .contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4em 0.9em;
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-text);
  background: var(--color-card-bg);
  transition: all 0.2s ease;
  text-decoration: none;
}

.hero .contact-row a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.hero .contact-row a i { color: var(--color-accent); }

/* ========== HERO ENTRANCE (disabled) ========== */

/* ========== SECTIONS ========== */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title i { color: var(--color-accent); font-size: 0.9em; }

/* ========== STORY CARDS ========== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.story-card,
.story-card:hover,
.story-card:visited,
.story-card:focus {
  display: block;
  cursor: pointer;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.story-card .card-icon {
  font-size: 1.75rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.story-card .card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.story-card .card-teaser {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.story-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-link);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.story-card:hover .card-cta i {
  animation: nudge-right 0.3s ease;
}

/* View Transition names for icon morph */
#card-team .card-icon { view-transition-name: icon-team; }
#card-scale .card-icon { view-transition-name: icon-scale; }
#card-vp .card-icon { view-transition-name: icon-vp; }
#card-api .card-icon { view-transition-name: icon-api; }
#card-zendesk .card-icon { view-transition-name: icon-zendesk; }

@keyframes nudge-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ========== SKILLS ========== */
.skills-section {
  background: var(--color-bg-alt);
  max-width: 100%;
  padding: 3rem 1.5rem;
}

.skills-inner {
  max-width: 900px;
  margin: 0 auto;
}

.skills-group {
  margin-bottom: 1.5rem;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.skills-group-label i { color: var(--color-accent); }

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-badge {
  display: inline-block;
  padding: 0.45em 0.9em;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  background: transparent;
  white-space: nowrap;
}

.skill-badge.success {
  border-color: #4da568;
  color: #4da568;
}

.skill-badge.salesforce {
  border-color: #0b8ac9;
  color: #0b8ac9;
}

[data-theme="dark"] .skill-badge.success {
  border-color: #8fd4a0;
  color: #8fd4a0;
}

[data-theme="dark"] .skill-badge.salesforce {
  border-color: #44b8e8;
  color: #44b8e8;
}

/* ========== EDUCATION ========== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.edu-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
}

.edu-card .degree {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.edu-card .school {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.edu-card .distinction {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35em 0.8em;
  border: 2px solid #4da568;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4da568;
}

[data-theme="dark"] .edu-card .distinction {
  border-color: #8fd4a0;
  color: #8fd4a0;
}

/* ========== RECOMMENDATIONS ========== */
.recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.rec-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  font-style: italic;
}

.rec-card .rec-quote {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.rec-card .rec-attribution {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-card-border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ========== SCROLL ANIMATIONS (disabled) ========== */

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .story-grid { grid-template-columns: 1fr; }
  .hero .contact-row { gap: 0.5rem; }
  .footer-links { flex-wrap: wrap; }
}
