/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg-color: #ffffff;
  --text-color: #0b0b0b;
  --accent-color: #ff7eb3;
  --icon-hover: #ff7eb3;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e6e6e6;
  --accent-color: #ff7eb3;
  --icon-hover: #a4f279;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  overflow-x: hidden;
  overflow-y: auto;
  transition: background-color 0.4s ease, color 0.4s ease;
  user-select: none;
}


/* =============================================
   ENHANCEMENTS
   ============================================= */
::selection {
  background: var(--accent-color);
  color: #fff;
}

body {
  opacity: 0;
  animation: pageFadeIn 0.8s forwards ease-out;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

/* =============================================
   CUSTOM CURSOR (desktop only)
   ============================================= */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: difference;
}
.cursor.hovered {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 126, 179, 0.5);
  border-color: transparent;
}
@media (pointer: coarse) {
  .cursor { display: none; }
}

/* =============================================
   HERO SCREEN — full viewport, flex column
   ============================================= */
.hero-screen {
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport for mobile browsers */
  height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-snap-align: start;
  /* Removed overflow: hidden so content isn't hard-clipped on very short screens */
}

/* =============================================
   HEADER
   ============================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  z-index: 10;
  position: relative;
  flex-shrink: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.avatar-icon {
  width: 70px;
  height: 70px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}

/* me.svg has black fill — invert in dark mode */
[data-theme="dark"] .avatar-icon svg {
  filter: invert(1);
}

.avatar-icon:hover {
  transform: scale(1.1) rotate(-10deg);
}

.brand-name {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

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

.icon-btn {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--icon-hover);
  transform: scale(1.1) translateY(-2px);
}
.icon-btn:active {
  transform: scale(0.9);
}

.theme-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
[data-theme="dark"] .theme-icon {
  filter: invert(1);
}

/* =============================================
   MAIN CANVAS AREA
   ============================================= */
.canvArea {
  flex-grow: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;     /* key: clips doodles that go offscreen on mobile */
}

.grid-bg {
  position: relative;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--text-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--text-color) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .grid-bg::before {
  opacity: 0.08;
}

.dump-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* =============================================
   TITLE TEXT
   ============================================= */
.pixel-text {
  font-family: 'VT323', "Courier New", Courier, monospace;
  font-weight: normal;
  line-height: 0.88;
  text-align: center;
  z-index: 5;
  position: relative;
  text-shadow: 4px 4px 0px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  pointer-events: none;
}

[data-theme="dark"] .pixel-text {
  text-shadow: 4px 4px 0px rgba(255,255,255,0.08);
}

.title-jathu {
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: 2px;
}

.title-design {
  font-size: clamp(5rem, 10vw, 9rem);
  letter-spacing: -2px;
}

.dump-container:hover .pixel-text {
  transform: scale(1.02);
}

/* =============================================
   DOODLES — base styles
   ============================================= */
.doodle {
  position: absolute;
  color: var(--text-color);
  z-index: 2;
  /* transition driven by JS parallax — keep fast */
  transition: transform 0.1s ease-out;
  text-decoration: none;
}

/* Label on hover */
.doodle::after {
  content: attr(data-label);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  font-family: 'VT323', "Courier New", Courier, monospace;
  font-size: 1.2rem;
  background: var(--text-color);
  color: var(--bg-color);
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  white-space: nowrap;
}

.doodle:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(15px);
}

.doodle-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.doodle:hover .doodle-inner {
  transform: scale(1.18);
}

.doodle svg,
.doodle img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(2px 3px 0px rgba(0,0,0,0.12));
  display: block;
}

[data-theme="dark"] .doodle img {
  filter: drop-shadow(2px 3px 0px rgba(255,255,255,0.1)) invert(1);
}
[data-theme="dark"] .doodle svg {
  filter: drop-shadow(2px 3px 0px rgba(255,255,255,0.1));
}

/* =============================================
   DOODLE POSITIONS — desktop (exact liked state)
   All positions use calc(50% ± Xpx) so they
   orbit cleanly around the centred text block.
   50% = half of .dump-container width (max 900px).
   ============================================= */

/* code </> — top-left */
.code-doodle {
  top: calc(50% - 195px);
  left: calc(50% - 390px);
  width: 85px; height: 85px;
}
.code-doodle img { transform: rotate(-20deg); }

/* pen tool — top-center */
.pen-doodle {
  top: calc(50% - 220px);
  left: calc(50% - 120px);
  width: 80px; height: 80px;
}
.pen-doodle img { transform: rotate(12deg); }

/* smile face — top-right */
.smile-doodle {
  top: calc(50% - 195px);
  left: calc(50% + 210px);
  width: 150px; height: 150px;
}
.smile-doodle svg { transform: rotate(8deg); color: #323851; }
[data-theme="dark"] .smile-doodle svg { color: var(--text-color); }

/* hashtag — mid-left */
.hashtag-doodle {
  top: calc(50% - 50px);
  left: calc(50% - 415px);
  width: 80px; height: 90px;
}
.hashtag-doodle img { transform: rotate(15deg); }

/* notebook — mid-right */
.notebook-doodle {
  top: calc(50% - 60px);
  left: calc(50% + 320px);
  width: 115px; height: 135px;
}
.notebook-doodle img { transform: rotate(20deg); }

/* C++ tag -> Logo Pencil — bottom-left */
.logo-doodle {
  top: calc(50% + 150px);
  left: calc(50% - 360px);
  width: 90px; height: 90px;
}
.logo-doodle img { transform: rotate(-18deg); }

/* picture frame — bottom-center */
.pic-doodle {
  top: calc(50% + 160px);
  left: calc(50% - 40px);
  width: 100px; height: 100px;
}
.pic-doodle svg,
.pic-doodle img { transform: rotate(-12deg); }

/* profile/user — bottom-right */
.user-doodle {
  top: calc(50% + 155px);
  left: calc(50% + 220px);
  width: 90px; height: 90px;
}
.user-doodle img { transform: rotate(10deg); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.75rem 2rem 1rem;
  z-index: 10;
  position: relative;
  flex-shrink: 0;
}

.bottom-left {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  min-width: 0;
}

.bottom-center {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}


.arrow-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}
.arrow-btn:hover {
  transform: scale(1.15);
}
.arrow-down {
  width: 32px;
  height: 48px;
}
.arrow-down img {
  width: 100%;
  height: 100%;
}
[data-theme="dark"] .arrow-down img {
  filter: invert(1);
}
.bounce {
  animation: bounce 2s infinite ease-in-out;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.bottom-right {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
}

.social-icon {
  color: var(--text-color);
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.social-icon svg,
.social-icon img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
}
[data-theme="dark"] .social-icon img {
  filter: invert(1);
}
.social-icon:hover {
  border-color: var(--text-color);
  background-color: rgba(0,0,0,0.05);
}
[data-theme="dark"] .social-icon:hover {
  background-color: rgba(255,255,255,0.05);
}
.social-icon:hover svg,
.social-icon:hover img {
  transform: scale(1.1);
}

/* =============================================
   RESPONSIVE
   The desktop layout (doodle positions etc.)
   is kept 100% identical. We only scale the
   entire dump-container down so nothing ever
   overflows on smaller screens.
   A small 5% gap is maintained on each side.
   ============================================= */

/* Below 940px — container would start clipping */
@media (max-width: 940px) {
  .dump-container { transform: scale(0.86); }
  header { padding: 0.9rem 1.75rem; }
}

@media (max-width: 780px) {
  .dump-container { transform: scale(0.72); }
  header { padding: 0.8rem 1.25rem; }
}

@media (max-width: 640px) {
  .dump-container { transform: scale(0.60); }
  header { padding: 0.7rem 1rem; }
  .brand-name { font-size: 1rem; }
  .avatar-icon { width: 36px; height: 36px; }
}

@media (max-width: 520px) {
  .dump-container { transform: scale(0.48); }
  header { padding: 0.6rem 0.85rem; }
  .brand-name { font-size: 0.9rem; }
}

@media (max-width: 420px) {
  .dump-container { transform: scale(0.40); }
  header { padding: 0.5rem 0.75rem; }
}

@media (max-width: 340px) {
  .dump-container { transform: scale(0.33); }
}

/* Fix overlapping on short screens (e.g. landscape laptop/mobile) */
@media (max-height: 740px) and (min-width: 781px) {
  .dump-container { transform: scale(0.75); }
}
@media (max-height: 620px) and (min-width: 781px) {
  .dump-container { transform: scale(0.60); }
}
@media (max-height: 520px) and (min-width: 641px) {
  .dump-container { transform: scale(0.50); }
}

/* Footer — stack vertically on mobile */
@media (max-width: 600px) {
  footer {
    padding: 0.5rem 1rem 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .bottom-left  { display: none; }
  .bottom-center { position: relative; left: auto; bottom: auto; transform: none; order: -1; width: 100%; }
  .bottom-right {
    gap: 1rem;
    justify-content: center;
    width: 100%;
  }
  .social-icon { width: 38px; height: 38px; }
  .social-icon img,
  .social-icon svg { width: 24px; height: 24px; }
  .arrow-down { width: 28px; height: 42px; }
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
#projects {
  background-color: var(--bg-color);
  padding: 5rem 2.5rem 4rem;
  min-height: 100vh;
  scroll-snap-align: start;
}

.projects-header {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-title {
  font-family: 'VT323', "Courier New", Courier, monospace;
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 0.5rem;
}

.projects-subtitle {
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1rem;
  opacity: 0.6;
  letter-spacing: 1px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-color);
  border: 2px solid var(--text-color);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s ease-out, transform 0.6s ease-out;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  
  /* Start hidden for reveal */
  opacity: 0;
  transform: translateY(30px);
}

.project-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid var(--text-color);
  border-radius: 12px;
  z-index: -1;
  transition: all 0.3s;
}

.project-card:hover {
  transform: translate(-3px, -3px);
}
.project-card:hover::before {
  top: 9px; left: 9px;
  right: -9px; bottom: -9px;
}

.card-tag {
  display: inline-block;
  font-family: 'VT323', "Courier New", Courier, monospace;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  background: var(--card-accent);
  color: #0b0b0b;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 1px;
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}
.project-card p {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.6;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: color 0.3s, gap 0.3s;
}
.card-link svg {
  width: 18px; height: 18px;
  transition: transform 0.3s;
}
.card-link:hover { color: var(--accent-color); gap: 0.8rem; }
.card-link:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
  #projects { padding: 3rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  #projects { padding: 2.5rem 1rem; }
}

/* =============================================
   ABOUT PAGE — additional styles
   ============================================= */

/* Full-page flex column wrapper */
.about-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  color: var(--text-color);
}

/* Avatar in header is now a link — remove underline */
.avatar-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ── MAIN CONTENT ──────────────────────────────── */
.about-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 3rem 3rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── HERO SECTION ──────────────────────────────── */
.about-hero {
  display: flex;
  align-items: center;
  gap: 4rem;
}

/* The decorative doodle cluster replacing the avatar illustration */
.about-me-svg {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.about-doodle-accent {
  position: absolute;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
[data-theme="dark"] .about-doodle-accent {
  filter: invert(1);
}
.about-doodle-accent:hover {
  transform: scale(1.2) rotate(5deg) !important;
}

.about-doodle-tl { width: 90px; top: 0;    left: 0;    transform: rotate(-15deg); }
.about-doodle-tr { width: 75px; top: 0;    right: 0;   transform: rotate(20deg); }
.about-doodle-bl { width: 70px; bottom: 0; left: 10px; transform: rotate(10deg); }
.about-doodle-br { width: 80px; bottom: 0; right: 0;   transform: rotate(25deg); }

/* Intro text block */
.about-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-heading {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 2px;
}

.about-tagline {
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0.5;
  text-transform: uppercase;
}

.about-bio {
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.8;
  max-width: 520px;
}
.about-bio em { color: var(--accent-color); font-style: normal; font-weight: 700; }

.about-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.about-cta-btn {
  font-family: 'VT323', "Courier New", Courier, monospace;
  font-size: 1.4rem;
  letter-spacing: 1px;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid var(--text-color);
  position: relative;
}
.about-cta-btn::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  right: -4px; bottom: -4px;
  border: 2px solid var(--text-color);
  border-radius: 8px;
  transition: all 0.25s;
  z-index: -1;
}
.about-cta-btn:hover { transform: translate(-2px, -2px); }
.about-cta-btn:hover::after { top: 6px; left: 6px; right: -6px; bottom: -6px; }

.primary-btn {
  background: var(--text-color);
  color: var(--bg-color);
}
.outline-btn {
  background: transparent;
  color: var(--text-color);
}

/* ── SECTION TITLES ────────────────────────────── */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}
.about-section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 3px;
  background: var(--accent-color);
}

/* ── SKILLS GRID ───────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  border: 2px solid var(--text-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: transform 0.25s;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px;
  right: -5px; bottom: -5px;
  border: 2px solid var(--text-color);
  border-radius: 12px;
  z-index: -1;
  transition: all 0.25s;
}
.skill-card:hover { transform: translate(-3px, -3px); }
.skill-card:hover::before { top: 8px; left: 8px; right: -8px; bottom: -8px; }

.skill-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
[data-theme="dark"] .skill-icon {
  filter: invert(1);
}

.skill-card h3 {
  font-family: 'VT323', "Courier New", Courier, monospace;
  font-size: 1.5rem;
  font-weight: normal;
}

.skill-card p {
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.7;
}

/* ── FACTS LIST ────────────────────────────────── */
.about-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
}

.about-facts li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

.fact-label {
  opacity: 0.55;
  min-width: 160px;
}

.fact-value {
  font-weight: 700;
}

/* ── FOOTER BACK LINK ──────────────────────────── */
.back-home-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-color);
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  transition: gap 0.25s, color 0.25s;
}
.back-home-link:hover {
  color: var(--accent-color);
  gap: 0.9rem;
}
.back-arrow {
  width: 22px;
  height: 30px;
  transform: rotate(180deg); /* flip to point left */
}
[data-theme="dark"] .back-arrow {
  filter: invert(1);
}

/* ── RESPONSIVE UPDATES ────────────────────────── */
@media (max-width: 760px) {
  .about-hero {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }
  .about-me-svg {
    width: 160px;
    height: 160px;
  }
  .about-main { padding: 2rem 1.5rem 3rem; gap: 3.5rem; }
  .fact-label { min-width: 120px; }
}

@media (max-width: 480px) {
  .about-main { padding: 1.5rem 1rem 2.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-cta-row { flex-direction: column; }
  .about-facts li { flex-direction: column; gap: 0.2rem; }
  .fact-label { min-width: unset; }
}

/* =============================================
   PROJECT DETAIL PAGE
   ============================================= */
.project-detail-main {
  flex-grow: 1;
  padding: 3rem 2.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: pageFadeIn 0.8s forwards ease-out;
}

.pd-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.pd-tag {
  display: inline-block;
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.pd-title {
  font-family: 'VT323', "Courier New", Courier, monospace;
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  line-height: 1;
}

.pd-desc {
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

.pd-viewer {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.pdf-wrapper {
  background: var(--bg-color);
  border: 2px solid var(--text-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
[data-theme="dark"] .pdf-wrapper {
  box-shadow: 6px 6px 0px rgba(255,255,255,0.05);
}

.pdf-wrapper:hover {
  transform: translate(-2px, -2px);
}

.pdf-header {
  border-bottom: 2px solid var(--text-color);
  background: var(--text-color);
  color: var(--bg-color);
  padding: 0.5rem 1rem;
  font-family: 'Space Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}
.pdf-header span { opacity: 0.8; }

.img-embed {
  width: 100%;
  height: auto;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .project-detail-main { padding: 2rem 1.5rem 4rem; }
}

