/* ==============================================
   CSS VARIABLES & RESET
   ============================================== */
:root {
  --tech-bg:        #0d1117;
  --tech-bg-2:      #161b22;
  --tech-accent:    #00c8ff;
  --tech-accent-2:  #0080a0;

  --poetry-bg:      #f7f2e8;
  --poetry-bg-2:    #ede7d9;
  --poetry-accent:  #8b1a3a;

  --neutral-dark:   #1e2533;

  --font-tech:    'Inter', sans-serif;
  --font-poetry:  'Playfair Display', serif;

  --gap:          clamp(1rem, 3vw, 2rem);
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-tech);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==============================================
   NAVIGATION
   ============================================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), box-shadow var(--transition);
}

.landing-page .main-nav {
  background: rgba(13, 17, 23, 0.6);
}

.tech-page .main-nav {
  background: rgba(13, 17, 23, 0.85);
  border-bottom: 1px solid rgba(0, 200, 255, 0.12);
}

.poetry-page .main-nav {
  background: rgba(247, 242, 232, 0.88);
  border-bottom: 1px solid rgba(139, 26, 58, 0.12);
}

.tech-page .main-nav.scrolled,
.landing-page .main-nav.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.poetry-page .main-nav.scrolled {
  background: rgba(247, 242, 232, 0.98);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.nav-logo a {
  font-family: var(--font-poetry);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.landing-page .nav-logo a,
.tech-page .nav-logo a {
  color: #e8e8e8;
}

.poetry-page .nav-logo a {
  color: var(--neutral-dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-tech {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  /* text-transform: uppercase; */
  color: var(--tech-accent);
  transition: opacity var(--transition);
}

.nav-poetry {
  font-family: var(--font-poetry);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--poetry-accent);
  transition: opacity var(--transition);
}

.nav-tech:hover,
.nav-poetry:hover {
  opacity: 0.65;
}

.nav-tech.active {
  border-bottom: 2px solid var(--tech-accent);
  padding-bottom: 2px;
}

.nav-poetry.active {
  border-bottom: 2px solid var(--poetry-accent);
  padding-bottom: 2px;
}

/* ==============================================
   LANDING PAGE
   ============================================== */
.landing-page {
  background: var(--tech-bg);
  min-height: 100vh;
}

.landing-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.landing-center {
  text-align: center;
  padding: 3rem 2rem 1.5rem;
}

.landing-tagline {
  font-family: var(--font-poetry);
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
}

/* Split panels */
.landing-split {
  display: flex;
  flex: 1;
  min-height: 68vh;
}

.split-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: flex var(--transition);
  cursor: pointer;
}

.split-panel:hover {
  flex: 1.18;
}

.split-tech {
  background: linear-gradient(135deg, #0d1117 0%, #0a1d2e 100%);
  border-right: 1px solid rgba(0, 200, 255, 0.12);
}

.split-poetry {
  background: linear-gradient(135deg, #f7f2e8 0%, #ede3d0 100%);
}

.split-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.split-tech .split-content {
  color: #e8e8e8;
}

.split-poetry .split-content {
  color: var(--neutral-dark);
}

.split-icon {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

.split-icon svg {
  width: 100%;
  height: 100%;
}

.split-tech .split-icon {
  color: var(--tech-accent);
}

.split-poetry .split-icon {
  color: var(--poetry-accent);
}

.split-panel h2 {
  font-family: var(--font-poetry);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}

.split-panel p {
  font-size: 0.93rem;
  opacity: 0.65;
  line-height: 1.65;
}

.split-cta {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  transition: all var(--transition);
}

.split-tech .split-cta {
  color: var(--tech-bg);
  background: var(--tech-accent);
}

.split-poetry .split-cta {
  color: #fff;
  background: var(--poetry-accent);
}

.split-panel:hover .split-cta {
  transform: translateX(4px);
}

/* Background grid/line patterns */
.split-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
}

.tech-pattern {
  background-image:
    linear-gradient(rgba(0, 200, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.poetry-pattern {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(139, 26, 58, 0.7) 0,
    rgba(139, 26, 58, 0.7) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 28px 28px;
}

/* Symbiosis strip */
.symbiosis-strip {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding: 1.5rem 2rem;
}

.symbiosis-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.symbiosis-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.symbiosis-item p {
  font-family: var(--font-poetry);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.symbiosis-divider {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.18);
}

.sym-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}

.sym-tech {
  background: rgba(0, 200, 255, 0.12);
  color: var(--tech-accent);
  border: 1px solid rgba(0, 200, 255, 0.28);
}

.sym-poetry {
  background: rgba(139, 26, 58, 0.15);
  color: #d46080;
  border: 1px solid rgba(139, 26, 58, 0.3);
}

/* ==============================================
   FOOTER
   ============================================== */
.main-footer {
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.main-footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-poetry);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-left: auto;
}

.tech-page .footer-brand,
.landing-page .footer-brand {
  color: rgba(255, 255, 255, 0.55);
}

.poetry-page .footer-brand {
  color: rgba(45, 45, 45, 0.5);
}

.tech-page .main-footer,
.landing-page .main-footer {
  background: var(--tech-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.3);
}

.tech-page .main-footer a,
.landing-page .main-footer a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.tech-page .main-footer a:hover,
.landing-page .main-footer a:hover {
  color: var(--tech-accent);
}

.poetry-page .main-footer {
  background: var(--poetry-bg-2);
  border-top: 1px solid rgba(139, 26, 58, 0.1);
  color: rgba(45, 45, 45, 0.38);
}

.poetry-page .main-footer a {
  color: rgba(45, 45, 45, 0.48);
  transition: color var(--transition);
}

.poetry-page .main-footer a:hover {
  color: var(--poetry-accent);
}

/* ==============================================
   PAGE HERO (shared: tech + poetry pages)
   ============================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 2rem 5rem;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hero-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tech-hero .hero-label {
  color: var(--tech-accent);
}

.poetry-hero .hero-label {
  color: var(--poetry-accent);
}

.page-hero h1 {
  font-family: var(--font-poetry);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
}

.tech-hero h1 {
  color: #e8e8e8;
}

.poetry-hero h1 {
  color: var(--neutral-dark);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
}

.tech-hero .hero-sub {
  color: rgba(232, 232, 232, 0.55);
}

.poetry-hero .hero-sub {
  color: rgba(45, 45, 45, 0.6);
}

.hero-verse-quote {
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  border-left: 3px solid;
  text-align: left;
  font-family: var(--font-poetry);
  font-style: italic;
  font-size: 0.93rem;
  border-radius: 0 4px 4px 0;
  width: 100%;
}

.tech-hero .hero-verse-quote {
  border-color: var(--tech-accent);
  background: rgba(0, 200, 255, 0.05);
  color: rgba(232, 232, 232, 0.65);
}

.tech-hero .hero-verse-quote cite {
  display: block;
  margin-top: 0.4rem;
}

.tech-hero .hero-verse-quote cite a {
  color: #d46080;
  font-style: normal;
  font-size: 0.8rem;
  font-family: var(--font-tech);
  letter-spacing: 0.04em;
}

.poetry-hero .hero-verse-quote {
  border-color: var(--poetry-accent);
  background: rgba(139, 26, 58, 0.05);
  color: rgba(45, 45, 45, 0.68);
}

.poetry-hero .hero-verse-quote cite {
  display: block;
  margin-top: 0.4rem;
}

.poetry-hero .hero-verse-quote cite a {
  color: var(--tech-accent-2);
  font-style: normal;
  font-size: 0.8rem;
  font-family: var(--font-tech);
  letter-spacing: 0.04em;
}

/* Tech hero: dark + canvas */
.tech-hero {
  background: linear-gradient(180deg, #0a1d2e 0%, var(--tech-bg) 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.45;
}

/* Poetry hero: warm gradient */
.poetry-hero {
  background: linear-gradient(180deg, #ede3d0 0%, var(--poetry-bg) 100%);
}

/* ==============================================
   PAGE MAIN
   ============================================== */
.page-main {
  padding: 3rem 0 5rem;
}

.tech-page .page-main {
  background: var(--tech-bg);
}

.poetry-page .page-main {
  background: var(--poetry-bg);
}

/* ==============================================
   FILTER BAR
   ============================================== */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 var(--gap);
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1px solid;
  border-radius: 2px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
}

.tech-page .filter-btn {
  color: rgba(232, 232, 232, 0.45);
  border-color: rgba(232, 232, 232, 0.1);
}

.tech-page .filter-btn:hover,
.tech-page .filter-btn.active {
  color: var(--tech-accent);
  border-color: var(--tech-accent);
  background: rgba(0, 200, 255, 0.07);
}

.poetry-page .filter-btn {
  color: rgba(45, 45, 45, 0.48);
  border-color: rgba(45, 45, 45, 0.14);
}

.poetry-page .filter-btn:hover,
.poetry-page .filter-btn.active {
  color: var(--poetry-accent);
  border-color: var(--poetry-accent);
  background: rgba(139, 26, 58, 0.07);
}

/* ==============================================
   PROJECTS GRID — tech page
   ============================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
  padding: 0 var(--gap);
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.project-card {
  background: var(--tech-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Scroll-in animation */
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color var(--transition),
    box-shadow var(--transition);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.visible:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 200, 255, 0.28);
  box-shadow: 0 8px 32px rgba(0, 200, 255, 0.07);
}

.project-card.hidden {
  display: none;
}

/* Card thumbnail */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #081422;
  overflow: hidden;
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 200, 255, 0.22);
}

.thumb-placeholder svg {
  width: 48px;
  height: 48px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card.visible:hover .card-thumb img {
  transform: scale(1.04);
}

.card-category-tag {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(0, 200, 255, 0.12);
  color: var(--tech-accent);
  border: 1px solid rgba(0, 200, 255, 0.28);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
}

/* Card body */
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.card-title {
  font-family: var(--font-poetry);
  font-size: 1.18rem;
  font-weight: 700;
  color: #e8e8e8;
}

.card-desc {
  font-size: 0.87rem;
  color: rgba(232, 232, 232, 0.5);
  line-height: 1.65;
}

.card-tech-stack {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  color: rgba(232, 232, 232, 0.55);
}

.card-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.52rem 1.1rem;
  background: var(--tech-accent);
  color: var(--tech-bg);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: #33d4ff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.52rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(232, 232, 232, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 2px;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: #e8e8e8;
}

.card-verse-link {
  font-size: 0.78rem;
  font-family: var(--font-poetry);
  font-style: italic;
  color: rgba(212, 96, 128, 0.65);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-verse-link a {
  color: inherit;
  transition: color var(--transition);
}

.card-verse-link a:hover {
  color: #d46080;
}

/* YouTube Banner */
.yt-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.yt-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #1a0808 0%, var(--tech-bg) 100%);
  border: 1px solid rgba(255, 60, 60, 0.18);
  border-radius: 6px;
  flex-wrap: wrap;
}

.yt-icon {
  width: 50px;
  height: 36px;
  flex-shrink: 0;
  color: #ff4040;
}

.yt-icon svg {
  width: 100%;
  height: 100%;
}

.yt-text {
  flex: 1;
  min-width: 200px;
}

.yt-text h3 {
  font-family: var(--font-poetry);
  font-size: 1.18rem;
  color: #e8e8e8;
  margin-bottom: 0.3rem;
}

.yt-text p {
  font-size: 0.87rem;
  color: rgba(232, 232, 232, 0.48);
}

.btn-yt {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #ff4040;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-yt:hover {
  background: #ff6060;
  transform: translateY(-1px);
}

/* ==============================================
   POEMS STREAM — poetry page
   ============================================== */
.poems-stream {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* ── Poem card shell ── */
.poem-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #faf8f4;
  border: 1px solid rgba(139, 26, 58, 0.11);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(110, 55, 65, 0.05);
  /* Scroll-in animation */
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    box-shadow var(--transition);
}

.poem-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.poem-card.visible:hover {
  box-shadow: 0 6px 36px rgba(139, 26, 58, 0.1);
}

.poem-card.hidden {
  display: none !important;
}

/* ── Left column ── */
.poem-left {
  padding: 2.25rem 2rem;
  background: rgba(139, 26, 58, 0.024);
  border-right: 1px solid rgba(139, 26, 58, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Optional image */
.poem-figure {
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(139, 26, 58, 0.09);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--poetry-bg-2), #d5c8b0);
}

.poem-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease;
}

.poem-card:hover .poem-figure img {
  transform: scale(1.03);
}

/* Image aspect ratio variants */
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-5-4 { aspect-ratio: 5 / 4; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-2-3 { aspect-ratio: 2 / 3; }

/* Image placeholder (development helper) */
.poem-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(45, 45, 45, 0.25);
  font-family: var(--font-poetry);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* Story / description block */
.poem-story {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Decorative opening quote for image-less cards */
.poem-left--no-image .poem-story::before {
  content: '\201C';
  display: block;
  font-family: var(--font-poetry);
  font-size: 5rem;
  line-height: 0.75;
  color: rgba(139, 26, 58, 0.1);
  margin-bottom: 0.4rem;
  user-select: none;
}

.poem-story-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(139, 26, 58, 0.48);
  font-family: var(--font-tech);
}

.poem-story p {
  font-family: var(--font-poetry);
  font-style: italic;
  font-size: 0.91rem;
  line-height: 1.8;
  color: rgba(45, 45, 45, 0.6);
}

.poem-story-project-ref {
  margin-top: 0.25rem;
}

.poem-story-project-ref a {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-style: normal;
  color: rgba(139, 26, 58, 0.55);
  transition: color var(--transition);
}

.poem-story-project-ref a:hover {
  color: var(--poetry-accent);
}

/* ── Right column ── */
.poem-right {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Poem header */
.poem-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(139, 26, 58, 0.08);
}

.poem-title {
  font-family: var(--font-poetry);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 700;
  color: var(--neutral-dark);
  line-height: 1.18;
}

.poem-date {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(45, 45, 45, 0.33);
  font-family: var(--font-tech);
  text-transform: uppercase;
}

.poem-text {
  font-family: var(--font-poetry);
  font-size: 1.04rem;
  line-height: 2.08;
  color: #2d2d2d;
  flex: 1;
}

.poem-text p + p {
  margin-top: 1.25rem;
}

/* Poem footer */
.poem-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(139, 26, 58, 0.07);
  flex-wrap: wrap;
  margin-top: auto;
}

/* Mood tags */
.poem-mood-tag {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.68rem;
  border-radius: 2px;
  background: rgba(2, 30, 50, 0.08);
  color: #1f3b58;
  border: 1px solid rgba(2, 30, 50, 0.12);
}

.mood-romantikus {
  background: rgba(200, 80, 120, 0.08);
  color: #8b1a3a;
  border: 1px solid rgba(139, 26, 58, 0.2);
}

.mood-analitikus {
  background: rgba(0, 100, 160, 0.07);
  color: #0077b6;
  border: 1px solid rgba(0, 100, 160, 0.16);
}

.mood-melankolikus {
  background: rgba(100, 60, 110, 0.07);
  color: #7a4a8a;
  border: 1px solid rgba(100, 60, 110, 0.16);
}

.mood-szerkezetek {
  background: rgba(55, 115, 75, 0.07);
  color: #3d7a50;
  border: 1px solid rgba(55, 115, 75, 0.16);
}

.mood-nosztalgikus {
  background: rgba(180, 130, 30, 0.07);
  color: #8b6010;
  border: 1px solid rgba(180, 130, 30, 0.2);
}

.mood-filozofikus {
  background: rgba(60, 80, 140, 0.07);
  color: #3a527a;
  border: 1px solid rgba(60, 80, 140, 0.18);
}

.poem-project-link {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: rgba(45, 45, 45, 0.33);
  transition: color var(--transition);
}

.poem-project-link:hover {
  color: var(--poetry-accent);
}

/* ── Back-to-top button inside poem card footer ── */
.poem-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.28rem 0.75rem 0.28rem 0.55rem;
  background: transparent;
  border: 1px solid rgba(139, 26, 58, 0.15);
  border-radius: 20px;
  color: rgba(45, 45, 45, 0.35);
  font-family: var(--font-tech);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.poem-top-btn svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.poem-top-btn:hover {
  color: var(--poetry-accent);
  border-color: rgba(139, 26, 58, 0.38);
  background: rgba(139, 26, 58, 0.05);
}

.poem-top-btn:hover svg {
  transform: translateY(-2px);
}

/* ── Stories HTML content wrapper ── */
.poem-story-text p {
  font-family: var(--font-poetry);
  font-style: italic;
  font-size: 0.91rem;
  line-height: 1.8;
  color: rgba(45, 45, 45, 0.6);
}

.poem-story-text p + p {
  margin-top: 0.6rem;
}

/* ── Related poem links ── */
.poem-related-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(139, 26, 58, 0.12);
}

.poem-related-link {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: rgba(139, 26, 58, 0.5);
  transition: color var(--transition);
}

.poem-related-link:hover {
  color: var(--poetry-accent);
}

/* ── Loading indicator ── */
.poems-loading {
  text-align: center;
  padding: 4rem 2rem;
  font-family: var(--font-poetry);
  font-style: italic;
  color: rgba(45, 45, 45, 0.38);
  font-size: 1rem;
}

.poems-error {
  color: var(--poetry-accent);
}

/* ── Anchor highlight — flashes on deep-link arrival ── */
@keyframes anchorPulse {
  0%   { box-shadow: 0 0 0 0   rgba(139, 26, 58, 0.22); }
  40%  { box-shadow: 0 0 0 10px rgba(139, 26, 58, 0.08); }
  100% { box-shadow: 0 0 0 0   rgba(139, 26, 58, 0);    }
}

.poem-anchor-highlight {
  animation: anchorPulse 1.8s ease forwards;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
  .main-nav {
    padding: 0.85rem 1.25rem;
    flex-wrap: wrap;
  }

  .nav-logo {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    gap: 1.25rem;
  }

  .landing-split {
    flex-direction: column;
    min-height: auto;
  }

  .split-panel {
    min-height: 44vh;
  }

  .split-panel:hover {
    flex: 1;
  }

  .poem-card {
    grid-template-columns: 1fr;
  }

  .poem-left {
    border-right: none;
    border-bottom: 1px solid rgba(139, 26, 58, 0.1);
    padding: 1.75rem 1.5rem;
  }

  .poem-right {
    padding: 1.75rem 1.5rem;
  }

  .symbiosis-inner {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .symbiosis-divider {
    transform: rotate(90deg);
  }

  .yt-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .poems-stream {
    gap: 4rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 7rem 1.25rem 3rem;
  }

  .filter-bar,
  .projects-grid,
  .poems-stream,
  .yt-banner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ==============================================
   TABLE OF CONTENTS  (TARTALOMJEGYZÉK)
   ============================================== */

/* Hidden until JS populates and adds .toc-ready */
.toc-panel {
  display: none;
}

.toc-panel.toc-ready {
  display: block;
}

/* ── Inner card shell ── */
.toc-inner {
  background: #faf8f4;
  border: 1px solid rgba(139, 26, 58, 0.11);
  border-radius: 8px;
  box-shadow:
    0 2px 18px rgba(110, 55, 65, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* ── Header row ── */
.toc-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.1rem;
  background: rgba(139, 26, 58, 0.03);
  border-bottom: 1px solid rgba(139, 26, 58, 0.08);
  user-select: none;
}

.toc-ornament {
  font-family: var(--font-poetry);
  font-size: 1.05rem;
  color: var(--poetry-accent);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

.toc-label {
  font-family: var(--font-tech);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(45, 45, 45, 0.48);
  flex: 1;
}

.toc-count {
  font-family: var(--font-tech);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(45, 45, 45, 0.32);
  background: rgba(139, 26, 58, 0.07);
  border: 1px solid rgba(139, 26, 58, 0.12);
  border-radius: 20px;
  padding: 0.08rem 0.48rem;
  line-height: 1.6;
  flex-shrink: 0;
}

.toc-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(139, 26, 58, 0.14);
  border-radius: 4px;
  cursor: pointer;
  color: rgba(45, 45, 45, 0.36);
  padding: 0;
  transition: all var(--transition);
}

.toc-toggle-btn:hover {
  background: rgba(139, 26, 58, 0.06);
  border-color: rgba(139, 26, 58, 0.3);
  color: var(--poetry-accent);
}

.toc-toggle-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.38s ease;
}

.toc-panel--collapsed .toc-toggle-btn svg {
  transform: rotate(180deg);
}

/* ── Collapsible nav body ── */
.toc-nav {
  overflow: hidden;
  max-height: 4000px;
  opacity: 1;
  transition:
    max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}

.toc-nav--collapsed {
  max-height: 0 !important;
  opacity: 0;
}

/* ── Poem list ── */
.toc-list {
  list-style: none;
  padding: 0.45rem 0 0.6rem;
  margin: 0;
}

/* ── Individual link ── */
.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.38rem 1rem 0.38rem 0.85rem;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.toc-link:hover {
  background: rgba(139, 26, 58, 0.042);
  border-left-color: rgba(139, 26, 58, 0.22);
}

.toc-link--active {
  background: rgba(139, 26, 58, 0.07) !important;
  border-left-color: var(--poetry-accent) !important;
}

/* ── Mood-colored dot ── */
.toc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.42rem;
  background: rgba(45, 45, 45, 0.18);
  transition:
    background var(--transition),
    transform var(--transition);
}

.toc-dot--romantikus  { background: rgba(139, 26, 58,   0.38); }
.toc-dot--melankolikus{ background: rgba(100, 60, 110,  0.38); }
.toc-dot--analitikus  { background: rgba(0,  100, 160,  0.38); }
.toc-dot--szerkezetek { background: rgba(55, 115, 75,   0.38); }
.toc-dot--nosztalgikus{ background: rgba(180, 130, 30,  0.38); }
.toc-dot--filozofikus { background: rgba(60,  80,  140, 0.38); }

.toc-link--active .toc-dot {
  transform: scale(1.5);
}

.toc-link--active .toc-dot--romantikus   { background: var(--poetry-accent); }
.toc-link--active .toc-dot--melankolikus { background: #7a4a8a; }
.toc-link--active .toc-dot--analitikus   { background: #0077b6; }
.toc-link--active .toc-dot--szerkezetek  { background: #3d7a50; }
.toc-link--active .toc-dot--nosztalgikus { background: #8b6010; }
.toc-link--active .toc-dot--filozofikus  { background: #3a527a; }

/* ── Number ── */
.toc-num {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(45, 45, 45, 0.24);
  flex-shrink: 0;
  min-width: 1.55rem;
  padding-top: 0.17rem;
  line-height: 1.7;
  text-align: right;
  transition: color var(--transition);
}

.toc-link--active .toc-num {
  color: rgba(139, 26, 58, 0.45);
}

/* ── Poem title ── */
.toc-name {
  font-family: var(--font-poetry);
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(45, 45, 45, 0.56);
  transition: color var(--transition);
}

.toc-link:hover .toc-name {
  color: var(--neutral-dark);
}

.toc-link--active .toc-name {
  color: var(--neutral-dark);
}

/* ==============================================
   TOC — INLINE MODE  (max 1599px)
   ============================================== */

@media (max-width: 1599px) {
  .toc-panel.toc-ready {
    max-width: 1120px;
    margin: 0 auto 2rem;
    padding: 0 var(--gap);
  }
}

/* Grid of columns on medium screens */
@media (min-width: 769px) and (max-width: 1599px) {
  .toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Mobile: start collapsed, tighter spacing */
@media (max-width: 768px) {
  .toc-panel.toc-ready {
    margin-bottom: 1.5rem;
  }

  .toc-link {
    padding-top: 0.44rem;
    padding-bottom: 0.44rem;
  }
}

/* ==============================================
   TOC — FLOATING MODE  (min 1600px)
   ============================================== */

@media (min-width: 1600px) {
  .toc-panel.toc-ready {
    position: fixed;
    top: 5.5rem;
    /* Left of centered stream: 50vw - half_stream(560) - TOC_gap(22) - TOC_width(205) */
    left: max(16px, calc(50vw - 787px));
    width: 205px;
    padding: 0;
    margin: 0;
    z-index: 89;
    animation: tocSlideIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.45s both;
  }

  .toc-panel.toc-ready .toc-inner {
    max-height: calc(100vh - 7rem);
    display: flex;
    flex-direction: column;
  }

  /* The nav scrolls independently within the card */
  .toc-panel.toc-ready .toc-nav {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 26, 58, 0.18) transparent;
  }

  .toc-panel.toc-ready .toc-nav::-webkit-scrollbar {
    width: 3px;
  }

  .toc-panel.toc-ready .toc-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .toc-panel.toc-ready .toc-nav::-webkit-scrollbar-thumb {
    background: rgba(139, 26, 58, 0.2);
    border-radius: 2px;
  }
}

@keyframes tocSlideIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==============================================
   RÓLAM PAGE
   ============================================== */

/* Profile photo */
.rolam-photo-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 2rem 2rem;
}

.rolam-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(139, 26, 58, 0.18);
  box-shadow:
    0 0 0 7px rgba(139, 26, 58, 0.06),
    0 6px 32px rgba(110, 55, 65, 0.14);
  background: var(--poetry-bg-2);
  flex-shrink: 0;
  cursor: zoom-in;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.rolam-photo:hover {
  border-color: rgba(139, 26, 58, 0.55);
  box-shadow:
    0 0 0 7px rgba(139, 26, 58, 0.12),
    0 0 0 14px rgba(139, 26, 58, 0.05),
    0 10px 48px rgba(110, 55, 65, 0.35);
}

.rolam-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.rolam-photo:hover img {
  transform: scale(1.12);
}

.rolam-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139, 26, 58, 0.2);
}

.rolam-photo-placeholder svg {
  width: 72px;
  height: 72px;
}

/* Content stack */
.rolam-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gap) 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Section card */
.rolam-section {
  background: #faf8f4;
  border: 1px solid rgba(139, 26, 58, 0.11);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(110, 55, 65, 0.05);
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow var(--transition);
}

.rolam-section.visible {
  opacity: 1;
  transform: none;
}

.rolam-section.visible:hover {
  box-shadow: 0 6px 36px rgba(139, 26, 58, 0.09);
}

/* Section header */
.rolam-section-header {
  padding: 1.25rem 2rem;
  background: rgba(139, 26, 58, 0.024);
  border-bottom: 1px solid rgba(139, 26, 58, 0.08);
}

.rolam-section-sublabel {
  font-family: var(--font-tech);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(139, 26, 58, 0.48);
  margin-bottom: 0.3rem;
}

.rolam-section-title {
  font-family: var(--font-poetry);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--neutral-dark);
  line-height: 1.2;
}

/* Section body */
.rolam-section-body {
  padding: 1.75rem 2rem;
}

.rolam-section-body p {
  font-family: var(--font-poetry);
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(45, 45, 45, 0.75);
}

.rolam-section-body p + p {
  margin-top: 0.95rem;
}

/* Madách quote */
.rolam-blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--poetry-accent);
  background: rgba(139, 26, 58, 0.04);
  border-radius: 0 5px 5px 0;
  font-family: var(--font-poetry);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(45, 45, 45, 0.72);
}

.rolam-blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-tech);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(139, 26, 58, 0.45);
}

/* "Egy jó vers:" intro line */
.rolam-list-intro {
  margin-top: 0.95rem !important;
}

/* Custom bulleted list */
.rolam-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rolam-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-family: var(--font-poetry);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(45, 45, 45, 0.75);
}

.rolam-list-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--poetry-accent);
  opacity: 0.45;
  flex-shrink: 0;
  margin-top: 0.62rem;
}

.rolam-list li strong {
  font-weight: 700;
  color: rgba(45, 45, 45, 0.88);
}

/* Responsive */
@media (max-width: 768px) {
  .rolam-photo {
    width: 140px;
    height: 140px;
  }

  .rolam-section-header {
    padding: 1rem 1.25rem;
  }

  .rolam-section-body {
    padding: 1.25rem;
  }

  .rolam-section-title {
    font-size: 1.2rem;
  }
}

/* ==============================================
   PROJECT BLOG — szakmai.html blog-stílusú oldal
   ============================================== */
.project-blog {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gap) 5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Szekció */
.project-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0, 200, 255, 0.07);
}

.project-section:last-child {
  border-bottom: none;
}

.project-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-section-num {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tech-accent);
  opacity: 0.55;
}

.project-section-header h2 {
  font-family: var(--font-poetry);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: #e8e8e8;
  line-height: 1.15;
}

.project-section-intro {
  font-size: 0.96rem;
  color: rgba(232, 232, 232, 0.5);
  line-height: 1.8;
  max-width: 700px;
}

/* Sub-projekt kártya */
.project-sub {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem 2.25rem;
  background: var(--tech-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  /* scroll-in animation (újrahasznosítja a .fade-in logikát) */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.project-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-sub h3 {
  font-family: var(--font-poetry);
  font-size: 1.4rem;
  color: #e8e8e8;
  line-height: 1.2;
}

.project-sub-desc {
  font-size: 0.9rem;
  color: rgba(232, 232, 232, 0.52);
  line-height: 1.8;
}

/* ==============================================
   CAROUSEL — képgaléria komponens
   ============================================== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #08131e;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.carousel-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
}

/* Valódi kép esetén */
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Placeholder, amíg nincs valódi kép */
.carousel-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1d2e 0%, #0d1117 100%);
  color: rgba(0, 200, 255, 0.16);
}

.carousel-placeholder svg {
  width: 64px;
  height: 64px;
}

.carousel-slide figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: rgba(232, 232, 232, 0.45);
  font-family: var(--font-tech);
  line-height: 1.55;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Előző / Következő gomb */
.carousel-btn {
  position: absolute;
  top: calc(50% - 1.2rem); /* rough offset above the caption */
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.82);
  border: 1px solid rgba(0, 200, 255, 0.2);
  color: rgba(232, 232, 232, 0.65);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
  line-height: 1;
  padding: 0;
}

.carousel-btn:hover {
  background: rgba(0, 200, 255, 0.18);
  color: #fff;
  border-color: var(--tech-accent);
}

.carousel-prev { left: 0.65rem; }
.carousel-next { right: 0.65rem; }

/* Pontok */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem;
  background: rgba(0, 0, 0, 0.4);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(232, 232, 232, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: var(--tech-accent);
  transform: scale(1.35);
}

/* ==============================================
   YOUTUBE EMBED — beágyazott videó komponens
   ============================================== */
.yt-embed {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.yt-embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-embed-desc {
  font-size: 0.85rem;
  color: rgba(232, 232, 232, 0.42);
  line-height: 1.7;
  padding: 0.5rem 0.8rem;
  border-left: 2px solid rgba(0, 200, 255, 0.28);
  font-style: italic;
}

/* ==============================================
   PROJECT BLOG — reszponzív
   ============================================== */
@media (max-width: 768px) {
  .project-sub {
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}

/* ==============================================
   PROJECT BLOG — ENHANCED VISUALS
   ============================================== */

/* ── Section section: fade-in animation ── */
.project-section.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.project-section.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section number: small decorative label with leading rule ── */
.project-section-num {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.project-section-num::before {
  content: '';
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  background: var(--tech-accent);
  opacity: 0.45;
}

/* ── Section h2: short gradient underline ── */
.project-section-header h2 {
  padding-bottom: 1rem;
  position: relative;
}
.project-section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-accent) 0%, transparent 100%);
  border-radius: 1px;
}

/* ── H3 headings in project-sub: left accent bar ── */
.project-sub h3 {
  padding-left: 1rem;
  position: relative;
}
.project-sub h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  height: 0.85em;
  width: 3px;
  background: var(--tech-accent);
  border-radius: 2px;
  opacity: 0.5;
}

/* ── Project sub: hover glow ── */
.project-sub.visible:hover {
  border-color: rgba(0, 200, 255, 0.2);
  box-shadow:
    0 4px 32px rgba(0, 200, 255, 0.06),
    0 1px 10px rgba(0, 0, 0, 0.25);
}

/* ── Summary blockquote ── */
.summary-quote {
  margin: 0;
  padding: 1.1rem 1.5rem 1.1rem 1.75rem;
  border-left: 3px solid rgba(0, 200, 255, 0.55);
  background: rgba(0, 200, 255, 0.04);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-poetry);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(232, 232, 232, 0.7);
  position: relative;
  overflow: hidden;
}
.summary-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  right: 1.25rem;
  font-size: 5rem;
  color: var(--tech-accent);
  opacity: 0.08;
  font-family: var(--font-poetry);
  font-style: normal;
  line-height: 1;
  pointer-events: none;
}

/* ── Styled list items inside .project-sub-desc ul ── */
.project-sub-desc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.project-sub-desc li {
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  border-left: 2px solid rgba(0, 200, 255, 0.18);
  background: rgba(0, 200, 255, 0.025);
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  color: rgba(232, 232, 232, 0.52);
  line-height: 1.75;
  transition: border-color var(--transition), background var(--transition);
}
.project-sub-desc li:hover {
  border-left-color: rgba(0, 200, 255, 0.45);
  background: rgba(0, 200, 255, 0.05);
}
.project-sub-desc li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(0, 200, 255, 0.88);
  font-weight: 600;
}
.project-sub-desc li em {
  color: rgba(232, 232, 232, 0.65);
  font-style: italic;
}

/* ── Section divider: subtle glow line ── */
.project-section {
  border-bottom-color: rgba(0, 200, 255, 0.1);
}

/* ── Tech tags in section header: slightly more prominent ── */
.project-section-header .card-tech-stack {
  margin-top: 0.25rem;
}
.project-section-header .tech-tag {
  background: rgba(0, 200, 255, 0.06);
  border-color: rgba(0, 200, 255, 0.15);
  color: rgba(0, 200, 255, 0.6);
}

/* ==============================================
   GDPR CONSENT BANNER
   ============================================== */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(13, 17, 23, 0.97);
  border-top: 1px solid rgba(0, 200, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);

  /* Slide-up animáció */
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.42s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.consent-banner--active {
  transform: translateY(0);
  opacity: 1;
}

.consent-banner--hiding {
  transform: translateY(100%);
  opacity: 0;
}

.consent-text {
  font-family: var(--font-tech);
  font-size: 0.88rem;
  color: rgba(232, 232, 232, 0.8);
  line-height: 1.55;
  max-width: 680px;
}

.consent-text strong {
  color: rgba(0, 200, 255, 0.9);
  font-weight: 600;
}

.consent-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.consent-btn {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.consent-btn--accept {
  background: rgba(0, 200, 255, 0.12);
  border-color: rgba(0, 200, 255, 0.4);
  color: rgba(0, 200, 255, 0.95);
}

.consent-btn--accept:hover {
  background: rgba(0, 200, 255, 0.22);
  border-color: rgba(0, 200, 255, 0.7);
}

.consent-btn--decline {
  background: transparent;
  border-color: rgba(232, 232, 232, 0.18);
  color: rgba(232, 232, 232, 0.5);
}

.consent-btn--decline:hover {
  border-color: rgba(232, 232, 232, 0.35);
  color: rgba(232, 232, 232, 0.75);
}

@media (max-width: 600px) {
  .consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-btn {
    flex: 1;
    text-align: center;
  }
}
