/* ============================================
   ERIK GUZA — Portfolio
   Light grid aesthetic (Alessandro Colucci style)
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:          #f4f0e9;
  --bg-card:     #ebe5dc;
  --bg-glow-1:   rgba(255, 208, 158, 0.26);
  --bg-glow-2:   rgba(159, 194, 255, 0.22);
  --bg-glow-3:   rgba(196, 170, 236, 0.2);
  --bg-vignette: rgba(22, 16, 10, 0.12);
  --nav-bg:      rgba(244, 240, 233, 0.84);
  --surface-frost: rgba(255,255,255,0.58);
  --text:        #1a1a1a;
  --text-dim:    #888078;
  --text-mid:    #4a4540;
  --border:      rgba(0,0,0,0.08);
  --border-mid:  rgba(0,0,0,0.14);
  --sketch-stroke: rgba(0, 0, 0, 0.26);
  --transition:  0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(58rem 34rem at 14% 18%, var(--bg-glow-1), transparent 66%),
    radial-gradient(48rem 32rem at 86% 10%, var(--bg-glow-2), transparent 70%),
    radial-gradient(44rem 30rem at 72% 82%, var(--bg-glow-3), transparent 72%),
    linear-gradient(160deg, #f8f5ef 0%, #ece7de 48%, #e4ddd2 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-size: 190% 190%, 175% 175%, 210% 210%, 100% 100%;
  animation: bg-pan 12s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.48;
  background:
    radial-gradient(120% 80% at 50% 100%, var(--bg-vignette), transparent 62%),
    radial-gradient(circle at 18% 24%, rgba(255,255,255,0.34), transparent 46%),
    radial-gradient(circle at 82% 72%, rgba(255,255,255,0.2), transparent 44%);
  animation: bg-breathe 7s ease-in-out infinite;
}

/* ---- DECOR CIRCLES ---- */
.decor-circle {
  position: absolute;
  border: 1.6px solid var(--sketch-stroke);
  border-radius: 999px;
  opacity: 0.82;
  pointer-events: none;
  z-index: -1;
}

.hero-circle-a { top: 236px; right: -78px; width: 122px; height: 122px; transform: rotate(7deg); }
.about-circle-a { top: 30px; right: -64px; width: 96px; height: 96px; transform: rotate(-6deg); }
.experience-circle-a { top: 102px; left: -78px; width: 106px; height: 106px; transform: rotate(8deg); }
.education-circle-a { top: 38px; left: -66px; width: 92px; height: 92px; transform: rotate(-7deg); }
.projects-circle-a { bottom: 72px; left: -76px; width: 112px; height: 112px; transform: rotate(5deg); }
.reading-circle-a { top: 26px; right: -60px; width: 94px; height: 94px; transform: rotate(-8deg); }
.contact-circle-a { bottom: 24px; right: -64px; width: 102px; height: 102px; transform: rotate(6deg); }

/* ---- NAV ---- */
.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  min-height: 56px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 30px rgba(22, 16, 10, 0.08);
}

.glass-filter,
.glass-overlay,
.glass-specular {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glass-filter {
  background: rgba(244, 240, 233, 0.26);
  filter: url(#glass-distortion) blur(14px);
  opacity: 0.75;
}

.glass-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.14) 100%),
    rgba(244, 240, 233, 0.24);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.glass-specular {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 48%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.glass-content {
  position: relative;
  z-index: 2;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-logo sup {
  font-size: 7px;
  vertical-align: super;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a,
.nav-item {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.86);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-links a:hover,
.nav-item:hover {
  color: var(--text);
  opacity: 1;
}
.nav-active,
.nav-item.active {
  color: var(--text) !important;
  font-weight: 600;
}

/* Shared liquid-glass pills for all pages */
.glass-nav .nav-links a:not(.nav-cta),
.glass-nav .nav-item:not(.nav-cta) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.glass-nav .nav-links a:not(.nav-cta):hover,
.glass-nav .nav-item:not(.nav-cta):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.glass-nav .nav-item.active,
.glass-nav .nav-active {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-cta {
  padding: 8px 20px;
  border: 1.5px solid rgba(26, 26, 26, 0.78) !important;
  border-radius: 100px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(26, 26, 26, 0.9) !important;
  background: rgba(255, 255, 255, 0.34);
  text-decoration: none;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--text) !important;
  color: var(--bg) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-nav {
    background: rgba(244, 240, 233, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(22, 16, 10, 0.08);
  }

  .glass-filter,
  .glass-specular {
    display: none;
  }

  .glass-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
  }
}

/* ---- OPERA INTRO ---- */
.opera-intro {
  margin-top: 56px;
  width: 100%;
  max-height: 48vh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  opacity: 1;
  transition: opacity 0.8s ease, max-height 0.8s ease, margin 0.8s ease;
}

.opera-intro-video {
  width: 100%;
  height: clamp(240px, 42vh, 480px);
  display: block;
  object-fit: cover;
}

.opera-intro.is-fading {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

.opera-intro.is-hidden {
  display: none;
}

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-logo-wrap {
  position: absolute;
  right: 40px;
  top: 42px;
  transform: none;
  z-index: 1;
  pointer-events: none;
  opacity: 0.40;
}

.hero-main-logo {
  width: clamp(82px, 8.5vw, 120px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.12));
}

.hero-greeting {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 20px;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.hero-heading {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 700px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.hero-heading .typed-text {
  color: var(--text);
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--text);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Role chip */
.hero-role-chip {
  position: absolute;
  right: 40px;
  top: calc(60% + 44px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 240px;
}

.role-chip-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
}

.role-chip-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f0f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #888;
}

.role-chip-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-mid);
}

.role-chip-text strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

/* ---- PHOTO GRID ---- */
.photo-grid-section {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.photo-grid-track {
  display: flex;
  gap: 4px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.photo-grid-track:hover { animation-play-state: paused; }

.photo-grid-track img {
  height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.photo-real {
  height: 200px;
  width: 280px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
}

.photo-real-portrait-left {
  object-position: 38% center;
}

.photo-real-portrait-center {
  object-position: center 42%;
}

.photo-real-portrait-right {
  object-position: 60% center;
}

/* Polaroids next to BiteTalk title */
.bitetalk-polaroids {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  float: right;
  margin-left: 0;
  margin-right: 6%;
  margin-top: 4px;
}

.polaroid {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 8px 8px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  width: 170px;
  flex-shrink: 0;
  position: relative;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 5;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  display: block;
  text-align: center;
  font-size: 0.6rem;
  color: #888;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

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

/* ---- SECTIONS ---- */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  position: relative;
  z-index: 2;
}

/* ---- DECOR STARS ---- */
.decor-star {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  opacity: 0.98;
  width: 40px;
  height: 40px;
  object-fit: contain;
  mix-blend-mode: multiply;
  animation: sparkle-float 6s ease-in-out infinite;
  text-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.hero-star-a { top: 232px; left: 22%; width: 88px; height: 88px; animation-delay: -0.7s; }

.about-star-a { top: 32px; left: 2%; width: 54px; height: 54px; animation-delay: -0.7s; }

.experience-star-a { top: 82px; right: 4%; width: 52px; height: 52px; animation-delay: -1.1s; }

.education-star-a { top: 20px; right: 22%; width: 58px; height: 58px; animation-delay: -0.4s; }

.projects-star-a { bottom: 52px; right: 2%; width: 56px; height: 56px; animation-delay: -1.6s; }

.reading-star-a { top: 18px; left: 60%; width: 50px; height: 50px; animation-delay: -2.1s; }

.contact-star-a { bottom: 22px; left: 2%; width: 54px; height: 54px; animation-delay: -1.3s; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 48px;
  line-height: 1.15;
}

/* ---- ABOUT ---- */
#about { border-top: 1px solid var(--border); }
#about { position: relative; overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 18px;
  font-weight: 300;
}

.about-text p strong { color: var(--text); font-weight: 600; }
.about-text p:last-child { margin-bottom: 0; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border-mid);
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--surface-frost);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---- EXPERIENCE ---- */
#experience {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.exp-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-of-type { border-top: 1px solid var(--border); }

.exp-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.exp-logo-wide {
  width: 100px;
  height: 60px;
}

.uts-logo-wrap {
  width: 130px;
  height: 60px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uts-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.edu-logo-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.exp-content { flex: 1; }

.exp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.exp-company-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.exp-company-link:hover,
.exp-company-link:focus-visible {
  border-bottom-color: currentColor;
}

.edu-flags {
  margin-left: 8px;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: baseline;
  white-space: nowrap;
}

.exp-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a7a2a;
  background: rgba(42,122,42,0.1);
  border: 1px solid rgba(42,122,42,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

.exp-role {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.exp-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.exp-bullets li {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
  padding-left: 14px;
  position: relative;
}

.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.exp-bullets li strong { color: var(--text); font-weight: 600; }

.lang-row { margin-top: 28px; }

.lang-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* About postcards */
.about-postcards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.about-postcard {
  margin: 0;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 10px;
  padding: 8px 8px 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-postcard-left { transform: rotate(-2.5deg); }
.about-postcard-right { transform: rotate(2deg); }

.about-postcard:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.about-postcard img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.about-postcard-left img { object-position: center 38%; }
.about-postcard-right img { object-position: center 36%; }

/* ---- BITETALK IMAGE ---- */
.bitetalk-image-wrap {
  padding: 0 40px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.bitetalk-promo-img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.project-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.project-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  padding: 4px;
}

/* ---- PROJECTS ---- */
#projects {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#reading {
  position: relative;
  overflow: hidden;
}

#education {
  position: relative;
  overflow: hidden;
}

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

.featured-project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-frost);
  min-height: 100%;
}

.featured-project-image-link {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.featured-project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.featured-project-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  flex: 1;
}

.featured-project-title-link {
  text-decoration: none;
  color: inherit;
}

.featured-project-title-link:hover .project-name {
  color: #000;
}

.project-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  cursor: default;
  transition: all var(--transition);
}

.project-item:first-of-type { border-top: 1px solid var(--border); }

.project-left { flex: 1; }

.project-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.project-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.project-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border-mid);
  padding: 3px 12px;
  border-radius: 100px;
  background: var(--surface-frost);
}

.project-arrow {
  font-size: 20px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0;
  transition: all var(--transition);
  transform: translate(-6px, 6px);
}

.project-item.linked { cursor: pointer; }
.project-item.linked:hover .project-arrow { opacity: 1; transform: translate(0,0); }
.project-item.linked:hover .project-name { color: #000; }

.featured-project-card .project-num {
  margin-bottom: 0;
}

.featured-project-card .project-name {
  margin-bottom: 0;
}

.featured-project-card .project-desc {
  max-width: none;
  min-height: 96px;
  margin-bottom: 0;
}

.resensio-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1535 0%, #2d2760 40%, #4a3fa0 70%, #6C63D5 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.resensio-card-bg-orb-1 {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #8f89e8 0%, #5a52c8 40%, #2d2760 100%);
  top: -70px;
  right: -70px;
  opacity: 0.5;
}

.resensio-card-bg-orb-2 {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #a09af5 0%, #6C63D5 50%, #3b3494 100%);
  bottom: -45px;
  left: 26px;
  opacity: 0.35;
}

.resensio-card-bg-orb-3 {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(156,147,245,0.3);
  top: 30px;
  left: 36px;
}

.resensio-card-bg-orb-4 {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 0.5px solid rgba(156,147,245,0.2);
  bottom: 30px;
  right: 50px;
}

.resensio-card-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.resensio-orb {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b8b3f8 0%, #6C63D5 45%, #2d2860 100%);
  position: relative;
  flex-shrink: 0;
}

.resensio-orb::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
}

.resensio-orb-110 {
  width: 84px;
  height: 84px;
}

.resensio-orb-110::after {
  top: 12px;
  left: 15px;
  width: 20px;
  height: 20px;
  filter: blur(4px);
}

.resensio-orb-40 {
  width: 40px;
  height: 40px;
}

.resensio-orb-40::after {
  top: 6px;
  left: 9px;
  width: 11px;
  height: 11px;
  filter: blur(3px);
}

.resensio-card-wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 44px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.resensio-card-wordmark span {
  color: #9B93F5;
}

.resensio-card-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7B74C8;
}

/* ---- BLOG ---- */
#blog { border-top: 1px solid var(--border); }

.blog-empty {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-empty p {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 300;
}

/* ---- CONTACT ---- */
#contact {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.contact-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-text p {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 380px;
  font-weight: 300;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1.5px solid var(--border-mid);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--surface-frost);
  white-space: nowrap;
}

.contact-link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 12px; color: var(--text-dim); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

/* ---- FADE IN ---- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- READING SECTION ---- */

/* Books grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: background 0.18s ease;
}

.book-card:hover { background: var(--bg-card); }

.book-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 4px;
}

.book-author {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.book-rating {
  font-size: 0.82rem;
  color: var(--fg);
  letter-spacing: 1px;
}

.reading-footer {
  margin-top: 8px;
}

.reading-notion-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.18s ease;
}

.reading-notion-link:hover { color: var(--fg); }

@keyframes sparkle-float {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.9; }
  25%       { transform: translateY(-8px) rotate(8deg) scale(1.08); opacity: 1; }
  50%       { transform: translateY(-4px) rotate(0deg) scale(1.04); opacity: 0.95; }
  75%       { transform: translateY(-10px) rotate(-6deg) scale(1.1); opacity: 1; }
}

@keyframes emoji-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); opacity: 0.3; }
  50% { transform: translate3d(0, -9px, 0) rotate(1deg); opacity: 0.42; }
}

@keyframes bg-pan {
  0% {
    background-position: 6% 26%, 88% 8%, 62% 92%, 0% 0%;
  }
  50% {
    background-position: 30% 8%, 68% 20%, 84% 66%, 0% 0%;
  }
  100% {
    background-position: 40% 4%, 56% 30%, 92% 56%, 0% 0%;
  }
}

@keyframes bg-breathe {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.08);
    opacity: 0.58;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .opera-intro-video { height: 32vh; }
  .hero-inner { padding: 72px 20px 48px; }
  .hero-logo-wrap {
    right: 20px;
    top: 74px;
    transform: none;
    opacity: 0.18;
  }
  .hero-main-logo {
    width: min(17vw, 52px);
  }
  .hero-role-chip { display: none; }
  .section-wrap { padding: 60px 20px; }
  .projects-list { grid-template-columns: 1fr; gap: 20px; }
  .featured-project-card .project-desc { min-height: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-postcards {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 320px;
  }
  .about-postcard {
    transform: none;
    padding-bottom: 18px;
  }
  .about-postcard:hover { transform: translateY(-2px); }
  footer { padding: 24px 20px; }
  .nav-links li:not(:last-child) { display: none; }
  .decor-star,
  .decor-circle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before {
    animation: none;
  }

  body {
    background-size: 160% 160%, 150% 150%, 170% 170%, 100% 100%;
  }

  body::before {
    opacity: 0.45;
  }
}
