/* ---------------------------
   Mobile-First Reset & Base Styles
---------------------------- */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Helvetica', sans-serif;
  background: #f9f9f9;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soft page reveal */
body {
  opacity: 0;
  animation: softReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes softReveal {
  from {
    opacity: 0;
    transform: scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* ---------------------------
   Container
---------------------------- */

.wrapper {
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

/* ---------------------------
   Header
---------------------------- */

.header {
  text-align: center;
  padding: 20px 10px;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #db281f;
  transition: width 0.5s, left 0.5s;
}

.header:hover::after {
  width: 100%;
  left: 0;
}

.header img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: inline-block;
  transition: transform 0.3s ease;
}

.header h3 {
  font-weight: normal;
  font-size: 1.2rem;
  color: #000;
  margin-top: 15px;
}

/* ---------------------------
   Bio Content
---------------------------- */

.bio {
  margin-top: 20px;
  line-height: 1.8;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: #555;
  font-weight: 300;
}

.bio p {
  color: #444;
  margin-bottom: 15px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---------------------------
   Character Animations (Bio only)
---------------------------- */

.bio p .char {
  display: inline-block;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.bio p .char::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #db281f;
  transition: width 0.25s ease;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .bio p .char:hover {
    color: #db281f;
  }
  
  .bio p .char:hover::after {
    width: 100%;
    opacity: 1;
  }
}

/* JavaScript helper class for character splitting */
.splitting .word {
  white-space: nowrap;
}

/* ---------------------------
   Hover effects (only for desktop)
---------------------------- */

@media (hover: hover) and (pointer: fine) {
  .header h1:hover {
    transform: scale(1.01);
    letter-spacing: 1px;
  }

  .header h1 span:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(219, 40, 31, 0.2);
  }
}

/* ---------------------------
   Responsive Upgrades
---------------------------- */

@media (min-width: 600px) {
  .container {
    max-width: 750px;
  }

  .header h1 {
    font-size: 2.8rem;
  }

  .header h3 {
    font-size: 1.5rem;
  }

  .bio {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 900px;
  }

  .header h1 {
    font-size: 3.75rem;
  }

  .header h3 {
    font-size: 1.875rem;
  }

  .bio {
    font-size: 1.1rem;
  }
}
