/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

:root {
  --bg: url("https://raymarkdagang.files.wordpress.com/2024/09/173660144352541228.png");
  --text: #f4f4f4;
  --muted: #cccccc;
  --accent: #ff5252;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
  background: var(--bg) no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
}

.about-me {
  position: relative;
  min-height: 100vh;
}

.overlay {
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  color: var(--accent);
}

p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .overlay {
    padding: 1rem;
    margin: 0 1rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  p {
    font-size: 0.9rem;
  }
}

/* ---------------------------
   Typewriter Effect
---------------------------- */
.typewriter {
  display: inline-block;
  border-right: 2px solid var(--muted);
  white-space: nowrap;       /* keeps text on one line */
  overflow: hidden;          /* hides overflow while typing */
  animation: typing 4s steps(60, end), blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--muted); }
}