body {
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    padding: 50px;
    margin: 0;
}

h1 {
    color: #ffffff;
    margin-bottom: 10px;
}

p {
    color: #cccccc;
    font-size: 18px;
    margin: 5px 0;
}

a {
    color: #90caf9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: #3e3c3c;
    margin: 40px 0;
}

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.project {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 15px rgba(171, 171, 171, 0.477);
}

.project h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.project p {
    margin-bottom: 10px;
    color: #cccccc;
}

.about {
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: left;
    line-height: 1.6;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(171, 171, 171, 0.477);
}

p {
    text-indent: 2em;
}

.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.skill-group {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(171, 171, 171, 0.477);
    text-align: left;
}

.skill-group h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.skill-group ul {
    list-style-type: square;
    padding-left: 20px;
}

.skill-group li {
    color: #cccccc;
    line-height: 1.6;
}
.typewriter::after {
    content: "Hello, I'm Tanner Poulton";
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    border-right: 2px solid #90caf9;
    animation:
        typing 3s steps(30) forwards,
        fade-cursor 1.5s ease-out 3s forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes fade-cursor {
    0%   { border-right-color: #90caf9; }
    25%  { border-right-color: rgba(144, 202, 249, 0.6); }
    50%  { border-right-color: rgba(144, 202, 249, 0.4); }
    75%  { border-right-color: rgba(144, 202, 249, 0.2); }
    100% { border-right-color: transparent; }
}

#pi-background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

#pi-background canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* Homepage project card */
.project-card {
  display: block;
  max-width: 520px;
  margin: 0 auto 32px auto;
  padding: 20px 22px;

  background: #1e1e1e;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  text-decoration: none;
  color: inherit;

  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
  transition: border-color 180ms ease,
              box-shadow 180ms ease,
              transform 180ms ease;
}

.project-card h3 {
  margin: 0 0 8px 0;
  font-weight: 700;
}

.project-card p {
  margin: 0;
  opacity: 0.85;
  line-height: 1.5;
}

.project-card:hover {
  border-color: rgba(144, 202, 249, 0.45);
  box-shadow: 0 0 22px rgba(144, 202, 249, 0.15);
  transform: translateY(-2px);
}

/* Main navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto 2rem;
    padding: 0.75rem 1rem;
    max-width: 700px;
    border: 1px solid rgba(135, 206, 250, 0.25);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.75);
    box-shadow: 0 0 18px rgba(135, 206, 250, 0.12);
}

.main-nav a {
    color: #8fd0ff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    color: #ffffff;
    background: rgba(135, 206, 250, 0.14);
}

