/* ---- Theme tokens ---- */
:root {
  --bg: #0d0d0d;
  --text: #f3f3f3;
  --muted: #a9a9a9;
  --card: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.12);
  --link: #71b7ff;
}

:root[data-theme="light"] {
  --bg: #f7f7f8;
  --text: #141414;
  --muted: #60646c;
  --card: #ffffff;
  --stroke: rgba(0, 0, 0, 0.08);
  --link: #0b61ff;
}

/* Apply quickly to the page */
html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
}

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

hr,
.topbar,
.card,
.section {
  border-color: var(--stroke);
}

/* ---- Floating toggle button (top-right) ---- */
.theme-toggle {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 1000;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}

.theme-toggle:active {
  transform: translateY(0);
}

/* Swap icons based on theme */
.icon-sun {
  display: none;
  fill: var(--text);
}

.icon-moon {
  display: block;
  fill: var(--text);
}

:root[data-theme="light"] .icon-sun {
  display: block;
}

:root[data-theme="light"] .icon-moon {
  display: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
}

/* was padding: 2rem; */
html,
body {
  font-family: "Arial";
  padding: 0;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* new: apply page padding below the topbar */
.site-inner {
  padding: 2rem;
}


img {
  pointer-events: none;
}

input {
  border: 1px solid #fff;
  background: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: inherit;
}

h1 {
  margin-top: 2rem;
}

.wavy {
  animation-name: wavy;
  animation-duration: 1.3s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  position: relative;
  top: 0;
  left: 0;
}

@keyframes wavy {
  0% {
    top: 0px;
  }

  50% {
    top: -15px;
  }

  100% {
    top: 0px;
  }
}

#container {
  margin: 5em auto;
  overflow: hidden;
  border: 10px solid #ff000000;
  outline: 5px straight #ff000000;
  position: relative;
}

#container img {
  width: 100%;
  height: 100%;
  margin-bottom: -5px;
  transition: all 0.1s ease-out;
  position: relative;
  z-index: 2;
}

#container:hover img {
  transform: scale(1.5, 1.5);
  z-index: 9;
}

.box-text {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 10px;
  background-image: linear-gradient(135deg, rgba(0, 255, 221, 0.5) 10%, rgba(255, 0, 144, 0.65) 100%);
  opacity: 1;
  transition: 0.3s linear;
  color: #FFF;
  font-family: 'Bellefair', serif;
  font-family: 'Satisfy', cursive;
  text-shadow: 2px 2px 2px #333;

}

.box-text h1 {
  font-size: 2.2em;
  font-family: 'Bellefair', serif;
  font-family: 'Comfortaa', cursive;
}

.box-text p {
  font-size: 1.5em;
}

.box-text:hover {
  opacity: 0;
}

.topbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  padding: 1em 0;
  display: flex;
  justify-content: center;
  gap: 2em;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  text-transform: lowercase;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.1s ease-in-out;
}

.topbar a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
  transform: translateX(-50%);
  transition: width 0.1s ease-in-out;
}

.topbar a:hover::after {
  width: 100%;
}

.topbar a:hover {
  transform: scale(1.1);
  text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  background: black;
  padding: 1em 0;
}

.marquee {
  display: inline-flex;
  animation: scroll-left 2s linear infinite;
}

.marquee img {
  margin-right: 2rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-50%);
  }
}

.page-content {
  /* Or use 35em if you like that unit */
  margin: 0 auto;
  font-family: Tahoma, Verdana, Arial, sans-serif;
}

#rcorners {
  border-radius: 15%;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.profile-left .profile-pic {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.profile-center {
  flex-grow: 1;
  min-width: 200px;
}

.profile-center h1 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: bold;
}

.profile-center .subtitle {
  margin: 0.3rem 0 0.8rem;
  font-size: 0.9rem;
  color: #aaa;
}

.profile-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.profile-right .social-icons {
  display: flex;
  gap: 0.3rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-top: -1rem;
}

/* --------------------------------------------------------------- */

/* ====== Interactive Download Buttons ====== */
.downloads-section {
  text-align: center;
  margin: 4rem auto;
  padding: 2rem 0;
}

.downloads-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #008cff;
  border: 1px solid #008cff;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  background: transparent;
  box-shadow: 0 0 10px rgba(0, 140, 255, 0.15);
}

.download-btn svg {
  fill: currentColor;
  transition: transform 0.3s ease;
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #008cff33, #008cff);
  transition: all 0.4s ease;
  z-index: -1;
}

.download-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 15px #008cffaa, 0 0 30px #008cff55;
}

.download-btn:hover::before {
  left: 0;
}

.download-btn:hover svg {
  transform: translateY(2px);
}

@media (max-width: 600px) {
  .download-grid {
    flex-direction: column;
    gap: 1rem;
  }
}


/* --------------------------------------------------------------- */

/* --- Layout --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  padding: 0 2rem;
  max-width: 1200px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.07);
}

/* --- Headings --- */
.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.project-card h3 a {
  color: #4ea0ff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-card h3 a:hover {
  color: #fff;
  text-shadow: 0 0 5px #4ea0ff;
}

/* --- Description --- */
.project-card p {
  color: #ccc;
  font-size: 1rem;
  margin: 0.5rem 0 1.5rem;
}

/* --- Monologue cards: tilt + glow, like projects --- */
.post-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  --rx: 0deg;
  /* rotateX (set by JS) */
  --ry: 0deg;
  /* rotateY (set by JS) */
  --elev: 0px;
  /* lift on hover */
}

.post-card.interactive {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  transform: translateY(var(--elev)) rotateX(var(--rx)) rotateY(var(--ry));
  background: linear-gradient(180deg, #0d0d0d, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, .08);
}

.post-card.interactive::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
      rgba(78, 160, 255, .22), transparent 45%);
  /* blue “wake” to match links */
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s linear;
}

.post-card.interactive:hover::after {
  opacity: 1;
}

.post-card:hover {
  --elev: -6px;
}

.post-card:focus-within {
  outline: 2px solid #4ea0ff55;
  outline-offset: 2px;
}


/* --- Footer --- */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-top: auto;
}

.links {
  display: flex;
  gap: 1rem;
}

.icon-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(0.9);
  transition: 0.2s;
}

.icon-btn:hover img {
  filter: brightness(1.3);
}

.card-footer .links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.card-footer .links a:hover {
  color: #4ea0ff;
}

/* --- View Project Button --- */
.view-project-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  border: 1px solid #ffffff60;
  background: transparent;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: 0.4s ease;
}

.project-card:hover .view-project-btn {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  background: #48d97e;
  border-color: #48d97e;
  text-shadow: 0 0 5px #fff, 0 0 10px #fff;
  box-shadow: 0 0 5px #48d97e, 0 0 20px #48d97e, 0 0 50px #48d97e, 0 0 100px #d1e9fc;
}

/* --- Search Bar --- */
.project-search {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.project-search input {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background: #111;
  border: 1px solid #444;
  border-radius: 999px;
  color: #fff;
  outline: none;
  transition: border 0.2s ease;
}

.project-search input:focus {
  border-color: #4ea0ff;
  box-shadow: 0 0 10px #4ea0ff66;
}

.project-search:hover {
  background: rgba(78, 160, 255, 0.1);
  border-color: #4ea0ff66;
  box-shadow: 0 0 15px #4ea0ff33;
  transform: translateY(-2px);
}

/* --- GitHub Link (Footer/Standalone) --- 
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #4ea0ff;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  transition: all 0.25s ease;
} */

/* ====== Interactive project card (mouse tilt) ====== */
.project-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  --rx: 0deg;
  /* rotateX */
  --ry: 0deg;
  /* rotateY */
  --elev: 0px;
  /* lift on hover */
}

.project-card.interactive {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  transform: translateY(var(--elev)) rotateX(var(--rx)) rotateY(var(--ry));
  background: linear-gradient(180deg, #0d0d0d, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, .08);
}

.project-card.interactive::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
      rgba(72, 217, 126, .25), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s linear;
}

.project-card.interactive:hover::after {
  opacity: 1;
}

.project-card:hover {
  --elev: -6px;
}

.project-card:focus-within {
  outline: 2px solid #4ea0ff55;
  outline-offset: 2px;
}

/* Tag pills */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0 1rem;
}

.project-tag {
  font: 600 12px/1.1 system-ui, sans-serif;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

/* Stat row (little icons with 1k+) */
.project-stats {
  display: flex;
  gap: 1.2rem;
  margin: .2rem 0 1.1rem;
  opacity: .9;
  font-weight: 600;
}

.project-stat {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  font-size: .9rem;
}

/* Icon buttons row */
.card-footer .links .icon-btn {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: .35rem .45rem;
}

.card-footer .links .icon-btn:focus {
  outline: 2px solid #4ea0ff99;
}

/* "View Project" shows on hover/focus */
.project-card .view-project-btn {
  opacity: .0;
  transform: translateX(8px);
}

.project-card:hover .view-project-btn,
.project-card:focus-within .view-project-btn {
  opacity: 1;
  transform: none;
}

/* Project detail page */
.project-detail {
  max-width: 860px;
  margin: 0 auto;
}

.project-detail .hero {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  background: var(--card);
}

.project-detail .hero h1 {
  margin: 0 0 .4rem;
}

.project-detail .actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin: .8rem 0 0;
}

.project-detail .actions a {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: .45rem .9rem;
  text-decoration: none;
  color: var(--text);
}

.page-title {
  margin-top: .25rem;
}

/* --------------------------------------------------------------- */

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.4rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.icon-btn:hover {
  transform: scale(1.3) rotate(6deg);
  background: rgba(255, 255, 255, 0.1);
}

.icon-btn:hover img {
  opacity: 1;
  color: #ffffff;
}

.jawnslawn-btn {
  color: white;
  padding: 0.4em 1em;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: none;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  box-shadow: transparent;
  border: 1px solid #ffffff80;
  transition: 0.5s ease;
  user-select: none;
}

.jawnslawn-btn:hover {
  color: #ffffff;
  background: #48d97e;
  border: 1px solid #48d97e;
  text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
  box-shadow: 0 0 5px #48d97e, 0 0 20px #48d97e, 0 0 50px #48d97e,
    0 0 100px #d1e9fc;
}

/* --------------------------------------------------------------- */

.github-contributions {
  margin: 4rem auto;
  text-align: center;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #4ea0ff;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}

.github-link:hover {
  text-decoration: none;
  border-color: #4ea0ff66;
  background: rgba(78, 160, 255, 0.1);
  box-shadow: 0 0 15px #4ea0ff33;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------- */

.github-icon {
  width: 18px;
  height: 18px;
  filter: invert(62%) sepia(95%) saturate(5250%) hue-rotate(182deg) brightness(103%) contrast(101%);
}

.contribution-graph {
  max-width: 200%;
  margin-top: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.github-link[title]::after {
  content: attr(title);
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.github-link:hover::after {
  opacity: 1;
}

/* --------------------------------------------------------------- */

#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #000000 0%, #000 80%);
  transform: scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.4s ease;
  border-radius: 50%;
}

#transition-overlay.active {
  transform: scale(5);
  opacity: 1;
  pointer-events: all;
}

.transition-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: auto;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.7;
  filter: drop-shadow(0 0 20px #ffffff);
  animation: pulseLogo 1.2s ease-in-out infinite;
}

@keyframes pulseLogo {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.8);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}


/* --------------------------------------------------------------- */

/* Fade + slide-in animation */
.page-fadein {
  animation: fadeSlideIn 0.5s ease both;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-transition-out {
  animation: fadeSlideOut 0.3s ease both;
}

@keyframes fadeSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* --------------------------------------------------------------- */

.socials-section {
  max-width: 1000px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 2rem;
}

.socials-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.social-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2a2a2a;
  margin: 10px auto 12px;
  display: block;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.social-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.social-card:hover {
  transform: translateY(-8px);
}

.social-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
  opacity: 0.8;
}

.social-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.social-card h3 {
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.social-card p {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.social-btn {
  display: inline-block;
  text-align: center;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.insta-btn {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.yt-btn {
  background: #ff0000;
}

.social-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.social-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

.social-preview.round {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------- */


.tween-btn {
  background: transparent;
  position: relative;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #008cff;
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: #008cff;
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
  z-index: 1;
}

.tween-btn span {
  margin: 10px;
}

.tween-btn::before {
  position: absolute;
  content: '';
  border-radius: 50%;
  width: 20em;
  height: 20em;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  margin: auto;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

.tween-btn:hover {
  color: #fff;
  border: 1px solid #008cff;
}

.tween-btn:hover::before {
  box-shadow: inset 0 0 0 10em #008cff;
}

/* --------------------------------------------------------------- */


/* ===== Page frame (like Aidan's) ===== */
.container {
  /* hard max similar to his content width */
  max-width: 1100px;
  /* tune 1040–1160 if you like */
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* Keep images and embeds from overflowing */
img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* ===== Header layout: desktop = 3 cols, mobile = stacked ===== */
.profile-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  /* avatar | name/subtitle | icons/button */
  align-items: center;
  gap: 20px;
  padding-block: 18px 8px;
}

/* Avatar scales down on narrow screens like his */
.profile-left .profile-pic {
  width: clamp(56px, 9vw, 90px);
  height: clamp(56px, 9vw, 90px);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
}

/* Name + subtitle */
.profile-center h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.25rem, 1.3rem + 1vw, 1.8rem);
  /* prevents huge/super tiny */
}

.profile-center .subtitle {
  margin: .25rem 0 0;
  font-size: clamp(.9rem, .86rem + .2vw, 1rem);
  color: #aaa;
}

/* Right-side icons */
.profile-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}

.profile-right .social-icons {
  display: flex;
  gap: .6rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.icon-btn img {
  display: block;
  width: 22px;
  height: 22px
}

/* Optional badge/button on the right */
.jawnslawn-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}

/* ===== Top nav (under header) ===== */
.topbar {
  display: flex;
  gap: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 14px;
  margin-top: 8px;
  /* on narrow screens let it scroll rather than wrap */
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  /* Firefox */
}

.topbar::-webkit-scrollbar {
  display: none
}

/* Chrome/Safari */

/* ===== Main content width control ===== */
main,
.content,
.page-section {
  max-width: 760px;
  /* Aidan’s center column feel */
  margin-inline: auto;
}

/* ===== Breakpoint: stack header and center stuff ===== */
@media (max-width: 780px) {
  .profile-header {
    grid-template-columns: 1fr;
    /* stack */
    text-align: center;
    gap: 12px;
  }

  .profile-right {
    align-items: center;
  }

  .profile-right .social-icons {
    justify-content: center;
  }

  .jawnslawn-btn {
    order: 2;
  }

  /* put button under icons if you want */
  .topbar {
    justify-content: center;
  }

  /* nav centered; still scrollable if crowded */
}


/* --------------------------------------------------------------- */

/* --- Socials embeds should be interactive --- */
.socials-section iframe,
.socials-section .instagram-media,
.socials-section .instagram-media * {
  pointer-events: auto;
}

.socials-section {
  user-select: auto;
}

/* Optional: nicer card look */
.socials-section {
  margin: 4rem auto;
  max-width: 1100px;
}

.socials-section h2 {
  font-size: 2.25rem;
  margin-bottom: .5rem;
}

.socials-lead {
  opacity: .85;
  margin-bottom: 2rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}

.social-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.social-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  margin-top: 12px;
  text-decoration: none;
  color: #fff;
}

.insta-btn {
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.yt-btn {
  background: #cc0000;
}

.social-preview {
  width: 100%;
  border-radius: 12px;
}

/* --- Socials: layout + interactivity --- */
.socials-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.social-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* ensure embeds are clickable even if global styles disable events */
.socials-section a,
.socials-section iframe,
.socials-section .instagram-media,
.socials-section .instagram-media * {
  pointer-events: auto;
  user-select: auto;
}

.social-header {
  font-weight: 700;
  margin-bottom: 10px;
  opacity: .9;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  margin-top: 12px;
  text-decoration: none;
  color: #fff;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
}

.insta-btn {
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.yt-btn {
  background: #cc0000;
}

.social-preview {
  width: 100%;
  border: 0;
  border-radius: 12px;
}

/* --------------------------------------------------------------- */

/* --- Monologue list --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem auto 4rem;
  max-width: 1100px;
  padding: 0 2rem;
}

.post-search {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 .5rem;
}

.post-search input {
  width: 100%;
  max-width: 520px;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #111;
  color: var(--text);
}

/* Reuse your interactive card vibe */
.post-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  --rx: 0deg;
  --ry: 0deg;
  background: linear-gradient(180deg, #0d0d0d, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.post-card .post-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-card .post-content {
  padding: 1rem 1.2rem 1.2rem;
}

.post-card h3 {
  margin: .2rem 0 .4rem;
}

.post-excerpt {
  color: #ccc;
  margin: .4rem 0 1rem;
}

.post-meta {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .25rem;
}

.post-tag {
  font: 600 12px/1 system-ui, sans-serif;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

/* --- Post detail --- */
.post-detail {
  max-width: 860px;
  margin: 0 auto 6rem;
}

.post-hero {
  padding: .8rem 0 1rem;
}

.post-hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  margin: .8rem 0 1rem;
}

.post-body {
  margin-top: 1rem;
}

.post-body h3 {
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------- */

.tldr-section {
  margin: 2rem auto 3rem;
  padding: 1.5rem 2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 900px;
}

.tldr-section h2 {
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.tldr-section p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.tldr-section a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.tldr-section a:hover {
  text-shadow: 0 0 8px var(--link);
}

/* --------------------------------------------------------------- */
/* ===== Hero (Aidan-style) ===== */
.hero {
  position: relative;
  margin: 2rem auto 4rem;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 6vw, 52px);
  min-height: clamp(340px, 52vw, 520px);
  display: grid;
  align-items: end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(0, 0, 0, .35), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35)),
    var(--hero-img, none) center/cover no-repeat;
  filter: saturate(0.95) contrast(1.05);
  z-index: -1;
}

/* title + roles */
.hero-title {
  margin: 0 0 .4rem 0;
  font-weight: 900;
  font-size: clamp(1.8rem, 1.2rem + 3.2vw, 3rem);
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
}

.hero-roles {
  display: block;
  font-weight: 800;
  font-size: clamp(1rem, .7rem + 1.3vw, 1.35rem);
  background: linear-gradient(90deg, #71b7ff, #48d97e 55%, #e6c36b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* blurb */
.hero-blurb {
  max-width: 70ch;
  margin: .75rem 0 1rem;
  line-height: 1.6;
  color: var(--text);
  opacity: .92;
}

/* CTAs */
.hero-cta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  border: 1px solid #48d97e;
  background: #48d97e;
  box-shadow: 0 10px 30px rgba(72, 217, 126, .25);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(72, 217, 126, .32);
}

.btn.ghost {
  background: transparent;
  border-color: var(--stroke);
  box-shadow: none;
  opacity: .9;
}

.btn.ghost:hover {
  border-color: #71b7ff;
  box-shadow: 0 0 0 3px rgba(113, 183, 255, .15) inset;
}

/* mobile */
@media (max-width: 900px) {
  .hero {
    min-height: 58vh;
    padding: 28px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }
}



/* --------------------------------------------------------------- */

.section {
  text-align: center;
  margin: 4rem auto;
  padding: 2rem 0;
}

.store-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.store-section .subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

.shopify-embed {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* --------------------------------------------------------------- */

.studies-section {
  max-width: 900px;
  margin: 5rem auto;
  text-align: center;
}

.studies-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.studies-card:hover {
  transform: translateY(-6px);
}

.studies-crest {
  width: 110px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.studies-info h2 {
  font-size: 1.6rem;
  margin: 0;
}

.studies-degree {
  font-size: 1rem;
  color: #ccc;
  margin: .4rem 0;
}

.studies-meta {
  font-size: .9rem;
  color: #aaa;
  margin: .2rem 0 1rem;
}

.studies-tagline {
  font-style: italic;
  color: #71b7ff;
  font-size: .95rem;
}

@media (max-width: 700px) {
  .studies-card {
    flex-direction: column;
    text-align: center;
  }

  .studies-crest {
    width: 90px;
  }
}

/* --------------------------------------------------------------- */

/* ===== Highlights ===== */
.section-header h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  margin: 0 0 .35rem;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 70ch;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--stroke);
  margin: 2.2rem 0;
  opacity: .8;
}

.highlights .project-grid {
  margin-top: 1rem;
  /* align with Aidan’s spacing */
}

.recent-blog #highlightBlog .post-card {
  margin-top: 1rem;
}

/* keep embeds/imgs safe */
.highlights img,
.highlights video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --------------------------------------------------------------- */

/* === Reusable interactive search shell === */
.interactive-search {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 1.6rem 0 .8rem;
  padding: .35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d0d0d, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform: translateY(var(--elev, 0));
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  --elev: 0px;
  overflow: hidden;
  /* clips the glow so no page-length beam */
}

.interactive-search::after {
  content: "";
  position: absolute;
  inset: -8px;
  /* small overflow for soft edge */
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
      rgba(78, 160, 255, .22), transparent 45%);
  transition: opacity .15s linear;
}

.interactive-search:hover {
  transform: translateY(-2px);
}

.interactive-search:hover::after {
  opacity: 1;
}

/* Unify the text field inside any interactive search shell */
.interactive-search input {
  width: min(520px, 90vw);
  padding: .85rem 1.3rem;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  /* keep the pill look */
  border: 1px solid var(--stroke);
  border-radius: 999px;
  outline: none;
  box-shadow: none;
}

.post-search,
.project-search,
.gallery-controls {
  justify-content: center;
}

.project-search input,
.post-search input,
.gallery-controls input,
#gallerySearch {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}


/* --------------------------------------------------------------- */

/* ===== About / What drives me (Aidan-style slice) ===== */
.about-slice {
  margin: 3rem auto 2rem;
}

.about-title {
  margin: 0 0 1rem;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: none;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  /* text | image */
  gap: clamp(18px, 3.5vw, 36px);
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Quote block */
.about-quote {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 18px;
}

.about-quote-bar {
  position: absolute;
  left: 0;
  top: .25rem;
  bottom: .25rem;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, #71b7ff, #48d97e);
  opacity: .9;
}

.about-quote blockquote {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1rem, .95rem + .6vw, 1.15rem);
  line-height: 1.7;
  color: var(--text);
  opacity: .95;
}

/* Body text */
.about-copy p {
  margin: .8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.about-copy .about-fine {
  opacity: .95;
}

/* Portrait */
.about-photo {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-slice {
  animation: fadeSlideIn .5s ease both;
}

/* --------------------------------------------------------------- */

/* ===== Gallery (no tags) ===== */
.gallery-controls {
  display: flex;
  margin: 1rem 0 1.25rem;
}

#gallerySearch {
  flex: 1;
  max-width: 460px;
  padding: .8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #111;
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: linear-gradient(180deg, #0d0d0d, #0b0b0b);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--gx) var(--gy),
      rgba(78, 160, 255, .22), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s linear;
}

.gallery-card:hover {
  transform: translateY(-6px) rotateX(var(--rx)) rotateY(var(--ry));
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-media {
  aspect-ratio: 4/3;
  width: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform .25s ease;
}

.gallery-card:hover .gallery-media {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .75rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7));
  /* alpha fixed */
  transform: translateY(110%);
  /* push fully out of frame */
  transition: transform .25s ease;
  font-size: .95rem;
  will-change: transform;
  pointer-events: none;
  /* avoids hover flicker on the caption itself */
}

.gallery-card:hover .gallery-caption,
.gallery-card:focus-within .gallery-caption {
  transform: translateY(0%);
}

/* Masonry layout: natural image aspect ratios, balanced columns */
.gallery-grid.masonry {
  display: block;            /* <-- add this line */
  column-width: 260px;
  /* target card width; browser picks #columns */
  column-gap: 16px;
}

.gallery-grid.masonry .gallery-card {
  display: inline-block;
  /* so the card flows inside columns */
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  /* prevent column breaks inside a card */
}

/* In masonry mode, don't force a fixed ratio; let images keep their own */
.gallery-grid.masonry .gallery-media {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* still safe if a dimension is constrained */
}


/* ===== Gallery Lightbox ===== */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: none;
  /* toggled via .open */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lb-backdrop.open {
  display: flex;
}

.lb-frame {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}

.lb-img {
  display: block;
  max-width: 92vw;
  max-height: 76vh;
  object-fit: contain;
  background: #000;
}

.lb-caption {
  padding: .8rem 1rem;
  font-size: .95rem;
  color: #ddd;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, .18);
}

.lb-prev {
  left: -60px;
}

.lb-next {
  right: -60px;
}

@media (max-width: 900px) {
  .lb-prev {
    left: 10px;
  }

  .lb-next {
    right: 10px;
  }
}

.lb-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
}

.lb-close:hover {
  background: rgba(255, 255, 255, .15);
}

/* Center the gallery page heading + keep spacing consistent */
section:has(#galleryGrid) h1 {
  text-align: center;
  margin-bottom: .6rem;
}

section:has(#galleryGrid) .gallery-controls {
  display: flex;
  /* belt-and-suspenders in case HTML differs */
  justify-content: center;
  margin: 1.6rem 0 .8rem;
  /* match interactive-search spacing */
}