/* 90s pastel background + subtle grid */
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%) -20px 0/40px 40px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%) -20px 0/40px 40px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%) 0px 0/40px 40px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%) 0px 0/40px 40px,
    linear-gradient(135deg, #ffd1e8, #ffb6d9);
  color: #2b1c27;
}

.counter {
    background: #3a2323;
    color: #ffd1e8;
    padding: 5px 10px;
    border: 2px solid #f06292;
    display: inline-block;
    margin: 5px 0;
    font-family: 'Courier New', monospace;
}

#loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%) -20px 0/40px 40px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%) -20px 0/40px 40px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%) 0px 0/40px 40px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%) 0px 0/40px 40px,
    linear-gradient(135deg, #ffd1e8, #ffb6d9);
  z-index: 9999;
}

/* Navigation Bar */
.nav-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 15px;
  flex-wrap: wrap;
}

.nav-button {
  background: linear-gradient(135deg, #fff7fc, #ffe6f4);
  border: 3px solid #ff8dbb;
  border-radius: 12px;
  padding: 20px 36px;
  font-family: 'Press Start 2P', cursive;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5b1438;
  cursor: pointer;
  box-shadow: 3px 3px 0 #f06292;
  transition: all 0.2s ease;
}

.nav-button:hover {
  background: linear-gradient(135deg, #ffe6f4, #ffd1e8);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #f06292;
}

.nav-button.active {
  background: linear-gradient(135deg, #ff9ac7, #ffc8e6);
  border-color: #f06292;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
  transform: translate(2px, 2px);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.container {
  width: 100%;
  max-width: none;
  padding: 0 15px 40px;
  margin: 0;
}

.card {
  background-color: #fff7fc;
  border: 3px dotted #ff8dbb;
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: 4px 4px 0 #f06292;
}

.hero {
  margin-top: 32px;
}

.image {
  background-image: url("https://i.pinimg.com/736x/b3/0a/4d/b30a4d69e94c09a9ad551a3c80695c08.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  border: 5px solid #fdf5e6;
  box-shadow: 4px 4px 0 #f06292;
}

.profession {
  margin-top: 18px !important;
}

.hero-title {
  display: inline-block;
  background-color: #ffebf7;
  padding: 10px 18px;
  border-radius: 12px;
  border: 3px solid #ff9ac7;
  font-weight: 800;
  color: #5b1438;
  font-size: 26px;
  text-shadow: 1px 1px #ffe0f0;
}

h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5b1438;
}

.about-me {
  text-align: left;
  color: #2b1c27;
}

.about-me p {
  font-size: 18px;
  line-height: 1.7;
  color: #2b1c27;
}

.links-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin-top: 0;
  text-align: center;
}

.links-container h3 {
  color: #5b1438;
  margin-bottom: 10px;
}

.links-container a {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  color: #414345 !important;
  border-radius: 12px !important;
  border: 3px solid #ffafd6 !important;
  box-shadow: 3px 3px 0 #f06292;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.links-container a:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #f06292;
}

/* Icons */
.icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.icons a {
  text-decoration: none;
}

.icons a svg {
  width: 36px;
  height: 36px;
  stroke: #5b1438;
  transition: all 0.2s ease;
}

.icons a svg:hover {
  stroke: #ff2e7e;
  transform: scale(1.1);
}

/* Contact */
.contact {
  text-align: center;
  color: #2b1c27;
}

.contact-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: bold;
}

.contact .info {
  font-size: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.contact .info span {
  font-size: 16px;
}

.contact .info a {
  color: #5b1438;
  text-decoration: none;
}

.contact .info a:hover {
  text-decoration: underline;
}

/* Resume layout */
.resume {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 0;
}

.resumeContainer {
  display: flex;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.column {
  flex: 1 1 300px;
  padding: 0;
  background: transparent;
  border: none;
  margin: 0;
}

.column h3 {
  margin-bottom: 20px;
}

.timeline {
  list-style-type: none;
  position: relative;
  padding-left: 40px;
  margin: 0;
}

.timeline:before {
  content: '';
  background: #ffb6d9;
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 3px;
  height: 100%;
  z-index: 1;
  border-radius: 3px;
}

.timeline li {
  margin-top: 18px;
  margin-bottom: 18px;
  margin-left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #f8a1c4;
  overflow: hidden;
  position: relative;
}

.timeline li h4 {
  background: linear-gradient(90deg, #ff9ac7, #ffc8e6);
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 800;
  color: #3f1028;
}

.timeline li h4 span {
  font-weight: bold;
}

.timeline li p {
  background-color: #ffffff;
  padding: 12px 16px 14px;
  border-radius: 0 0 12px 12px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.timeline li p a {
  color: #5b1438;
  text-decoration: underline;
}

.timeline li p a:hover {
  color: #ff2e7e;
}

.timeline li:before {
  content: '';
  background: #fff;
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  border: 3px solid #ff6b9f;
  right: 12px;
  width: 18px;
  height: 18px;
  top: 16px;
  z-index: 2;
}


.timeline li { position: relative; padding-left: 64px; }
.toggle-circle {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #f06292;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
.toggle-circle:focus { outline: 2px solid rgba(240,98,146,0.3); }
.toggle-circle::after { content: '+'; color: #f06292; font-weight: 700; }
.timeline li.open .toggle-circle::after { content: '\2212'; }

.collapsible-content { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.timeline li.open .collapsible-content { max-height: 1000px; }

.footer-bar {
  margin-top: auto;
  text-align: center;
  padding: 8px 10px 14px;
  font-size: 12px;
  color: #5b1438;
  font-family: 'Nunito', sans-serif;
}

.footer-bar .heart {
  color: #ff2e7e;
}

.ceramics-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

@media (max-width: 700px) {
  .hero-title {
    font-size: 20px;
  }

  .nav-button {
    font-size: 8px;
    padding: 10px 16px;
  }

  h3 {
    font-size: 14px;
  }

  .links-container a {
    font-size: 14px;
  }

  .profession span {
    font-size: 40px !important;
  }

  .resumeContainer {
    flex-direction: column;
  }
}

.loading-bar {
  max-width: 480px;
  margin: 20px auto 0;
  text-align: left;
}

.loading-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #5b1438;
}

.loading-track {
  position: relative;
  width: 100%;
  height: 22px;
  border-radius: 8px;
  border: 3px solid #ff8dbb;
  background: repeating-linear-gradient(
    45deg,
    #ffe6f4,
    #ffe6f4 6px,
    #ffd1e8 6px,
    #ffd1e8 12px
  );
  overflow: hidden;
}

.loading-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 88%;
  height: 100%;
  background: linear-gradient(90deg, #ff9ac7, #ffc8e6);
  box-shadow: inset 0 0 0 2px #f06292;
  animation: loading-stripes 1.4s linear infinite;
}

@keyframes loading-stripes {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(24px);
  }
}

.loading-label {
  margin-top: 6px;
  font-size: 11px;
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5b1438;
}

.pixel-heart {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: #ff2e7e;
  text-shadow: 1px 1px #ffc8e6;
  margin-left: 4px;
  vertical-align: middle;
}

.cards-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cards-row .card {
  flex: 1 1 45%;
  min-width: 280px;
}
.music .music-preview iframe,
.cards-row .card iframe {
  width: 100%;
  max-width: 480px;
  height: 80px;
  border: 0;
  border-radius: 12px;
}

/* Books gallery */
.books-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.books-gallery a {
  text-decoration: none;
}

.book-cover {
  max-width: 150px;
  height: 220px;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.book-cover:hover {
  transform: scale(1.05);
}

@media (max-width: 700px) {
  .cards-row .card {
    flex: 1 1 100%;
  }
}