@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

.status-pill[data-status="construction"] .status-dot {
  background: #9b59b6;
  box-shadow: 0 0 0 3px rgba(155,89,182,0.18);
}

.status-pill { display: inline-flex; align-items: center; gap: 0.55em; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; }
.status-pill[data-status="construction"] .status-dot { background: #9b59b6; }

html, body {
    margin: 0;
    padding: 0;
    background: #2c3e50;
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

h1, h2 {
  letter-spacing: -0.03em;
}

/* === Header Styles === */

header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding-top: env(safe-area-inset-top);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75em 1rem;
}

.header-container h1 {
  margin: 0;
}


header a {
    color: #ecf0f1;
    text-decoration: none;
}

/* === Nav Bar Styles === */

.header-container nav {
    background-color: #2c3e50;
}

.header-container nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.25em;
}

.header-container nav a.active {
    color: #3498db;
    font-weight: 700;
}

.header-container nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5em;
}

.header-container nav li {
    position: relative;
    padding-left: 1.5em;
}

.header-container nav a {
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.header-container nav li:hover a {
  color: #3498db;
  transform: translateY(-1px);
}

.header-container nav li::before {
    content: " ";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1.2em;
    width: 1px;
    background-color: rgba(236, 240, 241, 0.6);
    color: #ecf0f1;
}

.header-container nav li:first-child::before {
    content: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(52, 152, 219, 0.7);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---- Mobile Nav Toggle ---- */

.site-nav { 
  position: relative;
  margin-left: auto;
 }

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;

  
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #ecf0f1;
  border-radius: 999px;
}

.site-nav.is-open .nav-toggle {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.30);
}


.nav-list {
  display: flex;           
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5em;
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* mobile dropdown (animated) */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(236, 240, 241, 0.25);
  padding-top: 0.5rem;
  padding: 0.5rem 0.75rem 0.5rem 0.75rem;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 240ms ease, opacity 200ms ease, transform 200ms ease;
}

/* when open */
.site-nav.is-open .nav-list {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

  /* remove the desktop separators/padding that break mobile taps */
  .header-container nav li {
    padding-left: 0;
  }

  .header-container nav li::before {
    content: none;
  }

  /* make links finger-friendly */
  .header-container nav a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.1em;
  }

  /* hover effects can be annoying on touch */
  .header-container nav li:hover a {
    font-size: 1.1em;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .footer-cards { min-height: 0; }
  .quote { font-size: clamp(1.2rem, 5vw, 1.8rem); }
}



/* === Hero Styles === */


/* Hero Layout */

#hero {
    padding: 4em 1em;
    color:#ecf0f1;
    background-color: #2c3e50;
    border: none;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 3em;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: clamp(0px, 10vw, 220px);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text h2 {
    margin-top: 0;
    font-size: 4.5em;
    text-align: center;
    margin-bottom: 0.2em;
}

.hero-text p {
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 1.5em;
    font-size: 1.9em;
    margin-top: 0;
}

.hero-image img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    filter: contrast(0.98) saturate(0.97);
}

.hero-intro {
    max-width: 720px;
    text-align: center;
    margin: 0.75em auto 2em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        padding-left: 0;
    }

    .hero-image img {
        width: 260px;
        height: 260px;
        border: 3px solid rgba(44, 62, 80, 0.15);
    }
}

.hero-image {
    flex-shrink: 0;
}

/* Button Layout */


.btn {
    display: inline-block;
    padding: 0.65em 1.6em;
    border-radius: 999px;
    background-color: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2em;
    transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.btn:hover {
    background-color: #1f2f3f;
    color: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal .tool-card {
  transition-delay: 0ms;
}

.reveal.is-visible .tool-card:nth-child(1) { transition-delay: 80ms; }
.reveal.is-visible .tool-card:nth-child(2) { transition-delay: 160ms; }
.reveal.is-visible .tool-card:nth-child(3) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* === Main Styles === */

main {
    background-color: #2c3e50;
    color:#ecf0f1;
    overflow: hidden;
}
    
main h3 {
    margin-top: 0;
}

section {
    padding: 4em 1em;
}

/* About me Layout */

#about-me .about-text {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.5em 2.25em;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
}

#about-me .aboutTitle {
    margin: 0;
    font-size: clamp(1.7rem, 2.3vw, 2.4rem);
    letter-spacing: 0.02em;
    position: relative;
    padding-left: 0.9em;
}

#about-me .aboutTitle::before {
   content: " ";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 6px;
    height: 1.1em;
    border-radius: 999px;
    background: rgba(236,240,241,0.75);
}

#about-me .aboutTitle::after{
    content: "";
    display: block;
    margin-top: 0.55em;
    height: 1px;
    width: min(520px, 100%);
    background: rgba(255,255,255,0.14);
}

#about-me .aboutTitle:first-of-type {
    margin-top: 0;
}

#about-me p {
    margin: 0.9em 0 0;
    line-height: 1.7;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    max-width: 70ch;
    opacity: 0.95;
}

#about-me .aboutTitle:not(:first-of-type){
    margin-top: 2.2em;
}

#about-me li {
    padding: 0.55em 0.9em;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: clamp(1.0rem, 1.1vw, 1.1rem);
    line-height: 1;
}

#about-me ul {
    list-style: none;
    padding: 0;
    margin: 1.1em 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
}

#about-me li:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.10);
}

@media (max-width: 768px) {
    #about-me .about-text {
        padding: 2em 1.25em;
    }
}

/* Toolbox Layout */

#toolbox {
  background: #34495e;
}

.toolbox-inner {
  max-width: 980px;
  margin: 0 auto;
}

.toolbox-title {
  margin: 0 0 0.35em;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
}

.toolbox-sub {
  margin: 0.35em 0 1.8em;
  font-size: 1.1rem;
  opacity: 0.95;
  letter-spacing: 0.01em;
  max-width: 70ch;
}


.toolbox-sub::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 0.9em;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25em;
}

.tool-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.4em;
}

.tool-card h4 {
  margin: 0 0 0.6em;
}

.tool-card p {
  margin: 0.6em 0 0;
  opacity: 0.92;
  line-height: 1.65;
  font-weight: 600;
  opacity: 0.96;
}

/* divider between intro paragraph and bullets */
.tool-card .tool-bullets {
  margin: 1.1em 0 1em;
  padding-top: 1em;
  padding-left: 1.1em;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.tool-card .tool-bullets li {
  margin: 0.45em 0;
  line-height: 1.55;
}

.tag-row { 
    display:flex; flex-wrap:wrap; gap:0.6em; 
}

.tag {
  padding: 0.45em 0.75em;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
  line-height: 1;
}

.tool-card {
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
}



/* === Footer Styles === */


/* Card Layout */


.footer-cards {
    background-color: #34495e;
    padding: 2em 1em;
    display: flex;
    gap: 2em;
    align-items: stretch;
    min-height: 420px;
}

.card {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5em;
    color: #ecf0f1;
    align-items: center;
}

/* Quote Card */

.quote {
    font-style: italic;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0 1em;
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    min-height: 65%;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.quote-author {
    font-weight: 700;
    font-size: clamp(1.3rem, 1.6vw, 1.7rem);
    opacity: 0.95;
    margin: 0.4em 0 0.9em 0;
    text-align: center;
    letter-spacing: 0.03em;
}

.quote-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    position: relative;
}

.quote-controls {
    position: absolute;
  top: 50%;
  left: 1.1em;
  right: 1.1em;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  pointer-events: none;
}

.quote-controls button {
    pointer-events: auto;
  background: #ecf0f1;          
  color: #34495e;               
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.quote-controls button:hover {
    background: #34495e;
    color: #ecf0f1;
    transform: translateY(-2px);
}

.quote-controls button:active {
    transform: translateY(0);
}

.quote-card.card {
    padding: 1.2em;
}

.quote-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 520ms ease, transform 520ms ease;
    will-change: opacity, transform;
    align-items: center;
    text-align: center;
    gap: 0.6em;
}

.quote-card.is-transitioning .quote-content {
    opacity: 0;
    transform: translateX(8px);
}

/* Quote dots */

/* Progress ring dots */

.quote-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;
  margin-top: 0.75em;
  padding-bottom: 0.25em;
}

.quote-dot {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
  opacity: 0.55;
  transform: scale(0.98);
  transition: transform 180ms ease, opacity 180ms ease;
}

.quote-dot.active {
  opacity: 1;
  transform: scale(1.12);
}

/* center fill dot */
.quote-dot::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  transform: translate(-50%, -50%);
}

/* SVG ring centered on the dot */
.quote-dot .ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  overflow: visible;
  display: block;
}

.ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.18);
  stroke-width: 2.4;
}

.ring-progress {
  fill: none;
  stroke: rgba(255,255,255,0.95);
  stroke-width: 2.4;
  stroke-linecap: round;

  
  transform: rotate(-90deg);
  transform-origin: 12px 12px;
}

/* Song Card */

.song-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .footer-cards {
        flex-direction: column;
    }
}

.song-card h3 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 1em;
    font-weight: 600;
    text-align: center;
}

/* Footer hr */

footer hr {
    border: none;
    height: 1px;
    background-color: rgba(255,255,255,0.15);
    margin: 0;
}

/* Bottom Footer */


.footer-split {
    background-color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25em 1em;
    color: #ecf0f1;
}

.footer-left {
    text-align: left;
}

.footer-middle {
    text-align: center;
}

.footer-middle a {
    color: inherit;
}

.footer-right {
    text-align: right;
}

/* Fake fetch loading state */
.status-pill.is-loading .status-dot {
  animation: pulseDot 1.1s ease-in-out infinite;
}

.status-pill.is-loading .status-text {
  position: relative;
}

.status-pill.is-loading .status-text::after {
  content: "";
  display: inline-block;
  width: 10ch;
  height: 0.9em;
  margin-left: 0.5em;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  vertical-align: -0.15em;
  animation: shimmer 1.2s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50%      { transform: scale(1.25); opacity: 1; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.85; }
}
