/* Import comic/techie fonts */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e3eafc 100%), url('https://www.transparenttextures.com/patterns/dots.png');
  background-size: auto, 80px 80px;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  color: #222;
  overflow-x: hidden;
  font-size: 20px;
  -webkit-text-size-adjust: 100%;
}

.comic-nav {
  width: 100%;
  text-align: center;
  padding: 8px 0 12px 0;
  padding-top: calc(8px + env(safe-area-inset-top));
  background: #fffbe7;
  border-bottom: 4px solid #222;
  box-shadow: 0 4px 16px 0 rgba(0,188,212,0.12), 0 2px 0 #00bcd4;
  z-index: 100;
  position: sticky;
  top: 0;
  font-family: 'Bangers','Comic Neue',cursive,sans-serif;
  font-size: 1.1em;
  letter-spacing: 1px;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #00bcd4 #fffbe7;
  -webkit-overflow-scrolling: touch;
}

.comic-nav::-webkit-scrollbar {
  height: 8px;
}
.comic-nav::-webkit-scrollbar-thumb {
  background: #00bcd4;
  border-radius: 8px;
}
.comic-nav::-webkit-scrollbar-track {
  background: #fffbe7;
}

.comic-nav .cool-btn {
  border-radius: 16px 16px 0 0;
  background: #00bcd4;
  color: #fff;
  border: 4px solid #222;
  border-bottom: none;
  box-shadow: 2px 2px 0 #222;
  margin: 0 2px 0 2px;
  padding: 6px 18px;
  font-size: 1em;
  min-width: 90px;
  min-height: 36px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.15s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.2s;
  flex-shrink: 0;
}

/* Right-aligned nav item */
.comic-nav .nav-right { margin-left: auto; }

.comic-nav .cool-btn:hover, .comic-nav .cool-btn.active {
  background: #fffbe7;
  color: #00bcd4;
  box-shadow: 4px 4px 0 #222;
  transform: scale(1.12) rotate(-2deg);
  z-index: 2;
}

main {
  border: 6px double #222;
  border-radius: 32px;
  box-shadow: 0 12px 32px 0 rgba(0,0,0,0.10), 0 0 0 8px #00bcd4;
  background: rgba(255,255,255,0.85);
  margin: 32px auto 32px auto;
  padding-bottom: 32px;
  max-width: 1600px;
  width: 82vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.comic-outline {
  border: 4px solid #222;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #222, 8px 8px 0 #00bcd4;
  background: #fffbe7;
  margin: 48px auto;
  padding: 48px 0 36px 0;
  max-width: 1400px;
  min-width: 320px;
  width: 90vw;
  position: relative;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: unset !important;
}
.comic-outline:hover {
  box-shadow: 8px 8px 0 #222, 12px 12px 0 #00bcd4;
}

.comic-title {
  font-family: 'Bangers', 'Comic Neue', cursive, sans-serif;
  font-size: 2.5em;
  color: #222;
  text-shadow: 2px 2px 0 #00bcd4, 4px 4px 0 #222;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: none;
  padding: 0 2vw;
}
.comic-title::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1.2);
  width: 120%;
  height: 120%;
  background: url('https://svgshare.com/i/13kF.svg') center/contain no-repeat;
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

.animated-highlight {
  background: linear-gradient(90deg, #fffbe7 60%, #00bcd4 100%);
  border-radius: 8px;
  padding: 2px 8px;
  animation: highlightFlash 1.5s infinite alternate;
}
@keyframes highlightFlash {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

.speech-bubble {
  position: relative;
  background: #fffbe7;
  border: 3px solid #222;
  border-radius: 18px;
  padding: 32px 48px;
  margin: 24px auto 0 auto;
  font-size: 1em;
  box-shadow: 2px 2px 0 #222, 8px 8px 0 #00bcd4, 0 8px 32px rgba(0,0,0,0.07);
  max-width: 95vw;
  width: 100%;
  line-height: 1.7;
  min-width: 260px;
  transform: skew(-2deg, 1deg) rotate(-1deg);
  min-width: unset !important;
  box-sizing: border-box;
  word-wrap: break-word;
}
.speech-bubble:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 48px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top: 18px solid #fffbe7;
  border-bottom: 0;
  border-right: 0;
  margin-left: -6px;
  filter: drop-shadow(2px 2px 0 #222);
}

.speech-bubble ul {
  list-style: none;
  padding-left: 0;
  margin: 18px auto 0 auto;
  border-left: 6px solid #00bcd4;
  background: rgba(0,188,212,0.04);
  border-radius: 12px;
  max-width: 100%;
  width: 100%;
}
.speech-bubble ul li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 36px;
  font-size: 1.1em;
  font-weight: 600;
  color: #222;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border-radius: 8px;
  min-height: 32px;
  display: flex;
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.speech-bubble ul li:last-child {
  margin-bottom: 0;
}
.speech-bubble ul li::before {
  content: '\2022'; /* big dot */
  color: #00bcd4;
  font-size: 2em;
  position: absolute;
  left: 8px;
  top: 0;
  line-height: 1;
  font-family: 'Bangers', 'Comic Neue', cursive, sans-serif;
  text-shadow: 2px 2px 0 #222;
}
.speech-bubble ul li:hover {
  background: #e3f7fa;
  color: #00796b;
  box-shadow: 2px 2px 0 #00bcd4;
}

.cool-btn {
  font-family: 'Bangers', 'Comic Neue', cursive, sans-serif;
  background: #00bcd4;
  color: #fff;
  border: 3px solid #222;
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 1.15em;
  box-shadow: 2px 2px 0 #222;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin: 0 8px 8px 0;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cool-btn:hover {
  background: #fffbe7;
  color: #00bcd4;
  box-shadow: 4px 4px 0 #222;
}

/* Techie animated dots background */
.tech-anim-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.techie-dot {
  position: absolute;
  width: 18px; height: 18px;
  background: #00bcd4;
  border-radius: 50%;
  border: 2px solid #222;
  animation: floatDots 6s infinite ease-in-out;
  opacity: 0.7;
}
@keyframes floatDots {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.2); }
  100% { transform: translateY(0) scale(1); }
}

/* Avatar image at the top */
#intro img {
  border: 4px solid #222;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  box-shadow: 4px 4px 0 #00bcd4;
  margin-bottom: 18px;
  background: #fffbe7;
  object-fit: cover;
  position: relative;
  z-index: 2;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}
#intro img::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid #fffbe7;
  filter: drop-shadow(2px 2px 0 #222);
  z-index: 1;
}

ul {
  padding-left: 24px;
  margin: 16px 0 0 0;
}
ul li {
  margin-bottom: 8px;
  font-size: 1em;
}
a {
  color: #00bcd4;
  text-decoration: underline;
}
a:hover {
  color: #222;
}

/* Responsive design */
@media (min-width: 1200px) {
  main {
    width: 85vw;
    max-width: 1600px;
  }
  .comic-outline {
    max-width: 1200px;
    padding: 40px 0 32px 0;
  }
  .speech-bubble {
    padding: 32px 48px;
    max-width: 900px;
  }
}
@media (max-width: 1500px) {
  main {
    max-width: 99vw;
    padding: 0 2vw 32px 2vw;
    width: 90vw;
  }
  .comic-outline {
    max-width: 99vw;
    padding: 32px 0 24px 0;
  }
}
@media (max-width: 1100px) {
  main {
    width: 95vw;
  }
  .comic-outline {
    max-width: 98vw;
    padding: 24px 0 18px 0;
  }
  .speech-bubble {
    padding: 24px 6vw;
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .comic-nav {
    font-size: 0.95em;
    gap: 4px;
    max-height: none;
    flex-wrap: wrap;
    padding: 6px 4px;
  }
  .comic-nav .cool-btn {
    padding: 5px 10px;
    font-size: 0.9em;
    min-width: 70px;
    flex: 0 0 auto;
  }
  .comic-title::before {
    width: 140%;
    height: 140%;
  }
  .comic-title {
    font-size: 2.2em;
  }
  .speech-bubble {
    font-size: 1.1em;
  }
  .cool-btn {
    font-size: 1em;
  }
  main {
    width: 100vw;
    max-width: 100vw;
    padding: 0 0vw 24px 0vw;
    margin: 16px 0;
    border-radius: 0;
  }
  .comic-outline {
    width: 100vw;
    max-width: 100vw;
    min-width: unset;
    padding: 16px 0 12px 0;
    margin: 18px 0;
    border-radius: 0;
  }
  .speech-bubble {
    max-width: 98vw;
    width: 98vw;
    padding: 16px 3vw;
    font-size: 1em;
    transform: none;
    margin: 16px auto 0 auto;
  }
  .comic-title {
    font-size: 1.5em;
    padding: 0 2vw;
    margin-bottom: 12px;
  }
  .tech-logo {
    width: 22px;
    height: 22px;
    margin-right: 6px;
  }
}
@media (max-width: 600px) {
  .comic-nav {
    font-size: 0.85em;
    gap: 3px;
    max-height: none;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 6px 2px;
    justify-content: flex-start;
  }
  .comic-nav .cool-btn {
    padding: 5px 8px;
    font-size: 0.85em;
    min-width: 55px;
    min-height: 32px;
    flex: 0 0 auto;
  }
  .comic-outline {
    padding: 12px 0 8px 0;
    margin: 12px 0;
    width: 100vw;
    max-width: 100vw;
  }
  .comic-title {
    font-size: 1.3em;
    padding: 0 3vw;
    line-height: 1.3;
  }
  .speech-bubble {
    padding: 14px 4vw;
    font-size: 0.95em;
    max-width: 96vw;
    width: 96vw;
    box-shadow: 1px 1px 0 #222, 4px 4px 0 #00bcd4, 0 4px 16px rgba(0,0,0,0.05);
    transform: none;
    line-height: 1.6;
  }
  .cool-btn {
    font-size: 0.9em;
    padding: 8px 12px;
    min-width: 50px;
    margin: 4px;
  }
  #intro img {
    width: 100px;
    height: 100px;
  }
  .tech-logo {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }
  .comic-title::before {
    width: 180%;
    height: 180%;
  }
  .speech-bubble ul li {
    font-size: 0.95em;
    padding-left: 28px;
    margin-bottom: 12px;
  }
}
@media (max-width: 400px) {
  .speech-bubble {
    padding: 12px 3vw;
    font-size: 0.9em;
    max-width: 96vw;
    width: 96vw;
  }
  .comic-title {
    font-size: 1.2em;
    padding: 0 4vw;
  }
  .comic-outline {
    padding: 10px 0 6px 0;
    margin: 8px 0;
  }
  .cool-btn {
    font-size: 0.85em;
    padding: 6px 10px;
    min-width: 45px;
  }
  .comic-nav .cool-btn {
    font-size: 0.8em;
    padding: 4px 6px;
    min-width: 50px;
  }
}

/* 4. Comic-style section dividers */
.comic-divider {
  width: 100%;
  height: 32px;
  background: url('data:image/svg+xml;utf8,<svg width="100%25" height="32" viewBox="0 0 100 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 16 Q 10 0, 20 16 T 40 16 T 60 16 T 80 16 T 100 16 V32 H0Z" fill="%23fffbe7" stroke="%2300bcd4" stroke-width="2"/></svg>') repeat-x;
  margin: -16px 0 24px 0;
}

/* 8. Comic-style footer */
.comic-footer {
  width: 100%;
  background: #00bcd4;
  color: #fff;
  font-family: 'Bangers','Comic Neue',cursive,sans-serif;
  font-size: 1.2em;
  text-align: center;
  padding: 24px 0 16px 0;
  border-top: 6px double #222;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #222;
  margin-top: 32px;
}

/* Make all images and logos responsive */
img, .tech-logo {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Skills section improvements */
.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0,188,212,0.05);
  border-radius: 12px;
  border: 2px solid rgba(0,188,212,0.2);
  margin: 4px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  vertical-align: middle;
}

.tech-item span {
  font-weight: 600;
  color: #222;
}

@media (max-width: 600px) {
  .tech-item {
    padding: 6px 10px;
    margin: 3px;
    font-size: 0.9em;
  }
  .tech-item span {
    font-size: 0.9em;
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}




