@import "palette.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  line-height: 1.6;
  background-color: var(--yellow);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrap {
  flex: 1;
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}

a {
  color: var(--black);
}

h1 {
  font-size: 48px;
  line-height: 48px;
}

.logo {
  font-size: var(--font-heading);
}

.navrow-wrap {
  position: relative;
}

.navrow {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.nav-item>a {
  text-decoration: none;
}

.nav-item {
  padding: 0 1em;
  position: relative;
  background: rgba(0, 0, 0, 0.05);
  border-right: 2px solid black;
  border-bottom: 2px solid black;
}

#lastNavBtn {
  border-right: none;
}

.nav-item.nav-item-active {
  border-bottom: none;
  background: unset;
}

.divider {
  width: 100%;
}

.content {
  width: 80vw;
  margin: var(--content-margin-top) auto 0 auto;
}

.panel.c-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-content {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
}

.icon {
  border: 1px outset black;
  border-radius: 50%;
  background-color: var(--concrete);
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: .8em;
  position: relative;
  bottom: 2px;
}

.close-icon {
  display: none; /* dynamically overwritten */

  position: absolute;
  width: 1.8em;
  height: 1.8em;
  top: -5px;
  right: -5px;
  cursor: pointer;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 2px;
  background: var(--black);
  transform-origin: center;
}

.close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.icon:hover {
  border: 1px inset black;
  border-radius: 50%;
}

.help-icon {
  width: 1em;
  height: 1em;
}

/* invisible expanded hit area */
.help-icon::before {
  content: "";
  position: absolute;
  inset: -0.5em;
}

/* tooltip */
.help-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}

.help-icon:hover::after,
.help-icon.tooltip-pinned::after {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease, visibility 0s;
}

.speech-bubble.panel {
  max-width: min(40vw, 560px);
  min-height: fit-content;
  position: relative;
  border: 2px solid black;
  border-radius: 1.5em;
}

/* shrink the bubble at narrower viewports (heavy zoom / mobile) to avoid
   colliding with the title panel, since the portrait stays fixed-corner-anchored */
@media (max-width: 1300px) {
  .speech-bubble.panel { max-width: 32vw; }
}
@media (max-width: 1000px) {
  .speech-bubble.panel { max-width: 26vw; }
}
@media (max-width: 700px) {
  .speech-bubble.panel { max-width: 20vw; }
}

/* black triangle that points right toward portrait, becomes border */
.speech-bubble.panel:before {
  content: "";
  position: absolute;
  right: -1.4em;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid black;
}

/* white triangle that sits on top of the black triangle */
.speech-bubble.panel:after {
  content: "";
  position: absolute;
  right: -1em;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid var(--bone);
}

.panel {
  background-color: var(--bone);
  box-shadow: var(--shadow-sm);
  height: fit-content;
  padding: var(--panel-padding);
}

.main-button-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  width: fit-content;
  margin: 5em auto;
}

.btn {
  background-color: var(--concrete);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-size: 18px;
  border: none;
  width: fit-content;
  padding: 5px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid black;
  display: flex;
  justify-content: space-around;
}

.main-button {
  padding: 2em;
  margin: 0 3em;
  width: 200px;
  font-size: 20px;
}

.btn:hover {
  background-color: #BDB9B2;
}

.btn:active {
  position: relative;
  top: 4px;
  left: 4px;
  background-color: #B2AEA7;
  box-shadow: none;
}

.btn-contact {
  margin-top: 1em;
}

.bg {
  overflow: hidden;
  position: absolute;
  height: 100vh;
  width: 100vw;
  z-index: -50;
}

.bg-texture {
  position: absolute;
  top: 10vh;
  height: 50vh;
  width: 100vw;
  background-image: radial-gradient(
    var(--slate-deep) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  transform: rotate(8deg);
  z-index: -100;
}

.bg-glass {
  background-color: var(--frosted-glass); 
  width: 20vw;
  height: 98vh;
  position: absolute;
  border-radius: 2em;
  z-index: -51;
  top: 5vh;
  left: 15vw;
}

.broken-circle {
  position: absolute;
}

.portrait-container {
  position: fixed;
  top: 1em;
  right: max(3em, calc(50vw - 700px + 3em));
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 10;
}

.portrait {
  height: clamp(120px, 18vw, 250px);
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.starburst {
  clip-path: polygon(
    50% 8%, 60% 20%, 72% 12%, 68% 28%, 86% 20%, 72% 36%,
    96% 30%, 82% 44%, 100% 42%, 82% 50%, 98% 62%, 78% 60%,
    92% 80%, 70% 72%, 82% 94%, 62% 80%, 70% 100%, 54% 82%,
    48% 94%, 42% 82%, 32% 98%, 38% 72%, 14% 88%, 26% 68%,
    4% 78%, 22% 60%, 0% 50%, 20% 44%, 6% 28%, 28% 36%,
    16% 16%, 36% 26%, 28% 12%, 44% 20%
  );

  width: 12.5em;
  aspect-ratio: 1.4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner {
  width: 8em;
  height: 8em;
  padding: 1em;
  clip-path: polygon(
    0 30%, 5% 26%, 10% 22%, 15% 26%, 20% 30%, 25% 34%, 
    30% 38%, 35% 34%, 40% 30%, 45% 26%, 50% 22%, 55% 26%, 
    60% 30%, 65% 34%, 70% 38%, 75% 34%, 80% 30%, 85% 26%, 
    90% 22%, 95% 26%, 100% 30%,
    100% 70%, 95% 74%, 90% 78%, 85% 74%, 80% 70%, 75% 66%, 
    70% 62%, 65% 66%, 60% 70%, 55% 74%, 50% 78%, 45% 74%, 
    40% 70%, 35% 66%, 30% 62%, 25% 66%, 20% 70%, 15% 74%, 
    10% 78%, 5% 74%, 0 70%
  );

  display: flex;
  justify-content: center;
  align-items: center;
}

.blob {
  width: 7.5em;
  height: 6.25em;

  border-radius: 58% 42% 40% 60% / 50% 60% 40% 50%;

  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 30px; /* blob is the narrowest element and doesn't always wrap the same way */
}

.quad {
  width: 12.5em;
  height: 2.5em;

  clip-path: polygon(
    0 15%, 80% 0, 100% 100%, 8% 97%
  );

  display: flex;
  justify-content: center;
  align-items: center;
}

.stamp-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-top: 2em;
}

.stamp-wrap {
  flex: 0 0 23%;
  display: flex;
  justify-content: center;
}

.stamp {
  font-family: var(--font-stamp);
  font-size: 1rem;
  cursor: pointer;
  animation: wobble 4s ease-in-out infinite;
}

.stamp:hover::after,
.stamp.locked::after {
  content: "";
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: inherit;
}

.stamp:active {
  position: relative;
  top: 4px;
  left: 4px;
}

.stamp.locked {
  position: relative;
  top: 4px;
  left: 4px;
}

@keyframes wobble {
  0% { transform: rotate(1.5deg); }
  50% { transform: rotate(-1.5deg); }
  100% { transform: rotate(1.5deg); }
}

.stamp-1 {
  background: var(--lavender);
  animation-delay: 0s;
}

.stamp-2 {
  background: var(--hot-pink);
  animation-delay: 1.2s; 
}
.stamp-3 {
  background: var(--turquoise);
  animation-delay: 2.4s; 
}

.stamp-4 {
  background: var(--tangerine);
  animation-delay: 3.6s; 
}

.stamp-5 {
  background: var(--light-blue);
  animation-delay: 0s;
}

.stamp-6 {
  background: var(--olive);
  animation-delay: 1.2s; 
}

.stamp-7 {
  background: var(--tangerine);
  animation-delay: 2.4s; 
}

.contact-card {
  padding: 1em;
}

/* ===== EXPERIENCE PAGE ===== */

.exp-header {
  margin-bottom: 1.5em;
}

.exp-title {
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.exp-subtitle {
  font-size: 0.9em;
  color: var(--slate-deep);
  margin-top: 0.3em;
}

.exp-summary {
  margin-bottom: 2em;
  font-size: 0.9em;
}

.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.exp-card {
  padding: 1.2em;
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em;
}

.exp-role {
  font-family: var(--font-heading);
  font-size: 1.15em;
  line-height: 1.3;
}

.exp-date {
  font-family: var(--font-body);
  font-size: 0.8em;
  color: var(--slate-deep);
  white-space: nowrap;
}

.exp-company {
  font-family: var(--font-body);
  font-size: 0.85em;
  color: var(--slate-deep);
  margin: 0.3em 0 0.8em 0;
}

.exp-bullets {
  list-style: none;
  padding: 0;
}

.exp-bullets li {
  font-size: 0.85em;
  line-height: 1.6;
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 0.5em;
}

.exp-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--tangerine);
  font-weight: bold;
}

.exp-section {
  margin-top: 2.5em;
}

.exp-section-title {
  font-family: var(--font-heading);
  font-size: 1.5em;
  margin-bottom: 1em;
  letter-spacing: 0.02em;
}

.exp-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
}

@media (max-width: 900px) {
  .exp-card-header {
    flex-direction: column;
    gap: 0.2em;
  }
}

.subcontent-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.subcontent-card {
  width: 400px;
  margin: 10px;
  padding: 5px;
}

.subcontent-card.project-card.btn {
  font-family: var(--font-body);
}

.project-card-cont>p {
  font-size: .8em;
}

.tag-icon {
  height: 1.5em;
  object-fit: contain;
  vertical-align: middle;
}

.tag {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  border: 1px solid var(--concrete-dark);
  padding: 0.2em 0.6em;
  margin: 0.2em;
  font-size: 0.85em;
  line-height: 1.4;
}

/* ===== SKILLS PAGE ===== */

.subcontent-header {
  margin-bottom: 1.5em;
}

.skills-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-bottom: 2.5em;
}

.skill-featured-card {
  padding: 1.2em;
}

.skill-featured-header {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.5em;
}

.skill-featured-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1em;
}

.skill-featured-card p {
  font-size: 0.85em;
  line-height: 1.5;
}

.skills-categorized {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.skill-cat-section {
  padding: 1em 0;
}

.skill-cat-title {
  font-family: var(--font-heading);
  font-size: 1.25em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--concrete);
  letter-spacing: 0.02em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 900px) {

  .hero-content {
    width: 100%;
  }
  .content {
    width: 100%;
  }

  .stamp-wrap {
    flex: unset;
    width: 200px;
  }

  .portrait {
    position: fixed;
    bottom: 1em;
    right: 1em;
    height: clamp(120px, 30vw, 220px);
    z-index: 10;
  }

  .portrait-container {
    position: fixed;
    top: auto;
    bottom: calc(2em + clamp(120px, 30vw, 220px));
    left: 1em;
    right: 1em;
    display: block;
  }
  .speech-bubble.panel {
    max-width: none;
    display: none;
  }
  .speech-bubble.panel.visible {
    display: block;
    position: relative;
    bottom: 4px;
  }
  .hero {
    flex-wrap: wrap;
    gap: 2em;
  }

  .speech-bubble-mobilewrap {
    display: none;
  }

  .speech-bubble.panel:before {
    right: 1.1em;
    top: auto;
    bottom: -1.4em;
    left: auto;
    transform: none;
    border-top: 20px solid black;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-bottom: none;
  }
  .speech-bubble.panel:after {
    right: 1.3em;
    top: auto;
    bottom: -1em;
    left: auto;
    transform: none;
    border-top: 17px solid var(--bone);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: none;
  }
}

.hamburger,
.mobile-nav,
.mobile-nav-overlay {
  display: none;
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 1em;
    left: 1em;
    width: 2.5em;
    height: 2.5em;
    padding: 0;
    background: var(--bone);
    border: 2px solid var(--black);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    z-index: 100;
  }
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 1.5em;
    height: 1.5em;
  }
  .hamburger-icon span {
    display: block;
    height: 3px;
    background: var(--black);
  }
  .hamburger .hamburger-close-icon {
    display: none;
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .hamburger .hamburger-close-icon::before,
  .hamburger .hamburger-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 3px;
    background: var(--black);
    transform-origin: center;
  }
  .hamburger .hamburger-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .hamburger .hamburger-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .hamburger.open .hamburger-icon {
    display: none;
  }
  .hamburger.open .hamburger-close-icon {
    display: block;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70vw;
    max-width: 300px;
    height: 100vh;
    background: var(--bone);
    border-right: 2px solid var(--black);
    box-shadow: var(--shadow-lg);
    padding: 4em 1em 1em;
    z-index: 99;
    transform: translateX(calc(-100% - 10px));
    transition: transform 0.25s ease;
  }
  .mobile-nav.open {
    transform: translateX(0);
  }
  .mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--black);
    padding: 0.75em 0.5em;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  .mobile-nav a:hover {
    background: var(--concrete);
  }

  .mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 98;
  }
  .mobile-nav-overlay.open {
    display: block;
  }

  .navrow {
    display: none;
  }

  .content {
    max-width: unset;
  }
}
