/* ============================================
   CARD SIZING (2 columns max, readable text)
   ============================================ */

.md-typeset .grid.cards {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.25rem !important;
}

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > * {
  padding: 1.5rem 1.75rem !important;
  min-height: auto !important;
}

.md-typeset .grid.cards ul {
  padding-left: 1.25rem !important;
  margin: 0.5rem 0 0 0 !important;
}

.md-typeset .grid.cards li {
  margin-bottom: 0.4rem !important;
  line-height: 1.55 !important;
}

.md-typeset .grid.cards p strong,
.md-typeset .grid.cards h3 {
  font-size: 1.1rem !important;
  margin-bottom: 0.5rem !important;
}

@media (max-width: 768px) {
  .md-typeset .grid.cards {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   PROFILE IMAGE: LEFT-ALIGNED, TEXT WRAPS AROUND
   ============================================ */

.profile-image {
  width: 180px !important;
  height: 220px !important;
  object-fit: cover;
  border-radius: 8px;
  float: left !important;
  margin: 0.5rem 1.75rem 1rem 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  shape-outside: margin-box;
}

/* Clear float after the bio paragraph so subsequent content doesn't wrap */
.profile-image + p::after {
  content: "";
  display: block;
  clear: both;
}

.about-image {
  max-width: 400px;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
}

.contact-card {
  background: var(--md-primary-fg-color--light, #e8f4f8);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
  clear: both;
}

@media (max-width: 600px) {
  .profile-image {
    float: none !important;
    margin: 1rem auto !important;
    display: block;
    width: 150px !important;
    height: 180px !important;
  }
}

/* ============================================
   TOOL ICONS IN SKILLS LIST
   ============================================ */

.tool-list { 
  list-style: none; 
  padding: 0; 
  margin: 0.75rem 0 0 0; 
}

.tool-list li { 
  display: flex; 
  align-items: center; 
  margin-bottom: 0.6rem; 
  font-size: 0.95rem;
}

.tool-list img { 
  width: 22px; 
  height: 22px; 
  margin-right: 12px; 
  flex-shrink: 0;
}

/* ============================================
   BOLD HOVER INTERACTIONS
   ============================================ */

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > * {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.35s ease, 
              border-color 0.3s ease !important;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > *:hover {
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(76, 175, 80, 0.25), 
              0 0 0 2px var(--md-primary-fg-color) !important;
  border-color: var(--md-primary-fg-color) !important;
}

.md-typeset .grid.cards img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  border-radius: 8px;
}

.md-typeset .grid.cards > ul > li:hover img,
.md-typeset .grid.cards > *:hover img {
  transform: scale(1.08) !important;
}

.md-typeset .md-button {
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.md-typeset .md-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4),
              0 0 30px rgba(76, 175, 80, 0.2);
}

.md-typeset .md-button--primary:hover {
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6),
              0 0 40px rgba(76, 175, 80, 0.3);
}

.profile-image {
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease !important;
}

.profile-image:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4),
              0 0 60px rgba(76, 175, 80, 0.25) !important;
  filter: brightness(1.05);
}

.about-image {
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.about-image:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.md-typeset a:not(.md-button):not(.md-nav__link):not(.md-header__button) {
  position: relative;
  transition: color 0.25s ease;
  font-weight: 500;
}

.md-typeset a:not(.md-button):not(.md-nav__link):not(.md-header__button)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -3px;
  left: 0;
  background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.md-typeset a:not(.md-button):not(.md-nav__link):not(.md-header__button):hover::after {
  width: 100%;
}

.md-typeset h2, .md-typeset h3 {
  transition: color 0.3s ease, transform 0.3s ease;
}

.md-typeset h2:hover {
  color: var(--md-primary-fg-color);
  transform: translateX(8px);
}

.md-tabs__link, .md-nav__link {
  transition: color 0.25s ease, transform 0.25s ease !important;
}

.md-tabs__link:hover {
  transform: translateY(-2px);
  color: var(--md-accent-fg-color) !important;
}

/* ============================================
   SCROLL FADE-IN ANIMATIONS
   ============================================ */

.md-typeset h2,
.md-typeset .grid.cards {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.md-typeset h2.is-visible,
.md-typeset .grid.cards.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   HERO TITLE: BLACK, BOLD, CUSTOM FONT
   No background band; works on plain white
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

.typewriter-hero {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 3rem !important;
  color: #1a1a1a !important;
  letter-spacing: -1px;
  line-height: 1.1;
  display: inline-block;
}

.typewriter-cursor {
  background: #2E7D32 !important;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  height: 1em;
}

@media (max-width: 768px) {
  .typewriter-hero {
    font-size: 2rem !important;
  }
}

/* ============================================
   ROLE TAGLINE: VISIBLE ON WHITE BACKGROUND
   Title leads in green, focus follows in dark, location small
   ============================================ */

.role-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.25rem;
  margin: 1.25rem 0 2rem 0;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.3;
  clear: both;
}

/* Primary title: largest, vivid green, bold */
.role-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2E7D32;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.role-title::before {
  content: "🛰️";
  font-size: 1.4rem;
}

/* Focus area: medium, dark, with vertical green bar */
.role-focus {
  font-size: 1.05rem;
  font-weight: 500;
  color: #3E4D45;
  padding-left: 1.25rem;
  border-left: 3px solid #66BB6A;
  letter-spacing: 0.2px;
}

/* Location: small, muted gray */
.role-location {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6B7570;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.3px;
}

.role-location::before {
  content: "📍";
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .role-tagline {
    gap: 0.5rem;
  }
  .role-title {
    font-size: 1.35rem;
  }
  .role-title::before {
    font-size: 1.15rem;
  }
  .role-focus {
    font-size: 0.95rem;
    padding-left: 1rem;
  }
  .role-location {
    font-size: 0.85rem;
  }
}
