@import url("https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400;1,700&display=swap");
:root {
  --nav-h: 3.5rem;
  --accent: #c8a97e;
  --accent-glow: rgba(200, 169, 126, 0.2);
  --text: #f5f0e8;
  --muted: rgba(245, 240, 232, 0.85);
  --border: rgba(255, 255, 255, 0.1);
  --card: rgba(0, 0, 0, 0.6);
  --radius: 0.75rem;
  font-size: large;
}

/* CSS reset for page */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  font-family: "Cardo", Georgia, serif;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
}

/* Hidden component styling */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0px);
}

/* Background image and overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("images/watercolor_background.jpg") center / cover no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.38);
}

.fullImg {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* Pill styling */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  transition:
    border-color 0.5s,
    color 0.5s;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filledPill {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  /* border: 1px solid rgba(200, 169, 126, 0.3); */
  border: 1px solid var(--accent);
  border-radius: 2rem;
  padding: 0.15rem 0.55rem;
  background: rgba(200, 169, 126, 0.07);

  text-decoration: none;
  display: inline-block;
  transition:
    background 0.2s,
    color 0.2s;
}
.filledPill:hover {
  background: var(--accent);
  color: #181010;
}
.filledPill.large {
  padding: 0.55rem 1.6rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Section styling */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 3.5rem 12%;
  margin-bottom: 6rem;
}
.sectionHeader {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.sectionHeader::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Card styling */
.card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition:
    border-color 0.25s,
    transform 0.5s,
    opacity 0.5s,
    box-shadow 0.25s;
}
.card:hover {
  border-color: rgba(200, 169, 126, 0.45);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-5px) scale(1.01);
}
.cardRow {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
}
.cardMedia {
  flex-shrink: 0;
  border-radius: calc(var(--radius) - 0.25rem);
  overflow: hidden;
  background: rgba(60, 80, 100, 0.67);
  border: 1px solid var(--border);
}
.cardMedia.wide {
  width: 42%;
  align-self: stretch;
  min-height: 180px;
  position: relative;
}
.cardMedia.logo {
  width: 128px;
  flex-shrink: 0;
}
.mediaOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.22s;
}
.mediaOverlay:hover {
  opacity: 1;
}
.cardBody {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  min-height: 180px;
  flex: 1;
}

/* Tag styling */
.tag {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  border: 1px solid rgba(200, 169, 126, 0.3);
  border-radius: 2rem;
  padding: 0.15rem 0.55rem;
  background: rgba(200, 169, 126, 0.07);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Typography styling */
.muted {
  color: var(--muted);
  line-height: 1.65;
}
h1 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.accented {
  color: var(--accent);
}

/* Navbar styling */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 10% 0.75rem;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 65%,
    transparent 100%
  );
}
#navbar a {
  padding-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  opacity: 0.8;
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    text-decoration-color 0.3s ease;
}
#navbar a:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* About styling */
#about {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3.5rem;
  padding: 3rem 10%;
  margin: 6rem 4rem;
  justify-content: center;
}
#aboutContent {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
#aboutPhoto {
  flex-shrink: 0;
  height: 250px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: rgba(87, 87, 148, 0.4);
  border: 1px solid var(--border);
  overflow: hidden;
}
#aboutPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#socialsLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

/* Scroll indicator */
#scrollIndicator {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 10%;
}
#scrollIndicator > div {
  height: 25px;
  width: 25px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  rotate: 45deg;
  animation: bounce 3s infinite;
}
#scrollIndicator > div:nth-child(2) {
  animation-delay: 0.125s;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translate(-25px, -25px);
  }
}

/* Skills styling */
.skillsGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}
.skillCluster {
  padding: 1.1rem;
  flex: 0 1 30%;
}
.skillCluster ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.65rem;
  list-style-type: none;
}
.skillCluster li {
  font-size: 0.88rem;
  color: var(--muted);
}
.skillHeader {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  width: 100%;
  display: flex;
  align-items: center;
}

/* Experience Styling */
.jobBullets {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.jobBullets li {
  list-style-type: none;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}
.jobBullets li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Contact styling */
#contact {
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0px 25%;
}

/* Mobile styling */
@media (max-width: 640px) {
  .section {
    padding: 2.5rem 6%;
    margin-bottom: 4rem;
  }
  #about {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0rem 4%;
    margin: 2rem 1rem;
  }
  #aboutPhoto {
    width: 140px;
    height: 140px;
  }
  #socialsLinks {
    justify-content: center;
  }
  .cardRow {
    flex-direction: column;
  }
  .cardMedia.wide {
    width: 100%;
    min-height: 160px;
  }
  .cardMedia.logo {
    width: 64px;
  }
  .skillCluster {
    padding: 1.1rem;
    flex: 0 1 80%;
  }
  #navbar {
    gap: 0.75rem;
    padding: 0 4% 0.5rem;
  }
  #navbar a {
    font-size: 0.6rem;
  }
}
